text
stringlengths
150
1.06k
source
dict
### QUESTION Which languages are spoken by only one country in republic governments? ### CONTEXT CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Code VARCHAR, GovernmentForm VARCHAR) ### ANSWER SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = "Republic" GROUP BY T2.Language HAVING COUNT(*) = 1</s>
{ "answer": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.GovernmentForm = \"Republic\" GROUP BY T2.Language HAVING COUNT(*) = 1", "context": "CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Code VARCHAR, GovernmentForm VARCHAR)", "question": "Which languages are spoken by only one country in republic governments?" }
### QUESTION What is average life expectancy in the countries where English is not the official language? ### CONTEXT CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (LifeExpectancy INTEGER, Name VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR) ### ANSWER SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T")</s>
{ "answer": "SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", "context": "CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (LifeExpectancy INTEGER, Name VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)", "question": "What is average life expectancy in the countries where English is not the official language?" }
### QUESTION What is the total number of people living in the nations that do not use English? ### CONTEXT CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR); CREATE TABLE country (Population INTEGER, Name VARCHAR) ### ANSWER SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English")</s>
{ "answer": "SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\")", "context": "CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR); CREATE TABLE country (Population INTEGER, Name VARCHAR)", "question": "What is the total number of people living in the nations that do not use English?" }
### QUESTION When france had a rank larger than 2, what was their time? ### CONTEXT CREATE TABLE table_name_94 (time VARCHAR, rank VARCHAR, country VARCHAR) ### ANSWER SELECT time FROM table_name_94 WHERE rank > 2 AND country = "france"</s>
{ "answer": "SELECT time FROM table_name_94 WHERE rank > 2 AND country = \"france\"", "context": "CREATE TABLE table_name_94 (time VARCHAR, rank VARCHAR, country VARCHAR)", "question": "When france had a rank larger than 2, what was their time?" }
### QUESTION What is the production code for the episode written by J. H. Wyman & Jeff Pinkner? ### CONTEXT CREATE TABLE table_24649082_1 (production_code VARCHAR, written_by VARCHAR) ### ANSWER SELECT production_code FROM table_24649082_1 WHERE written_by = "J. H. Wyman & Jeff Pinkner"</s>
{ "answer": "SELECT production_code FROM table_24649082_1 WHERE written_by = \"J. H. Wyman & Jeff Pinkner\"", "context": "CREATE TABLE table_24649082_1 (production_code VARCHAR, written_by VARCHAR)", "question": "What is the production code for the episode written by J. H. Wyman & Jeff Pinkner?" }
### QUESTION What is the total number of unique official languages spoken in the countries that are founded before 1930? ### CONTEXT CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR) ### ANSWER SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = "T"</s>
{ "answer": "SELECT COUNT(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE IndepYear < 1930 AND T2.IsOfficial = \"T\"", "context": "CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR)", "question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?" }
### QUESTION What are the African countries that have a population less than any country in Asia? ### CONTEXT CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) ### ANSWER SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MAX(population) FROM country WHERE Continent = "Asia")</s>
{ "answer": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT MAX(population) FROM country WHERE Continent = \"Asia\")", "context": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "question": "What are the African countries that have a population less than any country in Asia?" }
### QUESTION Which country had a rank smaller than 7 and a time of 1:43.189? ### CONTEXT CREATE TABLE table_name_81 (country VARCHAR, rank VARCHAR, time VARCHAR) ### ANSWER SELECT country FROM table_name_81 WHERE rank < 7 AND time = "1:43.189"</s>
{ "answer": "SELECT country FROM table_name_81 WHERE rank < 7 AND time = \"1:43.189\"", "context": "CREATE TABLE table_name_81 (country VARCHAR, rank VARCHAR, time VARCHAR)", "question": "Which country had a rank smaller than 7 and a time of 1:43.189?" }
### QUESTION Which Asian countries have a population that is larger than any country in Africa? ### CONTEXT CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) ### ANSWER SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT MAX(population) FROM country WHERE Continent = "Africa")</s>
{ "answer": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT MAX(population) FROM country WHERE Continent = \"Africa\")", "context": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "question": "Which Asian countries have a population that is larger than any country in Africa?" }
### QUESTION Which African countries have a smaller population than that of any country in Asia? ### CONTEXT CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) ### ANSWER SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MIN(population) FROM country WHERE Continent = "Asia")</s>
{ "answer": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT MIN(population) FROM country WHERE Continent = \"Asia\")", "context": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "question": "Which African countries have a smaller population than that of any country in Asia?" }
### QUESTION What are the countries that have greater surface area than any country in Europe? ### CONTEXT CREATE TABLE country (Name VARCHAR, SurfaceArea INTEGER, Continent VARCHAR) ### ANSWER SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = "Europe")</s>
{ "answer": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = \"Europe\")", "context": "CREATE TABLE country (Name VARCHAR, SurfaceArea INTEGER, Continent VARCHAR)", "question": "What are the countries that have greater surface area than any country in Europe?" }
### QUESTION What is the most recent episode number written by Matthew Pitts? ### CONTEXT CREATE TABLE table_24649082_1 (_number INTEGER, written_by VARCHAR) ### ANSWER SELECT MAX(_number) FROM table_24649082_1 WHERE written_by = "Matthew Pitts"</s>
{ "answer": "SELECT MAX(_number) FROM table_24649082_1 WHERE written_by = \"Matthew Pitts\"", "context": "CREATE TABLE table_24649082_1 (_number INTEGER, written_by VARCHAR)", "question": "What is the most recent episode number written by Matthew Pitts?" }
### QUESTION What is the official language spoken in the country whose head of state is Beatrix? ### CONTEXT CREATE TABLE country (Code VARCHAR, HeadOfState VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR) ### ANSWER SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = "Beatrix" AND T2.IsOfficial = "T"</s>
{ "answer": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", "context": "CREATE TABLE country (Code VARCHAR, HeadOfState VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR)", "question": "What is the official language spoken in the country whose head of state is Beatrix?" }
### QUESTION Which cities are in European countries where English is not the official language? ### CONTEXT CREATE TABLE city (Name VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, IsOfficial VARCHAR, Language VARCHAR); CREATE TABLE country (Code VARCHAR, Continent VARCHAR, Name VARCHAR) ### ANSWER SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')</s>
{ "answer": "SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode = T1.Code WHERE T1.Continent = 'Europe' AND NOT T1.Name IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code = T4.CountryCode WHERE T4.IsOfficial = 'T' AND T4.Language = 'English')", "context": "CREATE TABLE city (Name VARCHAR, CountryCode VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, IsOfficial VARCHAR, Language VARCHAR); CREATE TABLE country (Code VARCHAR, Continent VARCHAR, Name VARCHAR)", "question": "Which cities are in European countries where English is not the official language?" }
### QUESTION Which unique cities are in Asian countries where Chinese is the official language ? ### CONTEXT CREATE TABLE city (name VARCHAR, countrycode VARCHAR); CREATE TABLE countrylanguage (countrycode VARCHAR, isofficial VARCHAR, language VARCHAR); CREATE TABLE country (code VARCHAR, continent VARCHAR) ### ANSWER SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = "asia"</s>
{ "answer": "SELECT DISTINCT t3.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode JOIN city AS t3 ON t1.code = t3.countrycode WHERE t2.isofficial = 't' AND t2.language = 'chinese' AND t1.continent = \"asia\"", "context": "CREATE TABLE city (name VARCHAR, countrycode VARCHAR); CREATE TABLE countrylanguage (countrycode VARCHAR, isofficial VARCHAR, language VARCHAR); CREATE TABLE country (code VARCHAR, continent VARCHAR)", "question": "Which unique cities are in Asian countries where Chinese is the official language ?" }
### QUESTION Return the different names of cities that are in Asia and for which Chinese is the official language. ### CONTEXT CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, IsOfficial VARCHAR, Language VARCHAR); CREATE TABLE city (Name VARCHAR, CountryCode VARCHAR) ### ANSWER SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = "Asia"</s>
{ "answer": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = \"Asia\"", "context": "CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, IsOfficial VARCHAR, Language VARCHAR); CREATE TABLE city (Name VARCHAR, CountryCode VARCHAR)", "question": "Return the different names of cities that are in Asia and for which Chinese is the official language." }
### QUESTION What are the codes of the countries that do not speak English and whose government forms are not Republic? ### CONTEXT CREATE TABLE countrylanguage (Code VARCHAR, CountryCode VARCHAR, GovernmentForm VARCHAR, LANGUAGE VARCHAR); CREATE TABLE country (Code VARCHAR, CountryCode VARCHAR, GovernmentForm VARCHAR, LANGUAGE VARCHAR) ### ANSWER SELECT Code FROM country WHERE GovernmentForm <> "Republic" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = "English"</s>
{ "answer": "SELECT Code FROM country WHERE GovernmentForm <> \"Republic\" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE = \"English\"", "context": "CREATE TABLE countrylanguage (Code VARCHAR, CountryCode VARCHAR, GovernmentForm VARCHAR, LANGUAGE VARCHAR); CREATE TABLE country (Code VARCHAR, CountryCode VARCHAR, GovernmentForm VARCHAR, LANGUAGE VARCHAR)", "question": "What are the codes of the countries that do not speak English and whose government forms are not Republic?" }
### QUESTION What are the Asian countries which have a population larger than that of any country in Africa? ### CONTEXT CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) ### ANSWER SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT MIN(population) FROM country WHERE Continent = "Africa")</s>
{ "answer": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT MIN(population) FROM country WHERE Continent = \"Africa\")", "context": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "question": "What are the Asian countries which have a population larger than that of any country in Africa?" }
### QUESTION Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages. ### CONTEXT CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) ### ANSWER SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2</s>
{ "answer": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", "context": "CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)", "question": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages." }
### QUESTION Find the government form name and total population for each government form whose average life expectancy is longer than 72. ### CONTEXT CREATE TABLE country (GovernmentForm VARCHAR, Population INTEGER, LifeExpectancy INTEGER) ### ANSWER SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72</s>
{ "answer": "SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72", "context": "CREATE TABLE country (GovernmentForm VARCHAR, Population INTEGER, LifeExpectancy INTEGER)", "question": "Find the government form name and total population for each government form whose average life expectancy is longer than 72." }
### QUESTION Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7? ### CONTEXT CREATE TABLE table_name_49 (athlete VARCHAR, nationality VARCHAR, time VARCHAR, lane VARCHAR) ### ANSWER SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = "dominica"</s>
{ "answer": "SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = \"dominica\"", "context": "CREATE TABLE table_name_49 (athlete VARCHAR, nationality VARCHAR, time VARCHAR, lane VARCHAR)", "question": "Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7?" }
### QUESTION What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total? ### CONTEXT CREATE TABLE table_name_76 (marcin_dołęga___pol__ VARCHAR, world_record VARCHAR, snatch VARCHAR) ### ANSWER SELECT marcin_dołęga___pol__ FROM table_name_76 WHERE world_record = "olympic record" AND snatch = "total"</s>
{ "answer": "SELECT marcin_dołęga___pol__ FROM table_name_76 WHERE world_record = \"olympic record\" AND snatch = \"total\"", "context": "CREATE TABLE table_name_76 (marcin_dołęga___pol__ VARCHAR, world_record VARCHAR, snatch VARCHAR)", "question": "What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?" }
### QUESTION What's the date in the United Kingdom having a catalog of reveal50cd/lp? ### CONTEXT CREATE TABLE table_name_3 (date VARCHAR, catalog VARCHAR, region VARCHAR) ### ANSWER SELECT date FROM table_name_3 WHERE catalog = "reveal50cd/lp" AND region = "united kingdom"</s>
{ "answer": "SELECT date FROM table_name_3 WHERE catalog = \"reveal50cd/lp\" AND region = \"united kingdom\"", "context": "CREATE TABLE table_name_3 (date VARCHAR, catalog VARCHAR, region VARCHAR)", "question": "What's the date in the United Kingdom having a catalog of reveal50cd/lp?" }
### QUESTION Which team has an up/down of + 3479? ### CONTEXT CREATE TABLE table_2472711_31 (team VARCHAR, up_down VARCHAR) ### ANSWER SELECT team FROM table_2472711_31 WHERE up_down = "+ 3479"</s>
{ "answer": "SELECT team FROM table_2472711_31 WHERE up_down = \"+ 3479\"", "context": "CREATE TABLE table_2472711_31 (team VARCHAR, up_down VARCHAR)", "question": "Which team has an up/down of + 3479?" }
### QUESTION What are the codes of countries where Spanish is spoken by the largest percentage of people? ### CONTEXT CREATE TABLE countrylanguage (CountryCode VARCHAR, Percentage INTEGER, LANGUAGE VARCHAR) ### ANSWER SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = "Spanish" GROUP BY CountryCode</s>
{ "answer": "SELECT CountryCode, MAX(Percentage) FROM countrylanguage WHERE LANGUAGE = \"Spanish\" GROUP BY CountryCode", "context": "CREATE TABLE countrylanguage (CountryCode VARCHAR, Percentage INTEGER, LANGUAGE VARCHAR)", "question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?" }
### QUESTION How many episodes had celebrity guest stars Frank Skinner and Lee Mack? ### CONTEXT CREATE TABLE table_24725951_1 (episode VARCHAR, celebrities VARCHAR) ### ANSWER SELECT COUNT(episode) FROM table_24725951_1 WHERE celebrities = "Frank Skinner and Lee Mack"</s>
{ "answer": "SELECT COUNT(episode) FROM table_24725951_1 WHERE celebrities = \"Frank Skinner and Lee Mack\"", "context": "CREATE TABLE table_24725951_1 (episode VARCHAR, celebrities VARCHAR)", "question": "How many episodes had celebrity guest stars Frank Skinner and Lee Mack?" }
### QUESTION What are the names of conductors whose nationalities are not "USA"? ### CONTEXT CREATE TABLE conductor (Name VARCHAR, Nationality VARCHAR) ### ANSWER SELECT Name FROM conductor WHERE Nationality <> 'USA'</s>
{ "answer": "SELECT Name FROM conductor WHERE Nationality <> 'USA'", "context": "CREATE TABLE conductor (Name VARCHAR, Nationality VARCHAR)", "question": "What are the names of conductors whose nationalities are not \"USA\"?" }
### QUESTION What are the record companies of orchestras in descending order of years in which they were founded? ### CONTEXT CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded VARCHAR) ### ANSWER SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC</s>
{ "answer": "SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC", "context": "CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded VARCHAR)", "question": "What are the record companies of orchestras in descending order of years in which they were founded?" }
### QUESTION List the director and producer when Nick Hewer and Saira Khan were starring. ### CONTEXT CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR) ### ANSWER SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = "Nick Hewer and Saira Khan"</s>
{ "answer": "SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = \"Nick Hewer and Saira Khan\"", "context": "CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR)", "question": "List the director and producer when Nick Hewer and Saira Khan were starring." }
### QUESTION List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin. ### CONTEXT CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR) ### ANSWER SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = "Bill Turnbull and Louise Minchin"</s>
{ "answer": "SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = \"Bill Turnbull and Louise Minchin\"", "context": "CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR)", "question": "List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin." }
### QUESTION How many different nationalities do conductors have? ### CONTEXT CREATE TABLE conductor (Nationality VARCHAR) ### ANSWER SELECT COUNT(DISTINCT Nationality) FROM conductor</s>
{ "answer": "SELECT COUNT(DISTINCT Nationality) FROM conductor", "context": "CREATE TABLE conductor (Nationality VARCHAR)", "question": "How many different nationalities do conductors have?" }
### QUESTION Show the names of conductors and the orchestras they have conducted. ### CONTEXT CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR); CREATE TABLE orchestra (Orchestra VARCHAR, Conductor_ID VARCHAR) ### ANSWER SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID</s>
{ "answer": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID", "context": "CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR); CREATE TABLE orchestra (Orchestra VARCHAR, Conductor_ID VARCHAR)", "question": "Show the names of conductors and the orchestras they have conducted." }
### QUESTION Show the names of conductors that have conducted more than one orchestras. ### CONTEXT CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR) ### ANSWER SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1</s>
{ "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*) > 1", "context": "CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)", "question": "Show the names of conductors that have conducted more than one orchestras." }
### QUESTION What's the name of the competition where the nationality is Brazil and the voting percentage is n/a? ### CONTEXT CREATE TABLE table_24765815_2 (competition VARCHAR, vote_percentage VARCHAR, nationality VARCHAR) ### ANSWER SELECT competition FROM table_24765815_2 WHERE vote_percentage = "N/A" AND nationality = "Brazil"</s>
{ "answer": "SELECT competition FROM table_24765815_2 WHERE vote_percentage = \"N/A\" AND nationality = \"Brazil\"", "context": "CREATE TABLE table_24765815_2 (competition VARCHAR, vote_percentage VARCHAR, nationality VARCHAR)", "question": "What's the name of the competition where the nationality is Brazil and the voting percentage is n/a?" }
### QUESTION Please show the name of the conductor that has conducted orchestras founded after 2008. ### CONTEXT CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR) ### ANSWER SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008</s>
{ "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008", "context": "CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)", "question": "Please show the name of the conductor that has conducted orchestras founded after 2008." }
### QUESTION Show the name of the conductor that has conducted the most number of orchestras. ### CONTEXT CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR) ### ANSWER SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)", "question": "Show the name of the conductor that has conducted the most number of orchestras." }
### QUESTION Please show the record formats of orchestras in ascending order of count. ### CONTEXT CREATE TABLE orchestra (Major_Record_Format VARCHAR) ### ANSWER SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*)</s>
{ "answer": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*)", "context": "CREATE TABLE orchestra (Major_Record_Format VARCHAR)", "question": "Please show the record formats of orchestras in ascending order of count." }
### QUESTION How many votes did Jeannemarie Devolites Davis get in 1995-Special? ### CONTEXT CREATE TABLE table_name_90 (votes VARCHAR, opponent VARCHAR, year VARCHAR) ### ANSWER SELECT votes FROM table_name_90 WHERE opponent = "jeannemarie devolites davis" AND year = "1995-special"</s>
{ "answer": "SELECT votes FROM table_name_90 WHERE opponent = \"jeannemarie devolites davis\" AND year = \"1995-special\"", "context": "CREATE TABLE table_name_90 (votes VARCHAR, opponent VARCHAR, year VARCHAR)", "question": "How many votes did Jeannemarie Devolites Davis get in 1995-Special?" }
### QUESTION Show the record companies shared by orchestras founded before 2003 and after 2003. ### CONTEXT CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded INTEGER) ### ANSWER SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003</s>
{ "answer": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003", "context": "CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded INTEGER)", "question": "Show the record companies shared by orchestras founded before 2003 and after 2003." }
### QUESTION What class had a Championship Test event with a 62.516 result? ### CONTEXT CREATE TABLE table_name_66 (class VARCHAR, event VARCHAR, result VARCHAR) ### ANSWER SELECT class FROM table_name_66 WHERE event = "championship test" AND result = "62.516"</s>
{ "answer": "SELECT class FROM table_name_66 WHERE event = \"championship test\" AND result = \"62.516\"", "context": "CREATE TABLE table_name_66 (class VARCHAR, event VARCHAR, result VARCHAR)", "question": "What class had a Championship Test event with a 62.516 result?" }
### QUESTION How many figures are given for the New Democratic for the polling range May 11–31, 2010? ### CONTEXT CREATE TABLE table_24778847_2 (new_democratic VARCHAR, date_of_polling VARCHAR) ### ANSWER SELECT COUNT(new_democratic) FROM table_24778847_2 WHERE date_of_polling = "May 11–31, 2010"</s>
{ "answer": "SELECT COUNT(new_democratic) FROM table_24778847_2 WHERE date_of_polling = \"May 11–31, 2010\"", "context": "CREATE TABLE table_24778847_2 (new_democratic VARCHAR, date_of_polling VARCHAR)", "question": "How many figures are given for the New Democratic for the polling range May 11–31, 2010?" }
### QUESTION What format is the link for the polling data for February 10–28, 2011? ### CONTEXT CREATE TABLE table_24778847_2 (link VARCHAR, date_of_polling VARCHAR) ### ANSWER SELECT link FROM table_24778847_2 WHERE date_of_polling = "February 10–28, 2011"</s>
{ "answer": "SELECT link FROM table_24778847_2 WHERE date_of_polling = \"February 10–28, 2011\"", "context": "CREATE TABLE table_24778847_2 (link VARCHAR, date_of_polling VARCHAR)", "question": "What format is the link for the polling data for February 10–28, 2011?" }
### QUESTION What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000? ### CONTEXT CREATE TABLE table_name_20 (displacement VARCHAR, model VARCHAR, fuel_system VARCHAR, power VARCHAR) ### ANSWER SELECT displacement FROM table_name_20 WHERE fuel_system = "carburettor" AND power = "ps (kw; hp)" AND model = "2000"</s>
{ "answer": "SELECT displacement FROM table_name_20 WHERE fuel_system = \"carburettor\" AND power = \"ps (kw; hp)\" AND model = \"2000\"", "context": "CREATE TABLE table_name_20 (displacement VARCHAR, model VARCHAR, fuel_system VARCHAR, power VARCHAR)", "question": "What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000?" }
### QUESTION Show the number of high schoolers for each grade. ### CONTEXT CREATE TABLE Highschooler (grade VARCHAR) ### ANSWER SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade</s>
{ "answer": "SELECT grade, COUNT(*) FROM Highschooler GROUP BY grade", "context": "CREATE TABLE Highschooler (grade VARCHAR)", "question": "Show the number of high schoolers for each grade." }
### QUESTION What was the result of the December 15, 2002 game? ### CONTEXT CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR) ### ANSWER SELECT result FROM table_name_66 WHERE date = "december 15, 2002"</s>
{ "answer": "SELECT result FROM table_name_66 WHERE date = \"december 15, 2002\"", "context": "CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)", "question": "What was the result of the December 15, 2002 game?" }
### QUESTION How many dates originally aired episodes located in Philadelphia, pennsylvania? ### CONTEXT CREATE TABLE table_24798489_2 (original_airdate VARCHAR, location VARCHAR) ### ANSWER SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = "Philadelphia, Pennsylvania"</s>
{ "answer": "SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = \"Philadelphia, Pennsylvania\"", "context": "CREATE TABLE table_24798489_2 (original_airdate VARCHAR, location VARCHAR)", "question": "How many dates originally aired episodes located in Philadelphia, pennsylvania?" }
### QUESTION How many original air dates were there for episode 22? ### CONTEXT CREATE TABLE table_24798489_2 (original_airdate VARCHAR, episode_number VARCHAR) ### ANSWER SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE episode_number = 22</s>
{ "answer": "SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE episode_number = 22", "context": "CREATE TABLE table_24798489_2 (original_airdate VARCHAR, episode_number VARCHAR)", "question": "How many original air dates were there for episode 22?" }
### QUESTION Show the names of high schoolers who have at least 3 friends. ### CONTEXT CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR) ### ANSWER SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 3</s>
{ "answer": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 3", "context": "CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR)", "question": "Show the names of high schoolers who have at least 3 friends." }
### QUESTION Show the names of all of the high schooler Kyle's friends. ### CONTEXT CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, friend_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR) ### ANSWER SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle"</s>
{ "answer": "SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = \"Kyle\"", "context": "CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, friend_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)", "question": "Show the names of all of the high schooler Kyle's friends." }
### QUESTION On what date did the manager for PSIS Semarang take over for the manager that was sacked? ### CONTEXT CREATE TABLE table_name_54 (date_of_replacement VARCHAR, reason_of_departure VARCHAR, team VARCHAR) ### ANSWER SELECT date_of_replacement FROM table_name_54 WHERE reason_of_departure = "sacked" AND team = "psis semarang"</s>
{ "answer": "SELECT date_of_replacement FROM table_name_54 WHERE reason_of_departure = \"sacked\" AND team = \"psis semarang\"", "context": "CREATE TABLE table_name_54 (date_of_replacement VARCHAR, reason_of_departure VARCHAR, team VARCHAR)", "question": "On what date did the manager for PSIS Semarang take over for the manager that was sacked?" }
### QUESTION How many friends does the high school student Kyle have? ### CONTEXT CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = "Kyle"</s>
{ "answer": "SELECT COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\"", "context": "CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)", "question": "How many friends does the high school student Kyle have?" }
### QUESTION Show names of all high school students who do not have any friends. ### CONTEXT CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Highschooler (name VARCHAR); CREATE TABLE Friend (student_id VARCHAR) ### ANSWER SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id</s>
{ "answer": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id", "context": "CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Highschooler (name VARCHAR); CREATE TABLE Friend (student_id VARCHAR)", "question": "Show names of all high school students who do not have any friends." }
### QUESTION Show name of all students who have some friends and also are liked by someone else. ### CONTEXT CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Likes (student_id VARCHAR, liked_id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, liked_id VARCHAR) ### ANSWER SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id</s>
{ "answer": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id", "context": "CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Likes (student_id VARCHAR, liked_id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, liked_id VARCHAR)", "question": "Show name of all students who have some friends and also are liked by someone else." }
### QUESTION What is the assists total number if the minutes is 1? ### CONTEXT CREATE TABLE table_24807406_1 (assists VARCHAR, minutes VARCHAR) ### ANSWER SELECT COUNT(assists) FROM table_24807406_1 WHERE minutes = 1</s>
{ "answer": "SELECT COUNT(assists) FROM table_24807406_1 WHERE minutes = 1", "context": "CREATE TABLE table_24807406_1 (assists VARCHAR, minutes VARCHAR)", "question": "What is the assists total number if the minutes is 1?" }
### QUESTION What is the name of the high schooler who has the greatest number of likes? ### CONTEXT CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR) ### ANSWER SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)", "question": "What is the name of the high schooler who has the greatest number of likes?" }
### QUESTION Show the names of students who have at least 2 likes. ### CONTEXT CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR) ### ANSWER SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)", "question": "Show the names of students who have at least 2 likes." }
### QUESTION What is the number of career caps for a full back, when tour Apps is smaller than 29? ### CONTEXT CREATE TABLE table_name_78 (career_caps VARCHAR, position VARCHAR, tour_apps VARCHAR) ### ANSWER SELECT COUNT(career_caps) FROM table_name_78 WHERE position = "full back" AND tour_apps < 29</s>
{ "answer": "SELECT COUNT(career_caps) FROM table_name_78 WHERE position = \"full back\" AND tour_apps < 29", "context": "CREATE TABLE table_name_78 (career_caps VARCHAR, position VARCHAR, tour_apps VARCHAR)", "question": "What is the number of career caps for a full back, when tour Apps is smaller than 29?" }
### QUESTION What is the career caps for half-back, when tests is more than 3? ### CONTEXT CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR) ### ANSWER SELECT career_caps FROM table_name_73 WHERE position = "half-back" AND tests > 3</s>
{ "answer": "SELECT career_caps FROM table_name_73 WHERE position = \"half-back\" AND tests > 3", "context": "CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR)", "question": "What is the career caps for half-back, when tests is more than 3?" }
### QUESTION Show the names of students who have a grade higher than 5 and have at least 2 friends. ### CONTEXT CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR, grade INTEGER) ### ANSWER SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR, grade INTEGER)", "question": "Show the names of students who have a grade higher than 5 and have at least 2 friends." }
### QUESTION Find the minimum grade of students who have no friends. ### CONTEXT CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR) ### ANSWER SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)</s>
{ "answer": "SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)", "context": "CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR)", "question": "Find the minimum grade of students who have no friends." }
### QUESTION What is the average age of the dogs who have gone through any treatments? ### CONTEXT CREATE TABLE Dogs (age INTEGER, dog_id VARCHAR); CREATE TABLE Treatments (age INTEGER, dog_id VARCHAR) ### ANSWER SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)</s>
{ "answer": "SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)", "context": "CREATE TABLE Dogs (age INTEGER, dog_id VARCHAR); CREATE TABLE Treatments (age INTEGER, dog_id VARCHAR)", "question": "What is the average age of the dogs who have gone through any treatments?" }
### QUESTION Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone. ### CONTEXT CREATE TABLE Treatments (professional_id VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR, state VARCHAR) ### ANSWER SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2</s>
{ "answer": "SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 2", "context": "CREATE TABLE Treatments (professional_id VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR, state VARCHAR)", "question": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone." }
### QUESTION Which professional did not operate any treatment on dogs? List the professional's id, role and email. ### CONTEXT CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, email_address VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR) ### ANSWER SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id</s>
{ "answer": "SELECT professional_id, role_code, email_address FROM Professionals EXCEPT SELECT T1.professional_id, T1.role_code, T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id", "context": "CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, email_address VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)", "question": "Which professional did not operate any treatment on dogs? List the professional's id, role and email." }
### QUESTION Which owner owns the most dogs? List the owner id, first name and last name. ### CONTEXT CREATE TABLE Owners (first_name VARCHAR, last_name VARCHAR, owner_id VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR) ### ANSWER SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.owner_id, T2.first_name, T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Owners (first_name VARCHAR, last_name VARCHAR, owner_id VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR)", "question": "Which owner owns the most dogs? List the owner id, first name and last name." }
### QUESTION Which professionals have done at least two treatments? List the professional's id, role, and first name. ### CONTEXT CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, first_name VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR) ### ANSWER SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, first_name VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)", "question": "Which professionals have done at least two treatments? List the professional's id, role, and first name." }
### QUESTION What is the name of the breed with the most dogs? ### CONTEXT CREATE TABLE Dogs (breed_code VARCHAR); CREATE TABLE Breeds (breed_name VARCHAR, breed_code VARCHAR) ### ANSWER SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Dogs (breed_code VARCHAR); CREATE TABLE Breeds (breed_name VARCHAR, breed_code VARCHAR)", "question": "What is the name of the breed with the most dogs?" }
### QUESTION Which owner has paid for the most treatments on his or her dogs? List the owner id and last name. ### CONTEXT CREATE TABLE Owners (owner_id VARCHAR, last_name VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR); CREATE TABLE Treatments (dog_id VARCHAR) ### ANSWER SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1</s>
{ "answer": "SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Owners (owner_id VARCHAR, last_name VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR); CREATE TABLE Treatments (dog_id VARCHAR)", "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name." }
### QUESTION What is the description of the treatment type that costs the least money in total? ### CONTEXT CREATE TABLE Treatments (treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR) ### ANSWER SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) LIMIT 1</s>
{ "answer": "SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY SUM(cost_of_treatment) LIMIT 1", "context": "CREATE TABLE Treatments (treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR)", "question": "What is the description of the treatment type that costs the least money in total?" }
### QUESTION Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code. ### CONTEXT CREATE TABLE Treatments (dog_id VARCHAR, cost_of_treatment INTEGER); CREATE TABLE Owners (owner_id VARCHAR, zip_code VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR) ### ANSWER SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1</s>
{ "answer": "SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1", "context": "CREATE TABLE Treatments (dog_id VARCHAR, cost_of_treatment INTEGER); CREATE TABLE Owners (owner_id VARCHAR, zip_code VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR)", "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code." }
### QUESTION Which professionals have done at least two types of treatments? List the professional id and cell phone. ### CONTEXT CREATE TABLE Professionals (professional_id VARCHAR, cell_number VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR) ### ANSWER SELECT T1.professional_id, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2</s>
{ "answer": "SELECT T1.professional_id, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE Professionals (professional_id VARCHAR, cell_number VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)", "question": "Which professionals have done at least two types of treatments? List the professional id and cell phone." }
### QUESTION What are the first name and last name of the professionals who have done treatment with cost below average? ### CONTEXT CREATE TABLE Treatments (cost_of_treatment INTEGER); CREATE TABLE Professionals (first_name VARCHAR, last_name VARCHAR); CREATE TABLE Treatments (Id VARCHAR) ### ANSWER SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)</s>
{ "answer": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)", "context": "CREATE TABLE Treatments (cost_of_treatment INTEGER); CREATE TABLE Professionals (first_name VARCHAR, last_name VARCHAR); CREATE TABLE Treatments (Id VARCHAR)", "question": "What are the first name and last name of the professionals who have done treatment with cost below average?" }
### QUESTION List the cost of each treatment and the corresponding treatment type description. ### CONTEXT CREATE TABLE Treatments (cost_of_treatment VARCHAR, treatment_type_code VARCHAR); CREATE TABLE treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR) ### ANSWER SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code</s>
{ "answer": "SELECT T1.cost_of_treatment, T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code", "context": "CREATE TABLE Treatments (cost_of_treatment VARCHAR, treatment_type_code VARCHAR); CREATE TABLE treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR)", "question": "List the cost of each treatment and the corresponding treatment type description." }
### QUESTION List the names of the dogs of the rarest breed and the treatment dates of them. ### CONTEXT CREATE TABLE Dogs (name VARCHAR, dog_id VARCHAR, breed_code VARCHAR); CREATE TABLE Treatments (date_of_treatment VARCHAR, dog_id VARCHAR); CREATE TABLE Dogs (breed_code VARCHAR) ### ANSWER SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) LIMIT 1)</s>
{ "answer": "SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) LIMIT 1)", "context": "CREATE TABLE Dogs (name VARCHAR, dog_id VARCHAR, breed_code VARCHAR); CREATE TABLE Treatments (date_of_treatment VARCHAR, dog_id VARCHAR); CREATE TABLE Dogs (breed_code VARCHAR)", "question": "List the names of the dogs of the rarest breed and the treatment dates of them." }
### QUESTION What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 rounds? ### CONTEXT CREATE TABLE table_name_30 (attendance INTEGER, round VARCHAR, home VARCHAR, date VARCHAR) ### ANSWER SELECT MIN(attendance) FROM table_name_30 WHERE home = "linköpings hc" AND date = "monday, november 10" AND round > 18</s>
{ "answer": "SELECT MIN(attendance) FROM table_name_30 WHERE home = \"linköpings hc\" AND date = \"monday, november 10\" AND round > 18", "context": "CREATE TABLE table_name_30 (attendance INTEGER, round VARCHAR, home VARCHAR, date VARCHAR)", "question": "What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 rounds?" }
### QUESTION Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds? ### CONTEXT CREATE TABLE table_name_89 (visitor VARCHAR, date VARCHAR, home VARCHAR, round VARCHAR) ### ANSWER SELECT visitor FROM table_name_89 WHERE home = "linköpings hc" AND round > 20 AND date = "saturday, november 22"</s>
{ "answer": "SELECT visitor FROM table_name_89 WHERE home = \"linköpings hc\" AND round > 20 AND date = \"saturday, november 22\"", "context": "CREATE TABLE table_name_89 (visitor VARCHAR, date VARCHAR, home VARCHAR, round VARCHAR)", "question": "Who is the visitor team on Saturday, November 22 when linköpings hc was the home team and there were more than 20 rounds?" }
### QUESTION What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%? ### CONTEXT CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR) ### ANSWER SELECT green_communist FROM table_name_59 WHERE socialist = "41.0%"</s>
{ "answer": "SELECT green_communist FROM table_name_59 WHERE socialist = \"41.0%\"", "context": "CREATE TABLE table_name_59 (green_communist VARCHAR, socialist VARCHAR)", "question": "What was the Green-Communist percentage in the poll in which the Socialist Party earned 41.0%?" }
### QUESTION How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit? ### CONTEXT CREATE TABLE table_24865763_2 (lmp2_winning_team VARCHAR, gt1_winning_team VARCHAR, circuit VARCHAR) ### ANSWER SELECT COUNT(lmp2_winning_team) FROM table_24865763_2 WHERE gt1_winning_team = "Gabriele Gardel Patrice Goueslard Fernando Rees" AND circuit = "Algarve"</s>
{ "answer": "SELECT COUNT(lmp2_winning_team) FROM table_24865763_2 WHERE gt1_winning_team = \"Gabriele Gardel Patrice Goueslard Fernando Rees\" AND circuit = \"Algarve\"", "context": "CREATE TABLE table_24865763_2 (lmp2_winning_team VARCHAR, gt1_winning_team VARCHAR, circuit VARCHAR)", "question": "How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit?" }
### QUESTION What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team? ### CONTEXT CREATE TABLE table_24865763_2 (rnd INTEGER, gt2_winning_team VARCHAR) ### ANSWER SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = "Marc Lieb Richard Lietz"</s>
{ "answer": "SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = \"Marc Lieb Richard Lietz\"", "context": "CREATE TABLE table_24865763_2 (rnd INTEGER, gt2_winning_team VARCHAR)", "question": "What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?" }
### QUESTION How many won the LMP1 on round 4 if No. 42 Strakka Racing was the LMP2 Winning Team? ### CONTEXT CREATE TABLE table_24865763_2 (lmp1_winning_team VARCHAR, rnd VARCHAR, lmp2_winning_team VARCHAR) ### ANSWER SELECT COUNT(lmp1_winning_team) FROM table_24865763_2 WHERE rnd = 4 AND lmp2_winning_team = "No. 42 Strakka Racing"</s>
{ "answer": "SELECT COUNT(lmp1_winning_team) FROM table_24865763_2 WHERE rnd = 4 AND lmp2_winning_team = \"No. 42 Strakka Racing\"", "context": "CREATE TABLE table_24865763_2 (lmp1_winning_team VARCHAR, rnd VARCHAR, lmp2_winning_team VARCHAR)", "question": "How many won the LMP1 on round 4 if No. 42 Strakka Racing was the LMP2 Winning Team?" }
### QUESTION what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012? ### CONTEXT CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) ### ANSWER SELECT result FROM table_name_54 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012"</s>
{ "answer": "SELECT result FROM table_name_54 WHERE venue = \"stade général seyni kountché, niamey\" AND competition = \"friendly\" AND date = \"9 october 2012\"", "context": "CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)", "question": "what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?" }
### QUESTION what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012? ### CONTEXT CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) ### ANSWER SELECT score FROM table_name_32 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012"</s>
{ "answer": "SELECT score FROM table_name_32 WHERE venue = \"stade général seyni kountché, niamey\" AND competition = \"friendly\" AND date = \"9 october 2012\"", "context": "CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)", "question": "what is the score when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?" }
### QUESTION How many professionals did not operate any treatment on dogs? ### CONTEXT CREATE TABLE Professionals (professional_id VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments)</s>
{ "answer": "SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments)", "context": "CREATE TABLE Professionals (professional_id VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)", "question": "How many professionals did not operate any treatment on dogs?" }
### QUESTION what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480? ### CONTEXT CREATE TABLE table_name_14 (type VARCHAR, capacity___mw__ VARCHAR, rank VARCHAR, province VARCHAR) ### ANSWER SELECT type FROM table_name_14 WHERE rank < 70 AND province = "british columbia" AND capacity___mw__ > 2 OFFSET 480</s>
{ "answer": "SELECT type FROM table_name_14 WHERE rank < 70 AND province = \"british columbia\" AND capacity___mw__ > 2 OFFSET 480", "context": "CREATE TABLE table_name_14 (type VARCHAR, capacity___mw__ VARCHAR, rank VARCHAR, province VARCHAR)", "question": "what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480?" }
### QUESTION List the email, cell phone and home phone of all the professionals. ### CONTEXT CREATE TABLE professionals (email_address VARCHAR, cell_number VARCHAR, home_phone VARCHAR) ### ANSWER SELECT email_address, cell_number, home_phone FROM professionals</s>
{ "answer": "SELECT email_address, cell_number, home_phone FROM professionals", "context": "CREATE TABLE professionals (email_address VARCHAR, cell_number VARCHAR, home_phone VARCHAR)", "question": "List the email, cell phone and home phone of all the professionals." }
### QUESTION what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479? ### CONTEXT CREATE TABLE table_name_67 (rank INTEGER, capacity___mw__ VARCHAR, type VARCHAR, name VARCHAR) ### ANSWER SELECT MIN(rank) FROM table_name_67 WHERE type = "hydro" AND name = "grand rapids generating station" AND capacity___mw__ > 479</s>
{ "answer": "SELECT MIN(rank) FROM table_name_67 WHERE type = \"hydro\" AND name = \"grand rapids generating station\" AND capacity___mw__ > 479", "context": "CREATE TABLE table_name_67 (rank INTEGER, capacity___mw__ VARCHAR, type VARCHAR, name VARCHAR)", "question": "what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479?" }
### QUESTION List the first name of all the professionals along with the description of the treatment they have done. ### CONTEXT CREATE TABLE Treatments (professional_id VARCHAR, treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR); CREATE TABLE professionals (first_name VARCHAR, professional_id VARCHAR) ### ANSWER SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code</s>
{ "answer": "SELECT DISTINCT T1.first_name, T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code", "context": "CREATE TABLE Treatments (professional_id VARCHAR, treatment_type_code VARCHAR); CREATE TABLE Treatment_types (treatment_type_description VARCHAR, treatment_type_code VARCHAR); CREATE TABLE professionals (first_name VARCHAR, professional_id VARCHAR)", "question": "List the first name of all the professionals along with the description of the treatment they have done." }
### QUESTION How many years have toyota team tom's as the team, with Laps greater than 64? ### CONTEXT CREATE TABLE table_name_60 (year VARCHAR, team VARCHAR, laps VARCHAR) ### ANSWER SELECT COUNT(year) FROM table_name_60 WHERE team = "toyota team tom's" AND laps > 64</s>
{ "answer": "SELECT COUNT(year) FROM table_name_60 WHERE team = \"toyota team tom's\" AND laps > 64", "context": "CREATE TABLE table_name_60 (year VARCHAR, team VARCHAR, laps VARCHAR)", "question": "How many years have toyota team tom's as the team, with Laps greater than 64?" }
### QUESTION What is the maximum number of minutes associated with exactly 70 field goals? ### CONTEXT CREATE TABLE table_24908692_5 (minutes INTEGER, field_goals VARCHAR) ### ANSWER SELECT MAX(minutes) FROM table_24908692_5 WHERE field_goals = 70</s>
{ "answer": "SELECT MAX(minutes) FROM table_24908692_5 WHERE field_goals = 70", "context": "CREATE TABLE table_24908692_5 (minutes INTEGER, field_goals VARCHAR)", "question": "What is the maximum number of minutes associated with exactly 70 field goals?" }
### QUESTION How many silver medals when the bronze is more than 2 and having a rank more than 5? ### CONTEXT CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR) ### ANSWER SELECT MAX(silver) FROM table_name_89 WHERE rank > 5 AND bronze > 2</s>
{ "answer": "SELECT MAX(silver) FROM table_name_89 WHERE rank > 5 AND bronze > 2", "context": "CREATE TABLE table_name_89 (silver INTEGER, rank VARCHAR, bronze VARCHAR)", "question": "How many silver medals when the bronze is more than 2 and having a rank more than 5?" }
### QUESTION List the number of takeaways with 1 rejection. ### CONTEXT CREATE TABLE table_24906653_5 (steals VARCHAR, blocks VARCHAR) ### ANSWER SELECT COUNT(steals) FROM table_24906653_5 WHERE blocks = 1</s>
{ "answer": "SELECT COUNT(steals) FROM table_24906653_5 WHERE blocks = 1", "context": "CREATE TABLE table_24906653_5 (steals VARCHAR, blocks VARCHAR)", "question": "List the number of takeaways with 1 rejection." }
### QUESTION Show the names of singers and the total sales of their songs. ### CONTEXT CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR); CREATE TABLE song (Sales INTEGER, Singer_ID VARCHAR) ### ANSWER SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name</s>
{ "answer": "SELECT T1.Name, SUM(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name", "context": "CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR); CREATE TABLE song (Sales INTEGER, Singer_ID VARCHAR)", "question": "Show the names of singers and the total sales of their songs." }
### QUESTION Show the citizenship shared by singers with birth year before 1945 and after 1955. ### CONTEXT CREATE TABLE singer (Citizenship VARCHAR, Birth_Year INTEGER) ### ANSWER SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955</s>
{ "answer": "SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955", "context": "CREATE TABLE singer (Citizenship VARCHAR, Birth_Year INTEGER)", "question": "Show the citizenship shared by singers with birth year before 1945 and after 1955." }
### QUESTION What is the feature type name of feature AirCon? ### CONTEXT CREATE TABLE Other_Available_Features (feature_type_code VARCHAR, feature_name VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_name VARCHAR, feature_type_code VARCHAR) ### ANSWER SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = "AirCon"</s>
{ "answer": "SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = \"AirCon\"", "context": "CREATE TABLE Other_Available_Features (feature_type_code VARCHAR, feature_name VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_name VARCHAR, feature_type_code VARCHAR)", "question": "What is the feature type name of feature AirCon?" }
### QUESTION Show the property type descriptions of properties belonging to that code. ### CONTEXT CREATE TABLE Properties (property_type_code VARCHAR); CREATE TABLE Ref_Property_Types (property_type_description VARCHAR, property_type_code VARCHAR) ### ANSWER SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code</s>
{ "answer": "SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code = T2.property_type_code GROUP BY T1.property_type_code", "context": "CREATE TABLE Properties (property_type_code VARCHAR); CREATE TABLE Ref_Property_Types (property_type_description VARCHAR, property_type_code VARCHAR)", "question": "Show the property type descriptions of properties belonging to that code." }
### QUESTION What are the names of properties that are either houses or apartments with more than 1 room? ### CONTEXT CREATE TABLE Properties (property_name VARCHAR, property_type_code VARCHAR, room_count VARCHAR) ### ANSWER SELECT property_name FROM Properties WHERE property_type_code = "House" UNION SELECT property_name FROM Properties WHERE property_type_code = "Apartment" AND room_count > 1</s>
{ "answer": "SELECT property_name FROM Properties WHERE property_type_code = \"House\" UNION SELECT property_name FROM Properties WHERE property_type_code = \"Apartment\" AND room_count > 1", "context": "CREATE TABLE Properties (property_name VARCHAR, property_type_code VARCHAR, room_count VARCHAR)", "question": "What are the names of properties that are either houses or apartments with more than 1 room?" }
### QUESTION How many different college/junior/club teams provided a player to the Washington Capitals NHL Team? ### CONTEXT CREATE TABLE table_1013129_2 (college_junior_club_team VARCHAR, nhl_team VARCHAR) ### ANSWER SELECT COUNT(college_junior_club_team) FROM table_1013129_2 WHERE nhl_team = "Washington Capitals"</s>
{ "answer": "SELECT COUNT(college_junior_club_team) FROM table_1013129_2 WHERE nhl_team = \"Washington Capitals\"", "context": "CREATE TABLE table_1013129_2 (college_junior_club_team VARCHAR, nhl_team VARCHAR)", "question": "How many different college/junior/club teams provided a player to the Washington Capitals NHL Team?" }
### QUESTION What is the nationality of the player from Vancouver Canucks? ### CONTEXT CREATE TABLE table_1013129_3 (nationality VARCHAR, nhl_team VARCHAR) ### ANSWER SELECT nationality FROM table_1013129_3 WHERE nhl_team = "Vancouver Canucks"</s>
{ "answer": "SELECT nationality FROM table_1013129_3 WHERE nhl_team = \"Vancouver Canucks\"", "context": "CREATE TABLE table_1013129_3 (nationality VARCHAR, nhl_team VARCHAR)", "question": "What is the nationality of the player from Vancouver Canucks?" }
### QUESTION What's the pick number of the player from Springfield Olympics (Nejhl)? ### CONTEXT CREATE TABLE table_1013129_3 (pick VARCHAR, college_junior_club_team VARCHAR) ### ANSWER SELECT pick FROM table_1013129_3 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)"</s>
{ "answer": "SELECT pick FROM table_1013129_3 WHERE college_junior_club_team = \"Springfield Olympics (NEJHL)\"", "context": "CREATE TABLE table_1013129_3 (pick VARCHAR, college_junior_club_team VARCHAR)", "question": "What's the pick number of the player from Springfield Olympics (Nejhl)?" }
### QUESTION What is the result/margin when fox sports 1 broadcast the game played at mcg? ### CONTEXT CREATE TABLE table_24919137_2 (result_margin VARCHAR, broadcaster VARCHAR, venue VARCHAR) ### ANSWER SELECT result_margin FROM table_24919137_2 WHERE broadcaster = "Fox Sports 1" AND venue = "MCG"</s>
{ "answer": "SELECT result_margin FROM table_24919137_2 WHERE broadcaster = \"Fox Sports 1\" AND venue = \"MCG\"", "context": "CREATE TABLE table_24919137_2 (result_margin VARCHAR, broadcaster VARCHAR, venue VARCHAR)", "question": "What is the result/margin when fox sports 1 broadcast the game played at mcg?" }
### QUESTION what is the maximum ties played where player is josip palada category:articles with hcards ### CONTEXT CREATE TABLE table_10294071_1 (ties_played INTEGER, player VARCHAR) ### ANSWER SELECT MAX(ties_played) FROM table_10294071_1 WHERE player = "Josip Palada Category:Articles with hCards"</s>
{ "answer": "SELECT MAX(ties_played) FROM table_10294071_1 WHERE player = \"Josip Palada Category:Articles with hCards\"", "context": "CREATE TABLE table_10294071_1 (ties_played INTEGER, player VARCHAR)", "question": "what is the maximum ties played where player is josip palada category:articles with hcards" }