Question: What apartment type codes and apartment numbers do the buildings managed by "Kyle" have?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , apt_number (text) , building_id (number) , apt_id (number) | apartment_buildings : building_id (number) , building_manager (text) , building_id (number)


Question: Show the booking status code and the corresponding number of bookings.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_status_code (text) , apt_booking_id (number)


Question: How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_status_code (text) , apt_booking_id (number)


Question: Return all the apartment numbers sorted by the room count in ascending order.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , room_count (text) , apt_id (number)


Question: Sort the apartment numbers in ascending order of room count.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , room_count (text) , apt_id (number)


Question: Return the apartment number with the largest number of bedrooms.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , bedroom_count (number) , apt_id (number)


Question: What is the apartment number of the apartment with the most beds?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , bedroom_count (number) , apt_id (number)


Question: Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , apt_id (number)


Question: Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , apt_id (number)


Question: Show the top 3 apartment type codes sorted by the average number of rooms in descending order.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , room_count (text) , apt_id (number)


Question: What are the top three apartment types in terms of the average room count? Give me the

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , room_count (text) , apt_id (number)


Question: Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) , apt_id (number)


Question: Which apartment type has the largest number of total rooms? Return the apartment type code, its number of bathrooms and number of bedrooms.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) , apt_id (number)


Question: Show the most common apartment type code.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , apt_id (number)


Question: Which apartment type code appears the most often?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , apt_id (number)


Question: Show the most common apartment type code among apartments with more than 1 bathroom.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , bathroom_count (number) , apt_id (number)


Question: Which apartment type code is the most common among apartments with more than one bathroom?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , bathroom_count (number) , apt_id (number)


Question: Show each apartment type code, and the maximum and minimum number of rooms for each type.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , room_count (text) , apt_id (number)


Question: Return each apartment type code along with the maximum and minimum number of rooms among each type.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , room_count (text) , apt_id (number)


Question: Show each gender code and the corresponding count of guests sorted by the count in descending order.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : gender_code (text) , guest_id (number)


Question: Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : gender_code (text) , guest_id (number)


Question: How many apartments do not have any facility?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Find the number of apartments that have no facility.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Show the apartment numbers of apartments with bookings that have status code both "Provisional" and "Confirmed"

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Which apartments have bookings with both status codes "Provisional" and "Confirmed"? Give me the apartment numbers.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Show the apartment numbers of apartments with unit status availability of both 0 and 1.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , apt_booking_id (number) | view_unit_status : apt_id (number) , available_yn (others) , status_date (number)


Question: Which apartments have unit status availability of both 0 and 1? Return their apartment numbers.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , apt_booking_id (number) | view_unit_status : apt_id (number) , available_yn (others) , status_date (number)


Question: How many games are held after season 2007?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)


Question: List the dates of games by the home team name in descending order.

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

game : date (text) , home_team (text) , id (number)


Question: List the season, home team, away team of all the games.

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

game : season (number) , home_team (text) , away_team (text) , id (number)


Question: What are the maximum, minimum and average home games each stadium held?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : home_games (number) , id (number)


Question: What is the average attendance of stadiums with capacity percentage higher than 100%?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : average_attendance (number) , capacity_percentage (number) , id (number)


Question: What are the player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

injury_accident : player (text) , number_of_matches (text) , source (text) , injury (text) , id (number)


Question: What is the season of the game which causes the player 'Walter Samuel' to get injured?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

game : season (number) , id (number) , id (number) | stadium : id (number) , id (number) | injury_accident : id (number) , game_id (number) , player (text) , id (number)


Question: What are the ids, scores, and dates of the games which caused at least two injury accidents?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : id (number) , id (number) | game : id (number) , score (text) , date (text) , id (number) | injury_accident : id (number) , game_id (number) , id (number)


Question: What are the id and name of the stadium where the most injury accidents happened?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : id (number) , name (text) , id (number) | game : id (number) , stadium_id (number) , id (number) | injury_accident : id (number) , game_id (number) , id (number)


Question: Find the id and name of the stadium where the largest number of injury accidents occurred.

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : id (number) , name (text) , id (number) | game : id (number) , stadium_id (number) , id (number) | injury_accident : id (number) , game_id (number) , id (number)


Question: In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

game : season (number) , stadium_id (number) , id (number) , id (number) | stadium : name (text) , id (number) , id (number) | injury_accident : id (number) , game_id (number) , injury (text) , id (number)


