text
stringlengths 150
1.06k
| source
dict |
---|---|
### QUESTION
How many cars have a larger accelerate than the car with the largest horsepower?
### CONTEXT
CREATE TABLE CARS_DATA (Accelerate INTEGER, Horsepower VARCHAR)
### ANSWER
SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)</s> | {
"answer": "SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate > (SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1)",
"context": "CREATE TABLE CARS_DATA (Accelerate INTEGER, Horsepower VARCHAR)",
"question": "How many cars have a larger accelerate than the car with the largest horsepower?"
} |
### QUESTION
For the cars with 4 cylinders, which model has the largest horsepower?
### CONTEXT
CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, Cylinders VARCHAR, horsepower VARCHAR)
### ANSWER
SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1</s> | {
"answer": "SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Cylinders = 4 ORDER BY T2.horsepower DESC LIMIT 1",
"context": "CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, Cylinders VARCHAR, horsepower VARCHAR)",
"question": "For the cars with 4 cylinders, which model has the largest horsepower?"
} |
### QUESTION
Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.
### CONTEXT
CREATE TABLE CARS_DATA (Id VARCHAR, Horsepower INTEGER, Cylinders VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR); CREATE TABLE CARS_DATA (Horsepower INTEGER)
### ANSWER
SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3</s> | {
"answer": "SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3",
"context": "CREATE TABLE CARS_DATA (Id VARCHAR, Horsepower INTEGER, Cylinders VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR); CREATE TABLE CARS_DATA (Horsepower INTEGER)",
"question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name."
} |
### QUESTION
Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?
### CONTEXT
CREATE TABLE cars_data (horsepower INTEGER); CREATE TABLE car_names (makeid VARCHAR, make VARCHAR); CREATE TABLE cars_data (id VARCHAR, horsepower INTEGER, cylinders VARCHAR)
### ANSWER
SELECT t2.makeid, t2.make FROM cars_data AS t1 JOIN car_names AS t2 ON t1.id = t2.makeid WHERE t1.horsepower > (SELECT MIN(horsepower) FROM cars_data) AND t1.cylinders < 4</s> | {
"answer": "SELECT t2.makeid, t2.make FROM cars_data AS t1 JOIN car_names AS t2 ON t1.id = t2.makeid WHERE t1.horsepower > (SELECT MIN(horsepower) FROM cars_data) AND t1.cylinders < 4",
"context": "CREATE TABLE cars_data (horsepower INTEGER); CREATE TABLE car_names (makeid VARCHAR, make VARCHAR); CREATE TABLE cars_data (id VARCHAR, horsepower INTEGER, cylinders VARCHAR)",
"question": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?"
} |
### QUESTION
Which models are lighter than 3500 but not built by the 'Ford Motor Company'?
### CONTEXT
CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (model VARCHAR, Model VARCHAR, Maker VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR)
### ANSWER
SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company'</s> | {
"answer": "SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model = T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId = T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker = T4.Id WHERE T3.weight < 3500 AND T4.FullName <> 'Ford Motor Company'",
"context": "CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE MODEL_LIST (model VARCHAR, Model VARCHAR, Maker VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR)",
"question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?"
} |
### QUESTION
What are the name of the countries where there is not a single car maker?
### CONTEXT
CREATE TABLE countries (CountryName VARCHAR, countryId VARCHAR); CREATE TABLE countries (CountryName VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)
### ANSWER
SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country</s> | {
"answer": "SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId = T2.Country",
"context": "CREATE TABLE countries (CountryName VARCHAR, countryId VARCHAR); CREATE TABLE countries (CountryName VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)",
"question": "What are the name of the countries where there is not a single car maker?"
} |
### QUESTION
Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .
### CONTEXT
CREATE TABLE car_makers (id VARCHAR, maker VARCHAR); CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE car_names (model VARCHAR)
### ANSWER
SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker GROUP BY t1.id HAVING COUNT(*) >= 2 INTERSECT SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_names AS t3 ON t2.model = t3.model GROUP BY t1.id HAVING COUNT(*) > 3</s> | {
"answer": "SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker GROUP BY t1.id HAVING COUNT(*) >= 2 INTERSECT SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_names AS t3 ON t2.model = t3.model GROUP BY t1.id HAVING COUNT(*) > 3",
"context": "CREATE TABLE car_makers (id VARCHAR, maker VARCHAR); CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE car_names (model VARCHAR)",
"question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker ."
} |
### QUESTION
What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?
### CONTEXT
CREATE TABLE CAR_NAMES (model VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, model VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, Maker VARCHAR)
### ANSWER
SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3</s> | {
"answer": "SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker GROUP BY T1.Id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.Id, T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model GROUP BY T1.Id HAVING COUNT(*) > 3",
"context": "CREATE TABLE CAR_NAMES (model VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, model VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, Maker VARCHAR)",
"question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?"
} |
### QUESTION
What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?
### CONTEXT
CREATE TABLE Countries (countryId VARCHAR, CountryName VARCHAR, CountryId VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR, Id VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, Model VARCHAR)
### ANSWER
SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat'</s> | {
"answer": "SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model = 'fiat'",
"context": "CREATE TABLE Countries (countryId VARCHAR, CountryName VARCHAR, CountryId VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR, Id VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, Model VARCHAR)",
"question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?"
} |
### QUESTION
What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?
### CONTEXT
CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE countries (countryid VARCHAR, countryname VARCHAR); CREATE TABLE car_makers (country VARCHAR, id VARCHAR)
### ANSWER
SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'</s> | {
"answer": "SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'",
"context": "CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE countries (countryid VARCHAR, countryname VARCHAR); CREATE TABLE car_makers (country VARCHAR, id VARCHAR)",
"question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?"
} |
### QUESTION
Name the original air date for 7 1-07
### CONTEXT
CREATE TABLE table_24222929_4 (original_airdate VARCHAR, episode_number_production_number VARCHAR)
### ANSWER
SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = "7 1-07"</s> | {
"answer": "SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = \"7 1-07\"",
"context": "CREATE TABLE table_24222929_4 (original_airdate VARCHAR, episode_number_production_number VARCHAR)",
"question": "Name the original air date for 7 1-07"
} |
### QUESTION
What's the average year that sara orlesky and farhan lalji are the sideline reporters?
### CONTEXT
CREATE TABLE table_name_65 (year INTEGER, sideline_reporters VARCHAR)
### ANSWER
SELECT AVG(year) FROM table_name_65 WHERE sideline_reporters = "sara orlesky and farhan lalji"</s> | {
"answer": "SELECT AVG(year) FROM table_name_65 WHERE sideline_reporters = \"sara orlesky and farhan lalji\"",
"context": "CREATE TABLE table_name_65 (year INTEGER, sideline_reporters VARCHAR)",
"question": "What's the average year that sara orlesky and farhan lalji are the sideline reporters?"
} |
### QUESTION
How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?
### CONTEXT
CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR)
### ANSWER
SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = "Ashley" AND T3.City = "Aberdeen"</s> | {
"answer": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport = T3.AirportCode WHERE T2.City = \"Ashley\" AND T3.City = \"Aberdeen\"",
"context": "CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR)",
"question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?"
} |
### QUESTION
How many 'United Airlines' flights go to Airport 'ASY'?
### CONTEXT
CREATE TABLE FLIGHTS (Airline VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR)
### ANSWER
SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY"</s> | {
"answer": "SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = \"United Airlines\" AND T2.DestAirport = \"ASY\"",
"context": "CREATE TABLE FLIGHTS (Airline VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR)",
"question": "How many 'United Airlines' flights go to Airport 'ASY'?"
} |
### QUESTION
What shows for gold when the rank is less than 3, and silver less than 1?
### CONTEXT
CREATE TABLE table_name_62 (gold INTEGER, rank VARCHAR, silver VARCHAR)
### ANSWER
SELECT SUM(gold) FROM table_name_62 WHERE rank < 3 AND silver < 1</s> | {
"answer": "SELECT SUM(gold) FROM table_name_62 WHERE rank < 3 AND silver < 1",
"context": "CREATE TABLE table_name_62 (gold INTEGER, rank VARCHAR, silver VARCHAR)",
"question": "What shows for gold when the rank is less than 3, and silver less than 1?"
} |
### QUESTION
How many United Airlines flights go to City 'Aberdeen'?
### CONTEXT
CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR); CREATE TABLE FLIGHTS (DestAirport VARCHAR, Airline VARCHAR)
### ANSWER
SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = "Aberdeen" AND T3.Airline = "United Airlines"</s> | {
"answer": "SELECT COUNT(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport = T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid = T1.Airline WHERE T2.City = \"Aberdeen\" AND T3.Airline = \"United Airlines\"",
"context": "CREATE TABLE AIRPORTS (AirportCode VARCHAR, City VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR); CREATE TABLE FLIGHTS (DestAirport VARCHAR, Airline VARCHAR)",
"question": "How many United Airlines flights go to City 'Aberdeen'?"
} |
### QUESTION
Which city has most number of arriving flights?
### CONTEXT
CREATE TABLE FLIGHTS (DestAirport VARCHAR); CREATE TABLE AIRPORTS (City VARCHAR, AirportCode VARCHAR)
### ANSWER
SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport GROUP BY T1.City ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE FLIGHTS (DestAirport VARCHAR); CREATE TABLE AIRPORTS (City VARCHAR, AirportCode VARCHAR)",
"question": "Which city has most number of arriving flights?"
} |
### QUESTION
What player is from France?
### CONTEXT
CREATE TABLE table_name_63 (player VARCHAR, country VARCHAR)
### ANSWER
SELECT player FROM table_name_63 WHERE country = "france"</s> | {
"answer": "SELECT player FROM table_name_63 WHERE country = \"france\"",
"context": "CREATE TABLE table_name_63 (player VARCHAR, country VARCHAR)",
"question": "What player is from France?"
} |
### QUESTION
What is the code of airport that has the highest number of flights?
### CONTEXT
CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR)
### ANSWER
SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR)",
"question": "What is the code of airport that has the highest number of flights?"
} |
### QUESTION
What is the code of airport that has fewest number of flights?
### CONTEXT
CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR)
### ANSWER
SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) LIMIT 1</s> | {
"answer": "SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode = T2.DestAirport OR T1.AirportCode = T2.SourceAirport GROUP BY T1.AirportCode ORDER BY COUNT(*) LIMIT 1",
"context": "CREATE TABLE FLIGHTS (DestAirport VARCHAR, SourceAirport VARCHAR); CREATE TABLE AIRPORTS (AirportCode VARCHAR)",
"question": "What is the code of airport that has fewest number of flights?"
} |
### QUESTION
What player is from Scotland and has a score of 74-70=144?
### CONTEXT
CREATE TABLE table_name_90 (player VARCHAR, country VARCHAR, score VARCHAR)
### ANSWER
SELECT player FROM table_name_90 WHERE score = 74 - 70 = 144 AND country = "scotland"</s> | {
"answer": "SELECT player FROM table_name_90 WHERE score = 74 - 70 = 144 AND country = \"scotland\"",
"context": "CREATE TABLE table_name_90 (player VARCHAR, country VARCHAR, score VARCHAR)",
"question": "What player is from Scotland and has a score of 74-70=144?"
} |
### QUESTION
when notes are prima italica:raised for aborted caucasus war, when was that founded?
### CONTEXT
CREATE TABLE table_242785_1 (date_founded__founder VARCHAR, notes VARCHAR)
### ANSWER
SELECT date_founded__founder FROM table_242785_1 WHERE notes = "prima Italica:raised for aborted Caucasus war"</s> | {
"answer": "SELECT date_founded__founder FROM table_242785_1 WHERE notes = \"prima Italica:raised for aborted Caucasus war\"",
"context": "CREATE TABLE table_242785_1 (date_founded__founder VARCHAR, notes VARCHAR)",
"question": "when notes are prima italica:raised for aborted caucasus war, when was that founded?"
} |
### QUESTION
Find the abbreviation and country of the airline that has fewest number of flights?
### CONTEXT
CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Abbreviation VARCHAR, Country VARCHAR, Airline VARCHAR, uid VARCHAR)
### ANSWER
SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1</s> | {
"answer": "SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1",
"context": "CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Abbreviation VARCHAR, Country VARCHAR, Airline VARCHAR, uid VARCHAR)",
"question": "Find the abbreviation and country of the airline that has fewest number of flights?"
} |
### QUESTION
What are the notes for svishtov , bulgaria?
### CONTEXT
CREATE TABLE table_242785_1 (notes VARCHAR, main_legionary_base VARCHAR)
### ANSWER
SELECT notes FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria"</s> | {
"answer": "SELECT notes FROM table_242785_1 WHERE main_legionary_base = \"Svishtov , Bulgaria\"",
"context": "CREATE TABLE table_242785_1 (notes VARCHAR, main_legionary_base VARCHAR)",
"question": "What are the notes for svishtov , bulgaria?"
} |
### QUESTION
Find all airlines that have flights from both airports 'APG' and 'CVO'.
### CONTEXT
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)
### ANSWER
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO"</s> | {
"answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\"",
"context": "CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)",
"question": "Find all airlines that have flights from both airports 'APG' and 'CVO'."
} |
### QUESTION
Find all airlines that have flights from airport 'CVO' but not from 'APG'.
### CONTEXT
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)
### ANSWER
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG"</s> | {
"answer": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\"",
"context": "CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)",
"question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'."
} |
### QUESTION
Which Geelong DFL has 8 losses and more than 4 wins?
### CONTEXT
CREATE TABLE table_name_87 (geelong_dfl VARCHAR, wins VARCHAR, losses VARCHAR)
### ANSWER
SELECT geelong_dfl FROM table_name_87 WHERE wins > 4 AND losses = 8</s> | {
"answer": "SELECT geelong_dfl FROM table_name_87 WHERE wins > 4 AND losses = 8",
"context": "CREATE TABLE table_name_87 (geelong_dfl VARCHAR, wins VARCHAR, losses VARCHAR)",
"question": "Which Geelong DFL has 8 losses and more than 4 wins?"
} |
### QUESTION
When did svishtov , bulgaria disband?
### CONTEXT
CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR)
### ANSWER
SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria"</s> | {
"answer": "SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = \"Svishtov , Bulgaria\"",
"context": "CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR)",
"question": "When did svishtov , bulgaria disband?"
} |
### QUESTION
What is the total sum of the player from the United States who won in 1986?
### CONTEXT
CREATE TABLE table_name_52 (total INTEGER, country VARCHAR, year_s__won VARCHAR)
### ANSWER
SELECT SUM(total) FROM table_name_52 WHERE country = "united states" AND year_s__won = "1986"</s> | {
"answer": "SELECT SUM(total) FROM table_name_52 WHERE country = \"united states\" AND year_s__won = \"1986\"",
"context": "CREATE TABLE table_name_52 (total INTEGER, country VARCHAR, year_s__won VARCHAR)",
"question": "What is the total sum of the player from the United States who won in 1986?"
} |
### QUESTION
Which club had football at Mitchel Athletic Field?
### CONTEXT
CREATE TABLE table_name_43 (club VARCHAR, sport VARCHAR, venue VARCHAR)
### ANSWER
SELECT club FROM table_name_43 WHERE sport = "football" AND venue = "mitchel athletic field"</s> | {
"answer": "SELECT club FROM table_name_43 WHERE sport = \"football\" AND venue = \"mitchel athletic field\"",
"context": "CREATE TABLE table_name_43 (club VARCHAR, sport VARCHAR, venue VARCHAR)",
"question": "Which club had football at Mitchel Athletic Field?"
} |
### QUESTION
What country has the most height in the northwestern peak of rysy?
### CONTEXT
CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR)
### ANSWER
SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Northwestern peak of Rysy"</s> | {
"answer": "SELECT country_or_region FROM table_24285393_1 WHERE highest_point = \"Northwestern peak of Rysy\"",
"context": "CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR)",
"question": "What country has the most height in the northwestern peak of rysy?"
} |
### QUESTION
What is the maximum elevation in netherlands?
### CONTEXT
CREATE TABLE table_24285393_1 (maximum_elevation VARCHAR, country_or_region VARCHAR)
### ANSWER
SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = "Netherlands"</s> | {
"answer": "SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = \"Netherlands\"",
"context": "CREATE TABLE table_24285393_1 (maximum_elevation VARCHAR, country_or_region VARCHAR)",
"question": "What is the maximum elevation in netherlands?"
} |
### QUESTION
Find the number of flights landing in the city of Aberdeen or Abilene.
### CONTEXT
CREATE TABLE Airports (AirportCode VARCHAR, city VARCHAR); CREATE TABLE Flights (DestAirport VARCHAR)
### ANSWER
SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene"</s> | {
"answer": "SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = \"Aberdeen\" OR T2.city = \"Abilene\"",
"context": "CREATE TABLE Airports (AirportCode VARCHAR, city VARCHAR); CREATE TABLE Flights (DestAirport VARCHAR)",
"question": "Find the number of flights landing in the city of Aberdeen or Abilene."
} |
### QUESTION
Find the name of airports which do not have any flight in and out.
### CONTEXT
CREATE TABLE Flights (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR); CREATE TABLE Airports (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR)
### ANSWER
SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)</s> | {
"answer": "SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)",
"context": "CREATE TABLE Flights (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR); CREATE TABLE Airports (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR)",
"question": "Find the name of airports which do not have any flight in and out."
} |
### QUESTION
find the name of employee who was awarded the most times in the evaluation.
### CONTEXT
CREATE TABLE evaluation (Employee_ID VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)
### ANSWER
SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE evaluation (Employee_ID VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)",
"question": "find the name of employee who was awarded the most times in the evaluation."
} |
### QUESTION
Find the name of the employee who got the highest one time bonus.
### CONTEXT
CREATE TABLE evaluation (Employee_ID VARCHAR, bonus VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)
### ANSWER
SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1</s> | {
"answer": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1",
"context": "CREATE TABLE evaluation (Employee_ID VARCHAR, bonus VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)",
"question": "Find the name of the employee who got the highest one time bonus."
} |
### QUESTION
What is the name of the shop that is hiring the largest number of employees?
### CONTEXT
CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)
### ANSWER
SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)",
"question": "What is the name of the shop that is hiring the largest number of employees?"
} |
### QUESTION
Find the number of employees hired in each shop; show the shop name as well.
### CONTEXT
CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)
### ANSWER
SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name</s> | {
"answer": "SELECT COUNT(*), t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t2.name",
"context": "CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)",
"question": "Find the number of employees hired in each shop; show the shop name as well."
} |
### QUESTION
What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?
### CONTEXT
CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR)
### ANSWER
SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "6 (4 in 34.49s)"</s> | {
"answer": "SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = \"6 (4 in 34.49s)\"",
"context": "CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR)",
"question": "What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?"
} |
### QUESTION
What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?
### CONTEXT
CREATE TABLE table_24302700_6 (event_6_atlas_stones VARCHAR, event_3_dead_lift VARCHAR)
### ANSWER
SELECT COUNT(event_6_atlas_stones) FROM table_24302700_6 WHERE event_3_dead_lift = "2 (6 in 30.89s)"</s> | {
"answer": "SELECT COUNT(event_6_atlas_stones) FROM table_24302700_6 WHERE event_3_dead_lift = \"2 (6 in 30.89s)\"",
"context": "CREATE TABLE table_24302700_6 (event_6_atlas_stones VARCHAR, event_3_dead_lift VARCHAR)",
"question": "What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?"
} |
### QUESTION
Which district has both stores with less than 3000 products and stores with more than 10000 products?
### CONTEXT
CREATE TABLE shop (district VARCHAR, Number_products INTEGER)
### ANSWER
SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000</s> | {
"answer": "SELECT district FROM shop WHERE Number_products < 3000 INTERSECT SELECT district FROM shop WHERE Number_products > 10000",
"context": "CREATE TABLE shop (district VARCHAR, Number_products INTEGER)",
"question": "Which district has both stores with less than 3000 products and stores with more than 10000 products?"
} |
### QUESTION
How many documents are using the template with type code 'PPT'?
### CONTEXT
CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR)
### ANSWER
SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'</s> | {
"answer": "SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'",
"context": "CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR)",
"question": "How many documents are using the template with type code 'PPT'?"
} |
### QUESTION
What is the id and type code for the template used by the most documents?
### CONTEXT
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (Template_Type_Code VARCHAR, template_id VARCHAR)
### ANSWER
SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (Template_Type_Code VARCHAR, template_id VARCHAR)",
"question": "What is the id and type code for the template used by the most documents?"
} |
### QUESTION
How many play-off legs were won when the prize money was £10,300?
### CONTEXT
CREATE TABLE table_24334163_1 (Winners VARCHAR, total_money_won VARCHAR)
### ANSWER
SELECT COUNT(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£10,300"</s> | {
"answer": "SELECT COUNT(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = \"£10,300\"",
"context": "CREATE TABLE table_24334163_1 (Winners VARCHAR, total_money_won VARCHAR)",
"question": "How many play-off legs were won when the prize money was £10,300?"
} |
### QUESTION
What episode number of the season had BCW410 as a production code?
### CONTEXT
CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR)
### ANSWER
SELECT no_in_season FROM table_24319661_5 WHERE production_code = "BCW410"</s> | {
"answer": "SELECT no_in_season FROM table_24319661_5 WHERE production_code = \"BCW410\"",
"context": "CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR)",
"question": "What episode number of the season had BCW410 as a production code?"
} |
### QUESTION
What was the highest money when the score was 69-68-67-69=273?
### CONTEXT
CREATE TABLE table_name_37 (money___ INTEGER, score VARCHAR)
### ANSWER
SELECT MAX(money___) AS $__ FROM table_name_37 WHERE score = 69 - 68 - 67 - 69 = 273</s> | {
"answer": "SELECT MAX(money___) AS $__ FROM table_name_37 WHERE score = 69 - 68 - 67 - 69 = 273",
"context": "CREATE TABLE table_name_37 (money___ INTEGER, score VARCHAR)",
"question": "What was the highest money when the score was 69-68-67-69=273?"
} |
### QUESTION
Show all template type codes and number of templates for each.
### CONTEXT
CREATE TABLE Templates (template_type_code VARCHAR)
### ANSWER
SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code</s> | {
"answer": "SELECT template_type_code, COUNT(*) FROM Templates GROUP BY template_type_code",
"context": "CREATE TABLE Templates (template_type_code VARCHAR)",
"question": "Show all template type codes and number of templates for each."
} |
### QUESTION
What are the cargo tonnes when the international (non-CIS) is 297 421?
### CONTEXT
CREATE TABLE table_name_90 (cargo__tonnes_ VARCHAR, international__non_cis_ VARCHAR)
### ANSWER
SELECT cargo__tonnes_ FROM table_name_90 WHERE international__non_cis_ = "297 421"</s> | {
"answer": "SELECT cargo__tonnes_ FROM table_name_90 WHERE international__non_cis_ = \"297 421\"",
"context": "CREATE TABLE table_name_90 (cargo__tonnes_ VARCHAR, international__non_cis_ VARCHAR)",
"question": "What are the cargo tonnes when the international (non-CIS) is 297 421?"
} |
### QUESTION
How manu aircraft landings when the cargo tonnes are 18 344?
### CONTEXT
CREATE TABLE table_name_27 (aircraft_landings VARCHAR, cargo__tonnes_ VARCHAR)
### ANSWER
SELECT aircraft_landings FROM table_name_27 WHERE cargo__tonnes_ = "18 344"</s> | {
"answer": "SELECT aircraft_landings FROM table_name_27 WHERE cargo__tonnes_ = \"18 344\"",
"context": "CREATE TABLE table_name_27 (aircraft_landings VARCHAR, cargo__tonnes_ VARCHAR)",
"question": "How manu aircraft landings when the cargo tonnes are 18 344?"
} |
### QUESTION
Show all template type codes and the number of documents using each type.
### CONTEXT
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)
### ANSWER
SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code</s> | {
"answer": "SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code",
"context": "CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)",
"question": "Show all template type codes and the number of documents using each type."
} |
### QUESTION
List the tournament that kent state won?
### CONTEXT
CREATE TABLE table_24348134_3 (conference VARCHAR, tournament_winner VARCHAR)
### ANSWER
SELECT conference AS Tournament FROM table_24348134_3 WHERE tournament_winner = "Kent State"</s> | {
"answer": "SELECT conference AS Tournament FROM table_24348134_3 WHERE tournament_winner = \"Kent State\"",
"context": "CREATE TABLE table_24348134_3 (conference VARCHAR, tournament_winner VARCHAR)",
"question": "List the tournament that kent state won?"
} |
### QUESTION
Which template type code is used by most number of documents?
### CONTEXT
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)
### ANSWER
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)",
"question": "Which template type code is used by most number of documents?"
} |
### QUESTION
What is the template type code of the template used by document with the name "Data base"?
### CONTEXT
CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR); CREATE TABLE Documents (template_id VARCHAR, document_name VARCHAR)
### ANSWER
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = "Data base"</s> | {
"answer": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id WHERE T2.document_name = \"Data base\"",
"context": "CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR); CREATE TABLE Documents (template_id VARCHAR, document_name VARCHAR)",
"question": "What is the template type code of the template used by document with the name \"Data base\"?"
} |
### QUESTION
Name the game coast for chicago and north western
### CONTEXT
CREATE TABLE table_243664_1 (game_cost VARCHAR, railroad VARCHAR)
### ANSWER
SELECT game_cost FROM table_243664_1 WHERE railroad = "Chicago and North Western"</s> | {
"answer": "SELECT game_cost FROM table_243664_1 WHERE railroad = \"Chicago and North Western\"",
"context": "CREATE TABLE table_243664_1 (game_cost VARCHAR, railroad VARCHAR)",
"question": "Name the game coast for chicago and north western"
} |
### QUESTION
What are the distinct template type descriptions for the templates ever used by any document?
### CONTEXT
CREATE TABLE Templates (template_type_code VARCHAR, Template_ID VARCHAR); CREATE TABLE Documents (template_ID VARCHAR); CREATE TABLE Ref_template_types (template_type_description VARCHAR, template_type_code VARCHAR)
### ANSWER
SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID</s> | {
"answer": "SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID",
"context": "CREATE TABLE Templates (template_type_code VARCHAR, Template_ID VARCHAR); CREATE TABLE Documents (template_ID VARCHAR); CREATE TABLE Ref_template_types (template_type_description VARCHAR, template_type_code VARCHAR)",
"question": "What are the distinct template type descriptions for the templates ever used by any document?"
} |
### QUESTION
Name the game cost for merged with new york central to form penn central
### CONTEXT
CREATE TABLE table_243664_1 (game_cost VARCHAR, real_life_eventual_outcome VARCHAR)
### ANSWER
SELECT game_cost FROM table_243664_1 WHERE real_life_eventual_outcome = "Merged with New York Central to form Penn Central"</s> | {
"answer": "SELECT game_cost FROM table_243664_1 WHERE real_life_eventual_outcome = \"Merged with New York Central to form Penn Central\"",
"context": "CREATE TABLE table_243664_1 (game_cost VARCHAR, real_life_eventual_outcome VARCHAR)",
"question": "Name the game cost for merged with new york central to form penn central"
} |
### QUESTION
What are the template ids with template type description "Presentation".
### CONTEXT
CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR); CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR)
### ANSWER
SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = "Presentation"</s> | {
"answer": "SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code WHERE T1.template_type_description = \"Presentation\"",
"context": "CREATE TABLE Templates (template_id VARCHAR, template_type_code VARCHAR); CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR)",
"question": "What are the template ids with template type description \"Presentation\"."
} |
### QUESTION
What is the starting weight if weight lost is 54.6?
### CONTEXT
CREATE TABLE table_24370270_10 (starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR)
### ANSWER
SELECT starting_weight__kg_ FROM table_24370270_10 WHERE weight_lost__kg_ = "54.6"</s> | {
"answer": "SELECT starting_weight__kg_ FROM table_24370270_10 WHERE weight_lost__kg_ = \"54.6\"",
"context": "CREATE TABLE table_24370270_10 (starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR)",
"question": "What is the starting weight if weight lost is 54.6?"
} |
### QUESTION
Show all paragraph ids and texts for the document with name 'Welcome to NY'.
### CONTEXT
CREATE TABLE Documents (document_id VARCHAR, Document_Name VARCHAR); CREATE TABLE Paragraphs (paragraph_id VARCHAR, paragraph_text VARCHAR, document_id VARCHAR)
### ANSWER
SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'</s> | {
"answer": "SELECT T1.paragraph_id, T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.Document_Name = 'Welcome to NY'",
"context": "CREATE TABLE Documents (document_id VARCHAR, Document_Name VARCHAR); CREATE TABLE Paragraphs (paragraph_id VARCHAR, paragraph_text VARCHAR, document_id VARCHAR)",
"question": "Show all paragraph ids and texts for the document with name 'Welcome to NY'."
} |
### QUESTION
Show all paragraph texts for the document "Customer reviews".
### CONTEXT
CREATE TABLE Paragraphs (paragraph_text VARCHAR, document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)
### ANSWER
SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Customer reviews"</s> | {
"answer": "SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = \"Customer reviews\"",
"context": "CREATE TABLE Paragraphs (paragraph_text VARCHAR, document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)",
"question": "Show all paragraph texts for the document \"Customer reviews\"."
} |
### QUESTION
how many video out connections does the sounddock portable have?
### CONTEXT
CREATE TABLE table_24384861_1 (video_out VARCHAR, version VARCHAR)
### ANSWER
SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = "SoundDock Portable"</s> | {
"answer": "SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = \"SoundDock Portable\"",
"context": "CREATE TABLE table_24384861_1 (video_out VARCHAR, version VARCHAR)",
"question": "how many video out connections does the sounddock portable have?"
} |
### QUESTION
Show all document ids, names and the number of paragraphs in each document.
### CONTEXT
CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)
### ANSWER
SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id</s> | {
"answer": "SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id",
"context": "CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)",
"question": "Show all document ids, names and the number of paragraphs in each document."
} |
### QUESTION
What is the document id and name with greatest number of paragraphs?
### CONTEXT
CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)
### ANSWER
SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)",
"question": "What is the document id and name with greatest number of paragraphs?"
} |
### QUESTION
Who is the actor in the original production when Troy Stephens is the GamePlan?
### CONTEXT
CREATE TABLE table_name_69 (actor_in_original_production VARCHAR, gameplan VARCHAR)
### ANSWER
SELECT actor_in_original_production FROM table_name_69 WHERE gameplan = "troy stephens"</s> | {
"answer": "SELECT actor_in_original_production FROM table_name_69 WHERE gameplan = \"troy stephens\"",
"context": "CREATE TABLE table_name_69 (actor_in_original_production VARCHAR, gameplan VARCHAR)",
"question": "Who is the actor in the original production when Troy Stephens is the GamePlan?"
} |
### QUESTION
What shows for 2nd round when the team 1 was Rc Strasbourg (d1)?
### CONTEXT
CREATE TABLE table_name_63 (team_1 VARCHAR)
### ANSWER
SELECT 2 AS nd_round FROM table_name_63 WHERE team_1 = "rc strasbourg (d1)"</s> | {
"answer": "SELECT 2 AS nd_round FROM table_name_63 WHERE team_1 = \"rc strasbourg (d1)\"",
"context": "CREATE TABLE table_name_63 (team_1 VARCHAR)",
"question": "What shows for 2nd round when the team 1 was Rc Strasbourg (d1)?"
} |
### QUESTION
Show the document id with paragraph text 'Brazil' and 'Ireland'.
### CONTEXT
CREATE TABLE Paragraphs (document_id VARCHAR, paragraph_text VARCHAR)
### ANSWER
SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'</s> | {
"answer": "SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text = 'Ireland'",
"context": "CREATE TABLE Paragraphs (document_id VARCHAR, paragraph_text VARCHAR)",
"question": "Show the document id with paragraph text 'Brazil' and 'Ireland'."
} |
### QUESTION
What is the lowest money ($) that has t8 as the place, with a to par greater than 19?
### CONTEXT
CREATE TABLE table_name_75 (money___ INTEGER, place VARCHAR, to_par VARCHAR)
### ANSWER
SELECT MIN(money___) AS $__ FROM table_name_75 WHERE place = "t8" AND to_par > 19</s> | {
"answer": "SELECT MIN(money___) AS $__ FROM table_name_75 WHERE place = \"t8\" AND to_par > 19",
"context": "CREATE TABLE table_name_75 (money___ INTEGER, place VARCHAR, to_par VARCHAR)",
"question": "What is the lowest money ($) that has t8 as the place, with a to par greater than 19?"
} |
### QUESTION
Which episode had bbc ranking and canle ranking of n/a?
### CONTEXT
CREATE TABLE table_24399615_10 (episode_no VARCHAR, bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR)
### ANSWER
SELECT COUNT(episode_no) FROM table_24399615_10 WHERE bbc_three_weekly_ranking = "N/A" AND cable_rank = "N/A"</s> | {
"answer": "SELECT COUNT(episode_no) FROM table_24399615_10 WHERE bbc_three_weekly_ranking = \"N/A\" AND cable_rank = \"N/A\"",
"context": "CREATE TABLE table_24399615_10 (episode_no VARCHAR, bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR)",
"question": "Which episode had bbc ranking and canle ranking of n/a?"
} |
### QUESTION
Which Country has a To par smaller than 7, and a Total of 148?
### CONTEXT
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, total VARCHAR)
### ANSWER
SELECT country FROM table_name_38 WHERE to_par < 7 AND total = 148</s> | {
"answer": "SELECT country FROM table_name_38 WHERE to_par < 7 AND total = 148",
"context": "CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, total VARCHAR)",
"question": "Which Country has a To par smaller than 7, and a Total of 148?"
} |
### QUESTION
Which Year(s) won has a Total larger than 148, and a To par smaller than 17, and a Country of new zealand?
### CONTEXT
CREATE TABLE table_name_61 (year_s__won VARCHAR, country VARCHAR, total VARCHAR, to_par VARCHAR)
### ANSWER
SELECT year_s__won FROM table_name_61 WHERE total > 148 AND to_par < 17 AND country = "new zealand"</s> | {
"answer": "SELECT year_s__won FROM table_name_61 WHERE total > 148 AND to_par < 17 AND country = \"new zealand\"",
"context": "CREATE TABLE table_name_61 (year_s__won VARCHAR, country VARCHAR, total VARCHAR, to_par VARCHAR)",
"question": "Which Year(s) won has a Total larger than 148, and a To par smaller than 17, and a Country of new zealand?"
} |
### QUESTION
Show names of teachers and the courses they are arranged to teach.
### CONTEXT
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)
### ANSWER
SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID</s> | {
"answer": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID",
"context": "CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)",
"question": "Show names of teachers and the courses they are arranged to teach."
} |
### QUESTION
In what Games did Patrick Etolu compete?
### CONTEXT
CREATE TABLE table_name_60 (games VARCHAR, name VARCHAR)
### ANSWER
SELECT games FROM table_name_60 WHERE name = "patrick etolu"</s> | {
"answer": "SELECT games FROM table_name_60 WHERE name = \"patrick etolu\"",
"context": "CREATE TABLE table_name_60 (games VARCHAR, name VARCHAR)",
"question": "In what Games did Patrick Etolu compete?"
} |
### QUESTION
What Medal did James Odwori receive for Boxing in the 1970 Edinburgh Games?
### CONTEXT
CREATE TABLE table_name_71 (medal VARCHAR, name VARCHAR, sport VARCHAR, games VARCHAR)
### ANSWER
SELECT medal FROM table_name_71 WHERE sport = "boxing" AND games = "1970 edinburgh" AND name = "james odwori"</s> | {
"answer": "SELECT medal FROM table_name_71 WHERE sport = \"boxing\" AND games = \"1970 edinburgh\" AND name = \"james odwori\"",
"context": "CREATE TABLE table_name_71 (medal VARCHAR, name VARCHAR, sport VARCHAR, games VARCHAR)",
"question": "What Medal did James Odwori receive for Boxing in the 1970 Edinburgh Games?"
} |
### QUESTION
Show names of teachers and the number of courses they teach.
### CONTEXT
CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)
### ANSWER
SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name</s> | {
"answer": "SELECT T2.Name, COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name",
"context": "CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)",
"question": "Show names of teachers and the number of courses they teach."
} |
### QUESTION
Show names of teachers that teach at least two courses.
### CONTEXT
CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)
### ANSWER
SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2</s> | {
"answer": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2",
"context": "CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)",
"question": "Show names of teachers that teach at least two courses."
} |
### QUESTION
Show the name of the teacher for the math course.
### CONTEXT
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course_ID VARCHAR, Course VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR)
### ANSWER
SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = "Math"</s> | {
"answer": "SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\"",
"context": "CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course_ID VARCHAR, Course VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR)",
"question": "Show the name of the teacher for the math course."
} |
### QUESTION
What is the Date of the Middlesbrough Home game?
### CONTEXT
CREATE TABLE table_name_42 (date VARCHAR, home_team VARCHAR)
### ANSWER
SELECT date FROM table_name_42 WHERE home_team = "middlesbrough"</s> | {
"answer": "SELECT date FROM table_name_42 WHERE home_team = \"middlesbrough\"",
"context": "CREATE TABLE table_name_42 (date VARCHAR, home_team VARCHAR)",
"question": "What is the Date of the Middlesbrough Home game?"
} |
### QUESTION
Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.
### CONTEXT
CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)
### ANSWER
SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name</s> | {
"answer": "SELECT T3.Name, T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name",
"context": "CREATE TABLE course_arrange (Course_ID VARCHAR, Teacher_ID VARCHAR); CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course (Course VARCHAR, Course_ID VARCHAR)",
"question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name."
} |
### QUESTION
What was the result of Declan Donnellan's nomination?
### CONTEXT
CREATE TABLE table_name_23 (result VARCHAR, nominee VARCHAR)
### ANSWER
SELECT result FROM table_name_23 WHERE nominee = "declan donnellan"</s> | {
"answer": "SELECT result FROM table_name_23 WHERE nominee = \"declan donnellan\"",
"context": "CREATE TABLE table_name_23 (result VARCHAR, nominee VARCHAR)",
"question": "What was the result of Declan Donnellan's nomination?"
} |
### QUESTION
What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?
### CONTEXT
CREATE TABLE visit (visitor_id VARCHAR, Total_spent INTEGER); CREATE TABLE visitor (name VARCHAR, Level_of_membership VARCHAR, id VARCHAR)
### ANSWER
SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1</s> | {
"answer": "SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1",
"context": "CREATE TABLE visit (visitor_id VARCHAR, Total_spent INTEGER); CREATE TABLE visitor (name VARCHAR, Level_of_membership VARCHAR, id VARCHAR)",
"question": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?"
} |
### QUESTION
What are the id and name of the museum visited most times?
### CONTEXT
CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR); CREATE TABLE visit (Museum_ID VARCHAR)
### ANSWER
SELECT t2.Museum_ID, t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT t2.Museum_ID, t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR); CREATE TABLE visit (Museum_ID VARCHAR)",
"question": "What are the id and name of the museum visited most times?"
} |
### QUESTION
What is the name of the museum that had no visitor yet?
### CONTEXT
CREATE TABLE visit (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR); CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR)
### ANSWER
SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit)</s> | {
"answer": "SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit)",
"context": "CREATE TABLE visit (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR); CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR)",
"question": "What is the name of the museum that had no visitor yet?"
} |
### QUESTION
What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?
### CONTEXT
CREATE TABLE visitor (name VARCHAR, id VARCHAR); CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)
### ANSWER
SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011</s> | {
"answer": "SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year > 2011",
"context": "CREATE TABLE visitor (name VARCHAR, id VARCHAR); CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)",
"question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?"
} |
### QUESTION
How many episodes in the series has a production code of 111?
### CONTEXT
CREATE TABLE table_24425976_2 (series VARCHAR, production_code VARCHAR)
### ANSWER
SELECT COUNT(series) FROM table_24425976_2 WHERE production_code = "111"</s> | {
"answer": "SELECT COUNT(series) FROM table_24425976_2 WHERE production_code = \"111\"",
"context": "CREATE TABLE table_24425976_2 (series VARCHAR, production_code VARCHAR)",
"question": "How many episodes in the series has a production code of 111?"
} |
### QUESTION
Find the number of visitors who did not visit any museum opened after 2010.
### CONTEXT
CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visitor (id VARCHAR); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)
### ANSWER
SELECT COUNT(*) FROM visitor WHERE NOT id IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)</s> | {
"answer": "SELECT COUNT(*) FROM visitor WHERE NOT id IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)",
"context": "CREATE TABLE museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visitor (id VARCHAR); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)",
"question": "Find the number of visitors who did not visit any museum opened after 2010."
} |
### QUESTION
For which network was Chris Walby the color commentator after 1990?
### CONTEXT
CREATE TABLE table_name_83 (network VARCHAR, year VARCHAR, colour_commentator_s_ VARCHAR)
### ANSWER
SELECT network FROM table_name_83 WHERE year > 1990 AND colour_commentator_s_ = "chris walby"</s> | {
"answer": "SELECT network FROM table_name_83 WHERE year > 1990 AND colour_commentator_s_ = \"chris walby\"",
"context": "CREATE TABLE table_name_83 (network VARCHAR, year VARCHAR, colour_commentator_s_ VARCHAR)",
"question": "For which network was Chris Walby the color commentator after 1990?"
} |
### QUESTION
Name the payout for espn for music city bowl
### CONTEXT
CREATE TABLE table_24427210_1 (payout___us$__ VARCHAR, tv VARCHAR, bowl_game VARCHAR)
### ANSWER
SELECT payout___us$__ FROM table_24427210_1 WHERE tv = "ESPN" AND bowl_game = "Music City Bowl"</s> | {
"answer": "SELECT payout___us$__ FROM table_24427210_1 WHERE tv = \"ESPN\" AND bowl_game = \"Music City Bowl\"",
"context": "CREATE TABLE table_24427210_1 (payout___us$__ VARCHAR, tv VARCHAR, bowl_game VARCHAR)",
"question": "Name the payout for espn for music city bowl"
} |
### QUESTION
List the names of all winners who played in both 2013 and 2016.
### CONTEXT
CREATE TABLE matches (winner_name VARCHAR, YEAR VARCHAR)
### ANSWER
SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016</s> | {
"answer": "SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016",
"context": "CREATE TABLE matches (winner_name VARCHAR, YEAR VARCHAR)",
"question": "List the names of all winners who played in both 2013 and 2016."
} |
### QUESTION
What is the average Against, when Status is "Five Nations", and when Date is "16/03/1996"?
### CONTEXT
CREATE TABLE table_name_28 (against INTEGER, status VARCHAR, date VARCHAR)
### ANSWER
SELECT AVG(against) FROM table_name_28 WHERE status = "five nations" AND date = "16/03/1996"</s> | {
"answer": "SELECT AVG(against) FROM table_name_28 WHERE status = \"five nations\" AND date = \"16/03/1996\"",
"context": "CREATE TABLE table_name_28 (against INTEGER, status VARCHAR, date VARCHAR)",
"question": "What is the average Against, when Status is \"Five Nations\", and when Date is \"16/03/1996\"?"
} |
### QUESTION
What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?
### CONTEXT
CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR)
### ANSWER
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'</s> | {
"answer": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'",
"context": "CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR)",
"question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?"
} |
### QUESTION
Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong?
### CONTEXT
CREATE TABLE table_24430894_20 (mutya_ng_pilipinas_asia_pacific VARCHAR)
### ANSWER
SELECT 2 AS nd_runner_up FROM table_24430894_20 WHERE mutya_ng_pilipinas_asia_pacific = "Rochelle Romero Ong"</s> | {
"answer": "SELECT 2 AS nd_runner_up FROM table_24430894_20 WHERE mutya_ng_pilipinas_asia_pacific = \"Rochelle Romero Ong\"",
"context": "CREATE TABLE table_24430894_20 (mutya_ng_pilipinas_asia_pacific VARCHAR)",
"question": "Who won 3rd place when the mutya ng pilipinas winner was was rochelle romero ong?"
} |
### QUESTION
Which Top Division debut for Kitazakura has Tournaments less than 88?
### CONTEXT
CREATE TABLE table_name_12 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR)
### ANSWER
SELECT top_division_debut FROM table_name_12 WHERE tournaments < 88 AND name = "kitazakura"</s> | {
"answer": "SELECT top_division_debut FROM table_name_12 WHERE tournaments < 88 AND name = \"kitazakura\"",
"context": "CREATE TABLE table_name_12 (top_division_debut VARCHAR, tournaments VARCHAR, name VARCHAR)",
"question": "Which Top Division debut for Kitazakura has Tournaments less than 88?"
} |
### QUESTION
List the number of years where ritchie ocampo was the mutya ng pilipinas winner.
### CONTEXT
CREATE TABLE table_24430894_20 (year VARCHAR, mutya_ng_pilipinas_asia_pacific VARCHAR)
### ANSWER
SELECT COUNT(year) FROM table_24430894_20 WHERE mutya_ng_pilipinas_asia_pacific = "Ritchie Ocampo"</s> | {
"answer": "SELECT COUNT(year) FROM table_24430894_20 WHERE mutya_ng_pilipinas_asia_pacific = \"Ritchie Ocampo\"",
"context": "CREATE TABLE table_24430894_20 (year VARCHAR, mutya_ng_pilipinas_asia_pacific VARCHAR)",
"question": "List the number of years where ritchie ocampo was the mutya ng pilipinas winner."
} |
### QUESTION
Find the first name and country code of the player who did the most number of tours.
### CONTEXT
CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)
### ANSWER
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1</s> | {
"answer": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1",
"context": "CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)",
"question": "Find the first name and country code of the player who did the most number of tours."
} |
### QUESTION
Find the average ranking for each player and their first name.
### CONTEXT
CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)
### ANSWER
SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name</s> | {
"answer": "SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name",
"context": "CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)",
"question": "Find the average ranking for each player and their first name."
} |
### QUESTION
Find the total ranking points for each player and their first name.
### CONTEXT
CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)
### ANSWER
SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name</s> | {
"answer": "SELECT SUM(ranking_points), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name",
"context": "CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)",
"question": "Find the total ranking points for each player and their first name."
} |
### QUESTION
What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?
### CONTEXT
CREATE TABLE table_name_62 (goals_for VARCHAR, losses VARCHAR, draws VARCHAR, wins VARCHAR)
### ANSWER
SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5</s> | {
"answer": "SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5",
"context": "CREATE TABLE table_name_62 (goals_for VARCHAR, losses VARCHAR, draws VARCHAR, wins VARCHAR)",
"question": "What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?"
} |
### QUESTION
Find the codes of countries that have more than 50 players.
### CONTEXT
CREATE TABLE players (country_code VARCHAR)
### ANSWER
SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50</s> | {
"answer": "SELECT country_code FROM players GROUP BY country_code HAVING COUNT(*) > 50",
"context": "CREATE TABLE players (country_code VARCHAR)",
"question": "Find the codes of countries that have more than 50 players."
} |
### QUESTION
How man fans showed up to watch the game versus the raleigh-durham skyhawks?
### CONTEXT
CREATE TABLE table_24481478_1 (attendance INTEGER, opponent VARCHAR)
### ANSWER
SELECT MAX(attendance) FROM table_24481478_1 WHERE opponent = "Raleigh-Durham Skyhawks"</s> | {
"answer": "SELECT MAX(attendance) FROM table_24481478_1 WHERE opponent = \"Raleigh-Durham Skyhawks\"",
"context": "CREATE TABLE table_24481478_1 (attendance INTEGER, opponent VARCHAR)",
"question": "How man fans showed up to watch the game versus the raleigh-durham skyhawks?"
} |
### QUESTION
How many different winners both participated in the WTA Championships and were left handed?
### CONTEXT
CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'</s> | {
"answer": "SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'",
"context": "CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR)",
"question": "How many different winners both participated in the WTA Championships and were left handed?"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.