aherntech/spider-syn huggingface dataset:
Database: climbing
Question: What are the names of mountains that have a height of over 5000 or a prominence of over 1000?
Paraphrased question: What are the names of mountains that have a height of over 5000 or a prominence of over 1000?
SQL: SELECT Name FROM mountain WHERE Height  >  5000 OR Prominence  >  1000
Database: body_builder
Question: How many body builders are there?
Paraphrased question: How many bodybuilders are there?
SQL: SELECT count(*) FROM body_builder
Database: body_builder
Question: List the total scores of body builders in ascending order.
Paraphrased question: List the gross scores of bodybuilders in ascending order.
SQL: SELECT Total FROM body_builder ORDER BY Total ASC
Database: body_builder
Question: List the snatch score and clean jerk score of body builders in ascending order of snatch score.
Paraphrased question: List the snatch score and clean jerk score of bodybuilders in ascending order of snatch score.
SQL: SELECT Snatch ,  Clean_Jerk FROM body_builder ORDER BY Snatch ASC
Database: body_builder
Question: What is the average snatch score of body builders?
Paraphrased question: What is the average snatch score of bodybuilders?
SQL: SELECT avg(Snatch) FROM body_builder
Database: body_builder
Question: What are the clean and jerk score of the body builder with the highest total score?
Paraphrased question: What are the clean and jerk score of the bodybuilder with the highest total score?
SQL: SELECT Clean_Jerk FROM body_builder ORDER BY Total DESC LIMIT 1
Database: body_builder
Question: What are the birthdays of people in ascending order of height?
Paraphrased question: What are the date of birth of people in ascending order of height?
SQL: SELECT Birth_Date FROM People ORDER BY Height ASC
Database: body_builder
Question: What are the names of body builders?
Paraphrased question: What are the names of bodybuilders?
SQL: SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID
Database: body_builder
Question: What are the names of body builders whose total score is higher than 300?
Paraphrased question: What are the names of bodybuilders whose total score is higher than 300?
SQL: SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  >  300
Database: body_builder
Question: What is the name of the body builder with the greatest body weight?
Paraphrased question: What is the name of the bodybuilder with the greatest body weight?
SQL: SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Weight DESC LIMIT 1
Database: body_builder
Question: What are the birth date and birth place of the body builder with the highest total points?
Paraphrased question: What are the birthday and birthplace of the body builder with the highest total points?
SQL: SELECT T2.Birth_Date ,  T2.Birth_Place FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC LIMIT 1
Database: body_builder
Question: What are the heights of body builders with total score smaller than 315?
Paraphrased question: What are the heights of bodybuilders with total score smaller than 315?
SQL: SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Total  <  315
Database: body_builder
Question: What is the average total score of body builders with height bigger than 200?
Paraphrased question: What is the average gross score of bodybuilders with height bigger than 200?
SQL: SELECT avg(T1.Total) FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Height  >  200
Database: body_builder
Question: What are the names of body builders in descending order of total scores?
Paraphrased question: What are the names of bodybuilders in descending order of total scores?
SQL: SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Total DESC
Database: body_builder
Question: List each birth place along with the number of people from there.
Paraphrased question: List each birthplace along with the number of people from there.
SQL: SELECT Birth_Place ,  COUNT(*) FROM people GROUP BY Birth_Place
Database: body_builder
Question: What is the most common birth place of people?
Paraphrased question: What is the most common birthplace of people?
SQL: SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1
Database: body_builder
Question: What are the birth places that are shared by at least two people?
Paraphrased question: What are the birthplaces that are shared by at least two people?
SQL: SELECT Birth_Place FROM people GROUP BY Birth_Place HAVING COUNT(*)  >=  2
Database: body_builder
Question: List the height and weight of people in descending order of height.
Paraphrased question: List the height and weight of people in descending order of height.
SQL: SELECT Height ,  Weight FROM people ORDER BY Height DESC
Database: body_builder
Question: Show all information about each body builder.
Paraphrased question: Show the details about each body builder.
SQL: SELECT * FROM body_builder
Database: body_builder
Question: List the names and origins of people who are not body builders.
Paraphrased question: List the names and origins of people who are not body builders.
SQL: SELECT Name ,  birth_place FROM people EXCEPT SELECT T1.Name ,  T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id  =  T2.people_id
Database: body_builder
Question: How many distinct birth places are there?
Paraphrased question: How many different birthplaces are there?
SQL: SELECT count(DISTINCT Birth_Place) FROM people
Database: body_builder
Question: How many persons are not body builders?
Paraphrased question: what are the number of people are not body builders?
SQL: SELECT count(*) FROM people WHERE people_id NOT IN (SELECT People_ID FROM body_builder)
Database: body_builder
Question: List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.
Paraphrased question: List the weight of the bodybuilders who have snatch score higher than 140 or have the height greater than 200.
SQL: SELECT T2.weight FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T1.snatch  >  140 OR T2.height  >  200;
Database: body_builder
Question: What are the total scores of the body builders whose birthday contains the string "January" ?
Paraphrased question: What are the gross scores of the bodybuilders whose birthday contains the string "January" ?
SQL: SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id  =  T2.people_id WHERE T2.Birth_Date LIKE "%January%";
Database: body_builder
Question: What is the minimum snatch score?
Paraphrased question: What is the minimum snatch score?
SQL: SELECT min(snatch) FROM body_builder
Database: election_representative
Question: How many elections are there?
Paraphrased question: How many elections are there?
SQL: SELECT count(*) FROM election
Database: election_representative
Question: List the votes of elections in descending order.
Paraphrased question: List the votes of elections in descending order.
SQL: SELECT Votes FROM election ORDER BY Votes DESC
Database: election_representative
Question: List the dates and vote percents of elections.
Paraphrased question: List the days and vote percents of elections.
SQL: SELECT Date ,  Vote_Percent FROM election
Database: election_representative
Question: What are the minimum and maximum vote percents of elections?
Paraphrased question: What are the minimum and maximum vote percents of elections?
SQL: SELECT min(Vote_Percent) ,  max(Vote_Percent) FROM election
Database: election_representative
Question: What are the names and parties of representatives?
Paraphrased question: What are the names and parties of representatives?
SQL: SELECT Name ,  Party FROM representative
Database: election_representative
Question: What are the names of representatives whose party is not "Republican"?
Paraphrased question: What are the names of representatives whose party is not "Republican"?
SQL: SELECT Name FROM Representative WHERE Party != "Republican"
Database: election_representative
Question: What are the life spans of representatives from New York state or Indiana state?
Paraphrased question: What are the lifetime of representatives from New York state or Indiana state?
SQL: SELECT Lifespan FROM representative WHERE State  =  "New York" OR State  =  "Indiana"
Database: election_representative
Question: What are the names of representatives and the dates of elections they participated in.
Paraphrased question: What are the names of representatives and the days of elections they participated in.
SQL: SELECT T2.Name ,  T1.Date FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID
Database: election_representative
Question: What are the names of representatives with more than 10000 votes in election?
Paraphrased question: What are the names of representatives with more than 10000 votes in election?
SQL: SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE Votes  >  10000
Database: election_representative
Question: What are the names of representatives in descending order of votes?
Paraphrased question: What are the names of representatives in descending order of votes?
SQL: SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY votes DESC
Database: election_representative
Question: What is the party of the representative that has the smallest number of votes.
Paraphrased question: What is the party of the representative that has the smallest number of votes.
SQL: SELECT T2.Party FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY votes ASC LIMIT 1
Database: election_representative
Question: What are the lifespans of representatives in descending order of vote percent?
Paraphrased question: What are the lifetime of representatives in descending order of vote percent?
SQL: SELECT T2.Lifespan FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID ORDER BY Vote_Percent DESC
Database: election_representative
Question: What is the average number of votes of representatives from party "Republican"?
Paraphrased question: What is the average number of votes of representatives from party "Republican"?
SQL: SELECT avg(T1.Votes) FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID  =  T2.Representative_ID WHERE T2.Party  =  "Republican"
Database: election_representative
Question: What are the different parties of representative? Show the party name and the number of representatives in each party.
Paraphrased question: What are the different parties of representative? Show the party name and the number of representatives in each party.
SQL: SELECT Party ,  COUNT(*) FROM representative GROUP BY Party
Database: election_representative
Question: What is the party that has the largest number of representatives?
Paraphrased question: What is the party that has the largest number of representatives?
SQL: SELECT Party ,  COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC LIMIT 1
Database: election_representative
Question: What parties have at least three representatives?
Paraphrased question: What parties have at least three representatives?
SQL: SELECT Party FROM representative GROUP BY Party HAVING COUNT(*)  >=  3
Database: election_representative
Question: What states have at least two representatives?
Paraphrased question: What states have at least two representatives?
SQL: SELECT State FROM representative GROUP BY State HAVING COUNT(*)  >=  2
Database: election_representative
Question: List the names of representatives that have not participated in elections listed here.
Paraphrased question: List the names of representatives that have not participated in elections listed here.
SQL: SELECT Name FROM representative WHERE Representative_ID NOT IN (SELECT Representative_ID FROM election)
Database: election_representative
Question: Show the parties that have both representatives in New York state and representatives in Pennsylvania state.
Paraphrased question: Show the parties that have both representatives in New York state and representatives in Pennsylvania state.
SQL: SELECT Party FROM representative WHERE State  =  "New York" INTERSECT SELECT Party FROM representative WHERE State  =  "Pennsylvania"
Database: election_representative
Question: How many distinct parties are there for representatives?
Paraphrased question: How many different parties are there for representatives?
SQL: SELECT count(DISTINCT Party) FROM representative
Database: apartment_rentals
Question: How many apartment bookings are there in total?
Paraphrased question: How many apartment bookings are there in total?
SQL: SELECT count(*) FROM Apartment_Bookings
Database: apartment_rentals
Question: Count the total number of apartment bookings.
Paraphrased question: Count the total number of apartment bookings.
SQL: SELECT count(*) FROM Apartment_Bookings
Database: apartment_rentals
Question: Show the start dates and end dates of all the apartment bookings.
Paraphrased question: Show the begin days and end days of all the apartment bookings.
SQL: SELECT booking_start_date ,  booking_end_date FROM Apartment_Bookings
Database: apartment_rentals
Question: What are the start date and end date of each apartment booking?
Paraphrased question: What are the begin day and end day of each apartment booking?
SQL: SELECT booking_start_date ,  booking_end_date FROM Apartment_Bookings
Database: apartment_rentals
Question: Show all distinct building descriptions.
Paraphrased question: Show all different building descriptions.
SQL: SELECT DISTINCT building_description FROM Apartment_Buildings
Database: apartment_rentals
Question: Give me a list of all the distinct building descriptions.
Paraphrased question: Give me a list of all the different building descriptions.
SQL: SELECT DISTINCT building_description FROM Apartment_Buildings
Database: apartment_rentals
Question: Show the short names of the buildings managed by "Emma".
Paraphrased question: Show the names for short of the buildings managed by "Emma".
SQL: SELECT building_short_name FROM Apartment_Buildings WHERE building_manager	 =  "Emma"
Database: apartment_rentals
Question: Which buildings does "Emma" manage? Give me the short names of the buildings.
Paraphrased question: Which buildings does "Emma" manage? Give me the short names of the buildings.
SQL: SELECT building_short_name FROM Apartment_Buildings WHERE building_manager	 =  "Emma"
Database: apartment_rentals
Question: Show the addresses and phones of all the buildings managed by "Brenden".
Paraphrased question: Show the addresses and telephones of all the buildings managed by "Brenden".
SQL: SELECT building_address ,  building_phone FROM Apartment_Buildings WHERE building_manager	 =  "Brenden"
Database: apartment_rentals
Question: What are the address and phone number of the buildings managed by "Brenden"?
Paraphrased question: What are the location and phone number of the buildings managed by "Brenden"?
SQL: SELECT building_address ,  building_phone FROM Apartment_Buildings WHERE building_manager	 =  "Brenden"
Database: apartment_rentals
Question: What are the building full names that contain the word "court"?
Paraphrased question: What are the building first and last names that contain the word "court"?
SQL: SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE "%court%"
Database: apartment_rentals
Question: Find all the building full names containing the word "court".
Paraphrased question: Find all the building first and last names containing the word "court".
SQL: SELECT building_full_name FROM Apartment_Buildings WHERE building_full_name LIKE "%court%"
Database: apartment_rentals
Question: What is the minimum and maximum number of bathrooms of all the apartments?
Paraphrased question: What is the minimum and maximum number of washrooms of all the apartments?
SQL: SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments
Database: apartment_rentals
Question: Give me the minimum and maximum bathroom count among all the apartments.
Paraphrased question: Give me the minimum and maximum washroom count among all the apartments.
SQL: SELECT min(bathroom_count) ,  max(bathroom_count) FROM Apartments
Database: apartment_rentals
Question: What is the average number of bedrooms of all apartments?
Paraphrased question: What is the average number of bedchambers of all apartments?
SQL: SELECT avg(bedroom_count) FROM Apartments
Database: apartment_rentals
Question: Find the average number of bedrooms of all the apartments.
Paraphrased question: Find the average number of bedchambers of all the apartments.
SQL: SELECT avg(bedroom_count) FROM Apartments
Database: apartment_rentals
Question: Return the apartment number and the number of rooms for each apartment.
Paraphrased question: Return the apartment number and the number of rooms for each apartment.
SQL: SELECT apt_number ,  room_count FROM Apartments
Database: apartment_rentals
Question: What are the apartment number and the room count of each apartment?
Paraphrased question: What are the apartment number and the room count of each apartment?
SQL: SELECT apt_number ,  room_count FROM Apartments
Database: apartment_rentals
Question: What is the average number of rooms of apartments with type code "Studio"?
Paraphrased question: What is the average number of rooms of apartments with type code "Studio"?
SQL: SELECT avg(room_count) FROM Apartments WHERE apt_type_code  =  "Studio"
Database: apartment_rentals
Question: Find the average room count of the apartments that have the "Studio" type code.
Paraphrased question: Find the average room count of the apartments that have the "Studio" type code.
SQL: SELECT avg(room_count) FROM Apartments WHERE apt_type_code  =  "Studio"
Database: apartment_rentals
Question: Return the apartment numbers of the apartments with type code "Flat".
Paraphrased question: Return the apartment numbers of the apartments with type code "Flat".
SQL: SELECT apt_number FROM Apartments WHERE apt_type_code  =  "Flat"
Database: apartment_rentals
Question: Which apartments have type code "Flat"? Give me their apartment numbers.
Paraphrased question: Which apartments have type code "Flat"? Give me their apartment numbers.
SQL: SELECT apt_number FROM Apartments WHERE apt_type_code  =  "Flat"
Database: apartment_rentals
Question: Return the first names and last names of all guests
Paraphrased question: Return the full names of all guests
SQL: SELECT guest_first_name ,  guest_last_name FROM Guests
Database: apartment_rentals
Question: What are the first names and last names of all the guests?
Paraphrased question: What are the forename and surname of all the guests?
SQL: SELECT guest_first_name ,  guest_last_name FROM Guests
Database: apartment_rentals
Question: Return the date of birth for all the guests with gender code "Male".
Paraphrased question: Return the birthday for all the guests with gender code "Male".
SQL: SELECT date_of_birth FROM Guests WHERE gender_code  =  "Male"
Database: apartment_rentals
Question: What are dates of birth of all the guests whose gender is "Male"?
Paraphrased question: What are day of birth of all the guests whose gender is "Male"?
SQL: SELECT date_of_birth FROM Guests WHERE gender_code  =  "Male"
Database: apartment_rentals
Question: Show the apartment numbers, start dates, and end dates of all the apartment bookings.
Paraphrased question: Show the apartment numbers, begin days, and end days of all the apartment bookings.
SQL: SELECT T2.apt_number ,  T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id
Database: apartment_rentals
Question: What are the apartment number, start date, and end date of each apartment booking?
Paraphrased question: What are the apartment number, begin day, and end day of each apartment booking?
SQL: SELECT T2.apt_number ,  T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id
Database: apartment_rentals
Question: What are the booking start and end dates of the apartments with type code "Duplex"?
Paraphrased question: What are the booking begin and end days of the apartments with type code "Duplex"?
SQL: SELECT T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  "Duplex"
Database: apartment_rentals
Question: Return the booking start date and end date for the apartments that have type code "Duplex".
Paraphrased question: Return the booking begin day and end day for the apartments that have type code "Duplex".
SQL: SELECT T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_type_code  =  "Duplex"
Database: apartment_rentals
Question: What are the booking start and end dates of the apartments with more than 2 bedrooms?
Paraphrased question: What are the booking begin and end days of the apartments with more than 2 bedrooms?
SQL: SELECT T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  2
Database: apartment_rentals
Question: Find the booking start date and end date for the apartments that have more than two bedrooms.
Paraphrased question: Find the booking begin day and end day for the apartments that have more than two bedrooms.
SQL: SELECT T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  2
Database: apartment_rentals
Question: What is the booking status code of the apartment with apartment number "Suite 634"?
Paraphrased question: What is the booking status code of the apartment with apartment number "Suite 634"?
SQL: SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  "Suite 634"
Database: apartment_rentals
Question: Tell me the booking status code for the apartment with number "Suite 634".
Paraphrased question: Tell me the booking status code for the apartment with number "Suite 634".
SQL: SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.apt_number  =  "Suite 634"
Database: apartment_rentals
Question: Show the distinct apartment numbers of the apartments that have bookings with status code "Confirmed".
Paraphrased question: Show the different apartment numbers of the apartments that have bookings with status code "Confirmed".
SQL: SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Confirmed"
Database: apartment_rentals
Question: Which apartments have bookings with status code "Confirmed"? Return their apartment numbers.
Paraphrased question: Which apartments have bookings with status code "Confirmed"? Return their apartment numbers.
SQL: SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Confirmed"
Database: apartment_rentals
Question: Show the average room count of the apartments that have booking status code "Provisional".
Paraphrased question: Show the average room amount of the apartments that have booking status code "Provisional".
SQL: SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Provisional"
Database: apartment_rentals
Question: What is the average room count of the apartments whose booking status code is "Provisional"?
Paraphrased question: What is the average room amount of the apartments whose booking status code is "Provisional"?
SQL: SELECT avg(room_count) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Provisional"
Database: apartment_rentals
Question: Show the guest first names, start dates, and end dates of all the apartment bookings.
Paraphrased question: Show the guest forename, begin days, and end days of all the apartment bookings.
SQL: SELECT T2.guest_first_name ,  T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id
Database: apartment_rentals
Question: What are the guest first name, start date, and end date of each apartment booking?
Paraphrased question: What are the guest forename, start date, and end date of each apartment booking?
SQL: SELECT T2.guest_first_name ,  T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id
Database: apartment_rentals
Question: Show the start dates and end dates of all the apartment bookings made by guests with gender code "Female".
Paraphrased question: Show the begin days and end days of all the apartment bookings made by guests with gender code "Female".
SQL: SELECT T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T2.gender_code  =  "Female"
Database: apartment_rentals
Question: What are the start date and end date of the apartment bookings made by female guests (gender code "Female")?
Paraphrased question: What are the begin day and end day of the apartment bookings made by female guests (gender code "Female")?
SQL: SELECT T1.booking_start_date ,  T1.booking_end_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T2.gender_code  =  "Female"
Database: apartment_rentals
Question: Show the first names and last names of all the guests that have apartment bookings with status code "Confirmed".
Paraphrased question: Show the forenames and family names of all the guests that have apartment bookings with status code "Confirmed".
SQL: SELECT T2.guest_first_name ,  T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T1.booking_status_code  =  "Confirmed"
Database: apartment_rentals
Question: Which guests have apartment bookings with status code "Confirmed"? Return their first names and last names.
Paraphrased question: Which guests have apartment bookings with status code "Confirmed"? Return their forename and surname.
SQL: SELECT T2.guest_first_name ,  T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id  =  T2.guest_id WHERE T1.booking_status_code  =  "Confirmed"
Database: apartment_rentals
Question: Show the facility codes of apartments with more than 4 bedrooms.
Paraphrased question: Show the facility codes of apartments with more than 4 bedrooms.
SQL: SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  4
Database: apartment_rentals
Question: What are the facility codes of the apartments with more than four bedrooms?
Paraphrased question: What are the facility codes of the apartments with more than four bedrooms?
SQL: SELECT T1.facility_code FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.bedroom_count  >  4
Database: apartment_rentals
Question: Show the total number of rooms of all apartments with facility code "Gym".
Paraphrased question: Show the total number of rooms of all apartments with facility code "Gym".
SQL: SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.facility_code  =  "Gym"
Database: apartment_rentals
Question: Find the total number of rooms in the apartments that have facility code "Gym".
Paraphrased question: Find the gross number of rooms in the apartments that have facility code "Gym".
SQL: SELECT sum(T2.room_count) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.facility_code  =  "Gym"
Database: apartment_rentals
Question: Show the total number of rooms of the apartments in the building with short name "Columbus Square".
Paraphrased question: Show all the number of rooms of the apartments in the building with short name "Columbus Square".
SQL: SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_short_name  =  "Columbus Square"
Database: apartment_rentals
Question: How many rooms in total are there in the apartments in the building with short name "Columbus Square"?
Paraphrased question: How many rooms in total are there in the apartments in the building with short name "Columbus Square"?
SQL: SELECT sum(T2.room_count) FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_short_name  =  "Columbus Square"
Database: apartment_rentals
Question: Show the addresses of the buildings that have apartments with more than 2 bathrooms.
Paraphrased question: Show the locations of the buildings that have apartments with more than 2 bathrooms.
SQL: SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T2.bathroom_count  >  2
Database: apartment_rentals
Question: Which buildings have apartments that have more than two bathrooms? Give me the addresses of the buildings.
Paraphrased question: Which buildings have apartments that have more than two washrooms? Give me the locations of the buildings.
SQL: SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T2.bathroom_count  >  2
Database: apartment_rentals
Question: Show the apartment type codes and apartment numbers in the buildings managed by "Kyle".
Paraphrased question: Show the apartment category codes and apartment numbers in the buildings managed by "Kyle".
SQL: SELECT T2.apt_type_code ,  T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_manager  =  "Kyle"
Database: apartment_rentals
Question: What apartment type codes and apartment numbers do the buildings managed by "Kyle" have?
Paraphrased question: What apartment category codes and apartment numbers do the buildings managed by "Kyle" have?
SQL: SELECT T2.apt_type_code ,  T2.apt_number FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id  =  T2.building_id WHERE T1.building_manager  =  "Kyle"
Database: apartment_rentals
Question: Show the booking status code and the corresponding number of bookings.
Paraphrased question: Show the booking status code and the corresponding number of bookings.
SQL: SELECT 	booking_status_code ,  COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code
Database: apartment_rentals
Question: How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.
Paraphrased question: How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.
SQL: SELECT 	booking_status_code ,  COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code
Database: apartment_rentals
Question: Return all the apartment numbers sorted by the room count in ascending order.
Paraphrased question: Return all the apartment numbers sorted by the room count in ascending order.
SQL: SELECT apt_number FROM Apartments ORDER BY room_count ASC
Database: apartment_rentals
Question: Sort the apartment numbers in ascending order of room count.
Paraphrased question: Sort the apartment numbers in ascending order of room count.
SQL: SELECT apt_number FROM Apartments ORDER BY room_count ASC
Database: apartment_rentals
Question: Return the apartment number with the largest number of bedrooms.
Paraphrased question: Return the apartment number with the largest number of bedrooms.
SQL: SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1
Database: apartment_rentals
Question: What is the apartment number of the apartment with the most beds?
Paraphrased question: What is the apartment number of the apartment with the most beds?
SQL: SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1
Database: apartment_rentals
Question: Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.
Paraphrased question: Show the apartment category codes and the corresponding number of apartments sorted by the number of apartments in ascending order.
SQL: SELECT apt_type_code ,  COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC
Database: apartment_rentals
Question: Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments.
Paraphrased question: Return each apartment category code with the number of apartments having that apartment category, in ascending order of the number of apartments.
SQL: SELECT apt_type_code ,  COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) ASC
Database: apartment_rentals
Question: Show the top 3 apartment type codes sorted by the average number of rooms in descending order.
Paraphrased question: Show the top 3 apartment category codes sorted by the average number of rooms in descending order.
SQL: SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3
Database: apartment_rentals
Question: What are the top three apartment types in terms of the average room count? Give me the
Paraphrased question: What are the top three apartment categories in terms of the average room count? Give me the
SQL: SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY avg(room_count) DESC LIMIT 3
Database: apartment_rentals
Question: Show the apartment type code that has the largest number of total rooms, together with the number of bathrooms and number of bedrooms.
Paraphrased question: Show the apartment category code that has the largest number of total rooms, together with the number of bathrooms and number of bedchambers.
SQL: SELECT apt_type_code ,  bathroom_count ,  bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1
Database: apartment_rentals
Question: Which apartment type has the largest number of total rooms? Return the apartment type code, its number of bathrooms and number of bedrooms.
Paraphrased question: Which apartment category has the largest number of total rooms? Return the apartment category code, its number of washrooms and number of bedrooms.
SQL: SELECT apt_type_code ,  bathroom_count ,  bedroom_count FROM Apartments GROUP BY apt_type_code ORDER BY sum(room_count) DESC LIMIT 1
Database: apartment_rentals
Question: Show the most common apartment type code.
Paraphrased question: Show the most common apartment category code.
SQL: SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1
Database: apartment_rentals
Question: Which apartment type code appears the most often?
Paraphrased question: Which apartment category code appears the most often?
SQL: SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1
Database: apartment_rentals
Question: Show the most common apartment type code among apartments with more than 1 bathroom.
Paraphrased question: Show the most common apartment category code among apartments with more than 1 bathroom.
SQL: SELECT apt_type_code FROM Apartments WHERE bathroom_count  >  1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1
Database: apartment_rentals
Question: Which apartment type code is the most common among apartments with more than one bathroom?
Paraphrased question: Which apartment category code is the most common among apartments with more than one bathroom?
SQL: SELECT apt_type_code FROM Apartments WHERE bathroom_count  >  1 GROUP BY apt_type_code ORDER BY count(*) DESC LIMIT 1
Database: apartment_rentals
Question: Show each apartment type code, and the maximum and minimum number of rooms for each type.
Paraphrased question: Show each apartment category code, and the maximum and minimum number of rooms for each category.
SQL: SELECT apt_type_code ,  max(room_count) ,  min(room_count) FROM Apartments GROUP BY apt_type_code
Database: apartment_rentals
Question: Return each apartment type code along with the maximum and minimum number of rooms among each type.
Paraphrased question: Return each apartment category code along with the maximum and minimum number of rooms among each category.
SQL: SELECT apt_type_code ,  max(room_count) ,  min(room_count) FROM Apartments GROUP BY apt_type_code
Database: apartment_rentals
Question: Show each gender code and the corresponding count of guests sorted by the count in descending order.
Paraphrased question: Show each sex code and the corresponding count of guests sorted by the count in descending order.
SQL: SELECT gender_code ,  COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC
Database: apartment_rentals
Question: Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts.
Paraphrased question: Sort the sex codes in descending order of their corresponding number of guests. Return both the sex codes and counts.
SQL: SELECT gender_code ,  COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC
Database: apartment_rentals
Question: How many apartments do not have any facility?
Paraphrased question: show the number of apartments do not have any facility?
SQL: SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)
Database: apartment_rentals
Question: Find the number of apartments that have no facility.
Paraphrased question: Find the number of apartments that have no facility.
SQL: SELECT count(*) FROM Apartments WHERE apt_id NOT IN (SELECT apt_id FROM Apartment_Facilities)
Database: apartment_rentals
Question: Show the apartment numbers of apartments with bookings that have status code both "Provisional" and "Confirmed"
Paraphrased question: Show the apartment numbers of apartments with bookings that have status code both "Provisional" and "Confirmed"
SQL: SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Confirmed" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Provisional"
Database: apartment_rentals
Question: Which apartments have bookings with both status codes "Provisional" and "Confirmed"? Give me the apartment numbers.
Paraphrased question: Which apartments have bookings with both status codes "Provisional" and "Confirmed"? Give me the apartment numbers.
SQL: SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Confirmed" INTERSECT SELECT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id  =  T2.apt_id WHERE T1.booking_status_code  =  "Provisional"
Database: apartment_rentals
Question: Show the apartment numbers of apartments with unit status availability of both 0 and 1.
Paraphrased question: Show the apartment numbers of apartments with unit status availability of both 0 and 1.
SQL: SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.available_yn  =  0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.available_yn  =  1
Database: apartment_rentals
Question: Which apartments have unit status availability of both 0 and 1? Return their apartment numbers.
Paraphrased question: Which apartments have unit status availability of both 0 and 1? Return their apartment numbers.
SQL: SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.available_yn  =  0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id  =  T2.apt_id WHERE T2.available_yn  =  1
Database: game_injury
Question: How many games are held after season 2007?
Paraphrased question: What are the number of the games are held after season 2007?
SQL: SELECT count(*) FROM game WHERE season  >  2007
Database: game_injury
Question: List the dates of games by the home team name in descending order.
Paraphrased question: List the day of games by the home team name in descending order.
SQL: SELECT Date FROM game ORDER BY home_team DESC
Database: game_injury
Question: List the season, home team, away team of all the games.
Paraphrased question: List the season, home team, away team of all the games.
SQL: SELECT season ,  home_team ,  away_team FROM game
Database: game_injury
Question: What are the maximum, minimum and average home games each stadium held?
Paraphrased question: What are the maximum, minimum and average home games each stadium held?
SQL: SELECT max(home_games) ,  min(home_games) ,  avg(home_games) FROM stadium
Database: game_injury
Question: What is the average attendance of stadiums with capacity percentage higher than 100%?
Paraphrased question: What is the average number of attendees of stadiums with capacity percentage higher than 100%?
SQL: SELECT average_attendance FROM stadium WHERE capacity_percentage  >  100
Database: game_injury
Question: What are the player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'?
Paraphrased question: What are the participant name, number of matches, and information source for participants who do not suffer from injury of 'Knee problem'?
SQL: SELECT player ,  number_of_matches ,  SOURCE FROM injury_accident WHERE injury != 'Knee problem'
Database: game_injury
Question: What is the season of the game which causes the player 'Walter Samuel' to get injured?
Paraphrased question: What is the season of the game which causes the player 'Walter Samuel' to get injured?
SQL: SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id WHERE T2.player  =  'Walter Samuel'
Database: game_injury
Question: What are the ids, scores, and dates of the games which caused at least two injury accidents?
Paraphrased question: What are the ids, scores, and day of the games which caused at least two injury accidents?
SQL: SELECT T1.id ,  T1.score ,  T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id  =  T1.id GROUP BY T1.id HAVING count(*)  >=  2
Database: game_injury
Question: What are the id and name of the stadium where the most injury accidents happened?
Paraphrased question: What are the id and name of the stadium where the most injury accidents happened?
SQL: SELECT T1.id ,  T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Database: game_injury
Question: Find the id and name of the stadium where the largest number of injury accidents occurred.
Paraphrased question: Find the id and name of the stadium where the largest number of injury accidents occurred.
SQL: SELECT T1.id ,  T1.name FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id JOIN injury_accident AS T3 ON T2.id  =  T3.game_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
Database: game_injury
Question: In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?
Paraphrased question: In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?
SQL: SELECT T1.season ,  T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.injury  =  'Foot injury' OR T3.injury  =  'Knee problem'
Database: game_injury
Question: How many different kinds of information sources are there for injury accidents?
Paraphrased question: How many different kinds of information sources are there for injury accidents?
SQL: SELECT count(DISTINCT SOURCE) FROM injury_accident
Database: game_injury
Question: How many games are free of injury accidents?
Paraphrased question: How many games are free of injury accidents?
SQL: SELECT count(*) FROM game WHERE id NOT IN ( SELECT game_id FROM injury_accident )
Database: game_injury
Question: How many distinct kinds of injuries happened after season 2010?
Paraphrased question: How many different kinds of injuries happened after season 2010?
SQL: SELECT count(DISTINCT T1.injury) FROM injury_accident AS T1 JOIN game AS T2 ON T1.game_id  =  T2.id WHERE T2.season  >  2010
Database: game_injury
Question: List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.
Paraphrased question: List the name of the stadium where both the player 'Walter Samuel' and the player 'Thiago Motta' got injured.
SQL: SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Walter Samuel' INTERSECT SELECT T2.name FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id WHERE T3.player  =  'Thiago Motta'
Database: game_injury
Question: Show the name, average attendance, total attendance for stadiums where no accidents happened.
Paraphrased question: Show the name, average number of attendees, total number of attendees for stadiums where no accidents happened.
SQL: SELECT name ,  average_attendance ,  total_attendance FROM stadium EXCEPT SELECT T2.name ,  T2.average_attendance ,  T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.id JOIN injury_accident AS T3 ON T1.id  =  T3.game_id
Database: game_injury
Question: Which stadium name contains the substring "Bank"?
Paraphrased question: Which stadium name contains the substring "Bank"?
SQL: SELECT name FROM stadium WHERE name LIKE "%Bank%"
Database: game_injury
Question: How many games has each stadium held?
Paraphrased question: How many games has each stadium held?
SQL: SELECT T1.id ,  count(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id  =  T2.stadium_id GROUP BY T1.id
Database: game_injury
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.
Paraphrased question: For each injury accident, find the day of the game and the name of the injured gamer in the game, and sort the results in descending order of game season.
SQL: SELECT T1.date ,  T2.player FROM game AS T1 JOIN injury_accident AS T2 ON T1.id  =  T2.game_id ORDER BY T1.season DESC
Database: soccer_1
Question: List all country and league names.
Paraphrased question: List all nation and league names.
SQL: SELECT T1.name ,  T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id
Database: soccer_1
Question: How many leagues are there in England?
Paraphrased question: How many leagues are there in England?
SQL: SELECT count(*) FROM Country AS T1 JOIN League AS T2 ON T1.id  =  T2.country_id WHERE T1.name  =  "England"
Database: soccer_1
Question: What is the average weight of all players?
Paraphrased question: What is the average weight of all participants?
SQL: SELECT avg(weight) FROM Player
Database: soccer_1
Question: What is the maximum and minimum height of all players?
Paraphrased question: What is the maximum and minimum stature of all participants?
SQL: SELECT max(weight) ,  min(weight) FROM Player
Database: soccer_1
Question: List all player names who have an overall rating higher than the average.
Paraphrased question: List all participant names who have an overall rating higher than the average.
SQL: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating  >  ( SELECT avg(overall_rating) FROM Player_Attributes )
Database: soccer_1
Question: What are the names of players who have the best dribbling?
Paraphrased question: What are the names of participants who have the best dribbling?
SQL: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling  =  ( SELECT max(overall_rating) FROM Player_Attributes)