db_id
stringclasses
140 values
question
stringlengths
16
224
schema
stringclasses
140 values
summarized-schema
stringlengths
18
304
shrink-score
float64
0
1
apartment_rentals
Show the short names of the buildings managed by "Emma".
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 ...
apartment_buildings : building_short_name (text) , building_manager (text)
0.935484
apartment_rentals
Which buildings does "Emma" manage? Give me the short names of the buildings.
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 ...
apartment_buildings : building_short_name (text) , building_manager (text)
0.935484
apartment_rentals
Show the addresses and phones of all the buildings managed by "Brenden".
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 ...
apartment_buildings : building_address (text) , building_phone (text) , building_manager (text)
0.903226
apartment_rentals
What are the address and phone number of the buildings managed by "Brenden"?
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 ...
apartment_buildings : building_address (text) , building_phone (text) , building_manager (text)
0.903226
apartment_rentals
What are the building full names that contain the word "court"?
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 ...
apartment_buildings : building_full_name (text)
0.967742
apartment_rentals
Find all the building full names containing the word "court".
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 ...
apartment_buildings : building_full_name (text)
0.967742
apartment_rentals
What is the minimum and maximum number of bathrooms of all the 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 ...
apartments : bathroom_count (number)
0.967742
apartment_rentals
Give me the minimum and maximum bathroom count among all the 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 ...
apartments : bathroom_count (number)
0.967742
apartment_rentals
What is the average number of bedrooms of all 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 ...
apartments : bedroom_count (number)
0.967742
apartment_rentals
Find the average number of bedrooms of all the 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 ...
apartments : bedroom_count (number)
0.967742
apartment_rentals
Return the apartment number and the number of rooms for each apartment.
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 ...
apartments : apt_number (text) , room_count (text)
0.935484
apartment_rentals
What are the apartment number and the room count of each apartment?
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 ...
apartments : apt_number (text) , room_count (text)
0.935484
apartment_rentals
What is the average number of rooms of apartments with type code "Studio"?
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 ...
apartments : room_count (text) , apt_type_code (text)
0.935484
apartment_rentals
Find the average room count of the apartments that have the "Studio" 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 ...
apartments : room_count (text) , apt_type_code (text)
0.935484
apartment_rentals
Return the apartment numbers of the apartments with type code "Flat".
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 ...
apartments : apt_number (text) , apt_type_code (text)
0.935484
apartment_rentals
Which apartments have type code "Flat"? Give me 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 ...
apartments : apt_number (text) , apt_type_code (text)
0.935484
apartment_rentals
Return the first names and last names of all guests
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 ...
guests : guest_first_name (text) , guest_last_name (text)
0.935484
apartment_rentals
What are the first names and last names of all the guests?
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 ...
guests : guest_first_name (text) , guest_last_name (text)
0.935484
apartment_rentals
Return the date of birth for all the guests with gender code "Male".
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 ...
guests : date_of_birth (time) , gender_code (text)
0.935484
apartment_rentals
What are dates of birth of all the guests whose gender is "Male"?
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 ...
guests : date_of_birth (time) , gender_code (text)
0.935484
apartment_rentals
Show the apartment numbers, start dates, and end dates of all the apartment 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 ...
apartments : apt_number (text) , apt_id (number) | apartment_bookings : booking_start_date (time) , apt_id (number)
0.870968
apartment_rentals
What are the apartment number, start date, and end date of each apartment booking?
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 ...
apartments : apt_number (text) , apt_id (number) | apartment_bookings : booking_start_date (time) , apt_id (number)
0.870968
apartment_rentals
What are the booking start and end dates of the apartments with type code "Duplex"?
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 ...
apartment_bookings : booking_start_date (time) , apt_id (number) | apartments : apt_id (number) , apt_type_code (text)
0.870968
apartment_rentals
Return the booking start date and end date for the apartments that have type code "Duplex".
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 ...
apartment_bookings : booking_start_date (time) , apt_id (number) | apartments : apt_id (number) , apt_type_code (text)
0.870968
apartment_rentals
What are the booking start and end dates of the apartments with more than 2 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 ...
apartment_bookings : booking_start_date (time) , apt_id (number) | apartments : apt_id (number) , bedroom_count (number)
0.870968
apartment_rentals
Find the booking start date and end date for the apartments that have more than two 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 ...
apartment_bookings : booking_start_date (time) , apt_id (number) | apartments : apt_id (number) , bedroom_count (number)
0.870968
apartment_rentals
What is the booking status code of the apartment with apartment number "Suite 634"?
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 ...
apartment_bookings : booking_status_code (text) , apt_id (number) | apartments : apt_id (number) , apt_number (text)
0.870968
apartment_rentals
Tell me the booking status code for the apartment with number "Suite 634".
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 ...
apartment_bookings : booking_status_code (text) , apt_id (number) | apartments : apt_id (number) , apt_number (text)
0.870968
apartment_rentals
Show the distinct apartment numbers of the apartments that have bookings with status code "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 ...
apartments : apt_number (text) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text)
0.870968
apartment_rentals
Which apartments have bookings with status code "Confirmed"? 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 ...
apartments : apt_number (text) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text)
0.870968
apartment_rentals
Show the average room count of the apartments that have booking status code "Provisional".
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 ...
apartments : room_count (text) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text)
0.870968
apartment_rentals
What is the average room count of the apartments whose booking status code is "Provisional"?
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 ...
apartments : room_count (text) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text)
0.870968
apartment_rentals
Show the guest first names, start dates, and end dates of all the apartment 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 ...
guests : guest_first_name (text) , guest_id (number) | apartment_bookings : booking_start_date (time) , guest_id (number)
0.870968
apartment_rentals
What are the guest first name, start date, and end date of each apartment booking?
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 ...
guests : guest_first_name (text) , guest_id (number) | apartment_bookings : booking_start_date (time) , guest_id (number)
0.870968
apartment_rentals
Show the start dates and end dates of all the apartment bookings made by guests with gender code "Female".
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 ...
apartment_bookings : booking_start_date (time) , guest_id (number) | guests : guest_id (number) , gender_code (text)
0.870968
apartment_rentals
What are the start date and end date of the apartment bookings made by female guests (gender code "Female")?
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 ...
apartment_bookings : booking_start_date (time) , guest_id (number) | guests : guest_id (number) , gender_code (text)
0.870968
apartment_rentals
Show the first names and last names of all the guests that have apartment bookings with status code "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 ...
guests : guest_first_name (text) , guest_last_name (text) , guest_id (number) | apartment_bookings : guest_id (number) , booking_status_code (text)
0.83871
apartment_rentals
Which guests have apartment bookings with status code "Confirmed"? Return their first names and last names.
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 ...
guests : guest_first_name (text) , guest_last_name (text) , guest_id (number) | apartment_bookings : guest_id (number) , booking_status_code (text)
0.83871
apartment_rentals
Show the facility codes of apartments with more than 4 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 ...
apartment_facilities : facility_code (text) , apt_id (number) | apartments : apt_id (number) , bedroom_count (number)
0.870968
apartment_rentals
What are the facility codes of the apartments with more than four 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 ...
apartment_facilities : facility_code (text) , apt_id (number) | apartments : apt_id (number) , bedroom_count (number)
0.870968
apartment_rentals
Show the total number of rooms of all apartments with facility code "Gym".
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 ...
apartments : room_count (text) , apt_id (number) | apartment_facilities : apt_id (number) , facility_code (text)
0.870968
apartment_rentals
Find the total number of rooms in the apartments that have facility code "Gym".
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 ...
apartments : room_count (text) , apt_id (number) | apartment_facilities : apt_id (number) , facility_code (text)
0.870968
apartment_rentals
Show the total number of rooms of the apartments in the building with short name "Columbus Square".
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 ...
apartments : room_count (text) , building_id (number) | apartment_buildings : building_id (number) , building_short_name (text)
0.870968
apartment_rentals
How many rooms in total are there in the apartments in the building with short name "Columbus Square"?
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 ...
apartments : room_count (text) , building_id (number) | apartment_buildings : building_id (number) , building_short_name (text)
0.870968
apartment_rentals
Show the addresses of the buildings that have apartments with more than 2 bathrooms.
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 ...
apartment_buildings : building_address (text) , building_id (number) | apartments : building_id (number) , bathroom_count (number)
0.870968
apartment_rentals
Which buildings have apartments that have more than two bathrooms? Give me the addresses of the buildings.
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 ...
apartment_buildings : building_address (text) , building_id (number) | apartments : building_id (number) , bathroom_count (number)
0.870968
apartment_rentals
Show the apartment type codes and apartment numbers in the buildings managed by "Kyle".
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 ...
apartments : apt_type_code (text) , apt_number (text) , building_id (number) | apartment_buildings : building_id (number) , building_manager (text)
0.83871
apartment_rentals
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 ...
apartments : apt_type_code (text) , apt_number (text) , building_id (number) | apartment_buildings : building_id (number) , building_manager (text)
0.83871
apartment_rentals
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 ...
apartment_bookings : booking_status_code (text) , apt_booking_id (number)
0.935484
apartment_rentals
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 ...
apartment_bookings : booking_status_code (text) , apt_booking_id (number)
0.935484
apartment_rentals
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 ...
apartments : apt_number (text) , room_count (text)
0.935484
apartment_rentals
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 ...
apartments : apt_number (text) , room_count (text)
0.935484
apartment_rentals
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 ...
apartments : apt_number (text) , bedroom_count (number)
0.935484
apartment_rentals
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 ...
apartments : apt_number (text) , bedroom_count (number)
0.935484
apartment_rentals
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 ...
apartments : apt_type_code (text) , apt_id (number)
0.935484
apartment_rentals
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 ...
apartments : apt_type_code (text) , apt_id (number)
0.935484
apartment_rentals
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 ...
apartments : apt_type_code (text) , room_count (text)
0.935484
apartment_rentals
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 ...
apartments : apt_type_code (text) , room_count (text)
0.935484
apartment_rentals
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 ...
apartments : apt_type_code (text) , bathroom_count (number) , bedroom_count (number) , room_count (text)
0.870968
apartment_rentals
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 ...
apartments : apt_type_code (text) , bathroom_count (number) , bedroom_count (number) , room_count (text)
0.870968
apartment_rentals
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 ...
apartments : apt_type_code (text) , apt_id (number)
0.935484
apartment_rentals
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 ...
apartments : apt_type_code (text) , apt_id (number)
0.935484
apartment_rentals
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 ...
apartments : apt_type_code (text) , bathroom_count (number) , apt_id (number)
0.903226
apartment_rentals
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 ...
apartments : apt_type_code (text) , bathroom_count (number) , apt_id (number)
0.903226
apartment_rentals
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 ...
apartments : apt_type_code (text) , room_count (text)
0.935484
apartment_rentals
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 ...
apartments : apt_type_code (text) , room_count (text)
0.935484
apartment_rentals
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 ...
guests : gender_code (text) , guest_id (number)
0.935484
apartment_rentals
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 ...
guests : gender_code (text) , guest_id (number)
0.935484
apartment_rentals
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 ...
apartments : apt_id (number) | apartment_facilities : apt_id (number)
0.935484
apartment_rentals
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 ...
apartments : apt_id (number) | apartment_facilities : apt_id (number)
0.935484
apartment_rentals
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 ...
apartments : apt_number (text) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text)
0.870968
apartment_rentals
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 ...
apartments : apt_number (text) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text)
0.870968
apartment_rentals
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 ...
apartments : apt_number (text) , apt_id (number) | view_unit_status : apt_id (number) , available_yn (others)
0.870968
apartment_rentals
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 ...
apartments : apt_number (text) , apt_id (number) | view_unit_status : apt_id (number) , available_yn (others)
0.870968
game_injury
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...
game : season (number) , id (number)
0.9
game_injury
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...
game : date (text) , home_team (text)
0.9
game_injury
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...
game : season (number) , home_team (text) , away_team (text)
0.85
game_injury
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...
stadium : home_games (number)
0.95
game_injury
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...
stadium : average_attendance (number) , capacity_percentage (number)
0.9
game_injury
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...
injury_accident : player (text) , number_of_matches (text) , source (text) , injury (text)
0.8
game_injury
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...
game : season (number) , id (number) | injury_accident : id (number) , game_id (number) , player (text)
0.75
game_injury
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...
game : id (number) , score (text) , date (text) | injury_accident : id (number) , game_id (number)
0.75
game_injury
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...
stadium : id (number) , name (text) | game : id (number) , stadium_id (number) | injury_accident : id (number) , game_id (number)
0.7
game_injury
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...
stadium : id (number) , name (text) | game : id (number) , stadium_id (number) | injury_accident : id (number) , game_id (number)
0.7
game_injury
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...
game : season (number) , stadium_id (number) , id (number) | stadium : name (text) , id (number) | injury_accident : id (number) , game_id (number) , injury (text)
0.6
game_injury
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...
injury_accident : source (text)
0.95
game_injury
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...
game : id (number) | injury_accident : id (number) , game_id (number)
0.85
game_injury
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...
injury_accident : injury (text) , game_id (number) , id (number) | game : id (number) , season (number)
0.75
game_injury
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...
stadium : name (text) , id (number) | game : stadium_id (number) , id (number) | injury_accident : id (number) , game_id (number) , player (text)
0.65
game_injury
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...
stadium : name (text) , average_attendance (number) , total_attendance (number) , id (number) | game : stadium_id (number) , id (number) | injury_accident : id (number) , game_id (number)
0.6
game_injury
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...
stadium : name (text)
0.95
game_injury
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...
stadium : id (number) | game : id (number) , stadium_id (number)
0.85
game_injury
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...
game : date (text) , id (number) , season (number) | injury_accident : player (text) , id (number) , game_id (number)
0.7
soccer_1
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 (numb...
league : name (text) , id (number) , country_id (number) | country : name (text) , id (number)
0.94186
soccer_1
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 (numb...
league : id (number) , country_id (number) , name (text) | country : id (number) , name (text)
0.94186
soccer_1
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 (numb...
player : weight (number)
0.988372
soccer_1
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 (numb...
player : weight (number)
0.988372
soccer_1
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 (numb...
player : player_name (text) , player_api_id (number) | player_attributes : player_api_id (number) , overall_rating (number)
0.953488
soccer_1
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 (numb...
player : player_name (text) , player_api_id (number) | player_attributes : player_api_id (number) , dribbling (number) , overall_rating (number)
0.94186
soccer_1
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 (numb...
player : player_name (text) , player_api_id (number) | player_attributes : player_api_id (number) , crossing (number) , preferred_foot (text)
0.94186