Question: How many different kinds of information sources are there for injury accidents?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

injury_accident : source (text) , id (number)


Question: How many games are free of injury accidents?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : id (number) , id (number) | game : id (number) , id (number) | injury_accident : id (number) , game_id (number) , id (number)


Question: How many distinct kinds of injuries happened after season 2010?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

injury_accident : injury (text) , game_id (number) , id (number) , id (number) | stadium : id (number) , id (number) | game : id (number) , season (number) , id (number)


Question: List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : name (text) , id (number) , id (number) | game : stadium_id (number) , id (number) , id (number) | injury_accident : id (number) , game_id (number) , player (text) , id (number)


Question: Show the name, average attendance, total attendance for stadiums where no accidents happened.

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : name (text) , average_attendance (number) , total_attendance (number) , id (number) , id (number) | game : stadium_id (number) , id (number) , id (number) | injury_accident : id (number) , game_id (number) , id (number)


Question: Which stadium name contains the substring "Bank"?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)


Question: How many games has each stadium held?

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

stadium : id (number) , id (number) | game : id (number) , stadium_id (number) , id (number) | injury_accident : id (number) , id (number)


Question: For each injury accident, find the date of the game and the name of the injured player in the game, and sort the results in descending order of game season.

stadium : id (number) , name (text) , home_games (number) , average_attendance (number) , total_attendance (number) , capacity_percentage (number) | game : stadium_id (number) , id (number) , season (number) , date (text) , home_team (text) , away_team (text) , score (text) , competition (text) | injury_accident : game_id (number) , id (number) , player (text) , injury (text) , number_of_matches (text) , source (text)

game : date (text) , id (number) , season (number) , id (number) | injury_accident : player (text) , id (number) , game_id (number) , id (number) | stadium : id (number) , id (number)


Question: List all country and league names.

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

sqlite_sequence : name (text) | league : name (text) , id (number) , country_id (number) , id (number) | country : name (text) , id (number) , id (number) | player_attributes : id (number) , id (number) | player : id (number) , id (number) | team : id (number) , id (number) | team_attributes : id (number) , id (number)


Question: How many leagues are there in England?

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player_attributes : id (number) , id (number) | player : id (number) , id (number) | league : id (number) , country_id (number) , name (text) , id (number) | country : id (number) , name (text) , id (number) | team : id (number) , id (number) | team_attributes : id (number) , id (number) | sqlite_sequence : name (text)


Question: What is the average weight of all players?

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)


Question: What is the maximum and minimum height of all players?

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)


Question: List all player names who have an overall rating higher than the average.

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player : player_name (text) , player_api_id (number) , id (number) | player_attributes : player_api_id (number) , overall_rating (number) , id (number)


Question: What are the names of players who have the best dribbling?

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player : player_name (text) , player_api_id (number) , id (number) | player_attributes : player_api_id (number) , dribbling (number) , overall_rating (number) , id (number)


Question: List the names of all players who have a crossing score higher than 90 and prefer their right foot.

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player : player_name (text) , player_api_id (number) , id (number) | player_attributes : player_api_id (number) , crossing (number) , preferred_foot (text) , id (number)


Question: List the names of all left-footed players who have overall rating between 85 and 90.

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player : player_name (text) , player_api_id (number) , id (number) | player_attributes : player_api_id (number) , preferred_foot (text) , overall_rating (number) , id (number)


Question: What is the average rating for right-footed players and left-footed players?

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player_attributes : preferred_foot (text) , overall_rating (number) , id (number)


Question: Of all players with an overall rating greater than 80, how many are right-footed and left-footed?

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player_attributes : preferred_foot (text) , overall_rating (number) , id (number)


Question: List all of the player ids with a height of at least 180cm and an overall rating higher than 85.

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player_attributes : player_api_id (number) , overall_rating (number) , id (number) | player : player_api_id (number) , height (number) , id (number)


Question: List all of the ids for left-footed players with a height between 180cm and 190cm.

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player_attributes : player_api_id (number) , preferred_foot (text) , id (number) | player : player_api_id (number) , height (number) , id (number)


Question: Who are the top 3 players in terms of overall rating?

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player : player_name (text) , player_api_id (number) , id (number) | player_attributes : player_api_id (number) , overall_rating (number) , id (number)


