text
stringlengths
146
1.06k
source
dict
### QUESTION What is every pole position for the Castle Combe circuit and Robbie Kerr is the winning driver? ### CONTEXT CREATE TABLE table_26137666_3 (pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR) ### ANSWER SELECT pole_position FROM table_26137666_3 WHERE circuit = "Castle Combe" AND winning_driver = "Robbie Kerr"
{ "answer": "SELECT pole_position FROM table_26137666_3 WHERE circuit = \"Castle Combe\" AND winning_driver = \"Robbie Kerr\"", "context": "CREATE TABLE table_26137666_3 (pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR)", "question": "What is every pole position for the Castle Combe circuit and Robbie Kerr is the winning driver?" }
### QUESTION What is the total home game attendance of team Boston Red Stockings from 2000 to 2010? ### CONTEXT CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (attendance INTEGER, team_id VARCHAR, year VARCHAR) ### ANSWER SELECT SUM(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010
{ "answer": "SELECT SUM(T1.attendance) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 2000 AND 2010", "context": "CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (attendance INTEGER, team_id VARCHAR, year VARCHAR)", "question": "What is the total home game attendance of team Boston Red Stockings from 2000 to 2010?" }
### QUESTION How many times did the Centurions play the Rhein Fire? ### CONTEXT CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR) ### ANSWER SELECT COUNT(game_site) FROM table_27764201_2 WHERE opponent = "Rhein Fire"
{ "answer": "SELECT COUNT(game_site) FROM table_27764201_2 WHERE opponent = \"Rhein Fire\"", "context": "CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)", "question": "How many times did the Centurions play the Rhein Fire?" }
### QUESTION Which District has a First elected of 1856, and an Incumbent of william kellogg? ### CONTEXT CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR) ### ANSWER SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = "william kellogg"
{ "answer": "SELECT district FROM table_name_20 WHERE first_elected = 1856 AND incumbent = \"william kellogg\"", "context": "CREATE TABLE table_name_20 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)", "question": "Which District has a First elected of 1856, and an Incumbent of william kellogg?" }
### QUESTION what is the no when the distance is 4168km? ### CONTEXT CREATE TABLE table_26745820_1 (no VARCHAR, distance VARCHAR) ### ANSWER SELECT no FROM table_26745820_1 WHERE distance = "4168km"
{ "answer": "SELECT no FROM table_26745820_1 WHERE distance = \"4168km\"", "context": "CREATE TABLE table_26745820_1 (no VARCHAR, distance VARCHAR)", "question": "what is the no when the distance is 4168km?" }
### QUESTION Name the womens doubles when mens doubles is theodoros velkos giorgos patis ### CONTEXT CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR) ### ANSWER SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = "Theodoros Velkos Giorgos Patis"
{ "answer": "SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = \"Theodoros Velkos Giorgos Patis\"", "context": "CREATE TABLE table_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR)", "question": "Name the womens doubles when mens doubles is theodoros velkos giorgos patis" }
### QUESTION what's the pole position with location being hockenheimring ### CONTEXT CREATE TABLE table_1140074_2 (pole_position VARCHAR, location VARCHAR) ### ANSWER SELECT pole_position FROM table_1140074_2 WHERE location = "Hockenheimring"
{ "answer": "SELECT pole_position FROM table_1140074_2 WHERE location = \"Hockenheimring\"", "context": "CREATE TABLE table_1140074_2 (pole_position VARCHAR, location VARCHAR)", "question": "what's the pole position with location being hockenheimring" }
### QUESTION What is the highest Pick, when College is "Syracuse", and when Overall is less than 18? ### CONTEXT CREATE TABLE table_name_40 (pick INTEGER, college VARCHAR, overall VARCHAR) ### ANSWER SELECT MAX(pick) FROM table_name_40 WHERE college = "syracuse" AND overall < 18
{ "answer": "SELECT MAX(pick) FROM table_name_40 WHERE college = \"syracuse\" AND overall < 18", "context": "CREATE TABLE table_name_40 (pick INTEGER, college VARCHAR, overall VARCHAR)", "question": "What is the highest Pick, when College is \"Syracuse\", and when Overall is less than 18?" }
### QUESTION What website has an Ofsted less than 106478 in Atherton? ### CONTEXT CREATE TABLE table_name_33 (website VARCHAR, ofsted VARCHAR, locality VARCHAR) ### ANSWER SELECT website FROM table_name_33 WHERE ofsted < 106478 AND locality = "atherton"
{ "answer": "SELECT website FROM table_name_33 WHERE ofsted < 106478 AND locality = \"atherton\"", "context": "CREATE TABLE table_name_33 (website VARCHAR, ofsted VARCHAR, locality VARCHAR)", "question": "What website has an Ofsted less than 106478 in Atherton?" }
### QUESTION Which round 5 Grand Prix had Daijiro Hiura at pole position? ### CONTEXT CREATE TABLE table_18303274_1 (grand_prix VARCHAR, pole_position VARCHAR, round VARCHAR) ### ANSWER SELECT grand_prix FROM table_18303274_1 WHERE pole_position = "Daijiro Hiura" AND round = 5
{ "answer": "SELECT grand_prix FROM table_18303274_1 WHERE pole_position = \"Daijiro Hiura\" AND round = 5", "context": "CREATE TABLE table_18303274_1 (grand_prix VARCHAR, pole_position VARCHAR, round VARCHAR)", "question": "Which round 5 Grand Prix had Daijiro Hiura at pole position? " }
### QUESTION What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County? ### CONTEXT CREATE TABLE table_name_50 (party VARCHAR, counties_represented VARCHAR, delegate VARCHAR) ### ANSWER SELECT party FROM table_name_50 WHERE counties_represented = "howard" AND delegate = "turner, frank s. frank s. turner"
{ "answer": "SELECT party FROM table_name_50 WHERE counties_represented = \"howard\" AND delegate = \"turner, frank s. frank s. turner\"", "context": "CREATE TABLE table_name_50 (party VARCHAR, counties_represented VARCHAR, delegate VARCHAR)", "question": "What party is the delegate of Turner, Frank S. Frank S. Turner of Howard County?" }
### QUESTION Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4? ### CONTEXT CREATE TABLE table_name_83 (performer_2 VARCHAR, performer_4 VARCHAR, date VARCHAR) ### ANSWER SELECT performer_2 FROM table_name_83 WHERE performer_4 = "josie lawrence" AND date = "9 april 1993"
{ "answer": "SELECT performer_2 FROM table_name_83 WHERE performer_4 = \"josie lawrence\" AND date = \"9 april 1993\"", "context": "CREATE TABLE table_name_83 (performer_2 VARCHAR, performer_4 VARCHAR, date VARCHAR)", "question": "Who is performer 2 of the episode on 9 April 1993 with Josie Lawrence as performer 4?" }
### QUESTION What are the distinct positions of the players from a country whose capital is Dublin? ### CONTEXT CREATE TABLE country (Country_id VARCHAR, Capital VARCHAR); CREATE TABLE match_season (Position VARCHAR, Country VARCHAR) ### ANSWER SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = "Dublin"
{ "answer": "SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = \"Dublin\"", "context": "CREATE TABLE country (Country_id VARCHAR, Capital VARCHAR); CREATE TABLE match_season (Position VARCHAR, Country VARCHAR)", "question": "What are the distinct positions of the players from a country whose capital is Dublin?" }
### QUESTION What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7? ### CONTEXT CREATE TABLE table_name_6 (model VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, green_rating VARCHAR, manufacturer VARCHAR) ### ANSWER SELECT model FROM table_name_6 WHERE green_rating = "g" AND manufacturer = "chrysler jeep" AND l_100km_urban__cold_ < 18 AND mpg_uk_combined = 27.7
{ "answer": "SELECT model FROM table_name_6 WHERE green_rating = \"g\" AND manufacturer = \"chrysler jeep\" AND l_100km_urban__cold_ < 18 AND mpg_uk_combined = 27.7", "context": "CREATE TABLE table_name_6 (model VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, green_rating VARCHAR, manufacturer VARCHAR)", "question": "What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7?" }
### QUESTION Which Attendance has an Arena of arrowhead pond of anaheim, and a Loss of giguere (3–3)? ### CONTEXT CREATE TABLE table_name_74 (attendance INTEGER, arena VARCHAR, loss VARCHAR) ### ANSWER SELECT MAX(attendance) FROM table_name_74 WHERE arena = "arrowhead pond of anaheim" AND loss = "giguere (3–3)"
{ "answer": "SELECT MAX(attendance) FROM table_name_74 WHERE arena = \"arrowhead pond of anaheim\" AND loss = \"giguere (3–3)\"", "context": "CREATE TABLE table_name_74 (attendance INTEGER, arena VARCHAR, loss VARCHAR)", "question": "Which Attendance has an Arena of arrowhead pond of anaheim, and a Loss of giguere (3–3)?" }
### QUESTION What is the listed crowd when essendon is the away squad? ### CONTEXT CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR) ### ANSWER SELECT COUNT(crowd) FROM table_name_68 WHERE away_team = "essendon"
{ "answer": "SELECT COUNT(crowd) FROM table_name_68 WHERE away_team = \"essendon\"", "context": "CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)", "question": "What is the listed crowd when essendon is the away squad?" }
### QUESTION When has a cause of gas explosion, a Death toll smaller than 63, and a Location of penygraig? ### CONTEXT CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR, cause VARCHAR, death_toll VARCHAR) ### ANSWER SELECT date FROM table_name_60 WHERE cause = "gas explosion" AND death_toll < 63 AND location = "penygraig"
{ "answer": "SELECT date FROM table_name_60 WHERE cause = \"gas explosion\" AND death_toll < 63 AND location = \"penygraig\"", "context": "CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR, cause VARCHAR, death_toll VARCHAR)", "question": "When has a cause of gas explosion, a Death toll smaller than 63, and a Location of penygraig?" }
### QUESTION What is the maximum number of 2006 subscribers for Glo Mobile? ### CONTEXT CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR) ### ANSWER SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = "Glo Mobile"
{ "answer": "SELECT MAX(subscribers__2006___thousands_) FROM table_29395291_2 WHERE provider = \"Glo Mobile\"", "context": "CREATE TABLE table_29395291_2 (subscribers__2006___thousands_ INTEGER, provider VARCHAR)", "question": "What is the maximum number of 2006 subscribers for Glo Mobile?" }
### QUESTION Who did Yugoslavia play against that led to a result of 2:3? ### CONTEXT CREATE TABLE table_name_90 (opponent VARCHAR, results¹ VARCHAR) ### ANSWER SELECT opponent FROM table_name_90 WHERE results¹ = "2:3"
{ "answer": "SELECT opponent FROM table_name_90 WHERE results¹ = \"2:3\"", "context": "CREATE TABLE table_name_90 (opponent VARCHAR, results¹ VARCHAR)", "question": "Who did Yugoslavia play against that led to a result of 2:3?" }
### QUESTION what is the race title when the winner is dick johnson and the circuit is sandown raceway? ### CONTEXT CREATE TABLE table_name_53 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR) ### ANSWER SELECT race_title FROM table_name_53 WHERE winner = "dick johnson" AND circuit = "sandown raceway"
{ "answer": "SELECT race_title FROM table_name_53 WHERE winner = \"dick johnson\" AND circuit = \"sandown raceway\"", "context": "CREATE TABLE table_name_53 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)", "question": "what is the race title when the winner is dick johnson and the circuit is sandown raceway?" }
### QUESTION Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures? ### CONTEXT CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR) ### ANSWER SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2
{ "answer": "SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2", "context": "CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR)", "question": "Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures?" }
### QUESTION What Japanese prefecture has Ibaraki, Tsukuba? ### CONTEXT CREATE TABLE table_name_15 (japanese VARCHAR, prefecture VARCHAR, name VARCHAR) ### ANSWER SELECT japanese FROM table_name_15 WHERE prefecture = "ibaraki" AND name = "tsukuba"
{ "answer": "SELECT japanese FROM table_name_15 WHERE prefecture = \"ibaraki\" AND name = \"tsukuba\"", "context": "CREATE TABLE table_name_15 (japanese VARCHAR, prefecture VARCHAR, name VARCHAR)", "question": "What Japanese prefecture has Ibaraki, Tsukuba?" }
### QUESTION Where date is october 7 and game greater than 1, what is the highest attendance? ### CONTEXT CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR, game VARCHAR) ### ANSWER SELECT MAX(attendance) FROM table_name_43 WHERE date = "october 7" AND game > 1
{ "answer": "SELECT MAX(attendance) FROM table_name_43 WHERE date = \"october 7\" AND game > 1", "context": "CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR, game VARCHAR)", "question": "Where date is october 7 and game greater than 1, what is the highest attendance?" }
### QUESTION What game was developed by Nintendo for the Gamecube platform? ### CONTEXT CREATE TABLE table_name_92 (game VARCHAR, developer_s_ VARCHAR, platform_s_ VARCHAR) ### ANSWER SELECT game FROM table_name_92 WHERE developer_s_ = "nintendo" AND platform_s_ = "gamecube"
{ "answer": "SELECT game FROM table_name_92 WHERE developer_s_ = \"nintendo\" AND platform_s_ = \"gamecube\"", "context": "CREATE TABLE table_name_92 (game VARCHAR, developer_s_ VARCHAR, platform_s_ VARCHAR)", "question": "What game was developed by Nintendo for the Gamecube platform?" }
### QUESTION Which game modes have Pinyin of chāojí mǎlìōu shìjiè? ### CONTEXT CREATE TABLE table_name_13 (game_modes VARCHAR, pinyin VARCHAR) ### ANSWER SELECT game_modes FROM table_name_13 WHERE pinyin = "chāojí mǎlìōu shìjiè"
{ "answer": "SELECT game_modes FROM table_name_13 WHERE pinyin = \"chāojí mǎlìōu shìjiè\"", "context": "CREATE TABLE table_name_13 (game_modes VARCHAR, pinyin VARCHAR)", "question": "Which game modes have Pinyin of chāojí mǎlìōu shìjiè?" }
### QUESTION Which Population has an Altitude (mslm) larger than 98, and a Density (inhabitants/km 2) larger than 5869, and a Rank of 1st? ### CONTEXT CREATE TABLE table_name_22 (population INTEGER, rank VARCHAR, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR) ### ANSWER SELECT SUM(population) FROM table_name_22 WHERE altitude__mslm_ > 98 AND density__inhabitants_km_2__ > 5869 AND rank = "1st"
{ "answer": "SELECT SUM(population) FROM table_name_22 WHERE altitude__mslm_ > 98 AND density__inhabitants_km_2__ > 5869 AND rank = \"1st\"", "context": "CREATE TABLE table_name_22 (population INTEGER, rank VARCHAR, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR)", "question": "Which Population has an Altitude (mslm) larger than 98, and a Density (inhabitants/km 2) larger than 5869, and a Rank of 1st?" }
### QUESTION Find the total number of students living in the male dorm (with gender M). ### CONTEXT CREATE TABLE dorm (dormid VARCHAR, gender VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR) ### ANSWER SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M'
{ "answer": "SELECT COUNT(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.gender = 'M'", "context": "CREATE TABLE dorm (dormid VARCHAR, gender VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (stuid VARCHAR)", "question": "Find the total number of students living in the male dorm (with gender M)." }
### QUESTION Which NHL team has left wing listed as the position? ### CONTEXT CREATE TABLE table_name_66 (nhl_team VARCHAR, position VARCHAR) ### ANSWER SELECT nhl_team FROM table_name_66 WHERE position = "left wing"
{ "answer": "SELECT nhl_team FROM table_name_66 WHERE position = \"left wing\"", "context": "CREATE TABLE table_name_66 (nhl_team VARCHAR, position VARCHAR)", "question": "Which NHL team has left wing listed as the position?" }
### QUESTION Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54? ### CONTEXT CREATE TABLE table_name_47 (opponent VARCHAR, venue VARCHAR, season VARCHAR) ### ANSWER SELECT opponent FROM table_name_47 WHERE venue = "launceston cricket club ground, launceston" AND season = "1853/54"
{ "answer": "SELECT opponent FROM table_name_47 WHERE venue = \"launceston cricket club ground, launceston\" AND season = \"1853/54\"", "context": "CREATE TABLE table_name_47 (opponent VARCHAR, venue VARCHAR, season VARCHAR)", "question": "Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54?" }
### QUESTION what's the won with points for being 643 ### CONTEXT CREATE TABLE table_14058433_5 (won VARCHAR, points_for VARCHAR) ### ANSWER SELECT won FROM table_14058433_5 WHERE points_for = "643"
{ "answer": "SELECT won FROM table_14058433_5 WHERE points_for = \"643\"", "context": "CREATE TABLE table_14058433_5 (won VARCHAR, points_for VARCHAR)", "question": "what's the won with points for being 643" }
### QUESTION Name the number of team for 35 runs margin and india winner ### CONTEXT CREATE TABLE table_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR) ### ANSWER SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = "35 runs" AND winner = "India"
{ "answer": "SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = \"35 runs\" AND winner = \"India\"", "context": "CREATE TABLE table_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR)", "question": "Name the number of team for 35 runs margin and india winner" }
### QUESTION Which average Crowd has a Home team of south melbourne? ### CONTEXT CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR) ### ANSWER SELECT AVG(crowd) FROM table_name_72 WHERE home_team = "south melbourne"
{ "answer": "SELECT AVG(crowd) FROM table_name_72 WHERE home_team = \"south melbourne\"", "context": "CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR)", "question": "Which average Crowd has a Home team of south melbourne?" }
### QUESTION Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described ### CONTEXT CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, organisation_id VARCHAR, grant_amount VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR); CREATE TABLE documents (sent_date VARCHAR, grant_id VARCHAR) ### ANSWER SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research'
{ "answer": "SELECT T1.sent_date FROM documents AS T1 JOIN Grants AS T2 ON T1.grant_id = T2.grant_id JOIN Organisations AS T3 ON T2.organisation_id = T3.organisation_id JOIN organisation_Types AS T4 ON T3.organisation_type = T4.organisation_type WHERE T2.grant_amount > 5000 AND T4.organisation_type_description = 'Research'", "context": "CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, organisation_id VARCHAR, grant_amount VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR); CREATE TABLE documents (sent_date VARCHAR, grant_id VARCHAR)", "question": "Find out the send dates of the documents with the grant amount of more than 5000 were granted by organisation type described" }
### QUESTION What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9? ### CONTEXT CREATE TABLE table_name_16 (assets__us INTEGER, company VARCHAR, revenues__us$_billion_ VARCHAR) ### ANSWER SELECT MIN(assets__us) AS $_billion_ FROM table_name_16 WHERE company = "piraeus bank" AND revenues__us$_billion_ < 3.9
{ "answer": "SELECT MIN(assets__us) AS $_billion_ FROM table_name_16 WHERE company = \"piraeus bank\" AND revenues__us$_billion_ < 3.9", "context": "CREATE TABLE table_name_16 (assets__us INTEGER, company VARCHAR, revenues__us$_billion_ VARCHAR)", "question": "What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9?" }
### QUESTION What's the Time/Retired of Laps of 75? ### CONTEXT CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR) ### ANSWER SELECT time_retired FROM table_name_59 WHERE laps = 75
{ "answer": "SELECT time_retired FROM table_name_59 WHERE laps = 75", "context": "CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR)", "question": "What's the Time/Retired of Laps of 75?" }
### QUESTION What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940? ### CONTEXT CREATE TABLE table_name_17 (pop__2010_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, county VARCHAR) ### ANSWER SELECT SUM(pop__2010_) FROM table_name_17 WHERE land___sqmi__ < 34.424 AND county = "mountrail" AND geo_id < 3806159940
{ "answer": "SELECT SUM(pop__2010_) FROM table_name_17 WHERE land___sqmi__ < 34.424 AND county = \"mountrail\" AND geo_id < 3806159940", "context": "CREATE TABLE table_name_17 (pop__2010_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, county VARCHAR)", "question": "What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940?" }
### QUESTION Who was the Republican candidate against the Democratic candidate Arthur Levitt? ### CONTEXT CREATE TABLE table_name_65 (republican_ticket VARCHAR, democratic_ticket VARCHAR) ### ANSWER SELECT republican_ticket FROM table_name_65 WHERE democratic_ticket = "arthur levitt"
{ "answer": "SELECT republican_ticket FROM table_name_65 WHERE democratic_ticket = \"arthur levitt\"", "context": "CREATE TABLE table_name_65 (republican_ticket VARCHAR, democratic_ticket VARCHAR)", "question": "Who was the Republican candidate against the Democratic candidate Arthur Levitt?" }
### QUESTION What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil? ### CONTEXT CREATE TABLE table_name_34 (intermediate_sprints_classification_red_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, points_classification_navy_blue_jersey VARCHAR) ### ANSWER SELECT intermediate_sprints_classification_red_jersey FROM table_name_34 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND points_classification_navy_blue_jersey = "jose joaquin rojas gil"
{ "answer": "SELECT intermediate_sprints_classification_red_jersey FROM table_name_34 WHERE mountains_classification_green_jersey = \"murilo antonio fischer\" AND points_classification_navy_blue_jersey = \"jose joaquin rojas gil\"", "context": "CREATE TABLE table_name_34 (intermediate_sprints_classification_red_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, points_classification_navy_blue_jersey VARCHAR)", "question": "What is the Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil?" }
### QUESTION What is the lowest Ovrs, when Wkts is greater than 13, and when Econ is less than 3.21? ### CONTEXT CREATE TABLE table_name_68 (ovrs INTEGER, wkts VARCHAR, econ VARCHAR) ### ANSWER SELECT MIN(ovrs) FROM table_name_68 WHERE wkts > 13 AND econ < 3.21
{ "answer": "SELECT MIN(ovrs) FROM table_name_68 WHERE wkts > 13 AND econ < 3.21", "context": "CREATE TABLE table_name_68 (ovrs INTEGER, wkts VARCHAR, econ VARCHAR)", "question": "What is the lowest Ovrs, when Wkts is greater than 13, and when Econ is less than 3.21?" }
### QUESTION What is the muzzle device with a 1:7 barrel twist and a stock 4th generation? ### CONTEXT CREATE TABLE table_name_47 (muzzle_device VARCHAR, barrel_twist VARCHAR, stock VARCHAR) ### ANSWER SELECT muzzle_device FROM table_name_47 WHERE barrel_twist = "1:7" AND stock = "4th generation"
{ "answer": "SELECT muzzle_device FROM table_name_47 WHERE barrel_twist = \"1:7\" AND stock = \"4th generation\"", "context": "CREATE TABLE table_name_47 (muzzle_device VARCHAR, barrel_twist VARCHAR, stock VARCHAR)", "question": "What is the muzzle device with a 1:7 barrel twist and a stock 4th generation?" }
### QUESTION What is the production code of the episode written by Gary Sturgis that is bigger than season number 23 and smaller than series number 126? ### CONTEXT CREATE TABLE table_name_75 (production_code VARCHAR, written_by VARCHAR, season__number VARCHAR, series__number VARCHAR) ### ANSWER SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = "gary sturgis"
{ "answer": "SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = \"gary sturgis\"", "context": "CREATE TABLE table_name_75 (production_code VARCHAR, written_by VARCHAR, season__number VARCHAR, series__number VARCHAR)", "question": "What is the production code of the episode written by Gary Sturgis that is bigger than season number 23 and smaller than series number 126?" }
### QUESTION What is the average Year for the Royal Canadian Mint Engravers Artist when the Mintage is under 200? ### CONTEXT CREATE TABLE table_name_35 (year INTEGER, artist VARCHAR, mintage VARCHAR) ### ANSWER SELECT AVG(year) FROM table_name_35 WHERE artist = "royal canadian mint engravers" AND mintage < 200
{ "answer": "SELECT AVG(year) FROM table_name_35 WHERE artist = \"royal canadian mint engravers\" AND mintage < 200", "context": "CREATE TABLE table_name_35 (year INTEGER, artist VARCHAR, mintage VARCHAR)", "question": "What is the average Year for the Royal Canadian Mint Engravers Artist when the Mintage is under 200?" }
### QUESTION What is the score of champion Ken Rosewall in 1957? ### CONTEXT CREATE TABLE table_name_39 (score VARCHAR, champion VARCHAR, year VARCHAR) ### ANSWER SELECT score FROM table_name_39 WHERE champion = "ken rosewall" AND year = "1957"
{ "answer": "SELECT score FROM table_name_39 WHERE champion = \"ken rosewall\" AND year = \"1957\"", "context": "CREATE TABLE table_name_39 (score VARCHAR, champion VARCHAR, year VARCHAR)", "question": "What is the score of champion Ken Rosewall in 1957?" }
### QUESTION Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003? ### CONTEXT CREATE TABLE table_name_31 (out_of VARCHAR, year VARCHAR, source VARCHAR, rank VARCHAR) ### ANSWER SELECT out_of FROM table_name_31 WHERE source = "united nations" AND rank > 47 AND year < 2003
{ "answer": "SELECT out_of FROM table_name_31 WHERE source = \"united nations\" AND rank > 47 AND year < 2003", "context": "CREATE TABLE table_name_31 (out_of VARCHAR, year VARCHAR, source VARCHAR, rank VARCHAR)", "question": "Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?" }
### QUESTION What is average life expectancy in the countries where English is not the official language? ### CONTEXT CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (LifeExpectancy INTEGER, Name VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR) ### ANSWER SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T")
{ "answer": "SELECT AVG(LifeExpectancy) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\")", "context": "CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (LifeExpectancy INTEGER, Name VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)", "question": "What is average life expectancy in the countries where English is not the official language?" }
### QUESTION How many dates originally aired episodes located in Philadelphia, pennsylvania? ### CONTEXT CREATE TABLE table_24798489_2 (original_airdate VARCHAR, location VARCHAR) ### ANSWER SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = "Philadelphia, Pennsylvania"
{ "answer": "SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = \"Philadelphia, Pennsylvania\"", "context": "CREATE TABLE table_24798489_2 (original_airdate VARCHAR, location VARCHAR)", "question": "How many dates originally aired episodes located in Philadelphia, pennsylvania?" }
### QUESTION What kind of Pada 4 has a Pada 1 of खी ju/khi? ### CONTEXT CREATE TABLE table_name_90 (pada_4 VARCHAR, pada_1 VARCHAR) ### ANSWER SELECT pada_4 FROM table_name_90 WHERE pada_1 = "खी ju/khi"
{ "answer": "SELECT pada_4 FROM table_name_90 WHERE pada_1 = \"खी ju/khi\"", "context": "CREATE TABLE table_name_90 (pada_4 VARCHAR, pada_1 VARCHAR)", "question": "What kind of Pada 4 has a Pada 1 of खी ju/khi?" }
### QUESTION The episode with the production code E0208 is directed by who? ### CONTEXT CREATE TABLE table_2618152_1 (directed_by VARCHAR, production_code VARCHAR) ### ANSWER SELECT directed_by FROM table_2618152_1 WHERE production_code = "E0208"
{ "answer": "SELECT directed_by FROM table_2618152_1 WHERE production_code = \"E0208\"", "context": "CREATE TABLE table_2618152_1 (directed_by VARCHAR, production_code VARCHAR)", "question": "The episode with the production code E0208 is directed by who?" }
### QUESTION Find the email and phone number of the customers who have never filed a complaint before. ### CONTEXT CREATE TABLE complaints (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR); CREATE TABLE customers (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR) ### ANSWER SELECT email_address, phone_number FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM complaints)
{ "answer": "SELECT email_address, phone_number FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM complaints)", "context": "CREATE TABLE complaints (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR); CREATE TABLE customers (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR)", "question": "Find the email and phone number of the customers who have never filed a complaint before." }
### QUESTION Which Record has the Res of win with the Event of extreme fighting 1? ### CONTEXT CREATE TABLE table_name_30 (record VARCHAR, res VARCHAR, event VARCHAR) ### ANSWER SELECT record FROM table_name_30 WHERE res = "win" AND event = "extreme fighting 1"
{ "answer": "SELECT record FROM table_name_30 WHERE res = \"win\" AND event = \"extreme fighting 1\"", "context": "CREATE TABLE table_name_30 (record VARCHAR, res VARCHAR, event VARCHAR)", "question": "Which Record has the Res of win with the Event of extreme fighting 1?" }
### QUESTION Name the lessons taught for episode # 2/205 ### CONTEXT CREATE TABLE table_24172078_2 (lessons_taught VARCHAR, episode__number VARCHAR) ### ANSWER SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = "2/205"
{ "answer": "SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = \"2/205\"", "context": "CREATE TABLE table_24172078_2 (lessons_taught VARCHAR, episode__number VARCHAR)", "question": "Name the lessons taught for episode # 2/205" }
### QUESTION Who was in sixth place in series 7? ### CONTEXT CREATE TABLE table_name_34 (sixth_place VARCHAR, series VARCHAR) ### ANSWER SELECT sixth_place FROM table_name_34 WHERE series = 7
{ "answer": "SELECT sixth_place FROM table_name_34 WHERE series = 7", "context": "CREATE TABLE table_name_34 (sixth_place VARCHAR, series VARCHAR)", "question": "Who was in sixth place in series 7?" }
### QUESTION Which surface do opponents of Thomas Oger Nicolas Tourte have? ### CONTEXT CREATE TABLE table_name_18 (surface VARCHAR, opponents VARCHAR) ### ANSWER SELECT surface FROM table_name_18 WHERE opponents = "thomas oger nicolas tourte"
{ "answer": "SELECT surface FROM table_name_18 WHERE opponents = \"thomas oger nicolas tourte\"", "context": "CREATE TABLE table_name_18 (surface VARCHAR, opponents VARCHAR)", "question": "Which surface do opponents of Thomas Oger Nicolas Tourte have?" }
### QUESTION Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'. ### CONTEXT CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR) ### ANSWER SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system 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.name = 'Opera'
{ "answer": "SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system 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.name = 'Opera'", "context": "CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR)", "question": "Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'." }
### QUESTION What race was a round smaller than 8, on 6 july? ### CONTEXT CREATE TABLE table_name_45 (race VARCHAR, round VARCHAR, date VARCHAR) ### ANSWER SELECT race FROM table_name_45 WHERE round < 8 AND date = "6 july"
{ "answer": "SELECT race FROM table_name_45 WHERE round < 8 AND date = \"6 july\"", "context": "CREATE TABLE table_name_45 (race VARCHAR, round VARCHAR, date VARCHAR)", "question": "What race was a round smaller than 8, on 6 july?" }
### QUESTION What number episode in the series had and original United States air date of December 24, 2010? ### CONTEXT CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR) ### ANSWER SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010"
{ "answer": "SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = \"December 24, 2010\"", "context": "CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)", "question": "What number episode in the series had and original United States air date of December 24, 2010?" }
### QUESTION What party does incumbent edwin reinecke represent? ### CONTEXT CREATE TABLE table_1341738_6 (party VARCHAR, incumbent VARCHAR) ### ANSWER SELECT party FROM table_1341738_6 WHERE incumbent = "Edwin Reinecke"
{ "answer": "SELECT party FROM table_1341738_6 WHERE incumbent = \"Edwin Reinecke\"", "context": "CREATE TABLE table_1341738_6 (party VARCHAR, incumbent VARCHAR)", "question": "What party does incumbent edwin reinecke represent?" }
### QUESTION What is the highest Year, when Rank is less than 28, and when Accolade is "The 100 greatest metal albums of the decade"? ### CONTEXT CREATE TABLE table_name_59 (year INTEGER, rank VARCHAR, accolade VARCHAR) ### ANSWER SELECT MAX(year) FROM table_name_59 WHERE rank < 28 AND accolade = "the 100 greatest metal albums of the decade"
{ "answer": "SELECT MAX(year) FROM table_name_59 WHERE rank < 28 AND accolade = \"the 100 greatest metal albums of the decade\"", "context": "CREATE TABLE table_name_59 (year INTEGER, rank VARCHAR, accolade VARCHAR)", "question": "What is the highest Year, when Rank is less than 28, and when Accolade is \"The 100 greatest metal albums of the decade\"?" }
### QUESTION What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41? ### CONTEXT CREATE TABLE table_name_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR) ### ANSWER SELECT MAX(population) FROM table_name_16 WHERE state = "puerto rico" AND total_congregations > 41
{ "answer": "SELECT MAX(population) FROM table_name_16 WHERE state = \"puerto rico\" AND total_congregations > 41", "context": "CREATE TABLE table_name_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR)", "question": "What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41?" }
### QUESTION Show all product names and the number of customers having an order on each product. ### CONTEXT CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR) ### ANSWER SELECT T2.product_name, COUNT(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name
{ "answer": "SELECT T2.product_name, COUNT(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name", "context": "CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR)", "question": "Show all product names and the number of customers having an order on each product." }
### QUESTION How many sets of presenters are there for the version of the show named Celebrity Masterchef? ### CONTEXT CREATE TABLE table_28190363_1 (presenter_s_ VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(presenter_s_) FROM table_28190363_1 WHERE name = "Celebrity MasterChef"
{ "answer": "SELECT COUNT(presenter_s_) FROM table_28190363_1 WHERE name = \"Celebrity MasterChef\"", "context": "CREATE TABLE table_28190363_1 (presenter_s_ VARCHAR, name VARCHAR)", "question": "How many sets of presenters are there for the version of the show named Celebrity Masterchef?" }
### QUESTION What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa? ### CONTEXT CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR) ### ANSWER SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = "c.d. atlético balboa"
{ "answer": "SELECT SUM(goals_scored) FROM table_name_40 WHERE points < 27 AND team = \"c.d. atlético balboa\"", "context": "CREATE TABLE table_name_40 (goals_scored INTEGER, points VARCHAR, team VARCHAR)", "question": "What's the total of Goals Scored with Points that's smaller than 27, and a Team of C.D. Atlético Balboa?" }
### QUESTION Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress? ### CONTEXT CREATE TABLE table_name_45 (award VARCHAR, category VARCHAR, result VARCHAR, year VARCHAR, work VARCHAR) ### ANSWER SELECT award FROM table_name_45 WHERE year < 2004 AND work = "the clone" AND result = "won" AND category = "favourite actress"
{ "answer": "SELECT award FROM table_name_45 WHERE year < 2004 AND work = \"the clone\" AND result = \"won\" AND category = \"favourite actress\"", "context": "CREATE TABLE table_name_45 (award VARCHAR, category VARCHAR, result VARCHAR, year VARCHAR, work VARCHAR)", "question": "Which Award has a Year smaller than 2004, and a Work of the clone, and a Result of won, and a Category of favourite actress?" }
### QUESTION What category is the nominated work of cecilie, winner of the robert award? ### CONTEXT CREATE TABLE table_name_43 (category VARCHAR, nominated_work VARCHAR, award VARCHAR) ### ANSWER SELECT category FROM table_name_43 WHERE nominated_work = "cecilie" AND award = "robert award"
{ "answer": "SELECT category FROM table_name_43 WHERE nominated_work = \"cecilie\" AND award = \"robert award\"", "context": "CREATE TABLE table_name_43 (category VARCHAR, nominated_work VARCHAR, award VARCHAR)", "question": "What category is the nominated work of cecilie, winner of the robert award?" }
### QUESTION What is the smallest amount of draws when the position is less than 7 and the against is 19? ### CONTEXT CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR) ### ANSWER SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19
{ "answer": "SELECT MIN(drawn) FROM table_name_38 WHERE position < 7 AND against = 19", "context": "CREATE TABLE table_name_38 (drawn INTEGER, position VARCHAR, against VARCHAR)", "question": "What is the smallest amount of draws when the position is less than 7 and the against is 19?" }
### QUESTION List the name of staff who has been assigned multiple jobs. ### CONTEXT CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR) ### ANSWER SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT(*) > 1
{ "answer": "SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT(*) > 1", "context": "CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR)", "question": "List the name of staff who has been assigned multiple jobs." }
### QUESTION What is the sum of every REG GP that Peter Andersson played as a pick# less than 143? ### CONTEXT CREATE TABLE table_name_28 (reg_gp INTEGER, player VARCHAR, pick__number VARCHAR) ### ANSWER SELECT SUM(reg_gp) FROM table_name_28 WHERE player = "peter andersson" AND pick__number < 143
{ "answer": "SELECT SUM(reg_gp) FROM table_name_28 WHERE player = \"peter andersson\" AND pick__number < 143", "context": "CREATE TABLE table_name_28 (reg_gp INTEGER, player VARCHAR, pick__number VARCHAR)", "question": "What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?" }
### QUESTION What is the title of the representative appointed by James K. Polk? ### CONTEXT CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR) ### ANSWER SELECT title FROM table_name_52 WHERE appointed_by = "james k. polk"
{ "answer": "SELECT title FROM table_name_52 WHERE appointed_by = \"james k. polk\"", "context": "CREATE TABLE table_name_52 (title VARCHAR, appointed_by VARCHAR)", "question": "What is the title of the representative appointed by James K. Polk?" }
### QUESTION What is the date for the game with an opponent of the Houston Oilers from before week 3? ### CONTEXT CREATE TABLE table_name_11 (date VARCHAR, week VARCHAR, opponent VARCHAR) ### ANSWER SELECT date FROM table_name_11 WHERE week < 3 AND opponent = "houston oilers"
{ "answer": "SELECT date FROM table_name_11 WHERE week < 3 AND opponent = \"houston oilers\"", "context": "CREATE TABLE table_name_11 (date VARCHAR, week VARCHAR, opponent VARCHAR)", "question": "What is the date for the game with an opponent of the Houston Oilers from before week 3?" }
### QUESTION What is the highest elevation for the highest point of Schnebelhorn? ### CONTEXT CREATE TABLE table_name_7 (highest_elevation VARCHAR, highest_point VARCHAR) ### ANSWER SELECT highest_elevation FROM table_name_7 WHERE highest_point = "schnebelhorn"
{ "answer": "SELECT highest_elevation FROM table_name_7 WHERE highest_point = \"schnebelhorn\"", "context": "CREATE TABLE table_name_7 (highest_elevation VARCHAR, highest_point VARCHAR)", "question": "What is the highest elevation for the highest point of Schnebelhorn?" }
### QUESTION What was the score on 24 February 2013? ### CONTEXT CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR) ### ANSWER SELECT score FROM table_name_32 WHERE date = "24 february 2013"
{ "answer": "SELECT score FROM table_name_32 WHERE date = \"24 february 2013\"", "context": "CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR)", "question": "What was the score on 24 February 2013?" }
### QUESTION What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers? ### CONTEXT CREATE TABLE table_166346_1 (population__july_2012_ INTEGER, area__km²_ VARCHAR) ### ANSWER SELECT MAX(population__july_2012_) FROM table_166346_1 WHERE area__km²_ = 2149690
{ "answer": "SELECT MAX(population__july_2012_) FROM table_166346_1 WHERE area__km²_ = 2149690", "context": "CREATE TABLE table_166346_1 (population__july_2012_ INTEGER, area__km²_ VARCHAR)", "question": "What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers?" }
### QUESTION Find the names of customers who have used both the service "Close a policy" and the service "New policy application". ### CONTEXT CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR) ### ANSWER SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "New policy application"
{ "answer": "SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"Close a policy\" INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = \"New policy application\"", "context": "CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR)", "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\"." }
### QUESTION What type of 3D game did Valve Corporation release? ### CONTEXT CREATE TABLE table_name_4 (genre VARCHAR, type VARCHAR, developer_s_ VARCHAR) ### ANSWER SELECT genre FROM table_name_4 WHERE type = "3d" AND developer_s_ = "valve corporation"
{ "answer": "SELECT genre FROM table_name_4 WHERE type = \"3d\" AND developer_s_ = \"valve corporation\"", "context": "CREATE TABLE table_name_4 (genre VARCHAR, type VARCHAR, developer_s_ VARCHAR)", "question": "What type of 3D game did Valve Corporation release?" }
### QUESTION What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal? ### CONTEXT CREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR) ### ANSWER SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = "6" AND bronze > 1
{ "answer": "SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = \"6\" AND bronze > 1", "context": "CREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)", "question": "What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal?" }
### QUESTION Find the accreditation level that more than 3 phones use. ### CONTEXT CREATE TABLE phone (Accreditation_level VARCHAR) ### ANSWER SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING COUNT(*) > 3
{ "answer": "SELECT Accreditation_level FROM phone GROUP BY Accreditation_level HAVING COUNT(*) > 3", "context": "CREATE TABLE phone (Accreditation_level VARCHAR)", "question": "Find the accreditation level that more than 3 phones use." }
### QUESTION How many bronze medals for the nation ranked above 2, and under 0 golds? ### CONTEXT CREATE TABLE table_name_36 (bronze VARCHAR, rank VARCHAR, gold VARCHAR) ### ANSWER SELECT COUNT(bronze) FROM table_name_36 WHERE rank < 2 AND gold < 0
{ "answer": "SELECT COUNT(bronze) FROM table_name_36 WHERE rank < 2 AND gold < 0", "context": "CREATE TABLE table_name_36 (bronze VARCHAR, rank VARCHAR, gold VARCHAR)", "question": "How many bronze medals for the nation ranked above 2, and under 0 golds?" }
### QUESTION Find the names of the campus which has more faculties in 2002 than every campus in Orange county. ### CONTEXT CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR) ### ANSWER SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = "Orange")
{ "answer": "SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = \"Orange\")", "context": "CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)", "question": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county." }
### QUESTION What's the to par of the United States with the score of 71-71=142? ### CONTEXT CREATE TABLE table_name_1 (to_par VARCHAR, country VARCHAR, score VARCHAR) ### ANSWER SELECT to_par FROM table_name_1 WHERE country = "united states" AND score = 71 - 71 = 142
{ "answer": "SELECT to_par FROM table_name_1 WHERE country = \"united states\" AND score = 71 - 71 = 142", "context": "CREATE TABLE table_name_1 (to_par VARCHAR, country VARCHAR, score VARCHAR)", "question": "What's the to par of the United States with the score of 71-71=142?" }
### QUESTION When did Northeastern University join? ### CONTEXT CREATE TABLE table_name_59 (joined INTEGER, institution VARCHAR) ### ANSWER SELECT SUM(joined) FROM table_name_59 WHERE institution = "northeastern university"
{ "answer": "SELECT SUM(joined) FROM table_name_59 WHERE institution = \"northeastern university\"", "context": "CREATE TABLE table_name_59 (joined INTEGER, institution VARCHAR)", "question": "When did Northeastern University join?" }
### QUESTION How many womens doubles had champions the years broddi kristjánsson drífa harðardóttir won mixed doubles ### CONTEXT CREATE TABLE table_14903999_1 (womens_doubles VARCHAR, mixed_doubles VARCHAR) ### ANSWER SELECT COUNT(womens_doubles) FROM table_14903999_1 WHERE mixed_doubles = "Broddi Kristjánsson Drífa Harðardóttir"
{ "answer": "SELECT COUNT(womens_doubles) FROM table_14903999_1 WHERE mixed_doubles = \"Broddi Kristjánsson Drífa Harðardóttir\"", "context": "CREATE TABLE table_14903999_1 (womens_doubles VARCHAR, mixed_doubles VARCHAR)", "question": "How many womens doubles had champions the years broddi kristjánsson drífa harðardóttir won mixed doubles" }
### QUESTION On what date was Arthur Jones the away captain at Sydney Cricket Ground? ### CONTEXT CREATE TABLE table_name_33 (date VARCHAR, away_captain VARCHAR, venue VARCHAR) ### ANSWER SELECT date FROM table_name_33 WHERE away_captain = "arthur jones" AND venue = "sydney cricket ground"
{ "answer": "SELECT date FROM table_name_33 WHERE away_captain = \"arthur jones\" AND venue = \"sydney cricket ground\"", "context": "CREATE TABLE table_name_33 (date VARCHAR, away_captain VARCHAR, venue VARCHAR)", "question": "On what date was Arthur Jones the away captain at Sydney Cricket Ground?" }
### QUESTION What is the Romanji Title of a show on TBS with less than 11 episodes? ### CONTEXT CREATE TABLE table_name_43 (romaji_title VARCHAR, tv_station VARCHAR, episodes VARCHAR) ### ANSWER SELECT romaji_title FROM table_name_43 WHERE tv_station = "tbs" AND episodes < 11
{ "answer": "SELECT romaji_title FROM table_name_43 WHERE tv_station = \"tbs\" AND episodes < 11", "context": "CREATE TABLE table_name_43 (romaji_title VARCHAR, tv_station VARCHAR, episodes VARCHAR)", "question": "What is the Romanji Title of a show on TBS with less than 11 episodes?" }
### QUESTION List the distinct police forces of counties whose location is not on east side. ### CONTEXT CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR) ### ANSWER SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> "East"
{ "answer": "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> \"East\"", "context": "CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR)", "question": "List the distinct police forces of counties whose location is not on east side." }
### QUESTION who directed the episode that elaine ko wrote? ### CONTEXT CREATE TABLE table_27332038_1 (directed_by VARCHAR, written_by VARCHAR) ### ANSWER SELECT directed_by FROM table_27332038_1 WHERE written_by = "Elaine Ko"
{ "answer": "SELECT directed_by FROM table_27332038_1 WHERE written_by = \"Elaine Ko\"", "context": "CREATE TABLE table_27332038_1 (directed_by VARCHAR, written_by VARCHAR)", "question": "who directed the episode that elaine ko wrote?" }
### QUESTION What is Rider, when Grid is less than 16, when Laps is 21, when Manufacturer is Honda, and when Time is +10.583? ### CONTEXT CREATE TABLE table_name_67 (rider VARCHAR, time VARCHAR, manufacturer VARCHAR, grid VARCHAR, laps VARCHAR) ### ANSWER SELECT rider FROM table_name_67 WHERE grid < 16 AND laps = 21 AND manufacturer = "honda" AND time = "+10.583"
{ "answer": "SELECT rider FROM table_name_67 WHERE grid < 16 AND laps = 21 AND manufacturer = \"honda\" AND time = \"+10.583\"", "context": "CREATE TABLE table_name_67 (rider VARCHAR, time VARCHAR, manufacturer VARCHAR, grid VARCHAR, laps VARCHAR)", "question": "What is Rider, when Grid is less than 16, when Laps is 21, when Manufacturer is Honda, and when Time is +10.583?" }
### QUESTION Opponent of chicago bulls had what location? ### CONTEXT CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR) ### ANSWER SELECT location FROM table_name_83 WHERE opponent = "chicago bulls"
{ "answer": "SELECT location FROM table_name_83 WHERE opponent = \"chicago bulls\"", "context": "CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR)", "question": "Opponent of chicago bulls had what location?" }
### QUESTION What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73? ### CONTEXT CREATE TABLE table_name_35 (episode VARCHAR, rating VARCHAR, viewers__m_ VARCHAR) ### ANSWER SELECT episode FROM table_name_35 WHERE rating = "1.8" AND viewers__m_ < 2.73
{ "answer": "SELECT episode FROM table_name_35 WHERE rating = \"1.8\" AND viewers__m_ < 2.73", "context": "CREATE TABLE table_name_35 (episode VARCHAR, rating VARCHAR, viewers__m_ VARCHAR)", "question": "What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73?" }
### 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 What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012? ### CONTEXT CREATE TABLE table_1598533_8 (inflation__percentage_annual__2012_ VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR) ### ANSWER SELECT inflation__percentage_annual__2012_ FROM table_1598533_8 WHERE gdp_per_capita_in_ppp_us$__2012_ = 24505
{ "answer": "SELECT inflation__percentage_annual__2012_ FROM table_1598533_8 WHERE gdp_per_capita_in_ppp_us$__2012_ = 24505", "context": "CREATE TABLE table_1598533_8 (inflation__percentage_annual__2012_ VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)", "question": "What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012?" }
### QUESTION Show the unique first names, last names, and phone numbers for all customers with any account. ### CONTEXT CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR) ### ANSWER SELECT DISTINCT T1.customer_first_name, T1.customer_last_name, T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id
{ "answer": "SELECT DISTINCT T1.customer_first_name, T1.customer_last_name, T1.phone_number FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_id", "context": "CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, phone_number VARCHAR, customer_id VARCHAR)", "question": "Show the unique first names, last names, and phone numbers for all customers with any account." }
### QUESTION Which Release price (USD ) has a GPU frequency of 650–1150 mhz and a sSpec number of sr0pq(e1)? ### CONTEXT CREATE TABLE table_name_20 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR, sspec_number VARCHAR) ### ANSWER SELECT release_price___usd__ FROM table_name_20 WHERE gpu_frequency = "650–1150 mhz" AND sspec_number = "sr0pq(e1)"
{ "answer": "SELECT release_price___usd__ FROM table_name_20 WHERE gpu_frequency = \"650–1150 mhz\" AND sspec_number = \"sr0pq(e1)\"", "context": "CREATE TABLE table_name_20 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR, sspec_number VARCHAR)", "question": "Which Release price (USD ) has a GPU frequency of 650–1150 mhz and a sSpec number of sr0pq(e1)?" }
### QUESTION What is the density (hab/km²) with a population censo 2007(hab) of 336.293*? ### CONTEXT CREATE TABLE table_name_4 (density__hab__km²__ VARCHAR, population_censo_2007_hab_ VARCHAR) ### ANSWER SELECT density__hab__km²__ FROM table_name_4 WHERE population_censo_2007_hab_ = "336.293*"
{ "answer": "SELECT density__hab__km²__ FROM table_name_4 WHERE population_censo_2007_hab_ = \"336.293*\"", "context": "CREATE TABLE table_name_4 (density__hab__km²__ VARCHAR, population_censo_2007_hab_ VARCHAR)", "question": "What is the density (hab/km²) with a population censo 2007(hab) of 336.293*?" }
### QUESTION What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32? ### CONTEXT CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR) ### ANSWER SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040
{ "answer": "SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040", "context": "CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR)", "question": "What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?" }
### QUESTION How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2? ### CONTEXT CREATE TABLE table_name_73 (number_of_jews__wjc_ INTEGER, metro_area VARCHAR, rank__arda_ VARCHAR) ### ANSWER SELECT SUM(number_of_jews__wjc_) FROM table_name_73 WHERE metro_area = "los angeles" AND rank__arda_ > 2
{ "answer": "SELECT SUM(number_of_jews__wjc_) FROM table_name_73 WHERE metro_area = \"los angeles\" AND rank__arda_ > 2", "context": "CREATE TABLE table_name_73 (number_of_jews__wjc_ INTEGER, metro_area VARCHAR, rank__arda_ VARCHAR)", "question": "How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?" }
### QUESTION What club does John Westin play for? ### CONTEXT CREATE TABLE table_name_99 (college_junior_club_team__league_ VARCHAR, player VARCHAR) ### ANSWER SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = "john westin"
{ "answer": "SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = \"john westin\"", "context": "CREATE TABLE table_name_99 (college_junior_club_team__league_ VARCHAR, player VARCHAR)", "question": "What club does John Westin play for?" }
### QUESTION What is the document type name for the document with name "How to read a book"? ### CONTEXT CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR) ### ANSWER SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"
{ "answer": "SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = \"How to read a book\"", "context": "CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR)", "question": "What is the document type name for the document with name \"How to read a book\"?" }
### QUESTION When fort irwin-barstow/victorville is the type of fare what is the cash fare? ### CONTEXT CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR) ### ANSWER SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = "Fort Irwin-Barstow/Victorville"
{ "answer": "SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = \"Fort Irwin-Barstow/Victorville\"", "context": "CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR)", "question": "When fort irwin-barstow/victorville is the type of fare what is the cash fare?" }
### QUESTION What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427? ### CONTEXT CREATE TABLE table_name_67 (date VARCHAR, sample_size VARCHAR, democrat VARCHAR, republican VARCHAR, poll_source VARCHAR) ### ANSWER SELECT date FROM table_name_67 WHERE republican = "john mccain" AND poll_source = "quinnipiac" AND democrat = "barack obama" AND sample_size > 1427
{ "answer": "SELECT date FROM table_name_67 WHERE republican = \"john mccain\" AND poll_source = \"quinnipiac\" AND democrat = \"barack obama\" AND sample_size > 1427", "context": "CREATE TABLE table_name_67 (date VARCHAR, sample_size VARCHAR, democrat VARCHAR, republican VARCHAR, poll_source VARCHAR)", "question": "What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427?" }
### QUESTION display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara. ### CONTEXT CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR) ### ANSWER SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara")
{ "answer": "SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = \"Clara\")", "context": "CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR)", "question": "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara." }