text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
Find the id of users who are followed by Mary or Susan.
### CONTEXT
CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)
### ANSWER
SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" OR T1.name = "Susan" | {
"answer": "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Mary\" OR T1.name = \"Susan\"",
"context": "CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)",
"question": "Find the id of users who are followed by Mary or Susan."
} |
### QUESTION
Name the votes given for michael russo, genevy dimitrion , manny ortega
### CONTEXT
CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR)
### ANSWER
SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = "Michael Russo, Genevy Dimitrion , Manny Ortega" | {
"answer": "SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = \"Michael Russo, Genevy Dimitrion , Manny Ortega\"",
"context": "CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR)",
"question": "Name the votes given for michael russo, genevy dimitrion , manny ortega"
} |
### QUESTION
What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?
### CONTEXT
CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR)
### ANSWER
SELECT MAX(grid) FROM table_name_99 WHERE constructor = "mclaren - mercedes" AND driver = "david coulthard" AND laps < 66 | {
"answer": "SELECT MAX(grid) FROM table_name_99 WHERE constructor = \"mclaren - mercedes\" AND driver = \"david coulthard\" AND laps < 66",
"context": "CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR)",
"question": "What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?"
} |
### QUESTION
Find the name of the user who tweeted more than once, and number of tweets tweeted by them.
### CONTEXT
CREATE TABLE tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)
### ANSWER
SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1 | {
"answer": "SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1",
"context": "CREATE TABLE tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)",
"question": "Find the name of the user who tweeted more than once, and number of tweets tweeted by them."
} |
### QUESTION
If the round is the semi-finals, what are the new entries this round?
### CONTEXT
CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR)
### ANSWER
SELECT new_entries_this_round FROM table_1859269_1 WHERE round = "Semi-finals" | {
"answer": "SELECT new_entries_this_round FROM table_1859269_1 WHERE round = \"Semi-finals\"",
"context": "CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR)",
"question": "If the round is the semi-finals, what are the new entries this round?"
} |
### QUESTION
Find the list of attribute data types possessed by more than 3 attribute definitions.
### CONTEXT
CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR)
### ANSWER
SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3 | {
"answer": "SELECT attribute_data_type FROM Attribute_Definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3",
"context": "CREATE TABLE Attribute_Definitions (attribute_data_type VARCHAR)",
"question": "Find the list of attribute data types possessed by more than 3 attribute definitions."
} |
### QUESTION
Find the name and level of catalog structure with level between 5 and 10.
### CONTEXT
CREATE TABLE Catalog_Structure (catalog_level_name VARCHAR, catalog_level_number INTEGER)
### ANSWER
SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 | {
"answer": "SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10",
"context": "CREATE TABLE Catalog_Structure (catalog_level_name VARCHAR, catalog_level_number INTEGER)",
"question": "Find the name and level of catalog structure with level between 5 and 10."
} |
### QUESTION
What was the away team score at Corio Oval?
### CONTEXT
CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR)
### ANSWER
SELECT away_team AS score FROM table_name_42 WHERE venue = "corio oval" | {
"answer": "SELECT away_team AS score FROM table_name_42 WHERE venue = \"corio oval\"",
"context": "CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR)",
"question": "What was the away team score at Corio Oval?"
} |
### QUESTION
Which catalog publisher has published the most catalogs?
### CONTEXT
CREATE TABLE catalogs (catalog_publisher VARCHAR)
### ANSWER
SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT catalog_publisher FROM catalogs GROUP BY catalog_publisher ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE catalogs (catalog_publisher VARCHAR)",
"question": "Which catalog publisher has published the most catalogs?"
} |
### QUESTION
What are the entry names of catalog with the attribute possessed by most entries.
### CONTEXT
CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR); CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR)
### ANSWER
SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY COUNT(*) DESC LIMIT 1) | {
"answer": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY COUNT(*) DESC LIMIT 1)",
"context": "CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR); CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR)",
"question": "What are the entry names of catalog with the attribute possessed by most entries."
} |
### QUESTION
Find the names of catalog entries with level number 8.
### CONTEXT
CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, catalog_level_number VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR)
### ANSWER
SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" | {
"answer": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = \"8\"",
"context": "CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, catalog_level_number VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR)",
"question": "Find the names of catalog entries with level number 8."
} |
### QUESTION
Find the name and attribute ID of the attribute definitions with attribute value 0.
### CONTEXT
CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR)
### ANSWER
SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 | {
"answer": "SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0",
"context": "CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR)",
"question": "Find the name and attribute ID of the attribute definitions with attribute value 0."
} |
### QUESTION
Find the dates on which more than one revisions were made.
### CONTEXT
CREATE TABLE Catalogs (date_of_latest_revision VARCHAR)
### ANSWER
SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING COUNT(*) > 1 | {
"answer": "SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING COUNT(*) > 1",
"context": "CREATE TABLE Catalogs (date_of_latest_revision VARCHAR)",
"question": "Find the dates on which more than one revisions were made."
} |
### QUESTION
Which township has a longitude of -98.741656?
### CONTEXT
CREATE TABLE table_18600760_12 (township VARCHAR, longitude VARCHAR)
### ANSWER
SELECT township FROM table_18600760_12 WHERE longitude = "-98.741656" | {
"answer": "SELECT township FROM table_18600760_12 WHERE longitude = \"-98.741656\"",
"context": "CREATE TABLE table_18600760_12 (township VARCHAR, longitude VARCHAR)",
"question": "Which township has a longitude of -98.741656?"
} |
### QUESTION
How many places associated with latitude 48.247662?
### CONTEXT
CREATE TABLE table_18600760_13 (ansi_code VARCHAR, latitude VARCHAR)
### ANSWER
SELECT COUNT(ansi_code) FROM table_18600760_13 WHERE latitude = "48.247662" | {
"answer": "SELECT COUNT(ansi_code) FROM table_18600760_13 WHERE latitude = \"48.247662\"",
"context": "CREATE TABLE table_18600760_13 (ansi_code VARCHAR, latitude VARCHAR)",
"question": "How many places associated with latitude 48.247662?"
} |
### QUESTION
What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?
### CONTEXT
CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR)
### ANSWER
SELECT end_date FROM table_name_8 WHERE governor = "richard j. oglesby" AND term = "1885–1889" | {
"answer": "SELECT end_date FROM table_name_8 WHERE governor = \"richard j. oglesby\" AND term = \"1885–1889\"",
"context": "CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR)",
"question": "What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?"
} |
### QUESTION
What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?
### CONTEXT
CREATE TABLE table_name_5 (site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR)
### ANSWER
SELECT site FROM table_name_5 WHERE orbit = "leo" AND decay___utc__ = "still in orbit" AND function = "magnetosphere research" | {
"answer": "SELECT site FROM table_name_5 WHERE orbit = \"leo\" AND decay___utc__ = \"still in orbit\" AND function = \"magnetosphere research\"",
"context": "CREATE TABLE table_name_5 (site VARCHAR, function VARCHAR, orbit VARCHAR, decay___utc__ VARCHAR)",
"question": "What site has an orbit of Leo, a decay (UTC) of still in orbit, and a magnetosphere research?"
} |
### QUESTION
What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?
### CONTEXT
CREATE TABLE table_name_23 (date_and_time___utc__ VARCHAR, site VARCHAR, rocket VARCHAR, orbit VARCHAR, function VARCHAR)
### ANSWER
SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = "sub-orbital" AND function = "aeronomy research" AND rocket = "nike orion" AND site = "poker flat" | {
"answer": "SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = \"sub-orbital\" AND function = \"aeronomy research\" AND rocket = \"nike orion\" AND site = \"poker flat\"",
"context": "CREATE TABLE table_name_23 (date_and_time___utc__ VARCHAR, site VARCHAR, rocket VARCHAR, orbit VARCHAR, function VARCHAR)",
"question": "What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?"
} |
### QUESTION
who is the runner-up when the winning score is −16 (68-70-65-65=268)?
### CONTEXT
CREATE TABLE table_name_26 (runner_up VARCHAR, winning_score VARCHAR)
### ANSWER
SELECT runner_up FROM table_name_26 WHERE winning_score = −16(68 - 70 - 65 - 65 = 268) | {
"answer": "SELECT runner_up FROM table_name_26 WHERE winning_score = −16(68 - 70 - 65 - 65 = 268)",
"context": "CREATE TABLE table_name_26 (runner_up VARCHAR, winning_score VARCHAR)",
"question": "who is the runner-up when the winning score is −16 (68-70-65-65=268)?"
} |
### QUESTION
Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.
### CONTEXT
CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR)
### ANSWER
SELECT departure_date, arrival_date FROM Flight WHERE origin = "Los Angeles" AND destination = "Honolulu" | {
"answer": "SELECT departure_date, arrival_date FROM Flight WHERE origin = \"Los Angeles\" AND destination = \"Honolulu\"",
"context": "CREATE TABLE Flight (departure_date VARCHAR, arrival_date VARCHAR, origin VARCHAR, destination VARCHAR)",
"question": "Show me the departure date and arrival date for all flights from Los Angeles to Honolulu."
} |
### QUESTION
When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?
### CONTEXT
CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, quarterfinals VARCHAR)
### ANSWER
SELECT final__bronze_medal_match FROM table_18602462_21 WHERE quarterfinals = "Houdet ( FRA ) W 6-2, 6-1" | {
"answer": "SELECT final__bronze_medal_match FROM table_18602462_21 WHERE quarterfinals = \"Houdet ( FRA ) W 6-2, 6-1\"",
"context": "CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, quarterfinals VARCHAR)",
"question": "When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?"
} |
### QUESTION
When mixed quad singles is the event what is the final/bronze medal match?
### CONTEXT
CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, event VARCHAR)
### ANSWER
SELECT final__bronze_medal_match FROM table_18602462_21 WHERE event = "Mixed Quad Singles" | {
"answer": "SELECT final__bronze_medal_match FROM table_18602462_21 WHERE event = \"Mixed Quad Singles\"",
"context": "CREATE TABLE table_18602462_21 (final__bronze_medal_match VARCHAR, event VARCHAR)",
"question": "When mixed quad singles is the event what is the final/bronze medal match?"
} |
### QUESTION
Show all flight numbers with aircraft Airbus A340-300.
### CONTEXT
CREATE TABLE Flight (flno VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
### ANSWER
SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = "Airbus A340-300" | {
"answer": "SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T2.name = \"Airbus A340-300\"",
"context": "CREATE TABLE Flight (flno VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)",
"question": "Show all flight numbers with aircraft Airbus A340-300."
} |
### QUESTION
How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?
### CONTEXT
CREATE TABLE table_18602462_22 (round_of_32 VARCHAR, round_of_16 VARCHAR)
### ANSWER
SELECT COUNT(round_of_32) FROM table_18602462_22 WHERE round_of_16 = "Polidori ( ITA ) W 6-1, 3-6, 6-3" | {
"answer": "SELECT COUNT(round_of_32) FROM table_18602462_22 WHERE round_of_16 = \"Polidori ( ITA ) W 6-1, 3-6, 6-3\"",
"context": "CREATE TABLE table_18602462_22 (round_of_32 VARCHAR, round_of_16 VARCHAR)",
"question": "How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?"
} |
### QUESTION
Show names for all aircraft with at least two flights.
### CONTEXT
CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Flight (aid VARCHAR)
### ANSWER
SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING COUNT(*) >= 2 | {
"answer": "SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid HAVING COUNT(*) >= 2",
"context": "CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Flight (aid VARCHAR)",
"question": "Show names for all aircraft with at least two flights."
} |
### QUESTION
Who is the lowest ranked player from the United States that has less than 3 Wins?
### CONTEXT
CREATE TABLE table_name_59 (rank INTEGER, country VARCHAR, wins VARCHAR)
### ANSWER
SELECT MIN(rank) FROM table_name_59 WHERE country = "united states" AND wins < 3 | {
"answer": "SELECT MIN(rank) FROM table_name_59 WHERE country = \"united states\" AND wins < 3",
"context": "CREATE TABLE table_name_59 (rank INTEGER, country VARCHAR, wins VARCHAR)",
"question": "Who is the lowest ranked player from the United States that has less than 3 Wins?"
} |
### QUESTION
Show names for all aircrafts of which John Williams has certificates.
### CONTEXT
CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Employee (eid VARCHAR, name VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)
### ANSWER
SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = "John Williams" | {
"answer": "SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T1.name = \"John Williams\"",
"context": "CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Employee (eid VARCHAR, name VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)",
"question": "Show names for all aircrafts of which John Williams has certificates."
} |
### QUESTION
What is the score of the game that had a visiting team of Edmonton?
### CONTEXT
CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR)
### ANSWER
SELECT score FROM table_name_93 WHERE visitor = "edmonton" | {
"answer": "SELECT score FROM table_name_93 WHERE visitor = \"edmonton\"",
"context": "CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR)",
"question": "What is the score of the game that had a visiting team of Edmonton?"
} |
### QUESTION
Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.
### CONTEXT
CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
### ANSWER
SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Airbus A340-300" | {
"answer": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Airbus A340-300\"",
"context": "CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)",
"question": "Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300."
} |
### QUESTION
Show names for all employees who do not have certificate of Boeing 737-800.
### CONTEXT
CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Employee (name VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
### ANSWER
SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" | {
"answer": "SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = \"Boeing 737-800\"",
"context": "CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Employee (name VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)",
"question": "Show names for all employees who do not have certificate of Boeing 737-800."
} |
### QUESTION
what is the salary and name of the employee who has the most number of aircraft certificates?
### CONTEXT
CREATE TABLE Certificate (eid VARCHAR); CREATE TABLE Employee (name VARCHAR, salary VARCHAR, eid VARCHAR)
### ANSWER
SELECT T1.name, T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.name, T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Certificate (eid VARCHAR); CREATE TABLE Employee (name VARCHAR, salary VARCHAR, eid VARCHAR)",
"question": "what is the salary and name of the employee who has the most number of aircraft certificates?"
} |
### QUESTION
What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?
### CONTEXT
CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)
### ANSWER
SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)",
"question": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?"
} |
### QUESTION
What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park?
### CONTEXT
CREATE TABLE table_name_17 (score VARCHAR, winners VARCHAR, venue VARCHAR, runners_up VARCHAR)
### ANSWER
SELECT score FROM table_name_17 WHERE venue = "hampden park" AND runners_up = "rangers" AND winners = "hibernian" | {
"answer": "SELECT score FROM table_name_17 WHERE venue = \"hampden park\" AND runners_up = \"rangers\" AND winners = \"hibernian\"",
"context": "CREATE TABLE table_name_17 (score VARCHAR, winners VARCHAR, venue VARCHAR, runners_up VARCHAR)",
"question": "What is the Score of the Rangers' Runner-ups and Hibernian Winners in Hampden Park?"
} |
### QUESTION
What Runners-up have a Venue in Broadwood Stadium?
### CONTEXT
CREATE TABLE table_name_75 (runners_up VARCHAR, venue VARCHAR)
### ANSWER
SELECT runners_up FROM table_name_75 WHERE venue = "broadwood stadium" | {
"answer": "SELECT runners_up FROM table_name_75 WHERE venue = \"broadwood stadium\"",
"context": "CREATE TABLE table_name_75 (runners_up VARCHAR, venue VARCHAR)",
"question": "What Runners-up have a Venue in Broadwood Stadium?"
} |
### QUESTION
In the film Mrs. Miniver, what is the actresses name?
### CONTEXT
CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)
### ANSWER
SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Mrs. Miniver" | {
"answer": "SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = \"Mrs. Miniver\"",
"context": "CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)",
"question": "In the film Mrs. Miniver, what is the actresses name?"
} |
### QUESTION
What year was Teresa Wright nominated best supporting actress?
### CONTEXT
CREATE TABLE table_18638067_1 (year__ceremony_ VARCHAR, actor_actress VARCHAR, category VARCHAR)
### ANSWER
SELECT year__ceremony_ FROM table_18638067_1 WHERE actor_actress = "Teresa Wright" AND category = "Best Supporting Actress" | {
"answer": "SELECT year__ceremony_ FROM table_18638067_1 WHERE actor_actress = \"Teresa Wright\" AND category = \"Best Supporting Actress\"",
"context": "CREATE TABLE table_18638067_1 (year__ceremony_ VARCHAR, actor_actress VARCHAR, category VARCHAR)",
"question": "What year was Teresa Wright nominated best supporting actress?"
} |
### QUESTION
Who was nominated for best supporting actor in the movie Going My Way?
### CONTEXT
CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR, category VARCHAR)
### ANSWER
SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Going My Way" AND category = "Best Supporting Actor" | {
"answer": "SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = \"Going My Way\" AND category = \"Best Supporting Actor\"",
"context": "CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR, category VARCHAR)",
"question": "Who was nominated for best supporting actor in the movie Going My Way?"
} |
### QUESTION
Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?
### CONTEXT
CREATE TABLE table_name_98 (ave__no INTEGER, name VARCHAR, height__m_ VARCHAR)
### ANSWER
SELECT SUM(ave__no) FROM table_name_98 WHERE name = "albula alps" AND height__m_ > 3418 | {
"answer": "SELECT SUM(ave__no) FROM table_name_98 WHERE name = \"albula alps\" AND height__m_ > 3418",
"context": "CREATE TABLE table_name_98 (ave__no INTEGER, name VARCHAR, height__m_ VARCHAR)",
"question": "Which sum of AVE-No has a Name of albula alps, and a Height (m) larger than 3418?"
} |
### QUESTION
Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?
### CONTEXT
CREATE TABLE table_name_97 (height__m_ INTEGER, name VARCHAR, ave__no VARCHAR)
### ANSWER
SELECT MIN(height__m_) FROM table_name_97 WHERE name = "plessur alps" AND ave__no > 63 | {
"answer": "SELECT MIN(height__m_) FROM table_name_97 WHERE name = \"plessur alps\" AND ave__no > 63",
"context": "CREATE TABLE table_name_97 (height__m_ INTEGER, name VARCHAR, ave__no VARCHAR)",
"question": "Which Height (m) has a Name of plessur alps, and a AVE-No larger than 63?"
} |
### QUESTION
Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?
### CONTEXT
CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
### ANSWER
SELECT winning_driver FROM table_name_13 WHERE fastest_lap = "michael schumacher" AND constructor = "ferrari" AND pole_position = "jenson button" | {
"answer": "SELECT winning_driver FROM table_name_13 WHERE fastest_lap = \"michael schumacher\" AND constructor = \"ferrari\" AND pole_position = \"jenson button\"",
"context": "CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)",
"question": "Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?"
} |
### QUESTION
What is the category of the touchdown atlantic?
### CONTEXT
CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR)
### ANSWER
SELECT category FROM table_name_76 WHERE event_name = "touchdown atlantic" | {
"answer": "SELECT category FROM table_name_76 WHERE event_name = \"touchdown atlantic\"",
"context": "CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR)",
"question": "What is the category of the touchdown atlantic?"
} |
### QUESTION
In which league would you find the player with a comp percentage of 54.0?
### CONTEXT
CREATE TABLE table_18686317_1 (leagues VARCHAR, comp__percentage VARCHAR)
### ANSWER
SELECT leagues FROM table_18686317_1 WHERE comp__percentage = "54.0" | {
"answer": "SELECT leagues FROM table_18686317_1 WHERE comp__percentage = \"54.0\"",
"context": "CREATE TABLE table_18686317_1 (leagues VARCHAR, comp__percentage VARCHAR)",
"question": "In which league would you find the player with a comp percentage of 54.0?"
} |
### QUESTION
How many total team penalties are there when cross country penalties is 30.40?
### CONTEXT
CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR)
### ANSWER
SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = "30.40" | {
"answer": "SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = \"30.40\"",
"context": "CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR)",
"question": "How many total team penalties are there when cross country penalties is 30.40?"
} |
### QUESTION
Show the average age for male and female students.
### CONTEXT
CREATE TABLE Student (sex VARCHAR, age INTEGER)
### ANSWER
SELECT AVG(age), sex FROM Student GROUP BY sex | {
"answer": "SELECT AVG(age), sex FROM Student GROUP BY sex",
"context": "CREATE TABLE Student (sex VARCHAR, age INTEGER)",
"question": "Show the average age for male and female students."
} |
### QUESTION
What is the low lap total for the under 4 grid car driven by juan pablo montoya?
### CONTEXT
CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, driver VARCHAR)
### ANSWER
SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = "juan pablo montoya" | {
"answer": "SELECT MIN(laps) FROM table_name_65 WHERE grid < 4 AND driver = \"juan pablo montoya\"",
"context": "CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, driver VARCHAR)",
"question": "What is the low lap total for the under 4 grid car driven by juan pablo montoya?"
} |
### QUESTION
How many female students have milk or egg allergies?
### CONTEXT
CREATE TABLE Student (StuID VARCHAR, sex VARCHAR); CREATE TABLE has_allergy (StuID VARCHAR, allergy VARCHAR)
### ANSWER
SELECT COUNT(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = "F" AND T1.allergy = "Milk" OR T1.allergy = "Eggs" | {
"answer": "SELECT COUNT(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T2.sex = \"F\" AND T1.allergy = \"Milk\" OR T1.allergy = \"Eggs\"",
"context": "CREATE TABLE Student (StuID VARCHAR, sex VARCHAR); CREATE TABLE has_allergy (StuID VARCHAR, allergy VARCHAR)",
"question": "How many female students have milk or egg allergies?"
} |
### QUESTION
What batting style corresponds to a bowling style of right arm medium for Stuart Williams?
### CONTEXT
CREATE TABLE table_name_32 (batting_style VARCHAR, bowling_style VARCHAR, player VARCHAR)
### ANSWER
SELECT batting_style FROM table_name_32 WHERE bowling_style = "right arm medium" AND player = "stuart williams" | {
"answer": "SELECT batting_style FROM table_name_32 WHERE bowling_style = \"right arm medium\" AND player = \"stuart williams\"",
"context": "CREATE TABLE table_name_32 (batting_style VARCHAR, bowling_style VARCHAR, player VARCHAR)",
"question": "What batting style corresponds to a bowling style of right arm medium for Stuart Williams?"
} |
### QUESTION
Show all allergy type with number of students affected.
### CONTEXT
CREATE TABLE Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR)
### ANSWER
SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype | {
"answer": "SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype",
"context": "CREATE TABLE Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR)",
"question": "Show all allergy type with number of students affected."
} |
### QUESTION
Find the last name and age of the student who has allergy to both milk and cat.
### CONTEXT
CREATE TABLE Has_allergy (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Student (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR)
### ANSWER
SELECT lname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat") | {
"answer": "SELECT lname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = \"Milk\" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = \"Cat\")",
"context": "CREATE TABLE Has_allergy (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Student (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR)",
"question": "Find the last name and age of the student who has allergy to both milk and cat."
} |
### QUESTION
What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.
### CONTEXT
CREATE TABLE Has_allergy (Allergy VARCHAR, StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR, Fname VARCHAR); CREATE TABLE Allergy_type (Allergy VARCHAR, AllergyType VARCHAR)
### ANSWER
SELECT T1.Allergy, T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" ORDER BY T1.Allergy | {
"answer": "SELECT T1.Allergy, T1.AllergyType FROM Allergy_type AS T1 JOIN Has_allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = \"Lisa\" ORDER BY T1.Allergy",
"context": "CREATE TABLE Has_allergy (Allergy VARCHAR, StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR, Fname VARCHAR); CREATE TABLE Allergy_type (Allergy VARCHAR, AllergyType VARCHAR)",
"question": "What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies."
} |
### QUESTION
Tell me the School/Club team of the player from the United States that play'de guard?
### CONTEXT
CREATE TABLE table_name_53 (school_club_team VARCHAR, nationality VARCHAR, position VARCHAR)
### ANSWER
SELECT school_club_team FROM table_name_53 WHERE nationality = "united states" AND position = "guard" | {
"answer": "SELECT school_club_team FROM table_name_53 WHERE nationality = \"united states\" AND position = \"guard\"",
"context": "CREATE TABLE table_name_53 (school_club_team VARCHAR, nationality VARCHAR, position VARCHAR)",
"question": "Tell me the School/Club team of the player from the United States that play'de guard?"
} |
### QUESTION
Find the average age of the students who have allergies with food and animal types.
### CONTEXT
CREATE TABLE Student (age INTEGER, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR)
### ANSWER
SELECT AVG(age) FROM Student WHERE StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "animal") | {
"answer": "SELECT AVG(age) FROM Student WHERE StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" INTERSECT SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"animal\")",
"context": "CREATE TABLE Student (age INTEGER, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR)",
"question": "Find the average age of the students who have allergies with food and animal types."
} |
### QUESTION
List the first and last name of the students who do not have any food type allergy.
### CONTEXT
CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR)
### ANSWER
SELECT fname, lname FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food") | {
"answer": "SELECT fname, lname FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"context": "CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (StuID VARCHAR, Allergy VARCHAR)",
"question": "List the first and last name of the students who do not have any food type allergy."
} |
### QUESTION
Find the number of male (sex is 'M') students who have some food type allery.
### CONTEXT
CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Student (sex VARCHAR, StuID VARCHAR)
### ANSWER
SELECT COUNT(*) FROM Student WHERE sex = "M" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food") | {
"answer": "SELECT COUNT(*) FROM Student WHERE sex = \"M\" AND StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\")",
"context": "CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Student (sex VARCHAR, StuID VARCHAR)",
"question": "Find the number of male (sex is 'M') students who have some food type allery."
} |
### QUESTION
Find the different first names and cities of the students who have allergy to milk or cat.
### CONTEXT
CREATE TABLE Has_Allergy (stuid VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, city_code VARCHAR, stuid VARCHAR)
### ANSWER
SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat" | {
"answer": "SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = \"Milk\" OR T2.Allergy = \"Cat\"",
"context": "CREATE TABLE Has_Allergy (stuid VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, city_code VARCHAR, stuid VARCHAR)",
"question": "Find the different first names and cities of the students who have allergy to milk or cat."
} |
### QUESTION
Find the number of students who are older than 18 and do not have allergy to either food or animal.
### CONTEXT
CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Student (age VARCHAR, StuID VARCHAR)
### ANSWER
SELECT COUNT(*) FROM Student WHERE age > 18 AND NOT StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = "food" OR T2.allergytype = "animal") | {
"answer": "SELECT COUNT(*) FROM Student WHERE age > 18 AND NOT StuID IN (SELECT StuID FROM Has_allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.allergytype = \"food\" OR T2.allergytype = \"animal\")",
"context": "CREATE TABLE Allergy_Type (Allergy VARCHAR, allergytype VARCHAR); CREATE TABLE Has_allergy (Allergy VARCHAR); CREATE TABLE Student (age VARCHAR, StuID VARCHAR)",
"question": "Find the number of students who are older than 18 and do not have allergy to either food or animal."
} |
### QUESTION
What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
### CONTEXT
CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)
### ANSWER
SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th" | {
"answer": "SELECT level FROM table_name_21 WHERE season > 2003 AND division = \"kakkonen (second division)\" AND position = \"12th\"",
"context": "CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)",
"question": "What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?"
} |
### QUESTION
A list of the top 5 countries by number of invoices. List country name and number of invoices.
### CONTEXT
CREATE TABLE invoices (billing_country VARCHAR)
### ANSWER
SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5 | {
"answer": "SELECT billing_country, COUNT(*) FROM invoices GROUP BY billing_country ORDER BY COUNT(*) DESC LIMIT 5",
"context": "CREATE TABLE invoices (billing_country VARCHAR)",
"question": "A list of the top 5 countries by number of invoices. List country name and number of invoices."
} |
### QUESTION
Who directed the episode written by Matt Ford?
### CONTEXT
CREATE TABLE table_18712423_3 (directed_by VARCHAR, written_by VARCHAR)
### ANSWER
SELECT directed_by FROM table_18712423_3 WHERE written_by = "Matt Ford" | {
"answer": "SELECT directed_by FROM table_18712423_3 WHERE written_by = \"Matt Ford\"",
"context": "CREATE TABLE table_18712423_3 (directed_by VARCHAR, written_by VARCHAR)",
"question": "Who directed the episode written by Matt Ford?"
} |
### QUESTION
What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3?
### CONTEXT
CREATE TABLE table_name_44 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR, player VARCHAR)
### ANSWER
SELECT SUM(pl_gp) FROM table_name_44 WHERE pick__number < 122 AND player = "rob flockhart" AND rd__number < 3 | {
"answer": "SELECT SUM(pl_gp) FROM table_name_44 WHERE pick__number < 122 AND player = \"rob flockhart\" AND rd__number < 3",
"context": "CREATE TABLE table_name_44 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR, player VARCHAR)",
"question": "What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3?"
} |
### QUESTION
Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders.
### CONTEXT
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR)
### ANSWER
SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10 | {
"answer": "SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10",
"context": "CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR)",
"question": "Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders."
} |
### QUESTION
List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.
### CONTEXT
CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10 | {
"answer": "SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10",
"context": "CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR)",
"question": "List the top 10 customers by total gross sales. List customers' first and last name and total gross sales."
} |
### QUESTION
List the top 5 genres by number of tracks. List genres name and total tracks.
### CONTEXT
CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5 | {
"answer": "SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5",
"context": "CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)",
"question": "List the top 5 genres by number of tracks. List genres name and total tracks."
} |
### QUESTION
If Internet Explorer is 47.22%, what is the Safari total?
### CONTEXT
CREATE TABLE table_1876262_10 (safari VARCHAR, internet_explorer VARCHAR)
### ANSWER
SELECT safari FROM table_1876262_10 WHERE internet_explorer = "47.22%" | {
"answer": "SELECT safari FROM table_1876262_10 WHERE internet_explorer = \"47.22%\"",
"context": "CREATE TABLE table_1876262_10 (safari VARCHAR, internet_explorer VARCHAR)",
"question": "If Internet Explorer is 47.22%, what is the Safari total?"
} |
### QUESTION
Name the total number of series for march 19, 2000
### CONTEXT
CREATE TABLE table_1876825_2 (no_in_series VARCHAR, original_air_date VARCHAR)
### ANSWER
SELECT COUNT(no_in_series) FROM table_1876825_2 WHERE original_air_date = "March 19, 2000" | {
"answer": "SELECT COUNT(no_in_series) FROM table_1876825_2 WHERE original_air_date = \"March 19, 2000\"",
"context": "CREATE TABLE table_1876825_2 (no_in_series VARCHAR, original_air_date VARCHAR)",
"question": "Name the total number of series for march 19, 2000"
} |
### QUESTION
What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification?
### CONTEXT
CREATE TABLE table_name_47 (result VARCHAR, score VARCHAR, competition VARCHAR)
### ANSWER
SELECT result FROM table_name_47 WHERE score = "1–0" AND competition = "2014 fifa world cup qualification" | {
"answer": "SELECT result FROM table_name_47 WHERE score = \"1–0\" AND competition = \"2014 fifa world cup qualification\"",
"context": "CREATE TABLE table_name_47 (result VARCHAR, score VARCHAR, competition VARCHAR)",
"question": "What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification?"
} |
### QUESTION
What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?
### CONTEXT
CREATE TABLE table_name_26 (date VARCHAR, competition VARCHAR, score VARCHAR)
### ANSWER
SELECT date FROM table_name_26 WHERE competition = "2014 fifa world cup qualification" AND score = "1–0" | {
"answer": "SELECT date FROM table_name_26 WHERE competition = \"2014 fifa world cup qualification\" AND score = \"1–0\"",
"context": "CREATE TABLE table_name_26 (date VARCHAR, competition VARCHAR, score VARCHAR)",
"question": "What date was the Competition of 2014 fifa world cup qualification, with a Score of 1–0?"
} |
### QUESTION
What is the production code for episode 6 in the season?
### CONTEXT
CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR)
### ANSWER
SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6 | {
"answer": "SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6",
"context": "CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR)",
"question": "What is the production code for episode 6 in the season?"
} |
### QUESTION
Eduardo Martins is a customer at which company?
### CONTEXT
CREATE TABLE customers (company VARCHAR, first_name VARCHAR, last_name VARCHAR)
### ANSWER
SELECT company FROM customers WHERE first_name = "Eduardo" AND last_name = "Martins" | {
"answer": "SELECT company FROM customers WHERE first_name = \"Eduardo\" AND last_name = \"Martins\"",
"context": "CREATE TABLE customers (company VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"question": "Eduardo Martins is a customer at which company?"
} |
### QUESTION
What is Astrid Gruber's email and phone number?
### CONTEXT
CREATE TABLE customers (email VARCHAR, phone VARCHAR, first_name VARCHAR, last_name VARCHAR)
### ANSWER
SELECT email, phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber" | {
"answer": "SELECT email, phone FROM customers WHERE first_name = \"Astrid\" AND last_name = \"Gruber\"",
"context": "CREATE TABLE customers (email VARCHAR, phone VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"question": "What is Astrid Gruber's email and phone number?"
} |
### QUESTION
what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?
### CONTEXT
CREATE TABLE table_name_24 (constellation VARCHAR, right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
### ANSWER
SELECT constellation FROM table_name_24 WHERE object_type = "spiral galaxy" AND ngc_number < 3593 AND right_ascension___j2000__ = "11h05m48.9s" | {
"answer": "SELECT constellation FROM table_name_24 WHERE object_type = \"spiral galaxy\" AND ngc_number < 3593 AND right_ascension___j2000__ = \"11h05m48.9s\"",
"context": "CREATE TABLE table_name_24 (constellation VARCHAR, right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)",
"question": "what is the constellation when the object type is spiral galaxy, the ngc number is less than 3593 and the right ascension (j2000) is 11h05m48.9s?"
} |
### QUESTION
How many customers does Steve Johnson support?
### CONTEXT
CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson" | {
"answer": "SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = \"Steve\" AND T1.last_name = \"Johnson\"",
"context": "CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR)",
"question": "How many customers does Steve Johnson support?"
} |
### QUESTION
find the full name of employees who report to Nancy Edwards?
### CONTEXT
CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR)
### ANSWER
SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards" | {
"answer": "SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\"",
"context": "CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR)",
"question": "find the full name of employees who report to Nancy Edwards?"
} |
### QUESTION
Find the full name of employee who supported the most number of customers.
### CONTEXT
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR)
### ANSWER
SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.first_name, T1.last_name FROM employees AS T1 JOIN customers AS T2 ON T1.id = T2.support_rep_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR)",
"question": "Find the full name of employee who supported the most number of customers."
} |
### QUESTION
How many employees are living in Canada?
### CONTEXT
CREATE TABLE employees (country VARCHAR)
### ANSWER
SELECT COUNT(*) FROM employees WHERE country = "Canada" | {
"answer": "SELECT COUNT(*) FROM employees WHERE country = \"Canada\"",
"context": "CREATE TABLE employees (country VARCHAR)",
"question": "How many employees are living in Canada?"
} |
### QUESTION
Who is the youngest employee in the company? List employee's first and last name.
### CONTEXT
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR)
### ANSWER
SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1 | {
"answer": "SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1",
"context": "CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR)",
"question": "Who is the youngest employee in the company? List employee's first and last name."
} |
### QUESTION
What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?
### CONTEXT
CREATE TABLE table_name_82 (date VARCHAR, label VARCHAR, catalog VARCHAR)
### ANSWER
SELECT date FROM table_name_82 WHERE label = "sony bmg, epic" AND catalog = "5187482" | {
"answer": "SELECT date FROM table_name_82 WHERE label = \"sony bmg, epic\" AND catalog = \"5187482\"",
"context": "CREATE TABLE table_name_82 (date VARCHAR, label VARCHAR, catalog VARCHAR)",
"question": "What is the date of the item with a label of Sony BMG, Epic and a Catalog number 5187482?"
} |
### QUESTION
Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.
### CONTEXT
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE employees (reports_to VARCHAR)
### ANSWER
SELECT T2.first_name, T2.last_name, COUNT(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY COUNT(T1.reports_to) DESC LIMIT 1 | {
"answer": "SELECT T2.first_name, T2.last_name, COUNT(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY COUNT(T1.reports_to) DESC LIMIT 1",
"context": "CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE employees (reports_to VARCHAR)",
"question": "Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee."
} |
### QUESTION
How many orders does Lucas Mancini has?
### CONTEXT
CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
### ANSWER
SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = "Lucas" AND T1.last_name = "Mancini" | {
"answer": "SELECT COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T1.id = T2.customer_id WHERE T1.first_name = \"Lucas\" AND T1.last_name = \"Mancini\"",
"context": "CREATE TABLE invoices (customer_id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"question": "How many orders does Lucas Mancini has?"
} |
### QUESTION
What nationality is the la salle team?
### CONTEXT
CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR)
### ANSWER
SELECT nationality FROM table_name_28 WHERE school_club_team = "la salle" | {
"answer": "SELECT nationality FROM table_name_28 WHERE school_club_team = \"la salle\"",
"context": "CREATE TABLE table_name_28 (nationality VARCHAR, school_club_team VARCHAR)",
"question": "What nationality is the la salle team?"
} |
### QUESTION
What was the date of appointment for the manager of the 23rd team?
### CONTEXT
CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
### ANSWER
SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = "23rd" | {
"answer": "SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = \"23rd\"",
"context": "CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)",
"question": "What was the date of appointment for the manager of the 23rd team?"
} |
### QUESTION
What is every country with a TV network of AXN India?
### CONTEXT
CREATE TABLE table_18821196_1 (country VARCHAR, tv_network_s_ VARCHAR)
### ANSWER
SELECT country FROM table_18821196_1 WHERE tv_network_s_ = "AXN India" | {
"answer": "SELECT country FROM table_18821196_1 WHERE tv_network_s_ = \"AXN India\"",
"context": "CREATE TABLE table_18821196_1 (country VARCHAR, tv_network_s_ VARCHAR)",
"question": "What is every country with a TV network of AXN India?"
} |
### QUESTION
List title of albums have the number of tracks greater than 10.
### CONTEXT
CREATE TABLE tracks (album_id VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10 | {
"answer": "SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10",
"context": "CREATE TABLE tracks (album_id VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR)",
"question": "List title of albums have the number of tracks greater than 10."
} |
### QUESTION
List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.
### CONTEXT
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)
### ANSWER
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" AND T3.name = "MPEG audio file" | {
"answer": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\"",
"context": "CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)",
"question": "List the name of tracks belongs to genre Rock and whose media type is MPEG audio file."
} |
### QUESTION
List the name of tracks belongs to genre Rock or media type is MPEG audio file.
### CONTEXT
CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)
### ANSWER
SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" OR T3.name = "MPEG audio file" | {
"answer": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" OR T3.name = \"MPEG audio file\"",
"context": "CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)",
"question": "List the name of tracks belongs to genre Rock or media type is MPEG audio file."
} |
### QUESTION
How much was the prize money for rwe-sporthalle, mülheim ?
### CONTEXT
CREATE TABLE table_18828487_1 (prize_fund VARCHAR, venue VARCHAR)
### ANSWER
SELECT prize_fund FROM table_18828487_1 WHERE venue = "RWE-Sporthalle, Mülheim" | {
"answer": "SELECT prize_fund FROM table_18828487_1 WHERE venue = \"RWE-Sporthalle, Mülheim\"",
"context": "CREATE TABLE table_18828487_1 (prize_fund VARCHAR, venue VARCHAR)",
"question": "How much was the prize money for rwe-sporthalle, mülheim ?"
} |
### QUESTION
What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?
### CONTEXT
CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR)
### ANSWER
SELECT status FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm" | {
"answer": "SELECT status FROM table_18821196_1 WHERE weekly_schedule = \"Monday to Thursday @ 11:00 pm\"",
"context": "CREATE TABLE table_18821196_1 (status VARCHAR, weekly_schedule VARCHAR)",
"question": "What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?"
} |
### QUESTION
List the name of all tracks in the playlists of Movies.
### CONTEXT
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = "Movies" | {
"answer": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T3.id = T2.playlist_id WHERE T3.name = \"Movies\"",
"context": "CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)",
"question": "List the name of all tracks in the playlists of Movies."
} |
### QUESTION
List all tracks bought by customer Daan Peeters.
### CONTEXT
CREATE TABLE invoices (id VARCHAR, customer_id VARCHAR); CREATE TABLE invoice_lines (track_id VARCHAR, invoice_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)
### ANSWER
SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = "Daan" AND T4.last_name = "Peeters" | {
"answer": "SELECT T1.name FROM tracks AS T1 JOIN invoice_lines AS T2 ON T1.id = T2.track_id JOIN invoices AS T3 ON T3.id = T2.invoice_id JOIN customers AS T4 ON T4.id = T3.customer_id WHERE T4.first_name = \"Daan\" AND T4.last_name = \"Peeters\"",
"context": "CREATE TABLE invoices (id VARCHAR, customer_id VARCHAR); CREATE TABLE invoice_lines (track_id VARCHAR, invoice_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR); CREATE TABLE customers (id VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"question": "List all tracks bought by customer Daan Peeters."
} |
### QUESTION
When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?
### CONTEXT
CREATE TABLE table_18823880_10 (l2_cache VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)
### ANSWER
SELECT l2_cache FROM table_18823880_10 WHERE release_date = "September 2009" AND part_number_s_ = "BY80607002529AF" | {
"answer": "SELECT l2_cache FROM table_18823880_10 WHERE release_date = \"September 2009\" AND part_number_s_ = \"BY80607002529AF\"",
"context": "CREATE TABLE table_18823880_10 (l2_cache VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)",
"question": "When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?"
} |
### QUESTION
Find the name of tracks which are in Movies playlist but not in music playlist.
### CONTEXT
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' | {
"answer": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' EXCEPT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'",
"context": "CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)",
"question": "Find the name of tracks which are in Movies playlist but not in music playlist."
} |
### QUESTION
Find the name of tracks which are in both Movies and music playlists.
### CONTEXT
CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music' | {
"answer": "SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Movies' INTERSECT SELECT T1.name FROM tracks AS T1 JOIN playlist_tracks AS T2 ON T1.id = T2.track_id JOIN playlists AS T3 ON T2.playlist_id = T3.id WHERE T3.name = 'Music'",
"context": "CREATE TABLE playlists (id VARCHAR, name VARCHAR); CREATE TABLE playlist_tracks (track_id VARCHAR, playlist_id VARCHAR); CREATE TABLE tracks (name VARCHAR, id VARCHAR)",
"question": "Find the name of tracks which are in both Movies and music playlists."
} |
### QUESTION
Find number of tracks in each genre?
### CONTEXT
CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)
### ANSWER
SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name | {
"answer": "SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name",
"context": "CREATE TABLE tracks (genre_id VARCHAR); CREATE TABLE genres (name VARCHAR, id VARCHAR)",
"question": "Find number of tracks in each genre?"
} |
### QUESTION
List the name of playlist which has number of tracks greater than 100.
### CONTEXT
CREATE TABLE playlist_tracks (playlist_id VARCHAR, track_id VARCHAR); CREATE TABLE playlists (name VARCHAR, id VARCHAR)
### ANSWER
SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING COUNT(T1.track_id) > 100 | {
"answer": "SELECT T2.name FROM playlist_tracks AS T1 JOIN playlists AS T2 ON T2.id = T1.playlist_id GROUP BY T1.playlist_id HAVING COUNT(T1.track_id) > 100",
"context": "CREATE TABLE playlist_tracks (playlist_id VARCHAR, track_id VARCHAR); CREATE TABLE playlists (name VARCHAR, id VARCHAR)",
"question": "List the name of playlist which has number of tracks greater than 100."
} |
### QUESTION
what is the away team score when the home team is essendon?
### CONTEXT
CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR)
### ANSWER
SELECT away_team AS score FROM table_name_2 WHERE home_team = "essendon" | {
"answer": "SELECT away_team AS score FROM table_name_2 WHERE home_team = \"essendon\"",
"context": "CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR)",
"question": "what is the away team score when the home team is essendon?"
} |
### QUESTION
What is the lowest cr number?
### CONTEXT
CREATE TABLE table_1886270_1 (cr_no INTEGER)
### ANSWER
SELECT MIN(cr_no) FROM table_1886270_1 | {
"answer": "SELECT MIN(cr_no) FROM table_1886270_1",
"context": "CREATE TABLE table_1886270_1 (cr_no INTEGER)",
"question": "What is the lowest cr number?"
} |
### QUESTION
Show the names of editors and the theme of journals for which they serve on committees.
### CONTEXT
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)
### ANSWER
SELECT T2.Name, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID | {
"answer": "SELECT T2.Name, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID",
"context": "CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)",
"question": "Show the names of editors and the theme of journals for which they serve on committees."
} |
### QUESTION
Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.
### CONTEXT
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, age VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)
### ANSWER
SELECT T2.Name, T2.age, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme | {
"answer": "SELECT T2.Name, T2.age, T3.Theme FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID ORDER BY T3.Theme",
"context": "CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, age VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Theme VARCHAR, Journal_ID VARCHAR)",
"question": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme."
} |
### QUESTION
Show the names of editors that are on the committee of journals with sales bigger than 3000.
### CONTEXT
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER)
### ANSWER
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000 | {
"answer": "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000",
"context": "CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER)",
"question": "Show the names of editors that are on the committee of journals with sales bigger than 3000."
} |
### QUESTION
Show the id, name of each editor and the number of journal committees they are on.
### CONTEXT
CREATE TABLE editor (editor_id VARCHAR, Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR)
### ANSWER
SELECT T1.editor_id, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id | {
"answer": "SELECT T1.editor_id, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.editor_id",
"context": "CREATE TABLE editor (editor_id VARCHAR, Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal_committee (Editor_ID VARCHAR)",
"question": "Show the id, name of each editor and the number of journal committees they are on."
} |
Subsets and Splits