Question: List the names and birthdays of the top five players in terms of potential.

player_attributes : id (number) , player_fifa_api_id (number) , player_api_id (number) , date (text) , overall_rating (number) , potential (number) , preferred_foot (text) , attacking_work_rate (text) , defensive_work_rate (text) , crossing (number) , finishing (number) , heading_accuracy (number) , short_passing (number) , volleys (number) , dribbling (number) , curve (number) , free_kick_accuracy (number) , long_passing (number) , ball_control (number) , acceleration (number) , sprint_speed (number) , agility (number) , reactions (number) , balance (number) , shot_power (number) , jumping (number) , stamina (number) , strength (number) , long_shots (number) , aggression (number) , interceptions (number) , positioning (number) , vision (number) , penalties (number) , marking (number) , standing_tackle (number) , sliding_tackle (number) , gk_diving (number) , gk_handling (number) , gk_kicking (number) , gk_positioning (number) , gk_reflexes (number) | sqlite_sequence : name (text) , seq (text) | player : id (number) , player_api_id (number) , player_name (text) , player_fifa_api_id (number) , birthday (text) , height (number) , weight (number) | league : id (number) , country_id (number) , name (text) | country : id (number) , name (text) | team : id (number) , team_api_id (number) , team_fifa_api_id (number) , team_long_name (text) , team_short_name (text) | team_attributes : id (number) , team_fifa_api_id (number) , team_api_id (number) , date (text) , buildupplayspeed (number) , buildupplayspeedclass (text) , buildupplaydribbling (number) , buildupplaydribblingclass (text) , buildupplaypassing (number) , buildupplaypassingclass (text) , buildupplaypositioningclass (text) , chancecreationpassing (number) , chancecreationpassingclass (text) , chancecreationcrossing (number) , chancecreationcrossingclass (text) , chancecreationshooting (number) , chancecreationshootingclass (text) , chancecreationpositioningclass (text) , defencepressure (number) , defencepressureclass (text) , defenceaggression (number) , defenceaggressionclass (text) , defenceteamwidth (number) , defenceteamwidthclass (text) , defencedefenderlineclass (text)

player : player_name (text) , birthday (text) , player_api_id (number) , id (number) | player_attributes : player_api_id (number) , potential (number) , id (number)


Question: How many performances are there?

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)


Question: List the hosts of performances in ascending order of attendance.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : host (text) , attendance (number) , performance_id (number)


Question: What are the dates and locations of performances?

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : date (text) , location (text) , performance_id (number)


Question: Show the attendances of the performances at location "TD Garden" or "Bell Centre"

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : attendance (number) , location (text) , performance_id (number)


Question: What is the average number of attendees for performances?

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : attendance (number) , performance_id (number)


Question: What is the date of the performance with the highest number of attendees?

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : date (text) , attendance (number) , performance_id (number)


Question: Show different locations and the number of performances at each location.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : location (text) , performance_id (number)


Question: Show the most common location of performances.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : location (text) , performance_id (number)


Question: Show the locations that have at least two performances.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : location (text) , performance_id (number)


Question: Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : location (text) , attendance (number) , performance_id (number)


Question: Show the names of members and the location of the performances they attended.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

member : name (text) , member_id (text) , member_id (number) | performance : location (text) , performance_id (number) , performance_id (number) | member_attendance : member_id (number) , performance_id (number) , member_id (number)


Question: Show the names of members and the location of performances they attended in ascending alphabetical order of their names.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

member : name (text) , member_id (text) , member_id (number) | performance : location (text) , performance_id (number) , performance_id (number) | member_attendance : member_id (number) , performance_id (number) , member_id (number)


Question: Show the dates of performances with attending members whose roles are "Violin".

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

performance : date (text) , performance_id (number) , performance_id (number) | member : member_id (text) , role (text) , member_id (number) | member_attendance : member_id (number) , performance_id (number) , member_id (number)


Question: Show the names of members and the dates of performances they attended in descending order of attendance of the performances.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

member : name (text) , member_id (text) , member_id (number) | performance : date (text) , performance_id (number) , attendance (number) , performance_id (number) | member_attendance : member_id (number) , performance_id (number) , member_id (number)


Question: List the names of members who did not attend any performance.

