text
stringlengths
146
1.06k
source
dict
### QUESTION What team has a vehicle with an Offenhauser engine and a McLaren chassis? ### CONTEXT CREATE TABLE table_1405704_1 (team VARCHAR, chassis VARCHAR, engine VARCHAR) ### ANSWER SELECT team FROM table_1405704_1 WHERE chassis = "McLaren" AND engine = "Offenhauser"
{ "answer": "SELECT team FROM table_1405704_1 WHERE chassis = \"McLaren\" AND engine = \"Offenhauser\"", "context": "CREATE TABLE table_1405704_1 (team VARCHAR, chassis VARCHAR, engine VARCHAR)", "question": "What team has a vehicle with an Offenhauser engine and a McLaren chassis?" }
### QUESTION In what year was the number of attempts 888? ### CONTEXT CREATE TABLE table_name_96 (year VARCHAR, attempts VARCHAR) ### ANSWER SELECT year FROM table_name_96 WHERE attempts = "888"
{ "answer": "SELECT year FROM table_name_96 WHERE attempts = \"888\"", "context": "CREATE TABLE table_name_96 (year VARCHAR, attempts VARCHAR)", "question": "In what year was the number of attempts 888?" }
### QUESTION What is the name of the building that was the tallest from 1990–1997 in Frankfurt? ### CONTEXT CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR) ### ANSWER SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990–1997"
{ "answer": "SELECT name FROM table_name_78 WHERE city = \"frankfurt\" AND years_as_tallest = \"1990–1997\"", "context": "CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR)", "question": "What is the name of the building that was the tallest from 1990–1997 in Frankfurt?" }
### 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's the latest episode in a season where the U.S. viewers totaled 14.37 million? ### CONTEXT CREATE TABLE table_10842344_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR) ### ANSWER SELECT MAX(no_in_season) FROM table_10842344_1 WHERE us_viewers__millions_ = "14.37"
{ "answer": "SELECT MAX(no_in_season) FROM table_10842344_1 WHERE us_viewers__millions_ = \"14.37\"", "context": "CREATE TABLE table_10842344_1 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)", "question": "What's the latest episode in a season where the U.S. viewers totaled 14.37 million?" }
### QUESTION What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? ### CONTEXT CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR) ### ANSWER SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND built > 2010
{ "answer": "SELECT vessel_name FROM table_name_56 WHERE flag = \"malta\" AND type = \"panamax\" AND class = \"gl\" AND built > 2010", "context": "CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR)", "question": "What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel?" }
### QUESTION What is the date of appointment for outgoing manager Campbell Money ### CONTEXT CREATE TABLE table_11206916_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) ### ANSWER SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = "Campbell Money"
{ "answer": "SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = \"Campbell Money\"", "context": "CREATE TABLE table_11206916_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)", "question": "What is the date of appointment for outgoing manager Campbell Money" }
### QUESTION What are the lowest goal that have goals/matches greater than 0.43 with joachim streich as the name and matches greater than 378? ### CONTEXT CREATE TABLE table_name_37 (goals INTEGER, matches VARCHAR, name VARCHAR) ### ANSWER SELECT MIN(goals) FROM table_name_37 WHERE goals / matches > 0.43 AND name = "joachim streich" AND matches > 378
{ "answer": "SELECT MIN(goals) FROM table_name_37 WHERE goals / matches > 0.43 AND name = \"joachim streich\" AND matches > 378", "context": "CREATE TABLE table_name_37 (goals INTEGER, matches VARCHAR, name VARCHAR)", "question": "What are the lowest goal that have goals/matches greater than 0.43 with joachim streich as the name and matches greater than 378?" }
### QUESTION Name the number of population for врбас ### CONTEXT CREATE TABLE table_2562572_20 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR) ### ANSWER SELECT COUNT(population__2011_) FROM table_2562572_20 WHERE cyrillic_name_other_names = "Врбас"
{ "answer": "SELECT COUNT(population__2011_) FROM table_2562572_20 WHERE cyrillic_name_other_names = \"Врбас\"", "context": "CREATE TABLE table_2562572_20 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)", "question": "Name the number of population for врбас" }
### QUESTION How many entries for start of stage occur in the year 2006? ### CONTEXT CREATE TABLE table_275506_1 (start_of_stage VARCHAR, year VARCHAR) ### ANSWER SELECT COUNT(start_of_stage) FROM table_275506_1 WHERE year = "2006"
{ "answer": "SELECT COUNT(start_of_stage) FROM table_275506_1 WHERE year = \"2006\"", "context": "CREATE TABLE table_275506_1 (start_of_stage VARCHAR, year VARCHAR)", "question": "How many entries for start of stage occur in the year 2006?" }
### QUESTION What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19? ### CONTEXT CREATE TABLE table_name_74 (cultural_and_educational_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR) ### ANSWER SELECT MIN(cultural_and_educational_panel) FROM table_name_74 WHERE nominated_by_the_taoiseach < 5 AND total > 19
{ "answer": "SELECT MIN(cultural_and_educational_panel) FROM table_name_74 WHERE nominated_by_the_taoiseach < 5 AND total > 19", "context": "CREATE TABLE table_name_74 (cultural_and_educational_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR)", "question": "What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19?" }
### QUESTION What is Left Office, when Party is "UDC", and when Took Office is "11 June 2001"? ### CONTEXT CREATE TABLE table_name_16 (left_office VARCHAR, party VARCHAR, took_office VARCHAR) ### ANSWER SELECT left_office FROM table_name_16 WHERE party = "udc" AND took_office = "11 june 2001"
{ "answer": "SELECT left_office FROM table_name_16 WHERE party = \"udc\" AND took_office = \"11 june 2001\"", "context": "CREATE TABLE table_name_16 (left_office VARCHAR, party VARCHAR, took_office VARCHAR)", "question": "What is Left Office, when Party is \"UDC\", and when Took Office is \"11 June 2001\"?" }
### QUESTION Which Round is the lowest one that has a School/Club Team of virginia? ### CONTEXT CREATE TABLE table_name_20 (round INTEGER, school_club_team VARCHAR) ### ANSWER SELECT MIN(round) FROM table_name_20 WHERE school_club_team = "virginia"
{ "answer": "SELECT MIN(round) FROM table_name_20 WHERE school_club_team = \"virginia\"", "context": "CREATE TABLE table_name_20 (round INTEGER, school_club_team VARCHAR)", "question": "Which Round is the lowest one that has a School/Club Team of virginia?" }
### QUESTION What is the result of the european indoor championships after 1974? ### CONTEXT CREATE TABLE table_name_41 (result VARCHAR, tournament VARCHAR, year VARCHAR) ### ANSWER SELECT result FROM table_name_41 WHERE tournament = "european indoor championships" AND year > 1974
{ "answer": "SELECT result FROM table_name_41 WHERE tournament = \"european indoor championships\" AND year > 1974", "context": "CREATE TABLE table_name_41 (result VARCHAR, tournament VARCHAR, year VARCHAR)", "question": "What is the result of the european indoor championships after 1974?" }
### QUESTION What distinct accelerator names are compatible with the browswers that have market share higher than 15? ### CONTEXT CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE browser (id VARCHAR, market_share INTEGER) ### ANSWER SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.market_share > 15
{ "answer": "SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.market_share > 15", "context": "CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE browser (id VARCHAR, market_share INTEGER)", "question": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?" }
### QUESTION How many season had Melgar as a champion? ### CONTEXT CREATE TABLE table_23647668_2 (season VARCHAR, champion VARCHAR) ### ANSWER SELECT COUNT(season) FROM table_23647668_2 WHERE champion = "Melgar"
{ "answer": "SELECT COUNT(season) FROM table_23647668_2 WHERE champion = \"Melgar\"", "context": "CREATE TABLE table_23647668_2 (season VARCHAR, champion VARCHAR)", "question": "How many season had Melgar as a champion?" }
### QUESTION What is the highest elevation in m of the bon irau peak, which has a col greater than 0 m and a prominence less than 1,900 m? ### CONTEXT CREATE TABLE table_name_11 (elevation__m_ INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR) ### ANSWER SELECT MAX(elevation__m_) FROM table_name_11 WHERE col__m_ > 0 AND peak = "bon irau" AND prominence__m_ < 1 OFFSET 900
{ "answer": "SELECT MAX(elevation__m_) FROM table_name_11 WHERE col__m_ > 0 AND peak = \"bon irau\" AND prominence__m_ < 1 OFFSET 900", "context": "CREATE TABLE table_name_11 (elevation__m_ INTEGER, prominence__m_ VARCHAR, col__m_ VARCHAR, peak VARCHAR)", "question": "What is the highest elevation in m of the bon irau peak, which has a col greater than 0 m and a prominence less than 1,900 m?" }
### QUESTION Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008? ### CONTEXT CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR) ### ANSWER SELECT manufacturer FROM table_name_31 WHERE style = "steel sit down" AND opened > 2008
{ "answer": "SELECT manufacturer FROM table_name_31 WHERE style = \"steel sit down\" AND opened > 2008", "context": "CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR)", "question": "Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008?" }
### QUESTION What type of engine did the Fuel Injection entrant use? ### CONTEXT CREATE TABLE table_name_4 (engine VARCHAR, entrant VARCHAR) ### ANSWER SELECT engine FROM table_name_4 WHERE entrant = "fuel injection"
{ "answer": "SELECT engine FROM table_name_4 WHERE entrant = \"fuel injection\"", "context": "CREATE TABLE table_name_4 (engine VARCHAR, entrant VARCHAR)", "question": "What type of engine did the Fuel Injection entrant use?" }
### QUESTION What fourth-place has 2 (1999, 2005) as the runner(s)-up? ### CONTEXT CREATE TABLE table_name_26 (fourth_place VARCHAR, runners_up VARCHAR) ### ANSWER SELECT fourth_place FROM table_name_26 WHERE runners_up = "2 (1999, 2005)"
{ "answer": "SELECT fourth_place FROM table_name_26 WHERE runners_up = \"2 (1999, 2005)\"", "context": "CREATE TABLE table_name_26 (fourth_place VARCHAR, runners_up VARCHAR)", "question": "What fourth-place has 2 (1999, 2005) as the runner(s)-up?" }
### QUESTION What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju? ### CONTEXT CREATE TABLE table_name_88 (modern_equivalent VARCHAR, province_of_silla VARCHAR, post_1009_province VARCHAR, administrative_district VARCHAR) ### ANSWER SELECT modern_equivalent FROM table_name_88 WHERE post_1009_province = "gyeongsang -do" AND administrative_district = "jinju -mok" AND province_of_silla = "gangju"
{ "answer": "SELECT modern_equivalent FROM table_name_88 WHERE post_1009_province = \"gyeongsang -do\" AND administrative_district = \"jinju -mok\" AND province_of_silla = \"gangju\"", "context": "CREATE TABLE table_name_88 (modern_equivalent VARCHAR, province_of_silla VARCHAR, post_1009_province VARCHAR, administrative_district VARCHAR)", "question": "What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju?" }
### QUESTION What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated? ### CONTEXT CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR) ### ANSWER SELECT AVG(year) FROM table_name_79 WHERE group = "logie award" AND award = "most outstanding actor" AND result = "nominated"
{ "answer": "SELECT AVG(year) FROM table_name_79 WHERE group = \"logie award\" AND award = \"most outstanding actor\" AND result = \"nominated\"", "context": "CREATE TABLE table_name_79 (year INTEGER, result VARCHAR, group VARCHAR, award VARCHAR)", "question": "What is the average Year that has the Group, Logie Award, the Award, Most Outstanding Actor, and the Result, nominated?" }
### QUESTION Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap? ### CONTEXT CREATE TABLE table_name_52 (frequency_mhz INTEGER, erp_w VARCHAR, call_sign VARCHAR) ### ANSWER SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = "k230ap"
{ "answer": "SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = \"k230ap\"", "context": "CREATE TABLE table_name_52 (frequency_mhz INTEGER, erp_w VARCHAR, call_sign VARCHAR)", "question": "Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?" }
### QUESTION Who is the crew chief of team Joe Gibbs Racing, which has a Chevrolet Monte Carlo and Fedex as the primary sponsor? ### CONTEXT CREATE TABLE table_name_81 (crew_chief VARCHAR, primary_sponsor_s_ VARCHAR, car_s_ VARCHAR, team VARCHAR) ### ANSWER SELECT crew_chief FROM table_name_81 WHERE car_s_ = "chevrolet monte carlo" AND team = "joe gibbs racing" AND primary_sponsor_s_ = "fedex"
{ "answer": "SELECT crew_chief FROM table_name_81 WHERE car_s_ = \"chevrolet monte carlo\" AND team = \"joe gibbs racing\" AND primary_sponsor_s_ = \"fedex\"", "context": "CREATE TABLE table_name_81 (crew_chief VARCHAR, primary_sponsor_s_ VARCHAR, car_s_ VARCHAR, team VARCHAR)", "question": "Who is the crew chief of team Joe Gibbs Racing, which has a Chevrolet Monte Carlo and Fedex as the primary sponsor?" }
### QUESTION Who was the winner for the world championship formula 1 at the venue, circuit de monaco? ### CONTEXT CREATE TABLE table_name_89 (winner VARCHAR, notes VARCHAR, venue VARCHAR) ### ANSWER SELECT winner FROM table_name_89 WHERE notes = "world championship formula 1" AND venue = "circuit de monaco"
{ "answer": "SELECT winner FROM table_name_89 WHERE notes = \"world championship formula 1\" AND venue = \"circuit de monaco\"", "context": "CREATE TABLE table_name_89 (winner VARCHAR, notes VARCHAR, venue VARCHAR)", "question": "Who was the winner for the world championship formula 1 at the venue, circuit de monaco?" }
### QUESTION How many years have a Location of pacific ring of fire, and Eruptions of pinatubo? ### CONTEXT CREATE TABLE table_name_22 (year INTEGER, location VARCHAR, eruptions VARCHAR) ### ANSWER SELECT SUM(year) FROM table_name_22 WHERE location = "pacific ring of fire" AND eruptions = "pinatubo"
{ "answer": "SELECT SUM(year) FROM table_name_22 WHERE location = \"pacific ring of fire\" AND eruptions = \"pinatubo\"", "context": "CREATE TABLE table_name_22 (year INTEGER, location VARCHAR, eruptions VARCHAR)", "question": "How many years have a Location of pacific ring of fire, and Eruptions of pinatubo?" }
### QUESTION How many ranks are for Switzerland with more than 2 total medals? ### CONTEXT CREATE TABLE table_name_39 (rank VARCHAR, nation VARCHAR, total VARCHAR) ### ANSWER SELECT COUNT(rank) FROM table_name_39 WHERE nation = "switzerland" AND total > 2
{ "answer": "SELECT COUNT(rank) FROM table_name_39 WHERE nation = \"switzerland\" AND total > 2", "context": "CREATE TABLE table_name_39 (rank VARCHAR, nation VARCHAR, total VARCHAR)", "question": "How many ranks are for Switzerland with more than 2 total medals?" }
### QUESTION Home result of 1–0, and a Away result of 0–1 involves what club? ### CONTEXT CREATE TABLE table_name_56 (club VARCHAR, home_result VARCHAR, away_result VARCHAR) ### ANSWER SELECT club FROM table_name_56 WHERE home_result = "1–0" AND away_result = "0–1"
{ "answer": "SELECT club FROM table_name_56 WHERE home_result = \"1–0\" AND away_result = \"0–1\"", "context": "CREATE TABLE table_name_56 (club VARCHAR, home_result VARCHAR, away_result VARCHAR)", "question": "Home result of 1–0, and a Away result of 0–1 involves what club?" }
### QUESTION What group of juventus had an attendance larger than 47,786? ### CONTEXT CREATE TABLE table_name_2 (group_position VARCHAR, opponents VARCHAR, attendance VARCHAR) ### ANSWER SELECT group_position FROM table_name_2 WHERE opponents = "juventus" AND attendance > 47 OFFSET 786
{ "answer": "SELECT group_position FROM table_name_2 WHERE opponents = \"juventus\" AND attendance > 47 OFFSET 786", "context": "CREATE TABLE table_name_2 (group_position VARCHAR, opponents VARCHAR, attendance VARCHAR)", "question": "What group of juventus had an attendance larger than 47,786?" }
### QUESTION Name the number ends won when L is 4 and stolen ends is 17 ### CONTEXT CREATE TABLE table_15333005_1 (Ends VARCHAR, l VARCHAR, stolen_ends VARCHAR) ### ANSWER SELECT COUNT(Ends) AS won FROM table_15333005_1 WHERE l = 4 AND stolen_ends = 17
{ "answer": "SELECT COUNT(Ends) AS won FROM table_15333005_1 WHERE l = 4 AND stolen_ends = 17", "context": "CREATE TABLE table_15333005_1 (Ends VARCHAR, l VARCHAR, stolen_ends VARCHAR)", "question": "Name the number ends won when L is 4 and stolen ends is 17" }
### QUESTION What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"? ### CONTEXT CREATE TABLE table_name_2 (record VARCHAR, event VARCHAR, method VARCHAR) ### ANSWER SELECT record FROM table_name_2 WHERE event = "independent event" AND method = "submission (peruvian necktie)"
{ "answer": "SELECT record FROM table_name_2 WHERE event = \"independent event\" AND method = \"submission (peruvian necktie)\"", "context": "CREATE TABLE table_name_2 (record VARCHAR, event VARCHAR, method VARCHAR)", "question": "What is Record, when Event is \"Independent Event\", and when Method is \"Submission (Peruvian Necktie)\"?" }
### QUESTION Name the golden ticket for invesco field ### CONTEXT CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, audition_venue VARCHAR) ### ANSWER SELECT golden_tickets FROM table_22897967_1 WHERE audition_venue = "Invesco Field"
{ "answer": "SELECT golden_tickets FROM table_22897967_1 WHERE audition_venue = \"Invesco Field\"", "context": "CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, audition_venue VARCHAR)", "question": "Name the golden ticket for invesco field" }
### QUESTION Who are all successors when reason for change is died May 12, 1964? ### CONTEXT CREATE TABLE table_2159506_4 (successor VARCHAR, reason_for_change VARCHAR) ### ANSWER SELECT successor FROM table_2159506_4 WHERE reason_for_change = "Died May 12, 1964"
{ "answer": "SELECT successor FROM table_2159506_4 WHERE reason_for_change = \"Died May 12, 1964\"", "context": "CREATE TABLE table_2159506_4 (successor VARCHAR, reason_for_change VARCHAR)", "question": "Who are all successors when reason for change is died May 12, 1964?" }
### QUESTION Where is the location where Scott Junk was the opponent? ### CONTEXT CREATE TABLE table_name_89 (location VARCHAR, opponent VARCHAR) ### ANSWER SELECT location FROM table_name_89 WHERE opponent = "scott junk"
{ "answer": "SELECT location FROM table_name_89 WHERE opponent = \"scott junk\"", "context": "CREATE TABLE table_name_89 (location VARCHAR, opponent VARCHAR)", "question": "Where is the location where Scott Junk was the opponent?" }
### QUESTION What is the average SP+FS for Denise Biellmann, and a Rank larger than 5? ### CONTEXT CREATE TABLE table_name_14 (fs VARCHAR, sp INTEGER, name VARCHAR, rank VARCHAR) ### ANSWER SELECT AVG(sp) + fs FROM table_name_14 WHERE name = "denise biellmann" AND rank > 5
{ "answer": "SELECT AVG(sp) + fs FROM table_name_14 WHERE name = \"denise biellmann\" AND rank > 5", "context": "CREATE TABLE table_name_14 (fs VARCHAR, sp INTEGER, name VARCHAR, rank VARCHAR)", "question": "What is the average SP+FS for Denise Biellmann, and a Rank larger than 5?" }
### QUESTION What was the Event in the city of copenhagen? ### CONTEXT CREATE TABLE table_name_32 (event VARCHAR, city VARCHAR) ### ANSWER SELECT event FROM table_name_32 WHERE city = "copenhagen"
{ "answer": "SELECT event FROM table_name_32 WHERE city = \"copenhagen\"", "context": "CREATE TABLE table_name_32 (event VARCHAR, city VARCHAR)", "question": "What was the Event in the city of copenhagen?" }
### QUESTION Which home team played against Geelong? ### CONTEXT CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR) ### ANSWER SELECT home_team FROM table_name_39 WHERE away_team = "geelong"
{ "answer": "SELECT home_team FROM table_name_39 WHERE away_team = \"geelong\"", "context": "CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)", "question": "Which home team played against Geelong?" }
### QUESTION How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09? ### CONTEXT CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR) ### ANSWER SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09
{ "answer": "SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09", "context": "CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR)", "question": "How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?" }
### QUESTION Find the first name of students who have cat or dog pet. ### CONTEXT CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (Fname VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR) ### ANSWER SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'
{ "answer": "SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' OR T3.pettype = 'dog'", "context": "CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (Fname VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)", "question": "Find the first name of students who have cat or dog pet." }
### QUESTION Where will the game at (ET) of 7:00 pm be at? ### CONTEXT CREATE TABLE table_name_2 (game_site VARCHAR, time___et__ VARCHAR) ### ANSWER SELECT game_site FROM table_name_2 WHERE time___et__ = "7:00 pm"
{ "answer": "SELECT game_site FROM table_name_2 WHERE time___et__ = \"7:00 pm\"", "context": "CREATE TABLE table_name_2 (game_site VARCHAR, time___et__ VARCHAR)", "question": "Where will the game at (ET) of 7:00 pm be at?" }
### QUESTION what is -kah (atau tidak when basikal is basikal and language dialect is malay language (informal)? ### CONTEXT CREATE TABLE table_name_98 (_kah__atau_tidak_ VARCHAR, language_dialect VARCHAR) ### ANSWER SELECT _kah__atau_tidak_ FROM table_name_98 WHERE "basikal" = "basikal" AND language_dialect = "malay language (informal)"
{ "answer": "SELECT _kah__atau_tidak_ FROM table_name_98 WHERE \"basikal\" = \"basikal\" AND language_dialect = \"malay language (informal)\"", "context": "CREATE TABLE table_name_98 (_kah__atau_tidak_ VARCHAR, language_dialect VARCHAR)", "question": "what is -kah (atau tidak when basikal is basikal and language dialect is malay language (informal)?" }
### QUESTION What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21' ### CONTEXT CREATE TABLE Timed_Status_of_Things (thing_id VARCHAR, Status_of_Thing_Code VARCHAR, Date_and_Date VARCHAR); CREATE TABLE Things (thing_id VARCHAR, Type_of_Thing_Code VARCHAR) ### ANSWER SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'
{ "answer": "SELECT DISTINCT T2.thing_id, T2.Type_of_Thing_Code FROM Timed_Status_of_Things AS T1 JOIN Things AS T2 ON T1.thing_id = T2.thing_id WHERE T1.Status_of_Thing_Code = 'Close' OR T1.Date_and_Date < '2017-06-19 02:59:21'", "context": "CREATE TABLE Timed_Status_of_Things (thing_id VARCHAR, Status_of_Thing_Code VARCHAR, Date_and_Date VARCHAR); CREATE TABLE Things (thing_id VARCHAR, Type_of_Thing_Code VARCHAR)", "question": "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'" }
### QUESTION What artist had a mintage of 41,828 before year 2002? ### CONTEXT CREATE TABLE table_name_81 (artist VARCHAR, year VARCHAR, mintage VARCHAR) ### ANSWER SELECT artist FROM table_name_81 WHERE year < 2002 AND mintage = "41,828"
{ "answer": "SELECT artist FROM table_name_81 WHERE year < 2002 AND mintage = \"41,828\"", "context": "CREATE TABLE table_name_81 (artist VARCHAR, year VARCHAR, mintage VARCHAR)", "question": "What artist had a mintage of 41,828 before year 2002?" }
### QUESTION Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience? ### CONTEXT CREATE TABLE table_name_30 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR) ### ANSWER SELECT nationality FROM table_name_30 WHERE previous_team = "new york knicks" AND years_of_nba_experience_[a_] > 3
{ "answer": "SELECT nationality FROM table_name_30 WHERE previous_team = \"new york knicks\" AND years_of_nba_experience_[a_] > 3", "context": "CREATE TABLE table_name_30 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)", "question": "Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience?" }
### QUESTION How many athletes were named federico muller? ### CONTEXT CREATE TABLE table_29521180_35 (quarterfinals VARCHAR, athlete VARCHAR) ### ANSWER SELECT COUNT(quarterfinals) FROM table_29521180_35 WHERE athlete = "Federico Muller"
{ "answer": "SELECT COUNT(quarterfinals) FROM table_29521180_35 WHERE athlete = \"Federico Muller\"", "context": "CREATE TABLE table_29521180_35 (quarterfinals VARCHAR, athlete VARCHAR)", "question": "How many athletes were named federico muller?" }
### QUESTION Tell me the D 49 and D 46 of r 13 ### CONTEXT CREATE TABLE table_name_64 (d_49 VARCHAR, d_46 VARCHAR) ### ANSWER SELECT d_49 FROM table_name_64 WHERE d_46 = "r 13"
{ "answer": "SELECT d_49 FROM table_name_64 WHERE d_46 = \"r 13\"", "context": "CREATE TABLE table_name_64 (d_49 VARCHAR, d_46 VARCHAR)", "question": "Tell me the D 49 and D 46 of r 13" }
### QUESTION What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)? ### CONTEXT CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR) ### ANSWER SELECT order FROM table_name_84 WHERE species_authority = "hydrochaeris hydrochaeris (linnaeus, 1766)"
{ "answer": "SELECT order FROM table_name_84 WHERE species_authority = \"hydrochaeris hydrochaeris (linnaeus, 1766)\"", "context": "CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR)", "question": "What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?" }
### QUESTION For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface ### CONTEXT CREATE TABLE table_27877656_7 (surface VARCHAR, score VARCHAR, edition VARCHAR) ### ANSWER SELECT surface FROM table_27877656_7 WHERE score = "6–4, 6–1" AND edition = "2011 Europe/Africa Group IIIB"
{ "answer": "SELECT surface FROM table_27877656_7 WHERE score = \"6–4, 6–1\" AND edition = \"2011 Europe/Africa Group IIIB\"", "context": "CREATE TABLE table_27877656_7 (surface VARCHAR, score VARCHAR, edition VARCHAR)", "question": "For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface" }
### QUESTION Which L2-Cache has a Frequency of 1333 mhz, and a Model Number of c3 1.3a? ### CONTEXT CREATE TABLE table_name_42 (l2_cache VARCHAR, frequency VARCHAR, model_number VARCHAR) ### ANSWER SELECT l2_cache FROM table_name_42 WHERE frequency = "1333 mhz" AND model_number = "c3 1.3a"
{ "answer": "SELECT l2_cache FROM table_name_42 WHERE frequency = \"1333 mhz\" AND model_number = \"c3 1.3a\"", "context": "CREATE TABLE table_name_42 (l2_cache VARCHAR, frequency VARCHAR, model_number VARCHAR)", "question": "Which L2-Cache has a Frequency of 1333 mhz, and a Model Number of c3 1.3a?" }
### QUESTION List all player names who have an overall rating higher than the average. ### CONTEXT CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (overall_rating INTEGER); CREATE TABLE Player_Attributes (player_api_id VARCHAR, overall_rating INTEGER) ### ANSWER SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > (SELECT AVG(overall_rating) FROM Player_Attributes)
{ "answer": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.overall_rating > (SELECT AVG(overall_rating) FROM Player_Attributes)", "context": "CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (overall_rating INTEGER); CREATE TABLE Player_Attributes (player_api_id VARCHAR, overall_rating INTEGER)", "question": "List all player names who have an overall rating higher than the average." }
### QUESTION What are the ids of documents with letter 's' in the name with any expense budgets. ### CONTEXT CREATE TABLE Documents_with_expenses (document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR) ### ANSWER SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%'
{ "answer": "SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%'", "context": "CREATE TABLE Documents_with_expenses (document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)", "question": "What are the ids of documents with letter 's' in the name with any expense budgets." }
### QUESTION Which staff have contacted which engineers? List the staff name and the engineer first name and last name. ### CONTEXT CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR, engineer_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR) ### ANSWER SELECT T1.staff_name, T3.first_name, T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id
{ "answer": "SELECT T1.staff_name, T3.first_name, T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id", "context": "CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR, engineer_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)", "question": "Which staff have contacted which engineers? List the staff name and the engineer first name and last name." }
### QUESTION What nationality is Northwood School (N.Y.)? ### CONTEXT CREATE TABLE table_name_44 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) ### ANSWER SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = "northwood school (n.y.)"
{ "answer": "SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = \"northwood school (n.y.)\"", "context": "CREATE TABLE table_name_44 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)", "question": "What nationality is Northwood School (N.Y.)?" }
### QUESTION How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4? ### CONTEXT CREATE TABLE table_name_53 (season VARCHAR, wins VARCHAR, loses VARCHAR, competition VARCHAR) ### ANSWER SELECT COUNT(season) FROM table_name_53 WHERE loses > 1 AND competition = "fiba europe cup" AND wins < 4
{ "answer": "SELECT COUNT(season) FROM table_name_53 WHERE loses > 1 AND competition = \"fiba europe cup\" AND wins < 4", "context": "CREATE TABLE table_name_53 (season VARCHAR, wins VARCHAR, loses VARCHAR, competition VARCHAR)", "question": "How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4?" }
### QUESTION Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'. ### CONTEXT CREATE TABLE routes (dst_apid VARCHAR, alid VARCHAR); CREATE TABLE airports (apid VARCHAR, country VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'
{ "answer": "SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'", "context": "CREATE TABLE routes (dst_apid VARCHAR, alid VARCHAR); CREATE TABLE airports (apid VARCHAR, country VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)", "question": "Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'." }
### QUESTION Name the least age for distrito nacional ### CONTEXT CREATE TABLE table_26301697_2 (age INTEGER, represents VARCHAR) ### ANSWER SELECT MIN(age) FROM table_26301697_2 WHERE represents = "Distrito Nacional"
{ "answer": "SELECT MIN(age) FROM table_26301697_2 WHERE represents = \"Distrito Nacional\"", "context": "CREATE TABLE table_26301697_2 (age INTEGER, represents VARCHAR)", "question": "Name the least age for distrito nacional" }
### QUESTION what is the number of lane with a rank more than 2 for Louise ørnstedt? ### CONTEXT CREATE TABLE table_name_86 (lane VARCHAR, rank VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(lane) FROM table_name_86 WHERE rank > 2 AND name = "louise ørnstedt"
{ "answer": "SELECT COUNT(lane) FROM table_name_86 WHERE rank > 2 AND name = \"louise ørnstedt\"", "context": "CREATE TABLE table_name_86 (lane VARCHAR, rank VARCHAR, name VARCHAR)", "question": "what is the number of lane with a rank more than 2 for Louise ørnstedt?" }
### QUESTION What was the original air date of this episode that was written by Debbie Sarjeant? ### CONTEXT CREATE TABLE table_17623902_1 (original_air_date VARCHAR, written_by VARCHAR) ### ANSWER SELECT original_air_date FROM table_17623902_1 WHERE written_by = "Debbie Sarjeant"
{ "answer": "SELECT original_air_date FROM table_17623902_1 WHERE written_by = \"Debbie Sarjeant\"", "context": "CREATE TABLE table_17623902_1 (original_air_date VARCHAR, written_by VARCHAR)", "question": "What was the original air date of this episode that was written by Debbie Sarjeant?" }
### QUESTION What was the theatre where Peter P. Peters is the role? ### CONTEXT CREATE TABLE table_name_8 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, role VARCHAR) ### ANSWER SELECT theatre, _studio, _or_network FROM table_name_8 WHERE role = "peter p. peters"
{ "answer": "SELECT theatre, _studio, _or_network FROM table_name_8 WHERE role = \"peter p. peters\"", "context": "CREATE TABLE table_name_8 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, role VARCHAR)", "question": "What was the theatre where Peter P. Peters is the role?" }
### QUESTION what is the highest grid when the time/retired is fuel pump and the laps is more than 26? ### CONTEXT CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) ### ANSWER SELECT MAX(grid) FROM table_name_95 WHERE time_retired = "fuel pump" AND laps > 26
{ "answer": "SELECT MAX(grid) FROM table_name_95 WHERE time_retired = \"fuel pump\" AND laps > 26", "context": "CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)", "question": "what is the highest grid when the time/retired is fuel pump and the laps is more than 26?" }
### QUESTION Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco? ### CONTEXT CREATE TABLE table_27833186_1 (rider_names VARCHAR, location VARCHAR, horse_name VARCHAR) ### ANSWER SELECT rider_names FROM table_27833186_1 WHERE location = "Euer Valley, CA" AND horse_name = "Magic Sirocco"
{ "answer": "SELECT rider_names FROM table_27833186_1 WHERE location = \"Euer Valley, CA\" AND horse_name = \"Magic Sirocco\"", "context": "CREATE TABLE table_27833186_1 (rider_names VARCHAR, location VARCHAR, horse_name VARCHAR)", "question": "Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?" }
### QUESTION When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd? ### CONTEXT CREATE TABLE table_name_1 (crowd VARCHAR, date VARCHAR, away_team VARCHAR) ### ANSWER SELECT crowd FROM table_name_1 WHERE date = "19 july 1980" AND away_team = "footscray"
{ "answer": "SELECT crowd FROM table_name_1 WHERE date = \"19 july 1980\" AND away_team = \"footscray\"", "context": "CREATE TABLE table_name_1 (crowd VARCHAR, date VARCHAR, away_team VARCHAR)", "question": "When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd?" }
### QUESTION What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels? ### CONTEXT CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR) ### ANSWER SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = "shawn michaels"
{ "answer": "SELECT eliminated FROM table_name_28 WHERE entered < 4 AND wrestler = \"shawn michaels\"", "context": "CREATE TABLE table_name_28 (eliminated VARCHAR, entered VARCHAR, wrestler VARCHAR)", "question": "What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels?" }
### QUESTION which entrant after 1987 had 12 points and a benetton b188 chassis? ### CONTEXT CREATE TABLE table_name_22 (entrant VARCHAR, points VARCHAR, year VARCHAR, chassis VARCHAR) ### ANSWER SELECT entrant FROM table_name_22 WHERE year > 1987 AND chassis = "benetton b188" AND points = 12
{ "answer": "SELECT entrant FROM table_name_22 WHERE year > 1987 AND chassis = \"benetton b188\" AND points = 12", "context": "CREATE TABLE table_name_22 (entrant VARCHAR, points VARCHAR, year VARCHAR, chassis VARCHAR)", "question": "which entrant after 1987 had 12 points and a benetton b188 chassis?" }
### QUESTION How many instruments does the song "Badlands" use? ### CONTEXT CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR) ### ANSWER SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = "Badlands"
{ "answer": "SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = \"Badlands\"", "context": "CREATE TABLE instruments (songid VARCHAR); CREATE TABLE songs (songid VARCHAR)", "question": "How many instruments does the song \"Badlands\" use?" }
### QUESTION What is the average Pick with a Position of pg, and a Round less than 1? ### CONTEXT CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR) ### ANSWER SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND round < 1
{ "answer": "SELECT AVG(pick) FROM table_name_14 WHERE position = \"pg\" AND round < 1", "context": "CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR)", "question": "What is the average Pick with a Position of pg, and a Round less than 1?" }
### QUESTION Which network has model nForce Professional 3400 MCP? ### CONTEXT CREATE TABLE table_name_29 (network VARCHAR, model VARCHAR) ### ANSWER SELECT network FROM table_name_29 WHERE model = "nforce professional 3400 mcp"
{ "answer": "SELECT network FROM table_name_29 WHERE model = \"nforce professional 3400 mcp\"", "context": "CREATE TABLE table_name_29 (network VARCHAR, model VARCHAR)", "question": "Which network has model nForce Professional 3400 MCP?" }
### QUESTION What is the highest GA when GF is 39? ### CONTEXT CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR) ### ANSWER SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39
{ "answer": "SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39", "context": "CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR)", "question": "What is the highest GA when GF is 39?" }
### QUESTION What is the second party that has a conservative first party in the 1834 election? ### CONTEXT CREATE TABLE table_name_71 (second_party VARCHAR, first_party VARCHAR, election VARCHAR) ### ANSWER SELECT second_party FROM table_name_71 WHERE first_party = "conservative" AND election = "1834"
{ "answer": "SELECT second_party FROM table_name_71 WHERE first_party = \"conservative\" AND election = \"1834\"", "context": "CREATE TABLE table_name_71 (second_party VARCHAR, first_party VARCHAR, election VARCHAR)", "question": "What is the second party that has a conservative first party in the 1834 election?" }
### QUESTION display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN. ### CONTEXT CREATE TABLE employees (employee_id VARCHAR, job_id VARCHAR, salary INTEGER) ### ANSWER SELECT employee_id, job_id FROM employees WHERE salary < (SELECT MIN(salary) FROM employees WHERE job_id = 'MK_MAN')
{ "answer": "SELECT employee_id, job_id FROM employees WHERE salary < (SELECT MIN(salary) FROM employees WHERE job_id = 'MK_MAN')", "context": "CREATE TABLE employees (employee_id VARCHAR, job_id VARCHAR, salary INTEGER)", "question": "display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN." }
### QUESTION Which Democratic incumbent was first elected in 1998? ### CONTEXT CREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR) ### ANSWER SELECT incumbent FROM table_name_18 WHERE party = "democratic" AND first_elected = 1998
{ "answer": "SELECT incumbent FROM table_name_18 WHERE party = \"democratic\" AND first_elected = 1998", "context": "CREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)", "question": "Which Democratic incumbent was first elected in 1998?" }
### 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"
{ "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 year was the expansion in the city of San Juan? ### CONTEXT CREATE TABLE table_name_31 (year VARCHAR, city VARCHAR) ### ANSWER SELECT COUNT(year) FROM table_name_31 WHERE city = "san juan"
{ "answer": "SELECT COUNT(year) FROM table_name_31 WHERE city = \"san juan\"", "context": "CREATE TABLE table_name_31 (year VARCHAR, city VARCHAR)", "question": "What year was the expansion in the city of San Juan?" }
### 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 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 What competition was played on 2 June 1992? ### CONTEXT CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR) ### ANSWER SELECT competition FROM table_name_4 WHERE date = "2 june 1992"
{ "answer": "SELECT competition FROM table_name_4 WHERE date = \"2 june 1992\"", "context": "CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR)", "question": "What competition was played on 2 June 1992?" }
### QUESTION What LINER class has a W.A. of 0-6-0st with a 2 No. Built? ### CONTEXT CREATE TABLE table_name_44 (lner_class VARCHAR, wa VARCHAR, no_built VARCHAR) ### ANSWER SELECT lner_class FROM table_name_44 WHERE wa = "0-6-0st" AND no_built = 2
{ "answer": "SELECT lner_class FROM table_name_44 WHERE wa = \"0-6-0st\" AND no_built = 2", "context": "CREATE TABLE table_name_44 (lner_class VARCHAR, wa VARCHAR, no_built VARCHAR)", "question": "What LINER class has a W.A. of 0-6-0st with a 2 No. Built?" }
### QUESTION What type is the sorrento to sapri course with a distance of km (mi)? ### CONTEXT CREATE TABLE table_name_23 (type VARCHAR, distance VARCHAR, course VARCHAR) ### ANSWER SELECT type FROM table_name_23 WHERE distance = "km (mi)" AND course = "sorrento to sapri"
{ "answer": "SELECT type FROM table_name_23 WHERE distance = \"km (mi)\" AND course = \"sorrento to sapri\"", "context": "CREATE TABLE table_name_23 (type VARCHAR, distance VARCHAR, course VARCHAR)", "question": "What type is the sorrento to sapri course with a distance of km (mi)?" }
### QUESTION Which person whose friends have the oldest average age? ### CONTEXT CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR) ### ANSWER SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1
{ "answer": "SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1", "context": "CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)", "question": "Which person whose friends have the oldest average age?" }
### QUESTION Which part fault requires the most number of skills to fix? List part id and name. ### CONTEXT CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR) ### ANSWER SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR)", "question": "Which part fault requires the most number of skills to fix? List part id and name." }
### QUESTION Name the winning party 2007 for result of labour hold and swing to gain less than 7.11 for wrexham ### CONTEXT CREATE TABLE table_name_60 (winning_party_2007 VARCHAR, constituency VARCHAR, result VARCHAR, swing_to_gain VARCHAR) ### ANSWER SELECT winning_party_2007 FROM table_name_60 WHERE result = "labour hold" AND swing_to_gain < 7.11 AND constituency = "wrexham"
{ "answer": "SELECT winning_party_2007 FROM table_name_60 WHERE result = \"labour hold\" AND swing_to_gain < 7.11 AND constituency = \"wrexham\"", "context": "CREATE TABLE table_name_60 (winning_party_2007 VARCHAR, constituency VARCHAR, result VARCHAR, swing_to_gain VARCHAR)", "question": "Name the winning party 2007 for result of labour hold and swing to gain less than 7.11 for wrexham" }
### QUESTION What is the title of the film that has the highest high market estimation. ### CONTEXT CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR) ### ANSWER SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1
{ "answer": "SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID = T2.Film_ID ORDER BY high_estimate DESC LIMIT 1", "context": "CREATE TABLE film_market_estimation (Film_ID VARCHAR); CREATE TABLE film (Film_ID VARCHAR)", "question": "What is the title of the film that has the highest high market estimation." }
### QUESTION What is the rank when there is 0 gold, the total is more than 1, and silver is more than 0? ### CONTEXT CREATE TABLE table_name_58 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) ### ANSWER SELECT MAX(rank) FROM table_name_58 WHERE gold = 0 AND total > 1 AND silver > 0
{ "answer": "SELECT MAX(rank) FROM table_name_58 WHERE gold = 0 AND total > 1 AND silver > 0", "context": "CREATE TABLE table_name_58 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)", "question": "What is the rank when there is 0 gold, the total is more than 1, and silver is more than 0?" }
### QUESTION Show the transaction type descriptions and dates if the share count is smaller than 10. ### CONTEXT CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR); CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR, share_count INTEGER) ### ANSWER SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10
{ "answer": "SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10", "context": "CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR); CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR, share_count INTEGER)", "question": "Show the transaction type descriptions and dates if the share count is smaller than 10." }
### QUESTION What was the population of сурдук in 2011? ### CONTEXT CREATE TABLE table_2562572_53 (population__2011_ VARCHAR, cyrillic_name VARCHAR) ### ANSWER SELECT COUNT(population__2011_) FROM table_2562572_53 WHERE cyrillic_name = "Сурдук"
{ "answer": "SELECT COUNT(population__2011_) FROM table_2562572_53 WHERE cyrillic_name = \"Сурдук\"", "context": "CREATE TABLE table_2562572_53 (population__2011_ VARCHAR, cyrillic_name VARCHAR)", "question": "What was the population of сурдук in 2011?" }
### QUESTION How many touchdowns are there when there were 0 extra points and Hal Weeks had left halfback? ### CONTEXT CREATE TABLE table_name_71 (touchdowns VARCHAR, player VARCHAR, extra_points VARCHAR, position VARCHAR) ### ANSWER SELECT touchdowns FROM table_name_71 WHERE extra_points = 0 AND position = "left halfback" AND player = "hal weeks"
{ "answer": "SELECT touchdowns FROM table_name_71 WHERE extra_points = 0 AND position = \"left halfback\" AND player = \"hal weeks\"", "context": "CREATE TABLE table_name_71 (touchdowns VARCHAR, player VARCHAR, extra_points VARCHAR, position VARCHAR)", "question": "How many touchdowns are there when there were 0 extra points and Hal Weeks had left halfback?" }
### QUESTION What is the total number of Participants that has Silver that's smaller than 0? ### CONTEXT CREATE TABLE table_name_38 (participants INTEGER, silver INTEGER) ### ANSWER SELECT SUM(participants) FROM table_name_38 WHERE silver < 0
{ "answer": "SELECT SUM(participants) FROM table_name_38 WHERE silver < 0", "context": "CREATE TABLE table_name_38 (participants INTEGER, silver INTEGER)", "question": "What is the total number of Participants that has Silver that's smaller than 0?" }
### 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
{ "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 is W/m², when η (%) is greater than 16.5, and when Technology is MJ? ### CONTEXT CREATE TABLE table_name_60 (w_m² VARCHAR, η___percentage_ VARCHAR, technology VARCHAR) ### ANSWER SELECT w_m² FROM table_name_60 WHERE η___percentage_ > 16.5 AND technology = "mj"
{ "answer": "SELECT w_m² FROM table_name_60 WHERE η___percentage_ > 16.5 AND technology = \"mj\"", "context": "CREATE TABLE table_name_60 (w_m² VARCHAR, η___percentage_ VARCHAR, technology VARCHAR)", "question": "What is W/m², when η (%) is greater than 16.5, and when Technology is MJ?" }
### QUESTION Which team plays at Lake Oval? ### CONTEXT CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) ### ANSWER SELECT home_team FROM table_name_39 WHERE venue = "lake oval"
{ "answer": "SELECT home_team FROM table_name_39 WHERE venue = \"lake oval\"", "context": "CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)", "question": "Which team plays at Lake Oval?" }
### QUESTION Show all member names and registered branch names sorted by register year. ### CONTEXT CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR) ### ANSWER SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year
{ "answer": "SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year", "context": "CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR)", "question": "Show all member names and registered branch names sorted by register year." }
### QUESTION Where is the Hometown that the person who attended Camarillo High School is from? ### CONTEXT CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR) ### ANSWER SELECT hometown FROM table_name_40 WHERE school = "camarillo high school"
{ "answer": "SELECT hometown FROM table_name_40 WHERE school = \"camarillo high school\"", "context": "CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR)", "question": "Where is the Hometown that the person who attended Camarillo High School is from?" }
### QUESTION Can you tell me the Record that has the Game of 19? ### CONTEXT CREATE TABLE table_name_72 (record VARCHAR, game VARCHAR) ### ANSWER SELECT record FROM table_name_72 WHERE game = 19
{ "answer": "SELECT record FROM table_name_72 WHERE game = 19", "context": "CREATE TABLE table_name_72 (record VARCHAR, game VARCHAR)", "question": "Can you tell me the Record that has the Game of 19?" }
### QUESTION What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006? ### CONTEXT CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR) ### ANSWER SELECT score FROM table_name_67 WHERE location = "clemson, sc" AND winner = "clemson" AND date = "november 11, 2006"
{ "answer": "SELECT score FROM table_name_67 WHERE location = \"clemson, sc\" AND winner = \"clemson\" AND date = \"november 11, 2006\"", "context": "CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, location VARCHAR, winner VARCHAR)", "question": "What is the Score, when the Location is Clemson, SC, when the Winner is Clemson, and when the Date is November 11, 2006?" }
### QUESTION When has a Surface of hard, a Tournament of wrexham , great britain? ### CONTEXT CREATE TABLE table_name_46 (date VARCHAR, surface VARCHAR, tournament VARCHAR) ### ANSWER SELECT date FROM table_name_46 WHERE surface = "hard" AND tournament = "wrexham , great britain"
{ "answer": "SELECT date FROM table_name_46 WHERE surface = \"hard\" AND tournament = \"wrexham , great britain\"", "context": "CREATE TABLE table_name_46 (date VARCHAR, surface VARCHAR, tournament VARCHAR)", "question": "When has a Surface of hard, a Tournament of wrexham , great britain?" }
### QUESTION What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid? ### CONTEXT CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR, time VARCHAR, team VARCHAR) ### ANSWER SELECT COUNT(laps) FROM table_name_39 WHERE time = "collision" AND team = "switzerland" AND grid < 11
{ "answer": "SELECT COUNT(laps) FROM table_name_39 WHERE time = \"collision\" AND team = \"switzerland\" AND grid < 11", "context": "CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR, time VARCHAR, team VARCHAR)", "question": "What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?" }
### QUESTION Which fault log included the most number of faulty parts? List the fault log id, description and record time. ### CONTEXT CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR) ### ANSWER SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR)", "question": "Which fault log included the most number of faulty parts? List the fault log id, description and record time." }
### QUESTION List the names of the schools without any endowment. ### CONTEXT CREATE TABLE endowment (school_name VARCHAR, school_id VARCHAR); CREATE TABLE school (school_name VARCHAR, school_id VARCHAR) ### ANSWER SELECT school_name FROM school WHERE NOT school_id IN (SELECT school_id FROM endowment)
{ "answer": "SELECT school_name FROM school WHERE NOT school_id IN (SELECT school_id FROM endowment)", "context": "CREATE TABLE endowment (school_name VARCHAR, school_id VARCHAR); CREATE TABLE school (school_name VARCHAR, school_id VARCHAR)", "question": "List the names of the schools without any endowment." }
### QUESTION When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr? ### CONTEXT CREATE TABLE table_name_46 (date_made VARCHAR, notes VARCHAR) ### ANSWER SELECT date_made FROM table_name_46 WHERE notes = "45/48 renumbered 15/16; two sold to sl&ncr"
{ "answer": "SELECT date_made FROM table_name_46 WHERE notes = \"45/48 renumbered 15/16; two sold to sl&ncr\"", "context": "CREATE TABLE table_name_46 (date_made VARCHAR, notes VARCHAR)", "question": "When has a Note of 45/48 renumbered 15/16; two sold to sl&ncr?" }
### QUESTION What is the capacity for the institution of university of alberta? ### CONTEXT CREATE TABLE table_27599216_6 (capacity VARCHAR, institution VARCHAR) ### ANSWER SELECT capacity FROM table_27599216_6 WHERE institution = "University of Alberta"
{ "answer": "SELECT capacity FROM table_27599216_6 WHERE institution = \"University of Alberta\"", "context": "CREATE TABLE table_27599216_6 (capacity VARCHAR, institution VARCHAR)", "question": "What is the capacity for the institution of university of alberta?" }