aherntech/spider-syn huggingface dataset:
Database: music_1
Question: What is the id of every song that has a resolution higher than that of a song with a rating below 8?
Paraphrased question: What is the id of every music that has a resolution higher than that of a song with a score below 8?
SQL: SELECT f_id FROM song WHERE resolution  >  (SELECT max(resolution) FROM song WHERE rating  <  8)
Database: music_1
Question: What is ids of the songs whose resolution is higher than the average resolution of songs in modern genre?
Paraphrased question: What is ids of the musics whose resolution is higher than the average resolution of songs in modern genre?
SQL: SELECT f_id FROM song WHERE resolution  >  (SELECT avg(resolution) FROM song WHERE genre_is  =  "modern")
Database: music_1
Question: What are the ids of all songs that have higher resolution of the average resolution in the modern genre?
Paraphrased question: What are the ids of all musics that have higher resolution of the average resolution in the modern genre?
SQL: SELECT f_id FROM song WHERE resolution  >  (SELECT avg(resolution) FROM song WHERE genre_is  =  "modern")
Database: music_1
Question: Find the top 3 artists who have the largest number of songs works whose language is Bangla.
Paraphrased question: Find the top 3 artists who have the largest number of songs works whose language is Bangla.
SQL: SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "bangla" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
Database: music_1
Question: What are the top 3 artists with the largest number of songs in the language Bangla?
Paraphrased question: What are the top 3 artists with the largest number of songs in the language Bangla?
SQL: SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "bangla" GROUP BY T2.artist_name ORDER BY count(*) DESC LIMIT 3
Database: music_1
Question: List the id, genre and artist name of English songs ordered by rating.
Paraphrased question: List the id, type and artist name of English songs ordered by score.
SQL: SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   "english" ORDER BY rating
Database: music_1
Question: What is the id, genre, and name of the artist for every English song ordered by ascending rating?
Paraphrased question: What is the id, type, and name of the artist for every English song ordered by ascending rating?
SQL: SELECT f_id ,  genre_is ,  artist_name FROM song WHERE languages  =   "english" ORDER BY rating
Database: music_1
Question: List the duration, file size and format of songs whose genre is pop, ordered by title?
Paraphrased question: List the duration, document size and format of songs whose genre is pop, ordered by title?
SQL: SELECT T1.duration ,  T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  "pop" ORDER BY T2.song_name
Database: music_1
Question: What is the duration, file size, and song format for every pop song, ordered by title alphabetically?
Paraphrased question: What is the duration, document size, and song format for every pop song, ordered by title alphabetically?
SQL: SELECT T1.duration ,  T1.file_size ,  T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T2.genre_is  =  "pop" ORDER BY T2.song_name
Database: music_1
Question: Find the names of the artists who have produced English songs but have never received rating higher than 8.
Paraphrased question: Find the names of the artists who have produced English songs but have never received score higher than 8.
SQL: SELECT DISTINCT artist_name FROM song WHERE languages  =  "english" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8
Database: music_1
Question: What are the names of the different artists that have produced a song in English but have never receieved a rating higher than 8?
Paraphrased question: What are the names of the different artists that have produced a song in English but have never receieved a score higher than 8?
SQL: SELECT DISTINCT artist_name FROM song WHERE languages  =  "english" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  8
Database: music_1
Question: Find the names of the artists who are from Bangladesh and have never received rating higher than 7.
Paraphrased question: Find the names of the artists who are from Bangladesh and have never received score higher than 7.
SQL: SELECT DISTINCT artist_name FROM artist WHERE country  =  "Bangladesh" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7
Database: music_1
Question: What are the names of the different artists from Bangladesh who never received a rating higher than a 7?
Paraphrased question: What are the names of the different artists from Bangladesh who never received a score higher than a 7?
SQL: SELECT DISTINCT artist_name FROM artist WHERE country  =  "Bangladesh" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating  >  7
Database: baseball_1
Question: what is the full name and id of the college with the largest number of baseball players?
Paraphrased question: what is the forename, surname and id of the college with the largest number of baseball players?
SQL: SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question: Find the full name and id of the college that has the most baseball players.
Paraphrased question: Find the forename, surname and id of the college that has the most baseball players.
SQL: SELECT T1.name_full ,  T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id  =  T2.college_id GROUP BY T1.college_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question: What is average salary of the players in the team named 'Boston Red Stockings' ?
Paraphrased question: What is average wage of the players in the team named 'Boston Red Stockings' ?
SQL: SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'
Database: baseball_1
Question: Compute the average salary of the players in the team called 'Boston Red Stockings'.
Paraphrased question: Compute the average wage of the players in the team called 'Boston Red Stockings'.
SQL: SELECT avg(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings'
Database: baseball_1
Question: What are first and last names of players participating in all star game in 1998?
Paraphrased question: What are forename and family names of players participating in all star game in 1998?
SQL: SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998
Database: baseball_1
Question: List the first and last name for players who participated in all star game in 1998.
Paraphrased question: List the forename and family names for players who participated in all star game in 1998.
SQL: SELECT name_first ,  name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id WHERE YEAR  =  1998
Database: baseball_1
Question: What are the first name, last name and id of the player with the most all star game experiences? Also list the count.
Paraphrased question: What are the forename, family name and id of the player with the most all star game experiences? Also list the count.
SQL: SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question: Which player has the most all star game experiences? Give me the first name, last name and id of the player, as well as the number of times the player participated in all star game.
Paraphrased question: Which player has the most all star game experiences? Give me the forename, family name and id of the player, as well as the number of times the player participated in all star game.
SQL: SELECT T1.name_first , T1.name_last ,  T1.player_id ,   count(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question: How many players enter hall of fame each year?
Paraphrased question: How many participants enter hall of fame each year?
SQL: SELECT yearid ,  count(*) FROM hall_of_fame GROUP BY yearid;
Database: baseball_1
Question: Count the number of players who enter hall of fame for each year.
Paraphrased question: Count the number of participants who enter hall of fame for each year.
SQL: SELECT yearid ,  count(*) FROM hall_of_fame GROUP BY yearid;
Database: baseball_1
Question: What is the average number of attendance at home games for each year?
Paraphrased question: What is the average number of number of attendees at home games for each year?
SQL: SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;
Database: baseball_1
Question: For each year, return the year and the average number of attendance at home games.
Paraphrased question: For each year, return the year and the average number of attendee at home games.
SQL: SELECT YEAR ,  avg(attendance) FROM home_game GROUP BY YEAR;
Database: baseball_1
Question: In 2014, what are the id and rank of the team that has the largest average number of attendance?
Paraphrased question: In 2014, what are the id and rank of the team that has the largest average number of attendance?
SQL: SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;
Database: baseball_1
Question: Find the id and rank of the team that has the highest average attendance rate in 2014.
Paraphrased question: Find the id and rank of the team that has the highest average attendance rate in 2014.
SQL: SELECT T2.team_id ,  T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id WHERE T1.year  =  2014 GROUP BY T1.team_id ORDER BY avg(T1.attendance) DESC LIMIT 1;
Database: baseball_1
Question: What are the manager's first name, last name and id who won the most manager award?
Paraphrased question: What are the manager's full name and id who won the most manager award?
SQL: SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question: Which manager won the most manager award? Give me the manager's first name, last name and id.
Paraphrased question: Which manager won the most manager award? Give me the manager's forename, family name and id.
SQL: SELECT T1.name_first ,  T1.name_last ,  T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T2.player_id ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question: How many parks are there in the state of NY?
Paraphrased question: How many parks are there in the state of NY?
SQL: SELECT count(*) FROM park WHERE state  =  'NY';
Database: baseball_1
Question: Show me the number of parks the state of NY has.
Paraphrased question: Show me the number of parks the state of NY has.
SQL: SELECT count(*) FROM park WHERE state  =  'NY';
Database: baseball_1
Question: Which 3 players won the most player awards? List their full name and id.
Paraphrased question: Which 3 players won the most player awards? List their full name and id.
SQL: SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;
Database: baseball_1
Question: Find the first name, last name and id for the top three players won the most player awards.
Paraphrased question: Find the forename, family name and id for the top three players won the most player awards.
SQL: SELECT T1.name_first ,  T1.name_last ,  T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.player_id ORDER BY count(*) DESC LIMIT 3;
Database: baseball_1
Question: List three countries which are the origins of the least players.
Paraphrased question: List three nations which are the origins of the least participants.
SQL: SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;
Database: baseball_1
Question: What are the three countries that the least players are from?
Paraphrased question: What are the three nations that the least participants are from?
SQL: SELECT birth_country FROM player GROUP BY birth_country ORDER BY count(*) ASC LIMIT 3;
Database: baseball_1
Question: Find all the players' first name and last name who have empty death record.
Paraphrased question: Find all the players' forename and family name who have empty death record.
SQL: SELECT name_first ,  name_last FROM player WHERE death_year = '';
Database: baseball_1
Question: What are the first name and last name of the players whose death record is empty?
Paraphrased question: What are the forename and family name of the players whose death record is empty?
SQL: SELECT name_first ,  name_last FROM player WHERE death_year = '';
Database: baseball_1
Question: How many players born in USA are right-handed batters? That is, have the batter value 'R'.
Paraphrased question: How many participants born in USA are right-handed batters? That is, have the batter value 'R'.
SQL: SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats  =  'R';
Database: baseball_1
Question: Count the number of players who were born in USA and have bats information 'R'.
Paraphrased question: Count the number of participants who were born in USA and have bats information 'R'.
SQL: SELECT count(*) FROM player WHERE birth_country = 'USA' AND bats  =  'R';
Database: baseball_1
Question: What is the average height of the players from the college named 'Yale University'?
Paraphrased question: What is the average stature of the participants from the college named 'Yale University'?
SQL: SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  =  T2.college_id WHERE T3.name_full  =  'Yale University';
Database: baseball_1
Question: Find the average height of the players who belong to the college called 'Yale University'.
Paraphrased question: Find the average stature of the participants who belong to the college called 'Yale University'.
SQL: SELECT avg(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id  =  T2.player_id JOIN college AS T3 ON T3.college_id  =  T2.college_id WHERE T3.name_full  =  'Yale University';
Database: baseball_1
Question: What is the highest salary among each team? List the team name, id and maximum salary.
Paraphrased question: What is the highest wage among each team? List the team name, id and maximum wage.
SQL: SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
Database: baseball_1
Question: For each team, return the team name, id and the maximum salary among the team.
Paraphrased question: For each team, return the team name, id and the maximum wage among the team.
SQL: SELECT T1.name ,  T1.team_id ,  max(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id  =  T2.team_id GROUP BY T1.team_id;
Database: baseball_1
Question: What are the name and id of the team offering the lowest average salary?
Paraphrased question: What are the name and id of the team offering the lowest average wage?
SQL: SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;
Database: baseball_1
Question: Which team offers the lowest average salary? Give me the name and id of the team.
Paraphrased question: Which team offers the lowest average wage? Give me the name and id of the team.
SQL: SELECT T1.name ,  T1.team_id FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id ORDER BY avg(T2.salary) ASC LIMIT 1;
Database: baseball_1
Question: Find the players' first name and last name who won award both in 1960 and in 1961.
Paraphrased question: Find the players' forename and family name who won award both in 1960 and in 1961.
SQL: SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961
Database: baseball_1
Question: Which players won awards in both 1960 and 1961? Return their first names and last names.
Paraphrased question: Which players won awards in both 1960 and 1961? Return their forename and family name.
SQL: SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1960 INTERSECT SELECT T1.name_first , T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year  =  1961
Database: baseball_1
Question: List players' first name and last name who have weight greater than 220 or height shorter than 75.
Paraphrased question: List players' forename and family name who have weight greater than 220 or height shorter than 75.
SQL: SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75
Database: baseball_1
Question: What are the first name and last name of the players who have weight above 220 or height below 75?
Paraphrased question: What are the forename and family name of the players who have weight above 220 or height below 75?
SQL: SELECT name_first ,  name_last FROM player WHERE weight  >  220 OR height  <  75
Database: baseball_1
Question: List the maximum scores of the team Boston Red Stockings when the team won in postseason?
Paraphrased question: List the maximum scores of the team Boston Red Stockings when the team won in postseason?
SQL: SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';
Database: baseball_1
Question: What are the maximum scores the team Boston Red Stockings got when the team won in postseason?
Paraphrased question: What are the maximum scores the team Boston Red Stockings got when the team won in postseason?
SQL: SELECT max(T1.wins) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings';
Database: baseball_1
Question: How many times did Boston Red Stockings lose in 2009 postseason?
Paraphrased question: How many times did Boston Red Stockings lose in 2009 postseason?
SQL: SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2009;
Database: baseball_1
Question: Count the number of times the team "Boston Red Stockings" lost in 2009 postseason.
Paraphrased question: Count the number of times the team "Boston Red Stockings" lost in 2009 postseason.
SQL: SELECT count(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year = 2009;
Database: baseball_1
Question: What are the name and id of the team with the most victories in 2008 postseason?
Paraphrased question: What are the name and id of the team with the most victories in 2008 postseason?
SQL: SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question: Find the name and id of the team that won the most times in 2008 postseason.
Paraphrased question: Find the name and id of the team that won the most times in 2008 postseason.
SQL: SELECT T2.name ,  T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T1.year  =  2008 GROUP BY T1.team_id_winner ORDER BY count(*) DESC LIMIT 1;
Database: baseball_1
Question: What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?
Paraphrased question: What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?
SQL: SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' GROUP BY T1.year
Database: baseball_1
Question: For each year, return the year and the number of times the team Boston Red Stockings won in the postseasons.
Paraphrased question: For each year, return the year and the number of times the team Boston Red Stockings won in the postseasons.
SQL: SELECT count(*) ,  T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' GROUP BY T1.year
Database: baseball_1
Question: What is the total number of postseason games that team Boston Red Stockings participated in?
Paraphrased question: What is the total number of postseason games that team Boston Red Stockings participated in?
SQL: SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' );
Database: baseball_1
Question: How many times in total did the team Boston Red Stockings participate in postseason games?
Paraphrased question: How many times in total did the team Boston Red Stockings participate in postseason games?
SQL: SELECT count(*) FROM ( SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' UNION SELECT * FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' );
Database: baseball_1
Question: How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')?
Paraphrased question: How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')?
SQL: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;
Database: baseball_1
Question: Find the number of tied games (the value of "ties" is '1') in 1885 postseason.
Paraphrased question: Find the number of tied games (the value of "ties" is '1') in 1885 postseason.
SQL: SELECT count(*) FROM postseason WHERE YEAR  =  1885 AND ties  =  1;
Database: baseball_1
Question: What is the total salary paid by team Boston Red Stockings in 2010?
Paraphrased question: What is the total wage paid by team Boston Red Stockings in 2010?
SQL: SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2010
Database: baseball_1
Question: What is the total salary expenses of team Boston Red Stockings in 2010?
Paraphrased question: What is the total wage expenses of team Boston Red Stockings in 2010?
SQL: SELECT sum(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2010
Database: baseball_1
Question: How many players were in the team Boston Red Stockings in 2000?
Paraphrased question: How many participants were in the team Boston Red Stockings in 2000?
SQL: SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000
Database: baseball_1
Question: How many players did Boston Red Stockings have in 2000?
Paraphrased question: How many participants did Boston Red Stockings have in 2000?
SQL: SELECT count(*) FROM salary AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  = 'Boston Red Stockings' AND T1.year  =  2000
Database: baseball_1
Question: List the 3 highest salaries of the players in 2001?
Paraphrased question: List the 3 highest wages of the players in 2001?
SQL: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;
Database: baseball_1
Question: How much salary did the top 3 well-paid players get in 2001?
Paraphrased question: How much wage did the top 3 well-paid players get in 2001?
SQL: SELECT salary FROM salary WHERE YEAR  =  2001 ORDER BY salary DESC LIMIT 3;
Database: baseball_1
Question: What were all the salary values of players in 2010 and 2001?
Paraphrased question: What were all the wage values of players in 2010 and 2001?
SQL: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001
Database: baseball_1
Question: List all the salary values players received in 2010 and 2001.
Paraphrased question: List all the wage values players received in 2010 and 2001.
SQL: SELECT salary FROM salary WHERE YEAR  =  2010 UNION SELECT salary FROM salary WHERE YEAR  =  2001
Database: baseball_1
Question: In which year did the least people enter hall of fame?
Paraphrased question: In which year did the least people enter hall of fame?
SQL: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;
Database: baseball_1
Question: Find the year in which the least people enter hall of fame.
Paraphrased question: Find the year in which the least people enter hall of fame.
SQL: SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY count(*) ASC LIMIT 1;
Database: baseball_1
Question: How many parks are there in Atlanta city?
Paraphrased question: How many parks are there in Atlanta city?
SQL: SELECT count(*) FROM park WHERE city = 'Atlanta';
Database: baseball_1
Question: How many parks does Atlanta city have?
Paraphrased question: How many parks does Atlanta city have?
SQL: SELECT count(*) FROM park WHERE city = 'Atlanta';
Database: baseball_1
Question: How many games were played in park "Columbia Park" in 1907?
Paraphrased question: How many games were played in park "Columbia Park" in 1907?
SQL: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';
Database: baseball_1
Question: Count the number of games taken place in park "Columbia Park" in 1907.
Paraphrased question: Count the number of games taken place in park "Columbia Park" in 1907.
SQL: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park';
Database: baseball_1
Question: How many games were played in city Atlanta in 2000?
Paraphrased question: How many games were played in city Atlanta in 2000?
SQL: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  'Atlanta';
Database: baseball_1
Question: Find the number of games taken place in city Atlanta in 2000.
Paraphrased question: Find the number of games taken place in city Atlanta in 2000.
SQL: SELECT count(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year  =  2000 AND T2.city  =  'Atlanta';
Database: baseball_1
Question: What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?
Paraphrased question: What is the total home game attendees of team Boston Red Stockings from 2000 to 2010?
SQL: SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;
Database: baseball_1
Question: How many games in total did team Boston Red Stockings attend from 2000 to 2010?
Paraphrased question: How many games in total did team Boston Red Stockings attend from 2000 to 2010?
SQL: SELECT sum(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id  =  T2.team_id_br WHERE T2.name  =  'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010;
Database: baseball_1
Question: How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?
Paraphrased question: How much did the the player with forename Len and family name Barker earn between 1985 to 1990 in total?
SQL: SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;
Database: baseball_1
Question: Compute the total salary that the player with first name Len and last name Barker received between 1985 to 1990.
Paraphrased question: Compute the total wage that the player with first name Len and last name Barker received between 1985 to 1990.
SQL: SELECT sum(T1.salary) FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id WHERE T2.name_first  =  'Len' AND T2.name_last = 'Barker' AND T1.year BETWEEN 1985 AND 1990;
Database: baseball_1
Question: List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.
Paraphrased question: List players' forename and surname who received salary from team Washington Nationals in both 2005 and 2007.
SQL: SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'
Database: baseball_1
Question: What are the first name and last name of the players who were paid salary by team Washington Nationals in both 2005 and 2007?
Paraphrased question: What are the forename and surname of the players who were paid salary by team Washington Nationals in both 2005 and 2007?
SQL: SELECT T2.name_first ,  T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first , T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'
Database: baseball_1
Question: How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?
Paraphrased question: How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?
SQL: SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;
Database: baseball_1
Question: Count the total number of games the team Boston Red Stockings attended from 1990 to 2000.
Paraphrased question: Count the total number of games the team Boston Red Stockings attended from 1990 to 2000.
SQL: SELECT sum(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000;
Database: baseball_1
Question: Which team had the least number of attendances in home games in 1980?
Paraphrased question: Which team had the least number of attendees in home games in 1980?
SQL: SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;
Database: baseball_1
Question: Find the team that attended the least number of home games in 1980.
Paraphrased question: Find the team that attended the least number of home games in 1980.
SQL: SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance ASC LIMIT 1;
Database: baseball_1
Question: List the names of states that have more than 2 parks.
Paraphrased question: List the names of states that have more than 2 parks.
SQL: SELECT state FROM park GROUP BY state HAVING count(*)  >  2;
Database: baseball_1
Question: Which states have more than 2 parks?
Paraphrased question: Which states have more than 2 parks?
SQL: SELECT state FROM park GROUP BY state HAVING count(*)  >  2;
Database: baseball_1
Question: How many team franchises are active, with active value 'Y'?
Paraphrased question: How many team franchises are active, with active value 'Y'?
SQL: SELECT count(*) FROM team_franchise WHERE active = 'Y';
Database: baseball_1
Question: Find the number of team franchises that are active (have 'Y' as "active" information).
Paraphrased question: Find the number of team franchises that are active (have 'Y' as "active" information).
SQL: SELECT count(*) FROM team_franchise WHERE active = 'Y';
Database: baseball_1
Question: Which cities have 2 to 4 parks?
Paraphrased question: Which towns have 2 to 4 parks?
SQL: SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;
Database: baseball_1
Question: Find all the cities that have 2 to 4 parks.
Paraphrased question: Find all the towns that have 2 to 4 parks.
SQL: SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;
Database: baseball_1
Question: Which park had most attendances in 2008?
Paraphrased question: Which park had most attendances in 2008?
SQL: SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;
Database: baseball_1
Question: Which park did the most people attend in 2008?
Paraphrased question: Which park did the most people attend in 2008?
SQL: SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id  =  T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;
Database: mountain_photos
Question: How many camera lenses have a focal length longer than 15 mm?
Paraphrased question: How many camera lenses have a focal length longer than 15 mm?
SQL: SELECT count(*) FROM camera_lens WHERE focal_length_mm  >  15
Database: mountain_photos
Question: Find the brand and name for each camera lens, and sort in descending order of maximum aperture.
Paraphrased question: Find the brand and name for each camera lens, and sort in descending order of maximum aperture.
SQL: SELECT brand ,  name FROM camera_lens ORDER BY max_aperture DESC
Database: mountain_photos
Question: List the id, color scheme, and name for all the photos.
Paraphrased question: List the id, scheme of colour, and name for all the photos.
SQL: SELECT id ,  color ,  name FROM photos
Database: mountain_photos
Question: What are the maximum and average height of the mountains?
Paraphrased question: What are the maximum and average height of the mountains?
SQL: SELECT max(height) ,  avg(height) FROM mountain
Database: mountain_photos
Question: What are the average prominence of the mountains in country 'Morocco'?
Paraphrased question: What are the average prominence of the mountains in country 'Morocco'?
SQL: SELECT avg(prominence) FROM mountain WHERE country  =  'Morocco'
Database: mountain_photos
Question: What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?
Paraphrased question: What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?
SQL: SELECT name ,  height ,  prominence FROM mountain WHERE range != 'Aberdare Range'
Database: mountain_photos
Question: What are the id and name of the photos for mountains?
Paraphrased question: What are the id and name of the photos for mountains?
SQL: SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.height  >  4000
Database: mountain_photos
Question: What are the id and name of the mountains that have at least 2 photos?
Paraphrased question: What are the id and name of the mountains that have at least 2 photos?
SQL: SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id GROUP BY T1.id HAVING count(*)  >=  2
Database: mountain_photos
Question: What are the names of the cameras that have taken picture of the most mountains?
Paraphrased question: What are the names of the cameras that have taken picture of the most mountains?
SQL: SELECT T2.name FROM photos AS T1 JOIN camera_lens AS T2 ON T1.camera_lens_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1
Database: mountain_photos
Question: What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?
Paraphrased question: What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?
SQL: SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id  =  T1.id WHERE T1.brand  =  'Sigma' OR T1.brand  =  'Olympus'
Database: mountain_photos
Question: How many different kinds of lens brands are there?
Paraphrased question: How many different kinds of lens brands are there?
SQL: SELECT count(DISTINCT brand) FROM camera_lens
Database: mountain_photos
Question: How many camera lenses are not used in taking any photos?
Paraphrased question: How many camera lenses are not used in taking any photos?
SQL: SELECT count(*) FROM camera_lens WHERE id NOT IN ( SELECT camera_lens_id FROM photos )
Database: mountain_photos
Question: How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?
Paraphrased question: How many different kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?
SQL: SELECT count(DISTINCT T2.camera_lens_id) FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id WHERE T1.country  =  'Ethiopia'
Database: mountain_photos
Question: List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'
Paraphrased question: List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'
SQL: SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Toubkal Atlas' INTERSECT SELECT T3.brand FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T1.range  =  'Lasta Massif'
Database: mountain_photos
Question: Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.
Paraphrased question: Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.
SQL: SELECT name ,  prominence FROM mountain EXCEPT SELECT T1.name ,  T1.prominence FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id JOIN camera_lens AS T3 ON T2.camera_lens_id  =  T3.id WHERE T3.brand  =  'Sigma'
Database: mountain_photos
Question: List the camera lens names containing substring "Digital".
Paraphrased question: List the camera lens names containing substring "Digital".
SQL: SELECT name FROM camera_lens WHERE name LIKE "%Digital%"
Database: mountain_photos
Question: What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.
Paraphrased question: What is the name of each camera lens and the number of picture taken by it? Order the result by the count of photos.
SQL: SELECT T1.name ,  count(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id  =  T2.camera_lens_id GROUP BY T1.id ORDER BY count(*)
Database: program_share
Question: Find the names of channels that are not owned by CCTV.
Paraphrased question: Find the names of channels that are not owned by CCTV.
SQL: SELECT name FROM channel WHERE OWNER != 'CCTV'
Database: program_share
Question: Which channels are not owned by CCTV? Give me the channel names.
Paraphrased question: Which channels are not owned by CCTV? Give me the channel names.
SQL: SELECT name FROM channel WHERE OWNER != 'CCTV'
Database: program_share
Question: List all channel names ordered by their rating in percent from big to small.
Paraphrased question: List all channel names ordered by their score in percent from big to small.
SQL: SELECT name FROM channel ORDER BY rating_in_percent DESC
Database: program_share
Question: Give me a list of all the channel names sorted by the channel rating in descending order.
Paraphrased question: Give me a list of all the channel names sorted by the channel score in descending order.
SQL: SELECT name FROM channel ORDER BY rating_in_percent DESC
Database: program_share
Question: What is the owner of the channel that has the highest rating ratio?
Paraphrased question: What is the owner of the channel that has the highest rating ratio?
SQL: SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1
Database: program_share
Question: Show me the owner of the channel with the highest rating.
Paraphrased question: Show me the owner of the channel with the highest score.
SQL: SELECT OWNER FROM channel ORDER BY rating_in_percent DESC LIMIT 1
Database: program_share
Question: how many programs are there?
Paraphrased question: how many programmes are there?
SQL: SELECT count(*) FROM program
Database: program_share
Question: Count the number of programs.
Paraphrased question: Count the number of programmes.
SQL: SELECT count(*) FROM program
Database: program_share
Question: list all the names of programs, ordering by launch time.
Paraphrased question: list all the names of programmes, ordering by launch time.
SQL: SELECT name FROM program ORDER BY launch
Database: program_share
Question: What is the list of program names, sorted by the order of launch date?
Paraphrased question: What is the list of programme names, sorted by the order of launch date?
SQL: SELECT name FROM program ORDER BY launch
Database: program_share
Question: List the name, origin and owner of each program.
Paraphrased question: List the name, origin and owner of each programme.
SQL: SELECT name ,  origin ,  OWNER FROM program
Database: program_share
Question: What are the name, origin and owner of each program?
Paraphrased question: What are the name, origin and owner of each programme?
SQL: SELECT name ,  origin ,  OWNER FROM program
Database: program_share
Question: find the name of the program that was launched most recently.
Paraphrased question: find the name of the programme that was launched most recently.
SQL: SELECT name FROM program ORDER BY launch DESC LIMIT 1
Database: program_share
Question: Which program was launched most recently? Return the program name.
Paraphrased question: Which programme was launched most recently? Return the programme name.
SQL: SELECT name FROM program ORDER BY launch DESC LIMIT 1
Database: program_share
Question: find the total percentage share of all channels owned by CCTV.
Paraphrased question: find the total percentage share of all channels owned by CCTV.
SQL: SELECT sum(Share_in_percent) FROM channel WHERE OWNER  =  'CCTV'
Database: program_share
Question: What is the total share (in percent) of all the channels owned by CCTV?
Paraphrased question: What is the total share (in percent) of all the channels owned by CCTV?
SQL: SELECT sum(Share_in_percent) FROM channel WHERE OWNER  =  'CCTV'
Database: program_share
Question: Find the names of the channels that are broadcast in the morning.
Paraphrased question: Find the names of the channels that are broadcast in the morning.
SQL: SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning'
Database: program_share
Question: Which channels are broadcast in the morning? Give me the channel names.
Paraphrased question: Which channels are broadcast in the morning? Give me the channel names.
SQL: SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning'
Database: program_share
Question: what are the names of the channels that broadcast in both morning and night?
Paraphrased question: what are the names of the channels that broadcast in both morning and night?
SQL: SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Night'
Database: program_share
Question: Which channels broadcast both in the morning and at night? Give me the channel names.
Paraphrased question: Which channels broadcast both in the morning and at night? Give me the channel names.
SQL: SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Morning' INTERSECT SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id  =  t2.channel_id WHERE t2.time_of_day  =  'Night'
Database: program_share
Question: how many programs are broadcast in each time section of the day?
Paraphrased question: how many programmes are broadcast in each time section of the day?
SQL: SELECT count(*) ,  time_of_day FROM broadcast GROUP BY time_of_day
Database: program_share
Question: Count the number of programs broadcast for each time section of a day.
Paraphrased question: Count the number of programmes broadcast for each time section of a day.
SQL: SELECT count(*) ,  time_of_day FROM broadcast GROUP BY time_of_day
Database: program_share
Question: find the number of different programs that are broadcast during night time.
Paraphrased question: find the number of different programmes that are broadcast during night time.
SQL: SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day  =  'Night'
Database: program_share
Question: How many distinct programs are broadcast at "Night" time?
Paraphrased question: How many different programmes are broadcast at "Night" time?
SQL: SELECT count(DISTINCT program_id) FROM broadcast WHERE time_of_day  =  'Night'
Database: program_share
Question: Find the names of programs that are never broadcasted in the morning.
Paraphrased question: Find the names of programmes that are never broadcasted in the morning.
SQL: SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "Morning"
Database: program_share
Question: Which programs are never broadcasted in the morning? Give me the names of the programs.
Paraphrased question: Which programmes are never broadcasted in the morning? Give me the names of the programmes.
SQL: SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "Morning"
Database: program_share
Question: find the program owners that have some programs in both morning and night time.
Paraphrased question: find the programme owners that have some programmes in both morning and night time.
SQL: SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "Night"
Database: program_share
Question: Who are the owners of the programs that broadcast both in the morning and at night?
Paraphrased question: Who are the owners of the programmes that broadcast both in the morning and at night?
SQL: SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id  =  t2.program_id WHERE t2.Time_of_day  =  "Night"
Database: program_share
Question: List all program origins in the alphabetical order.
Paraphrased question: List all programme origins in the alphabetical order.
SQL: SELECT origin FROM program ORDER BY origin
Database: program_share
Question: What is the list of program origins ordered alphabetically?
Paraphrased question: What is the list of programme origins ordered alphabetically?
SQL: SELECT origin FROM program ORDER BY origin
Database: program_share
Question: what is the number of different channel owners?
Paraphrased question: what is the number of different channel owners?
SQL: SELECT count(DISTINCT OWNER) FROM channel
Database: program_share
Question: Count the number of distinct channel owners.
Paraphrased question: Count the number of different channel owners.
SQL: SELECT count(DISTINCT OWNER) FROM channel
Database: program_share
Question: find the names of programs whose origin is not in Beijing.
Paraphrased question: find the names of programmes whose origin is not in Beijing.
SQL: SELECT name FROM program WHERE origin != 'Beijing'
Database: program_share
Question: Which programs' origins are not "Beijing"? Give me the program names.
Paraphrased question: Which programmes' origins are not "Beijing"? Give me the programme names.
SQL: SELECT name FROM program WHERE origin != 'Beijing'