text
stringlengths
150
1.06k
source
dict
### QUESTION Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5? ### CONTEXT CREATE TABLE table_name_96 (champion VARCHAR, runner_up VARCHAR, score VARCHAR) ### ANSWER SELECT champion FROM table_name_96 WHERE runner_up = "florian mayer" AND score = "7–6(6), 4–6, 7–5"</s>
{ "answer": "SELECT champion FROM table_name_96 WHERE runner_up = \"florian mayer\" AND score = \"7–6(6), 4–6, 7–5\"", "context": "CREATE TABLE table_name_96 (champion VARCHAR, runner_up VARCHAR, score VARCHAR)", "question": "Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5?" }
### QUESTION display the department name and number of employees in each of the department. ### CONTEXT CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR) ### ANSWER SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name</s>
{ "answer": "SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name", "context": "CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR)", "question": "display the department name and number of employees in each of the department." }
### QUESTION display those employees who contain a letter z to their first name and also display their last name, city. ### CONTEXT CREATE TABLE locations (city VARCHAR, location_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR) ### ANSWER SELECT T1.first_name, T1.last_name, T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'</s>
{ "answer": "SELECT T1.first_name, T1.last_name, T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'", "context": "CREATE TABLE locations (city VARCHAR, location_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR)", "question": "display those employees who contain a letter z to their first name and also display their last name, city." }
### QUESTION Who is every vacator if date of successors formal installation is August 8, 1960? ### CONTEXT CREATE TABLE table_2159571_1 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR) ### ANSWER SELECT vacator FROM table_2159571_1 WHERE date_of_successors_formal_installation = "August 8, 1960"</s>
{ "answer": "SELECT vacator FROM table_2159571_1 WHERE date_of_successors_formal_installation = \"August 8, 1960\"", "context": "CREATE TABLE table_2159571_1 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR)", "question": "Who is every vacator if date of successors formal installation is August 8, 1960?" }
### QUESTION display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working. ### CONTEXT CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, employee_id VARCHAR, department_id VARCHAR) ### ANSWER SELECT T1.first_name, T1.last_name, T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id</s>
{ "answer": "SELECT T1.first_name, T1.last_name, T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id", "context": "CREATE TABLE countries (country_name VARCHAR, country_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR); CREATE TABLE locations (location_id VARCHAR, country_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, employee_id VARCHAR, department_id VARCHAR)", "question": "display the full name (first and last name ) of employee with ID and name of the country presently where (s)he is working." }
### QUESTION What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7? ### CONTEXT CREATE TABLE table_name_40 (games_played INTEGER, position VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR) ### ANSWER SELECT MIN(games_played) FROM table_name_40 WHERE goals_conceded > 25 AND goals_scored > 17 AND position = 7</s>
{ "answer": "SELECT MIN(games_played) FROM table_name_40 WHERE goals_conceded > 25 AND goals_scored > 17 AND position = 7", "context": "CREATE TABLE table_name_40 (games_played INTEGER, position VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR)", "question": "What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7?" }
### QUESTION display the full name (first and last name), and salary of those employees who working in any department located in London. ### CONTEXT CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR) ### ANSWER SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'</s>
{ "answer": "SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'", "context": "CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR)", "question": "display the full name (first and last name), and salary of those employees who working in any department located in London." }
### QUESTION List the file size and format for all songs that have resolution lower than 800. ### CONTEXT CREATE TABLE song (f_id VARCHAR, resolution INTEGER); CREATE TABLE files (file_size VARCHAR, formats VARCHAR, f_id VARCHAR) ### ANSWER SELECT DISTINCT T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800</s>
{ "answer": "SELECT DISTINCT T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800", "context": "CREATE TABLE song (f_id VARCHAR, resolution INTEGER); CREATE TABLE files (file_size VARCHAR, formats VARCHAR, f_id VARCHAR)", "question": "List the file size and format for all songs that have resolution lower than 800." }
### QUESTION What is the name of the artist who produced the shortest song? ### CONTEXT CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (artist_name VARCHAR, f_id VARCHAR) ### ANSWER SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1</s>
{ "answer": "SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1", "context": "CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (artist_name VARCHAR, f_id VARCHAR)", "question": "What is the name of the artist who produced the shortest song?" }
### QUESTION How many people vacated to successor Dave E. Satterfield, Jr. (d)? ### CONTEXT CREATE TABLE table_2159547_3 (vacator VARCHAR, successor VARCHAR) ### ANSWER SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = "Dave E. Satterfield, Jr. (D)"</s>
{ "answer": "SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = \"Dave E. Satterfield, Jr. (D)\"", "context": "CREATE TABLE table_2159547_3 (vacator VARCHAR, successor VARCHAR)", "question": "How many people vacated to successor Dave E. Satterfield, Jr. (d)?" }
### QUESTION Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals? ### CONTEXT CREATE TABLE table_name_75 (bolton_wanderers_career VARCHAR, goals VARCHAR, apps VARCHAR, total VARCHAR, position VARCHAR) ### ANSWER SELECT bolton_wanderers_career FROM table_name_75 WHERE total > 404 AND position = "fw" AND apps < 492 AND goals = "79"</s>
{ "answer": "SELECT bolton_wanderers_career FROM table_name_75 WHERE total > 404 AND position = \"fw\" AND apps < 492 AND goals = \"79\"", "context": "CREATE TABLE table_name_75 (bolton_wanderers_career VARCHAR, goals VARCHAR, apps VARCHAR, total VARCHAR, position VARCHAR)", "question": "Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals?" }
### QUESTION Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version? ### CONTEXT CREATE TABLE table_2160215_1 (original_japanese VARCHAR, english___manga_uk__ VARCHAR) ### ANSWER SELECT original_japanese FROM table_2160215_1 WHERE english___manga_uk__ = "Sean Barrett"</s>
{ "answer": "SELECT original_japanese FROM table_2160215_1 WHERE english___manga_uk__ = \"Sean Barrett\"", "context": "CREATE TABLE table_2160215_1 (original_japanese VARCHAR, english___manga_uk__ VARCHAR)", "question": "Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?" }
### QUESTION Find the id of songs that are available in mp4 format and have resolution lower than 1000. ### CONTEXT CREATE TABLE song (f_id VARCHAR, formats VARCHAR, resolution INTEGER); CREATE TABLE files (f_id VARCHAR, formats VARCHAR, resolution INTEGER) ### ANSWER SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000</s>
{ "answer": "SELECT f_id FROM files WHERE formats = \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution < 1000", "context": "CREATE TABLE song (f_id VARCHAR, formats VARCHAR, resolution INTEGER); CREATE TABLE files (f_id VARCHAR, formats VARCHAR, resolution INTEGER)", "question": "Find the id of songs that are available in mp4 format and have resolution lower than 1000." }
### QUESTION What is the average duration of songs that have mp3 format and resolution below 800? ### CONTEXT CREATE TABLE files (duration INTEGER, f_id VARCHAR, formats VARCHAR); CREATE TABLE song (f_id VARCHAR, resolution VARCHAR) ### ANSWER SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800</s>
{ "answer": "SELECT AVG(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" AND T2.resolution < 800", "context": "CREATE TABLE files (duration INTEGER, f_id VARCHAR, formats VARCHAR); CREATE TABLE song (f_id VARCHAR, resolution VARCHAR)", "question": "What is the average duration of songs that have mp3 format and resolution below 800?" }
### QUESTION What is the number of artists for each gender? ### CONTEXT CREATE TABLE artist (gender VARCHAR) ### ANSWER SELECT COUNT(*), gender FROM artist GROUP BY gender</s>
{ "answer": "SELECT COUNT(*), gender FROM artist GROUP BY gender", "context": "CREATE TABLE artist (gender VARCHAR)", "question": "What is the number of artists for each gender?" }
### QUESTION What is the 1st leg with Team 2 Lyon? ### CONTEXT CREATE TABLE table_name_98 (team_2 VARCHAR) ### ANSWER SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = "lyon"</s>
{ "answer": "SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = \"lyon\"", "context": "CREATE TABLE table_name_98 (team_2 VARCHAR)", "question": "What is the 1st leg with Team 2 Lyon?" }
### QUESTION Find the distinct names of all songs that have a higher resolution than some songs in English. ### CONTEXT CREATE TABLE song (song_name VARCHAR, resolution INTEGER, languages VARCHAR) ### ANSWER SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = "english")</s>
{ "answer": "SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = \"english\")", "context": "CREATE TABLE song (song_name VARCHAR, resolution INTEGER, languages VARCHAR)", "question": "Find the distinct names of all songs that have a higher resolution than some songs in English." }
### QUESTION What is the name and country of origin of the artist who released a song that has "love" in its title? ### CONTEXT CREATE TABLE song (artist_name VARCHAR, song_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR) ### ANSWER SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE "%love%"</s>
{ "answer": "SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.song_name LIKE \"%love%\"", "context": "CREATE TABLE song (artist_name VARCHAR, song_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)", "question": "What is the name and country of origin of the artist who released a song that has \"love\" in its title?" }
### QUESTION List the name and gender for all artists who released songs in March. ### CONTEXT CREATE TABLE song (artist_name VARCHAR, releasedate VARCHAR); CREATE TABLE artist (artist_name VARCHAR, gender VARCHAR) ### ANSWER SELECT T1.artist_name, T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE "%Mar%"</s>
{ "answer": "SELECT T1.artist_name, T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE \"%Mar%\"", "context": "CREATE TABLE song (artist_name VARCHAR, releasedate VARCHAR); CREATE TABLE artist (artist_name VARCHAR, gender VARCHAR)", "question": "List the name and gender for all artists who released songs in March." }
### QUESTION List the names of all songs that have 4 minute duration or are in English. ### CONTEXT CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE song (song_name VARCHAR, languages VARCHAR) ### ANSWER SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english"</s>
{ "answer": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE \"4:%\" UNION SELECT song_name FROM song WHERE languages = \"english\"", "context": "CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE song (song_name VARCHAR, languages VARCHAR)", "question": "List the names of all songs that have 4 minute duration or are in English." }
### QUESTION Return the names of songs for which format is mp3 and resolution is below 1000. ### CONTEXT CREATE TABLE song (song_name VARCHAR, resolution INTEGER); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE files (f_id VARCHAR, formats VARCHAR) ### ANSWER SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" INTERSECT SELECT song_name FROM song WHERE resolution < 1000</s>
{ "answer": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution < 1000", "context": "CREATE TABLE song (song_name VARCHAR, resolution INTEGER); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE files (f_id VARCHAR, formats VARCHAR)", "question": "Return the names of songs for which format is mp3 and resolution is below 1000." }
### QUESTION Return the names of singers who are from UK and released an English song. ### CONTEXT CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR) ### ANSWER SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english"</s>
{ "answer": "SELECT artist_name FROM artist WHERE country = \"UK\" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"english\"", "context": "CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)", "question": "Return the names of singers who are from UK and released an English song." }
### QUESTION Which film title used in nomination has vinterkyss as the original title? ### CONTEXT CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) ### ANSWER SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = "Vinterkyss"</s>
{ "answer": "SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = \"Vinterkyss\"", "context": "CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)", "question": "Which film title used in nomination has vinterkyss as the original title?" }
### QUESTION What are the maximum and minimum resolution of songs whose duration is 3 minutes? ### CONTEXT CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (resolution INTEGER, f_id VARCHAR) ### ANSWER SELECT MAX(T2.resolution), MIN(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "3:%"</s>
{ "answer": "SELECT MAX(T2.resolution), MIN(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE \"3:%\"", "context": "CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (resolution INTEGER, f_id VARCHAR)", "question": "What are the maximum and minimum resolution of songs whose duration is 3 minutes?" }
### QUESTION What are the maximum duration and resolution of songs grouped and ordered by languages? ### CONTEXT CREATE TABLE song (languages VARCHAR, resolution INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR) ### ANSWER SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages</s>
{ "answer": "SELECT MAX(T1.duration), MAX(T2.resolution), T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.languages ORDER BY T2.languages", "context": "CREATE TABLE song (languages VARCHAR, resolution INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)", "question": "What are the maximum duration and resolution of songs grouped and ordered by languages?" }
### QUESTION What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre? ### CONTEXT CREATE TABLE song (genre_is VARCHAR, rating INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR) ### ANSWER SELECT MIN(T1.duration), MIN(T2.rating), T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is</s>
{ "answer": "SELECT MIN(T1.duration), MIN(T2.rating), T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is", "context": "CREATE TABLE song (genre_is VARCHAR, rating INTEGER, f_id VARCHAR); CREATE TABLE files (duration INTEGER, f_id VARCHAR)", "question": "What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?" }
### QUESTION Find the names and number of works of all artists who have at least one English songs. ### CONTEXT CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR) ### ANSWER SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" GROUP BY T2.artist_name HAVING COUNT(*) >= 1</s>
{ "answer": "SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"english\" GROUP BY T2.artist_name HAVING COUNT(*) >= 1", "context": "CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)", "question": "Find the names and number of works of all artists who have at least one English songs." }
### QUESTION Find the name and country of origin for all artists who have release at least one song of resolution above 900. ### CONTEXT CREATE TABLE song (artist_name VARCHAR, resolution INTEGER); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR) ### ANSWER SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING COUNT(*) >= 1</s>
{ "answer": "SELECT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.resolution > 900 GROUP BY T2.artist_name HAVING COUNT(*) >= 1", "context": "CREATE TABLE song (artist_name VARCHAR, resolution INTEGER); CREATE TABLE artist (artist_name VARCHAR, country VARCHAR)", "question": "Find the name and country of origin for all artists who have release at least one song of resolution above 900." }
### QUESTION Find the names and number of works of the three artists who have produced the most songs. ### CONTEXT CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR) ### ANSWER SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3</s>
{ "answer": "SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3", "context": "CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR)", "question": "Find the names and number of works of the three artists who have produced the most songs." }
### QUESTION Find the country of origin for the artist who made the least number of songs? ### CONTEXT CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR) ### ANSWER SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1</s>
{ "answer": "SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR)", "question": "Find the country of origin for the artist who made the least number of songs?" }
### QUESTION What are the names of the songs whose rating is below the rating of all songs in English? ### CONTEXT CREATE TABLE song (song_name VARCHAR, rating INTEGER, languages VARCHAR) ### ANSWER SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english')</s>
{ "answer": "SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english')", "context": "CREATE TABLE song (song_name VARCHAR, rating INTEGER, languages VARCHAR)", "question": "What are the names of the songs whose rating is below the rating of all songs in English?" }
### QUESTION Find the top 3 artists who have the largest number of songs works whose language is Bangla. ### CONTEXT CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)", "question": "Find the top 3 artists who have the largest number of songs works whose language is Bangla." }
### QUESTION List the duration, file size and format of songs whose genre is pop, ordered by title? ### CONTEXT CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, song_name VARCHAR); CREATE TABLE files (duration VARCHAR, file_size VARCHAR, formats VARCHAR, f_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, song_name VARCHAR); CREATE TABLE files (duration VARCHAR, file_size VARCHAR, formats VARCHAR, f_id VARCHAR)", "question": "List the duration, file size and format of songs whose genre is pop, ordered by title?" }
### QUESTION Find the names of the artists who have produced English songs but have never received rating higher than 8. ### CONTEXT CREATE TABLE song (artist_name VARCHAR, languages VARCHAR, rating INTEGER) ### ANSWER SELECT DISTINCT artist_name FROM song WHERE languages = "english" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8</s>
{ "answer": "SELECT DISTINCT artist_name FROM song WHERE languages = \"english\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8", "context": "CREATE TABLE song (artist_name VARCHAR, languages VARCHAR, rating INTEGER)", "question": "Find the names of the artists who have produced English songs but have never received rating higher than 8." }
### QUESTION Find the names of the artists who are from Bangladesh and have never received rating higher than 7. ### CONTEXT CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, rating INTEGER); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, rating INTEGER) ### ANSWER SELECT DISTINCT artist_name FROM artist WHERE country = "Bangladesh" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7</s>
{ "answer": "SELECT DISTINCT artist_name FROM artist WHERE country = \"Bangladesh\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7", "context": "CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, rating INTEGER); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, rating INTEGER)", "question": "Find the names of the artists who are from Bangladesh and have never received rating higher than 7." }
### QUESTION what is the full name and id of the college with the largest number of baseball players? ### CONTEXT CREATE TABLE player_college (college_id VARCHAR); CREATE TABLE college (name_full VARCHAR, college_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE player_college (college_id VARCHAR); CREATE TABLE college (name_full VARCHAR, college_id VARCHAR)", "question": "what is the full name and id of the college with the largest number of baseball players?" }
### QUESTION What is average salary of the players in the team named 'Boston Red Stockings' ? ### CONTEXT CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)", "question": "What is average salary of the players in the team named 'Boston Red Stockings' ?" }
### QUESTION What are first and last names of players participating in all star game in 1998? ### CONTEXT CREATE TABLE all_star (player_id VARCHAR); CREATE TABLE player (player_id VARCHAR) ### ANSWER SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998</s>
{ "answer": "SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998", "context": "CREATE TABLE all_star (player_id VARCHAR); CREATE TABLE player (player_id VARCHAR)", "question": "What are first and last names of players participating in all star game in 1998?" }
### QUESTION What are the first name, last name and id of the player with the most all star game experiences? Also list the count. ### CONTEXT CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE all_star (player_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE all_star (player_id VARCHAR)", "question": "What are the first name, last name and id of the player with the most all star game experiences? Also list the count." }
### QUESTION How many people per km2 are there in the municipality whose mayor is Boy Quiat? ### CONTEXT CREATE TABLE table_216776_2 (pop_density__per_kmΒ²_ VARCHAR, municipal_mayor VARCHAR) ### ANSWER SELECT pop_density__per_kmΒ²_ FROM table_216776_2 WHERE municipal_mayor = "Boy Quiat"</s>
{ "answer": "SELECT pop_density__per_kmΒ²_ FROM table_216776_2 WHERE municipal_mayor = \"Boy Quiat\"", "context": "CREATE TABLE table_216776_2 (pop_density__per_kmΒ²_ VARCHAR, municipal_mayor VARCHAR)", "question": "How many people per km2 are there in the municipality whose mayor is Boy Quiat?" }
### QUESTION What is the 2011 population if the headquarters is Chittorgarh? ### CONTEXT CREATE TABLE table_2168295_1 (population__2011_ VARCHAR, headquarters VARCHAR) ### ANSWER SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = "Chittorgarh"</s>
{ "answer": "SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = \"Chittorgarh\"", "context": "CREATE TABLE table_2168295_1 (population__2011_ VARCHAR, headquarters VARCHAR)", "question": "What is the 2011 population if the headquarters is Chittorgarh?" }
### QUESTION In 2014, what are the id and rank of the team that has the largest average number of attendance? ### CONTEXT CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER)", "question": "In 2014, what are the id and rank of the team that has the largest average number of attendance?" }
### QUESTION What are the manager's first name, last name and id who won the most manager award? ### CONTEXT CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE manager_award (player_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE manager_award (player_id VARCHAR)", "question": "What are the manager's first name, last name and id who won the most manager award?" }
### QUESTION Which 3 players won the most player awards? List their full name and id. ### CONTEXT CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE player_award (player_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE player_award (player_id VARCHAR)", "question": "Which 3 players won the most player awards? List their full name and id." }
### QUESTION What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative? ### CONTEXT CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, alternative_fuel VARCHAR) ### ANSWER SELECT _percentage_cut FROM table_21690339_1 WHERE alternative_fuel = "Fuel oil stocks need only for industry"</s>
{ "answer": "SELECT _percentage_cut FROM table_21690339_1 WHERE alternative_fuel = \"Fuel oil stocks need only for industry\"", "context": "CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, alternative_fuel VARCHAR)", "question": "What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative?" }
### QUESTION What is the average height of the players from the college named 'Yale University'? ### CONTEXT CREATE TABLE player_college (player_id VARCHAR, college_id VARCHAR); CREATE TABLE player (height INTEGER, player_id VARCHAR); CREATE TABLE college (college_id VARCHAR, name_full VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE player_college (player_id VARCHAR, college_id VARCHAR); CREATE TABLE player (height INTEGER, player_id VARCHAR); CREATE TABLE college (college_id VARCHAR, name_full VARCHAR)", "question": "What is the average height of the players from the college named 'Yale University'?" }
### QUESTION What is the highest salary among each team? List the team name, id and maximum salary. ### CONTEXT CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (name VARCHAR, team_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (name VARCHAR, team_id VARCHAR)", "question": "What is the highest salary among each team? List the team name, id and maximum salary." }
### QUESTION What are the name and id of the team offering the lowest average salary? ### CONTEXT CREATE TABLE team (name VARCHAR, team_id VARCHAR); CREATE TABLE salary (team_id VARCHAR, salary INTEGER) ### ANSWER 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) LIMIT 1</s>
{ "answer": "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) LIMIT 1", "context": "CREATE TABLE team (name VARCHAR, team_id VARCHAR); CREATE TABLE salary (team_id VARCHAR, salary INTEGER)", "question": "What are the name and id of the team offering the lowest average salary?" }
### QUESTION Find the players' first name and last name who won award both in 1960 and in 1961. ### CONTEXT CREATE TABLE player (name_first VARCHAR, name_last VARCHAR); CREATE TABLE player_award (year VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR); CREATE TABLE player_award (year VARCHAR)", "question": "Find the players' first name and last name who won award both in 1960 and in 1961." }
### QUESTION What is Game, when Road Team is "Syracuse", and when Result is "109-82"? ### CONTEXT CREATE TABLE table_name_77 (game VARCHAR, road_team VARCHAR, result VARCHAR) ### ANSWER SELECT game FROM table_name_77 WHERE road_team = "syracuse" AND result = "109-82"</s>
{ "answer": "SELECT game FROM table_name_77 WHERE road_team = \"syracuse\" AND result = \"109-82\"", "context": "CREATE TABLE table_name_77 (game VARCHAR, road_team VARCHAR, result VARCHAR)", "question": "What is Game, when Road Team is \"Syracuse\", and when Result is \"109-82\"?" }
### QUESTION How many times did Boston Red Stockings lose in 2009 postseason? ### CONTEXT CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)", "question": "How many times did Boston Red Stockings lose in 2009 postseason?" }
### QUESTION What are the name and id of the team with the most victories in 2008 postseason? ### CONTEXT CREATE TABLE postseason (team_id_winner VARCHAR, year VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE postseason (team_id_winner VARCHAR, year VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)", "question": "What are the name and id of the team with the most victories in 2008 postseason?" }
### QUESTION What is the number of wins the team Boston Red Stockings got in the postseasons each year in history? ### CONTEXT CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR)", "question": "What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?" }
### QUESTION What is the total number of postseason games that team Boston Red Stockings participated in? ### CONTEXT CREATE TABLE postseason (team_id_winner VARCHAR, team_id_loser VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) ### ANSWER 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')</s>
{ "answer": "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')", "context": "CREATE TABLE postseason (team_id_winner VARCHAR, team_id_loser VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)", "question": "What is the total number of postseason games that team Boston Red Stockings participated in?" }
### QUESTION How many destinations have a weekly frequency and are named AC Express? ### CONTEXT CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR) ### ANSWER SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = "Weekly" AND train_name = "AC Express"</s>
{ "answer": "SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = \"Weekly\" AND train_name = \"AC Express\"", "context": "CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR)", "question": "How many destinations have a weekly frequency and are named AC Express?" }
### QUESTION Which nationality is kitchener rangers (ohl) college/junior/club team? ### CONTEXT CREATE TABLE table_21721351_18 (nationality VARCHAR, college_junior_club_team VARCHAR) ### ANSWER SELECT nationality FROM table_21721351_18 WHERE college_junior_club_team = "Kitchener Rangers (OHL)"</s>
{ "answer": "SELECT nationality FROM table_21721351_18 WHERE college_junior_club_team = \"Kitchener Rangers (OHL)\"", "context": "CREATE TABLE table_21721351_18 (nationality VARCHAR, college_junior_club_team VARCHAR)", "question": "Which nationality is kitchener rangers (ohl) college/junior/club team?" }
### QUESTION How many players were in the team Boston Red Stockings in 2000? ### CONTEXT CREATE TABLE salary (team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE salary (team_id VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)", "question": "How many players were in the team Boston Red Stockings in 2000?" }
### QUESTION What were the Runners-up prior to 1990 when Ivan Lendl was Champion in the Seiko Super Tennis Tournament? ### CONTEXT CREATE TABLE table_name_80 (runners_up VARCHAR, year VARCHAR, champions VARCHAR, name_of_tournament VARCHAR) ### ANSWER SELECT runners_up FROM table_name_80 WHERE champions = "ivan lendl" AND name_of_tournament = "seiko super tennis" AND year < 1990</s>
{ "answer": "SELECT runners_up FROM table_name_80 WHERE champions = \"ivan lendl\" AND name_of_tournament = \"seiko super tennis\" AND year < 1990", "context": "CREATE TABLE table_name_80 (runners_up VARCHAR, year VARCHAR, champions VARCHAR, name_of_tournament VARCHAR)", "question": "What were the Runners-up prior to 1990 when Ivan Lendl was Champion in the Seiko Super Tennis Tournament?" }
### QUESTION What were all the salary values of players in 2010 and 2001? ### CONTEXT CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR) ### ANSWER SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001</s>
{ "answer": "SELECT salary FROM salary WHERE YEAR = 2010 UNION SELECT salary FROM salary WHERE YEAR = 2001", "context": "CREATE TABLE salary (salary VARCHAR, YEAR VARCHAR)", "question": "What were all the salary values of players in 2010 and 2001?" }
### QUESTION How many games were played in park "Columbia Park" in 1907? ### CONTEXT CREATE TABLE park (park_id VARCHAR, park_name VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE park (park_id VARCHAR, park_name VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR)", "question": "How many games were played in park \"Columbia Park\" in 1907?" }
### QUESTION How many maac are there that have 14th as the ncaa and the overall is 20-10? ### CONTEXT CREATE TABLE table_21756039_1 (maac VARCHAR, ncaa_seed VARCHAR, overall VARCHAR) ### ANSWER SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = "14th" AND overall = "20-10"</s>
{ "answer": "SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = \"14th\" AND overall = \"20-10\"", "context": "CREATE TABLE table_21756039_1 (maac VARCHAR, ncaa_seed VARCHAR, overall VARCHAR)", "question": "How many maac are there that have 14th as the ncaa and the overall is 20-10?" }
### QUESTION What is the total home game attendance of team Boston Red Stockings from 2000 to 2010? ### CONTEXT CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (attendance INTEGER, team_id VARCHAR, year VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (attendance INTEGER, team_id VARCHAR, year VARCHAR)", "question": "What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?" }
### QUESTION How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total? ### CONTEXT CREATE TABLE salary (salary INTEGER, player_id VARCHAR, year VARCHAR); CREATE TABLE player (player_id VARCHAR, name_first VARCHAR, name_last VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE salary (salary INTEGER, player_id VARCHAR, year VARCHAR); CREATE TABLE player (player_id VARCHAR, name_first VARCHAR, name_last VARCHAR)", "question": "How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?" }
### QUESTION List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007. ### CONTEXT CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE salary (player_id VARCHAR, team_id VARCHAR, year VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE salary (player_id VARCHAR, team_id VARCHAR, year VARCHAR)", "question": "List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007." }
### QUESTION How many home games did the team Boston Red Stockings play from 1990 to 2000 in total? ### CONTEXT CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year VARCHAR)", "question": "How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?" }
### QUESTION Which team had the least number of attendances in home games in 1980? ### CONTEXT CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR) ### ANSWER 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 LIMIT 1</s>
{ "answer": "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 LIMIT 1", "context": "CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR)", "question": "Which team had the least number of attendances in home games in 1980?" }
### QUESTION How many drivers drove 300 laps at average speed of 103.594? ### CONTEXT CREATE TABLE table_2175858_1 (driver VARCHAR, laps VARCHAR, average_speed__mph_ VARCHAR) ### ANSWER SELECT COUNT(driver) FROM table_2175858_1 WHERE laps = "300" AND average_speed__mph_ = "103.594"</s>
{ "answer": "SELECT COUNT(driver) FROM table_2175858_1 WHERE laps = \"300\" AND average_speed__mph_ = \"103.594\"", "context": "CREATE TABLE table_2175858_1 (driver VARCHAR, laps VARCHAR, average_speed__mph_ VARCHAR)", "question": "How many drivers drove 300 laps at average speed of 103.594?" }
### QUESTION How many miles were driven with the average speed at 116.81? ### CONTEXT CREATE TABLE table_2175858_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR) ### ANSWER SELECT miles__km_ FROM table_2175858_1 WHERE average_speed__mph_ = "116.81"</s>
{ "answer": "SELECT miles__km_ FROM table_2175858_1 WHERE average_speed__mph_ = \"116.81\"", "context": "CREATE TABLE table_2175858_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR)", "question": "How many miles were driven with the average speed at 116.81?" }
### QUESTION Which park had most attendances in 2008? ### CONTEXT CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE park (park_name VARCHAR, park_id VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR, attendance VARCHAR)", "question": "Which park had most attendances in 2008?" }
### QUESTION What was the season number episode directed by John David Coles? ### CONTEXT CREATE TABLE table_21781578_2 (season_no VARCHAR, directed_by VARCHAR) ### ANSWER SELECT season_no FROM table_21781578_2 WHERE directed_by = "John David Coles"</s>
{ "answer": "SELECT season_no FROM table_21781578_2 WHERE directed_by = \"John David Coles\"", "context": "CREATE TABLE table_21781578_2 (season_no VARCHAR, directed_by VARCHAR)", "question": "What was the season number episode directed by John David Coles?" }
### QUESTION What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102? ### CONTEXT CREATE TABLE table_21781578_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR, production_code VARCHAR) ### ANSWER SELECT us_viewers__millions_ FROM table_21781578_2 WHERE directed_by = "Steve Shill" AND production_code = "E2102"</s>
{ "answer": "SELECT us_viewers__millions_ FROM table_21781578_2 WHERE directed_by = \"Steve Shill\" AND production_code = \"E2102\"", "context": "CREATE TABLE table_21781578_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR, production_code VARCHAR)", "question": "What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102?" }
### QUESTION What was the number of season number entries that had US Viewers of 12.30 million? ### CONTEXT CREATE TABLE table_21781578_2 (season_no VARCHAR, us_viewers__millions_ VARCHAR) ### ANSWER SELECT COUNT(season_no) FROM table_21781578_2 WHERE us_viewers__millions_ = "12.30"</s>
{ "answer": "SELECT COUNT(season_no) FROM table_21781578_2 WHERE us_viewers__millions_ = \"12.30\"", "context": "CREATE TABLE table_21781578_2 (season_no VARCHAR, us_viewers__millions_ VARCHAR)", "question": "What was the number of season number entries that had US Viewers of 12.30 million?" }
### QUESTION What are the id and name of the photos for mountains? ### CONTEXT CREATE TABLE photos (mountain_id VARCHAR); CREATE TABLE mountain (id VARCHAR, name VARCHAR, height INTEGER) ### ANSWER SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000</s>
{ "answer": "SELECT T1.id, T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id WHERE T1.height > 4000", "context": "CREATE TABLE photos (mountain_id VARCHAR); CREATE TABLE mountain (id VARCHAR, name VARCHAR, height INTEGER)", "question": "What are the id and name of the photos for mountains?" }
### QUESTION What are the id and name of the mountains that have at least 2 photos? ### CONTEXT CREATE TABLE mountain (id VARCHAR, name VARCHAR); CREATE TABLE photos (mountain_id VARCHAR) ### ANSWER 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</s>
{ "answer": "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", "context": "CREATE TABLE mountain (id VARCHAR, name VARCHAR); CREATE TABLE photos (mountain_id VARCHAR)", "question": "What are the id and name of the mountains that have at least 2 photos?" }
### QUESTION What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'? ### CONTEXT CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR, brand VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR, brand VARCHAR)", "question": "What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?" }
### 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' ### CONTEXT CREATE TABLE mountain (id VARCHAR, range VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE camera_lens (brand VARCHAR, id VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE mountain (id VARCHAR, range VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE camera_lens (brand VARCHAR, id VARCHAR)", "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'" }
### QUESTION Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal? ### CONTEXT CREATE TABLE table_name_96 (delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR) ### ANSWER SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = "fourth runner-up" AND hometown = "makati , rizal"</s>
{ "answer": "SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = \"fourth runner-up\" AND hometown = \"makati , rizal\"", "context": "CREATE TABLE table_name_96 (delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR)", "question": "Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal?" }
### QUESTION Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'. ### CONTEXT CREATE TABLE camera_lens (id VARCHAR, brand VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR, id VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE camera_lens (id VARCHAR, brand VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR, id VARCHAR); CREATE TABLE photos (mountain_id VARCHAR, camera_lens_id VARCHAR); CREATE TABLE mountain (name VARCHAR, prominence VARCHAR)", "question": "Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'." }
### 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. ### CONTEXT CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR) ### ANSWER 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(*)</s>
{ "answer": "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(*)", "context": "CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR)", "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." }
### QUESTION What number was the pick for the position of DT in 1952, after round 1, where the overall was less than 155? ### CONTEXT CREATE TABLE table_name_10 (pick VARCHAR, year VARCHAR, overall VARCHAR, position VARCHAR, round VARCHAR) ### ANSWER SELECT pick FROM table_name_10 WHERE position = "dt" AND round > 1 AND overall < 155 AND year = "1952"</s>
{ "answer": "SELECT pick FROM table_name_10 WHERE position = \"dt\" AND round > 1 AND overall < 155 AND year = \"1952\"", "context": "CREATE TABLE table_name_10 (pick VARCHAR, year VARCHAR, overall VARCHAR, position VARCHAR, round VARCHAR)", "question": "What number was the pick for the position of DT in 1952, after round 1, where the overall was less than 155?" }
### QUESTION What is Tournament, when 2012 is "Grand Slam Tournaments"? ### CONTEXT CREATE TABLE table_name_35 (tournament VARCHAR) ### ANSWER SELECT tournament FROM table_name_35 WHERE 2012 = "grand slam tournaments"</s>
{ "answer": "SELECT tournament FROM table_name_35 WHERE 2012 = \"grand slam tournaments\"", "context": "CREATE TABLE table_name_35 (tournament VARCHAR)", "question": "What is Tournament, when 2012 is \"Grand Slam Tournaments\"?" }
### QUESTION Find the names of the channels that are broadcast in the morning. ### CONTEXT CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR) ### ANSWER SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'</s>
{ "answer": "SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning'", "context": "CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR)", "question": "Find the names of the channels that are broadcast in the morning." }
### QUESTION what are the names of the channels that broadcast in both morning and night? ### CONTEXT CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR) ### ANSWER 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'</s>
{ "answer": "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'", "context": "CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR)", "question": "what are the names of the channels that broadcast in both morning and night?" }
### QUESTION find the program owners that have some programs in both morning and night time. ### CONTEXT CREATE TABLE broadcast (program_id VARCHAR, Time_of_day VARCHAR); CREATE TABLE program (owner VARCHAR, program_id VARCHAR) ### ANSWER 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"</s>
{ "answer": "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\"", "context": "CREATE TABLE broadcast (program_id VARCHAR, Time_of_day VARCHAR); CREATE TABLE program (owner VARCHAR, program_id VARCHAR)", "question": "find the program owners that have some programs in both morning and night time." }
### QUESTION How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2? ### CONTEXT CREATE TABLE table_name_43 (losses VARCHAR, byes VARCHAR, wins VARCHAR, golden_rivers VARCHAR) ### ANSWER SELECT COUNT(losses) FROM table_name_43 WHERE wins < 12 AND golden_rivers = "ultima" AND byes > 2</s>
{ "answer": "SELECT COUNT(losses) FROM table_name_43 WHERE wins < 12 AND golden_rivers = \"ultima\" AND byes > 2", "context": "CREATE TABLE table_name_43 (losses VARCHAR, byes VARCHAR, wins VARCHAR, golden_rivers VARCHAR)", "question": "How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2?" }
### QUESTION find the names of programs whose origin is not in Beijing. ### CONTEXT CREATE TABLE program (name VARCHAR, origin VARCHAR) ### ANSWER SELECT name FROM program WHERE origin <> 'Beijing'</s>
{ "answer": "SELECT name FROM program WHERE origin <> 'Beijing'", "context": "CREATE TABLE program (name VARCHAR, origin VARCHAR)", "question": "find the names of programs whose origin is not in Beijing." }
### QUESTION What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver? ### CONTEXT CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR, car_s_ VARCHAR, listed_owner_s_ VARCHAR) ### ANSWER SELECT MIN(_number) FROM table_2182170_1 WHERE car_s_ = "Chevrolet Monte Carlo" AND listed_owner_s_ = "Teresa Earnhardt" AND driver_s_ = "Paul Menard"</s>
{ "answer": "SELECT MIN(_number) FROM table_2182170_1 WHERE car_s_ = \"Chevrolet Monte Carlo\" AND listed_owner_s_ = \"Teresa Earnhardt\" AND driver_s_ = \"Paul Menard\"", "context": "CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR, car_s_ VARCHAR, listed_owner_s_ VARCHAR)", "question": "What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?" }
### QUESTION Find the name of the program that is broadcast most frequently. ### CONTEXT CREATE TABLE program (name VARCHAR, program_id VARCHAR); CREATE TABLE broadcast (program_id VARCHAR) ### ANSWER SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id GROUP BY t2.program_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE program (name VARCHAR, program_id VARCHAR); CREATE TABLE broadcast (program_id VARCHAR)", "question": "Find the name of the program that is broadcast most frequently." }
### QUESTION Name the Result F – A that has a League position of 1st on 4 january 1994? ### CONTEXT CREATE TABLE table_name_87 (result_f___a VARCHAR, league_position VARCHAR, date VARCHAR) ### ANSWER SELECT result_f___a FROM table_name_87 WHERE league_position = "1st" AND date = "4 january 1994"</s>
{ "answer": "SELECT result_f___a FROM table_name_87 WHERE league_position = \"1st\" AND date = \"4 january 1994\"", "context": "CREATE TABLE table_name_87 (result_f___a VARCHAR, league_position VARCHAR, date VARCHAR)", "question": "Name the Result F – A that has a League position of 1st on 4 january 1994?" }
### QUESTION What is the transcription for the English word March? ### CONTEXT CREATE TABLE table_name_11 (transcription VARCHAR, english_name VARCHAR) ### ANSWER SELECT transcription FROM table_name_11 WHERE english_name = "march"</s>
{ "answer": "SELECT transcription FROM table_name_11 WHERE english_name = \"march\"", "context": "CREATE TABLE table_name_11 (transcription VARCHAR, english_name VARCHAR)", "question": "What is the transcription for the English word March?" }
### QUESTION What is the abbreviation for the sign of Capricorn? ### CONTEXT CREATE TABLE table_name_22 (abbr VARCHAR, zodiac_sign VARCHAR) ### ANSWER SELECT abbr FROM table_name_22 WHERE zodiac_sign = "capricorn"</s>
{ "answer": "SELECT abbr FROM table_name_22 WHERE zodiac_sign = \"capricorn\"", "context": "CREATE TABLE table_name_22 (abbr VARCHAR, zodiac_sign VARCHAR)", "question": "What is the abbreviation for the sign of Capricorn?" }
### QUESTION How many different amounts of winnings were there for the year when the team had an average finish of 17.4? ### CONTEXT CREATE TABLE table_2182562_2 (winnings VARCHAR, avg_finish VARCHAR) ### ANSWER SELECT COUNT(winnings) FROM table_2182562_2 WHERE avg_finish = "17.4"</s>
{ "answer": "SELECT COUNT(winnings) FROM table_2182562_2 WHERE avg_finish = \"17.4\"", "context": "CREATE TABLE table_2182562_2 (winnings VARCHAR, avg_finish VARCHAR)", "question": "How many different amounts of winnings were there for the year when the team had an average finish of 17.4?" }
### QUESTION What round had a result of 6–7 (6–8) , 1–6? ### CONTEXT CREATE TABLE table_name_83 (round VARCHAR, result VARCHAR) ### ANSWER SELECT round FROM table_name_83 WHERE result = "6–7 (6–8) , 1–6"</s>
{ "answer": "SELECT round FROM table_name_83 WHERE result = \"6–7 (6–8) , 1–6\"", "context": "CREATE TABLE table_name_83 (round VARCHAR, result VARCHAR)", "question": "What round had a result of 6–7 (6–8) , 1–6?" }
### QUESTION What are the dates of the latest logon of the students with family name "Jaskolski" or "Langosh"? ### CONTEXT CREATE TABLE Students (date_of_latest_logon VARCHAR, family_name VARCHAR) ### ANSWER SELECT date_of_latest_logon FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh"</s>
{ "answer": "SELECT date_of_latest_logon FROM Students WHERE family_name = \"Jaskolski\" OR family_name = \"Langosh\"", "context": "CREATE TABLE Students (date_of_latest_logon VARCHAR, family_name VARCHAR)", "question": "What are the dates of the latest logon of the students with family name \"Jaskolski\" or \"Langosh\"?" }
### QUESTION What year did the winnings equal $281,945? ### CONTEXT CREATE TABLE table_2182562_1 (year VARCHAR, winnings VARCHAR) ### ANSWER SELECT year FROM table_2182562_1 WHERE winnings = "$281,945"</s>
{ "answer": "SELECT year FROM table_2182562_1 WHERE winnings = \"$281,945\"", "context": "CREATE TABLE table_2182562_1 (year VARCHAR, winnings VARCHAR)", "question": "What year did the winnings equal $281,945?" }
### QUESTION What is Country, when Place is "T8", and when Score is "70-67=137"? ### CONTEXT CREATE TABLE table_name_98 (country VARCHAR, place VARCHAR, score VARCHAR) ### ANSWER SELECT country FROM table_name_98 WHERE place = "t8" AND score = 70 - 67 = 137</s>
{ "answer": "SELECT country FROM table_name_98 WHERE place = \"t8\" AND score = 70 - 67 = 137", "context": "CREATE TABLE table_name_98 (country VARCHAR, place VARCHAR, score VARCHAR)", "question": "What is Country, when Place is \"T8\", and when Score is \"70-67=137\"?" }
### QUESTION Find the addresses of the course authors who teach the course with name "operating system" or "data structure". ### CONTEXT CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR) ### ANSWER SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = "operating system" OR T2.course_name = "data structure"</s>
{ "answer": "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = \"operating system\" OR T2.course_name = \"data structure\"", "context": "CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)", "question": "Find the addresses of the course authors who teach the course with name \"operating system\" or \"data structure\"." }
### QUESTION Find the personal name, family name, and author ID of the course author that teaches the most courses. ### CONTEXT CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR, family_name VARCHAR, author_id VARCHAR) ### ANSWER SELECT T1.personal_name, T1.family_name, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.personal_name, T1.family_name, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (personal_name VARCHAR, family_name VARCHAR, author_id VARCHAR)", "question": "Find the personal name, family name, and author ID of the course author that teaches the most courses." }
### QUESTION Find the addresses and author IDs of the course authors that teach at least two courses. ### CONTEXT CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR) ### ANSWER SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)", "question": "Find the addresses and author IDs of the course authors that teach at least two courses." }
### QUESTION What is the to par of Philip Parkin? ### CONTEXT CREATE TABLE table_name_64 (to_par VARCHAR, player VARCHAR) ### ANSWER SELECT to_par FROM table_name_64 WHERE player = "philip parkin"</s>
{ "answer": "SELECT to_par FROM table_name_64 WHERE player = \"philip parkin\"", "context": "CREATE TABLE table_name_64 (to_par VARCHAR, player VARCHAR)", "question": "What is the to par of Philip Parkin?" }