member : member_id (text) , name (text) , nationality (text) , role (text) | performance : performance_id (number) , date (text) , host (text) , location (text) , attendance (number) | member_attendance : member_id (number) , performance_id (number) , num_of_pieces (number)

member : name (text) , member_id (text) , member_id (number) | member_attendance : member_id (number) , member_id (number)


Question: Find the buildings which have rooms with capacity more than 50.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

classroom : building (text) , capacity (number) , building (number) | department : building (text) , dept_name (number) | section : building (text) , course_id (number)


Question: What are the distinct buildings with capacities of greater than 50?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

classroom : building (text) , capacity (number) , building (number) | department : building (text) , dept_name (number) | section : building (text) , course_id (number)


Question: Count the number of rooms that are not in the Lamberton building.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

classroom : building (text) , building (number) | department : building (text) , dept_name (number) | section : building (text) , course_id (number)


Question: How many classrooms are not in Lamberton?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

classroom : building (text) , building (number) | department : building (text) , dept_name (number) | section : building (text) , course_id (number)


Question: What is the name and building of the departments whose budget is more than the average budget?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

department : dept_name (text) , building (text) , budget (number) , dept_name (number) | course : dept_name (text) , course_id (number) | instructor : dept_name (text) , id (number) | student : dept_name (text) , id (number) | classroom : building (text) , building (number) | section : building (text) , course_id (number)


Question: Give the name and building of the departments with greater than average budget.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

department : dept_name (text) , building (text) , budget (number) , dept_name (number) | course : dept_name (text) , course_id (number) | instructor : dept_name (text) , id (number) | student : dept_name (text) , id (number) | classroom : building (text) , building (number) | section : building (text) , course_id (number)


Question: Find the room number of the rooms which can sit 50 to 100 students and their buildings.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

classroom : building (text) , room_number (text) , capacity (number) , building (number) | department : building (text) , dept_name (number) | section : building (text) , room_number (text) , course_id (number)


Question: What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

classroom : building (text) , room_number (text) , capacity (number) , building (number) | department : building (text) , dept_name (number) | section : building (text) , room_number (text) , course_id (number)


Question: Find the name and building of the department with the highest budget.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

department : dept_name (text) , building (text) , budget (number) , dept_name (number) | course : dept_name (text) , course_id (number) | instructor : dept_name (text) , id (number) | student : dept_name (text) , id (number) | classroom : building (text) , building (number) | section : building (text) , course_id (number)


Question: What is the department name and corresponding building for the department with the greatest budget?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

department : dept_name (text) , building (text) , budget (number) , dept_name (number) | course : dept_name (text) , course_id (number) | instructor : dept_name (text) , id (number) | student : dept_name (text) , id (number) | classroom : building (text) , building (number) | section : building (text) , course_id (number)


Question: What is the name of the student who has the highest total credits in the History department.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , dept_name (text) , id (number) | student : name (text) , dept_name (text) , tot_cred (number) , id (number) | department : dept_name (text) , dept_name (number) | course : dept_name (text) , course_id (number)


Question: Give the name of the student in the History department with the most credits.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

instructor : name (text) , dept_name (text) , id (number) | student : name (text) , dept_name (text) , tot_cred (number) , id (number) | department : dept_name (text) , dept_name (number) | course : dept_name (text) , course_id (number)


Question: How many rooms does the Lamberton building have?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

classroom : building (text) , building (number) | department : building (text) , dept_name (number) | section : building (text) , course_id (number)


Question: Count the number of classrooms in Lamberton.

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)

classroom : building (text) , building (number) | department : building (text) , dept_name (number) | section : building (text) , course_id (number)


Question: How many students have advisors?

classroom : building (text) , room_number (text) , capacity (number) | department : dept_name (text) , building (text) , budget (number) | course : course_id (text) , title (text) , dept_name (text) , credits (number) | instructor : id (text) , name (text) , dept_name (text) , salary (number) | section : course_id (text) , sec_id (text) , semester (text) , year (number) , building (text) , room_number (text) , time_slot_id (text) | teaches : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) | student : id (text) , name (text) , dept_name (text) , tot_cred (number) | takes : id (text) , course_id (text) , sec_id (text) , semester (text) , year (number) , grade (text) | advisor : s_id (text) , i_id (text) | time_slot : time_slot_id (text) , day (text) , start_hr (number) , start_min (number) , end_hr (number) , end_min (number) | prereq : course_id (text) , prereq_id (text)