text
stringlengths
146
1.06k
source
dict
### QUESTION what is the total number of times the tournament was pga championship and evens is less than 4? ### CONTEXT CREATE TABLE table_name_95 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR) ### ANSWER SELECT COUNT(top_5) FROM table_name_95 WHERE tournament = "pga championship" AND events < 4
{ "answer": "SELECT COUNT(top_5) FROM table_name_95 WHERE tournament = \"pga championship\" AND events < 4", "context": "CREATE TABLE table_name_95 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR)", "question": "what is the total number of times the tournament was pga championship and evens is less than 4?" }
### QUESTION Who hosted the visiting team Baltimore Ravens? ### CONTEXT CREATE TABLE table_name_24 (host_team VARCHAR, visiting_team VARCHAR) ### ANSWER SELECT host_team FROM table_name_24 WHERE visiting_team = "baltimore ravens"
{ "answer": "SELECT host_team FROM table_name_24 WHERE visiting_team = \"baltimore ravens\"", "context": "CREATE TABLE table_name_24 (host_team VARCHAR, visiting_team VARCHAR)", "question": "Who hosted the visiting team Baltimore Ravens?" }
### QUESTION What is the outcome on March 20, 1994? ### CONTEXT CREATE TABLE table_name_89 (outcome VARCHAR, date VARCHAR) ### ANSWER SELECT outcome FROM table_name_89 WHERE date = "march 20, 1994"
{ "answer": "SELECT outcome FROM table_name_89 WHERE date = \"march 20, 1994\"", "context": "CREATE TABLE table_name_89 (outcome VARCHAR, date VARCHAR)", "question": "What is the outcome on March 20, 1994?" }
### QUESTION Find all the papers published by "Aaron Turon". ### CONTEXT CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR) ### ANSWER SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Aaron" AND t1.lname = "Turon"
{ "answer": "SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = \"Aaron\" AND t1.lname = \"Turon\"", "context": "CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR)", "question": "Find all the papers published by \"Aaron Turon\"." }
### QUESTION What is the result of the match in round 1r against tunisia and on a hard surface? ### CONTEXT CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR) ### ANSWER SELECT result FROM table_name_37 WHERE round = "1r" AND surface = "hard" AND against = "tunisia"
{ "answer": "SELECT result FROM table_name_37 WHERE round = \"1r\" AND surface = \"hard\" AND against = \"tunisia\"", "context": "CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)", "question": "What is the result of the match in round 1r against tunisia and on a hard surface?" }
### QUESTION Which Nationality has a Position of left wing? ### CONTEXT CREATE TABLE table_name_99 (nationality VARCHAR, position VARCHAR) ### ANSWER SELECT nationality FROM table_name_99 WHERE position = "left wing"
{ "answer": "SELECT nationality FROM table_name_99 WHERE position = \"left wing\"", "context": "CREATE TABLE table_name_99 (nationality VARCHAR, position VARCHAR)", "question": "Which Nationality has a Position of left wing?" }
### QUESTION What value for university students and adult goes with male gender for minimum weight? ### CONTEXT CREATE TABLE table_name_57 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, gender VARCHAR, specification VARCHAR) ### ANSWER SELECT university_students_and_adults__18yrs + _ FROM table_name_57 WHERE gender = "male" AND specification = "minimum weight"
{ "answer": "SELECT university_students_and_adults__18yrs + _ FROM table_name_57 WHERE gender = \"male\" AND specification = \"minimum weight\"", "context": "CREATE TABLE table_name_57 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, gender VARCHAR, specification VARCHAR)", "question": "What value for university students and adult goes with male gender for minimum weight?" }
### QUESTION List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities. ### CONTEXT CREATE TABLE operate_company (id VARCHAR, principal_activities VARCHAR); CREATE TABLE flight (Id VARCHAR) ### ANSWER SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services'
{ "answer": "SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services'", "context": "CREATE TABLE operate_company (id VARCHAR, principal_activities VARCHAR); CREATE TABLE flight (Id VARCHAR)", "question": "List the name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities." }
### QUESTION How many officers o/s were there on the day when the number of USAAF was 2373882? ### CONTEXT CREATE TABLE table_23508196_2 (officers_o_s INTEGER, total_usaaf VARCHAR) ### ANSWER SELECT MAX(officers_o_s) FROM table_23508196_2 WHERE total_usaaf = 2373882
{ "answer": "SELECT MAX(officers_o_s) FROM table_23508196_2 WHERE total_usaaf = 2373882", "context": "CREATE TABLE table_23508196_2 (officers_o_s INTEGER, total_usaaf VARCHAR)", "question": "How many officers o/s were there on the day when the number of USAAF was 2373882?" }
### QUESTION Which number was the lyricist ahmed metwally? ### CONTEXT CREATE TABLE table_28005100_1 (no VARCHAR, lyricist VARCHAR) ### ANSWER SELECT no FROM table_28005100_1 WHERE lyricist = "Ahmed Metwally"
{ "answer": "SELECT no FROM table_28005100_1 WHERE lyricist = \"Ahmed Metwally\"", "context": "CREATE TABLE table_28005100_1 (no VARCHAR, lyricist VARCHAR)", "question": "Which number was the lyricist ahmed metwally?" }
### QUESTION In 1990-2005 what is the lowest Start with Convs smaller than 2? ### CONTEXT CREATE TABLE table_name_93 (start INTEGER, span VARCHAR, conv VARCHAR) ### ANSWER SELECT MIN(start) FROM table_name_93 WHERE span = "1990-2005" AND conv < 2
{ "answer": "SELECT MIN(start) FROM table_name_93 WHERE span = \"1990-2005\" AND conv < 2", "context": "CREATE TABLE table_name_93 (start INTEGER, span VARCHAR, conv VARCHAR)", "question": "In 1990-2005 what is the lowest Start with Convs smaller than 2?" }
### QUESTION What is the run time for the episode with 7.9 million viewers? ### CONTEXT CREATE TABLE table_2108684_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR) ### ANSWER SELECT run_time FROM table_2108684_1 WHERE viewers__in_millions_ = "7.9"
{ "answer": "SELECT run_time FROM table_2108684_1 WHERE viewers__in_millions_ = \"7.9\"", "context": "CREATE TABLE table_2108684_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR)", "question": "What is the run time for the episode with 7.9 million viewers?" }
### QUESTION Who is the November playmate with the July playmate Hope Marie Carlton? ### CONTEXT CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR) ### ANSWER SELECT november FROM table_name_66 WHERE july = "hope marie carlton"
{ "answer": "SELECT november FROM table_name_66 WHERE july = \"hope marie carlton\"", "context": "CREATE TABLE table_name_66 (november VARCHAR, july VARCHAR)", "question": "Who is the November playmate with the July playmate Hope Marie Carlton?" }
### QUESTION What was the host for the semi final heat, when Terry Wogan was the National Final main host, and Gaby Roslin was the National Final co-host? ### CONTEXT CREATE TABLE table_name_24 (semi_final_heat_host VARCHAR, national_final_main_host VARCHAR, national_final_co_host VARCHAR) ### ANSWER SELECT semi_final_heat_host FROM table_name_24 WHERE national_final_main_host = "terry wogan" AND national_final_co_host = "gaby roslin"
{ "answer": "SELECT semi_final_heat_host FROM table_name_24 WHERE national_final_main_host = \"terry wogan\" AND national_final_co_host = \"gaby roslin\"", "context": "CREATE TABLE table_name_24 (semi_final_heat_host VARCHAR, national_final_main_host VARCHAR, national_final_co_host VARCHAR)", "question": "What was the host for the semi final heat, when Terry Wogan was the National Final main host, and Gaby Roslin was the National Final co-host?" }
### QUESTION What is the positions of Damon Jones? ### CONTEXT CREATE TABLE table_name_87 (position VARCHAR, player VARCHAR) ### ANSWER SELECT position FROM table_name_87 WHERE player = "damon jones"
{ "answer": "SELECT position FROM table_name_87 WHERE player = \"damon jones\"", "context": "CREATE TABLE table_name_87 (position VARCHAR, player VARCHAR)", "question": "What is the positions of Damon Jones?" }
### QUESTION What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue? ### CONTEXT CREATE TABLE table_name_40 (height_feet___m VARCHAR, street_address VARCHAR) ### ANSWER SELECT height_feet___m FROM table_name_40 WHERE street_address = "2345 grand avenue"
{ "answer": "SELECT height_feet___m FROM table_name_40 WHERE street_address = \"2345 grand avenue\"", "context": "CREATE TABLE table_name_40 (height_feet___m VARCHAR, street_address VARCHAR)", "question": "What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?" }
### QUESTION What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster? ### CONTEXT CREATE TABLE table_name_9 (school_year VARCHAR, volleyball VARCHAR, cross_country VARCHAR, soccer VARCHAR) ### ANSWER SELECT school_year FROM table_name_9 WHERE cross_country = "lexington" AND soccer = "ashland" AND volleyball = "wooster"
{ "answer": "SELECT school_year FROM table_name_9 WHERE cross_country = \"lexington\" AND soccer = \"ashland\" AND volleyball = \"wooster\"", "context": "CREATE TABLE table_name_9 (school_year VARCHAR, volleyball VARCHAR, cross_country VARCHAR, soccer VARCHAR)", "question": "What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster?" }
### QUESTION What is the record when the game was played at raymond james stadium? ### CONTEXT CREATE TABLE table_name_46 (record VARCHAR, game_site VARCHAR) ### ANSWER SELECT record FROM table_name_46 WHERE game_site = "raymond james stadium"
{ "answer": "SELECT record FROM table_name_46 WHERE game_site = \"raymond james stadium\"", "context": "CREATE TABLE table_name_46 (record VARCHAR, game_site VARCHAR)", "question": "What is the record when the game was played at raymond james stadium?" }
### QUESTION Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871? ### CONTEXT CREATE TABLE table_name_76 (works_number VARCHAR, date VARCHAR, number VARCHAR, builder VARCHAR, type VARCHAR) ### ANSWER SELECT works_number FROM table_name_76 WHERE builder = "avonside engine company" AND type = "4-6-0" AND number < 12 AND date = "december 1871"
{ "answer": "SELECT works_number FROM table_name_76 WHERE builder = \"avonside engine company\" AND type = \"4-6-0\" AND number < 12 AND date = \"december 1871\"", "context": "CREATE TABLE table_name_76 (works_number VARCHAR, date VARCHAR, number VARCHAR, builder VARCHAR, type VARCHAR)", "question": "Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871?" }
### QUESTION Where was the GTE Suncoast Classic tournament held? ### CONTEXT CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR) ### ANSWER SELECT location FROM table_11622562_1 WHERE tournament = "GTE Suncoast Classic"
{ "answer": "SELECT location FROM table_11622562_1 WHERE tournament = \"GTE Suncoast Classic\"", "context": "CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR)", "question": "Where was the GTE Suncoast Classic tournament held?" }
### QUESTION what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0? ### CONTEXT CREATE TABLE table_name_27 (Id VARCHAR) ### ANSWER SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0
{ "answer": "SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0", "context": "CREATE TABLE table_name_27 (Id VARCHAR)", "question": "what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?" }
### QUESTION Who was the architect that built the Electric Railway Chambers before 1915? ### CONTEXT CREATE TABLE table_name_43 (architect VARCHAR, built VARCHAR, building VARCHAR) ### ANSWER SELECT architect FROM table_name_43 WHERE built < 1915 AND building = "electric railway chambers"
{ "answer": "SELECT architect FROM table_name_43 WHERE built < 1915 AND building = \"electric railway chambers\"", "context": "CREATE TABLE table_name_43 (architect VARCHAR, built VARCHAR, building VARCHAR)", "question": "Who was the architect that built the Electric Railway Chambers before 1915?" }
### QUESTION What are the distinct address type codes for all customer addresses? ### CONTEXT CREATE TABLE customer_addresses (address_type_code VARCHAR) ### ANSWER SELECT DISTINCT address_type_code FROM customer_addresses
{ "answer": "SELECT DISTINCT address_type_code FROM customer_addresses", "context": "CREATE TABLE customer_addresses (address_type_code VARCHAR)", "question": "What are the distinct address type codes for all customer addresses?" }
### QUESTION What is Australia's score where they were in place t1? ### CONTEXT CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, place VARCHAR) ### ANSWER SELECT score FROM table_name_43 WHERE country = "australia" AND place = "t1"
{ "answer": "SELECT score FROM table_name_43 WHERE country = \"australia\" AND place = \"t1\"", "context": "CREATE TABLE table_name_43 (score VARCHAR, country VARCHAR, place VARCHAR)", "question": "What is Australia's score where they were in place t1?" }
### QUESTION How many golden tickets for the georgia international convention center? ### CONTEXT CREATE TABLE table_name_85 (golden_tickets INTEGER, callback_venue VARCHAR) ### ANSWER SELECT SUM(golden_tickets) FROM table_name_85 WHERE callback_venue = "georgia international convention center"
{ "answer": "SELECT SUM(golden_tickets) FROM table_name_85 WHERE callback_venue = \"georgia international convention center\"", "context": "CREATE TABLE table_name_85 (golden_tickets INTEGER, callback_venue VARCHAR)", "question": "How many golden tickets for the georgia international convention center?" }
### QUESTION When first woman eva is the comment what is the end -utc? ### CONTEXT CREATE TABLE table_245801_2 (end___utc VARCHAR, comments VARCHAR) ### ANSWER SELECT end___utc FROM table_245801_2 WHERE comments = "First woman EVA"
{ "answer": "SELECT end___utc FROM table_245801_2 WHERE comments = \"First woman EVA\"", "context": "CREATE TABLE table_245801_2 (end___utc VARCHAR, comments VARCHAR)", "question": "When first woman eva is the comment what is the end -utc?" }
### QUESTION What's the total of rank 8 when Silver medals are 0 and gold is more than 1? ### CONTEXT CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, silver VARCHAR, rank VARCHAR) ### ANSWER SELECT COUNT(total) FROM table_name_2 WHERE silver = 0 AND rank = 8 AND gold > 1
{ "answer": "SELECT COUNT(total) FROM table_name_2 WHERE silver = 0 AND rank = 8 AND gold > 1", "context": "CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, silver VARCHAR, rank VARCHAR)", "question": "What's the total of rank 8 when Silver medals are 0 and gold is more than 1?" }
### QUESTION With the given points of 51, what was the total number of the try bonus? ### CONTEXT CREATE TABLE table_17675675_2 (try_bonus VARCHAR, points VARCHAR) ### ANSWER SELECT COUNT(try_bonus) FROM table_17675675_2 WHERE points = "51"
{ "answer": "SELECT COUNT(try_bonus) FROM table_17675675_2 WHERE points = \"51\"", "context": "CREATE TABLE table_17675675_2 (try_bonus VARCHAR, points VARCHAR)", "question": "With the given points of 51, what was the total number of the try bonus?" }
### QUESTION Find the names of customers who have no policies associated. ### CONTEXT CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_details VARCHAR); CREATE TABLE policies (customer_id VARCHAR) ### ANSWER SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id
{ "answer": "SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id", "context": "CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_details VARCHAR); CREATE TABLE policies (customer_id VARCHAR)", "question": "Find the names of customers who have no policies associated." }
### QUESTION Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name. ### CONTEXT CREATE TABLE CARS_DATA (Id VARCHAR, Horsepower INTEGER, Cylinders VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR); CREATE TABLE CARS_DATA (Horsepower INTEGER) ### ANSWER SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3
{ "answer": "SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3", "context": "CREATE TABLE CARS_DATA (Id VARCHAR, Horsepower INTEGER, Cylinders VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR); CREATE TABLE CARS_DATA (Horsepower INTEGER)", "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name." }
### QUESTION What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145? ### CONTEXT CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR) ### ANSWER SELECT COUNT(to_par) FROM table_name_72 WHERE country = "united states" AND year_won > 1986 AND player = "paul azinger" AND total > 145
{ "answer": "SELECT COUNT(to_par) FROM table_name_72 WHERE country = \"united states\" AND year_won > 1986 AND player = \"paul azinger\" AND total > 145", "context": "CREATE TABLE table_name_72 (to_par VARCHAR, total VARCHAR, player VARCHAR, country VARCHAR, year_won VARCHAR)", "question": "What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?" }
### QUESTION What's the location for the country of platte? ### CONTEXT CREATE TABLE table_name_64 (location VARCHAR, county VARCHAR) ### ANSWER SELECT location FROM table_name_64 WHERE county = "platte"
{ "answer": "SELECT location FROM table_name_64 WHERE county = \"platte\"", "context": "CREATE TABLE table_name_64 (location VARCHAR, county VARCHAR)", "question": "What's the location for the country of platte?" }
### QUESTION When were the successor/s seated for Ohio 10th? ### CONTEXT CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, district VARCHAR) ### ANSWER SELECT date_successor_seated FROM table_2417345_4 WHERE district = "Ohio 10th"
{ "answer": "SELECT date_successor_seated FROM table_2417345_4 WHERE district = \"Ohio 10th\"", "context": "CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, district VARCHAR)", "question": "When were the successor/s seated for Ohio 10th?" }
### QUESTION What's the average interview with Preliminaries larger than 8.27, an Evening Gown of 8.85, and an Average smaller than 8.842? ### CONTEXT CREATE TABLE table_name_65 (interview INTEGER, average VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR) ### ANSWER SELECT AVG(interview) FROM table_name_65 WHERE preliminaries > 8.27 AND evening_gown = 8.85 AND average < 8.842
{ "answer": "SELECT AVG(interview) FROM table_name_65 WHERE preliminaries > 8.27 AND evening_gown = 8.85 AND average < 8.842", "context": "CREATE TABLE table_name_65 (interview INTEGER, average VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR)", "question": "What's the average interview with Preliminaries larger than 8.27, an Evening Gown of 8.85, and an Average smaller than 8.842?" }
### QUESTION What are the dates for the documents with both 'GV' type and 'SF' type expenses? ### CONTEXT CREATE TABLE Documents_with_Expenses (document_id VARCHAR, budget_type_code VARCHAR); CREATE TABLE Documents (document_date VARCHAR, document_id VARCHAR) ### ANSWER SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'
{ "answer": "SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'", "context": "CREATE TABLE Documents_with_Expenses (document_id VARCHAR, budget_type_code VARCHAR); CREATE TABLE Documents (document_date VARCHAR, document_id VARCHAR)", "question": "What are the dates for the documents with both 'GV' type and 'SF' type expenses?" }
### QUESTION What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley? ### CONTEXT CREATE TABLE table_name_56 (year INTEGER, role VARCHAR, director VARCHAR) ### ANSWER SELECT SUM(year) FROM table_name_56 WHERE role = "nan taylor, alias of nan ellis, aka mrs. andrews" AND director = "william keighley"
{ "answer": "SELECT SUM(year) FROM table_name_56 WHERE role = \"nan taylor, alias of nan ellis, aka mrs. andrews\" AND director = \"william keighley\"", "context": "CREATE TABLE table_name_56 (year INTEGER, role VARCHAR, director VARCHAR)", "question": "What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?" }
### QUESTION Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +? ### CONTEXT CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR) ### ANSWER SELECT particle FROM table_name_41 WHERE isospin_i = "1" AND commonly_decays_to = "p + + π 0 or n 0 + π +"
{ "answer": "SELECT particle FROM table_name_41 WHERE isospin_i = \"1\" AND commonly_decays_to = \"p + + π 0 or n 0 + π +\"", "context": "CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR)", "question": "Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?" }
### QUESTION What is the decision when the opponents are atlanta thrashers? ### CONTEXT CREATE TABLE table_27501030_7 (decision VARCHAR, opponent VARCHAR) ### ANSWER SELECT decision FROM table_27501030_7 WHERE opponent = "Atlanta Thrashers"
{ "answer": "SELECT decision FROM table_27501030_7 WHERE opponent = \"Atlanta Thrashers\"", "context": "CREATE TABLE table_27501030_7 (decision VARCHAR, opponent VARCHAR)", "question": "What is the decision when the opponents are atlanta thrashers?" }
### QUESTION What original air date was the episode with production code of 5.05? ### CONTEXT CREATE TABLE table_28089666_1 (original_air_date VARCHAR, production_code VARCHAR) ### ANSWER SELECT original_air_date FROM table_28089666_1 WHERE production_code = "5.05"
{ "answer": "SELECT original_air_date FROM table_28089666_1 WHERE production_code = \"5.05\"", "context": "CREATE TABLE table_28089666_1 (original_air_date VARCHAR, production_code VARCHAR)", "question": "What original air date was the episode with production code of 5.05?" }
### QUESTION What is the record for opponent Anna Barone? ### CONTEXT CREATE TABLE table_name_24 (record VARCHAR, opponent VARCHAR) ### ANSWER SELECT record FROM table_name_24 WHERE opponent = "anna barone"
{ "answer": "SELECT record FROM table_name_24 WHERE opponent = \"anna barone\"", "context": "CREATE TABLE table_name_24 (record VARCHAR, opponent VARCHAR)", "question": "What is the record for opponent Anna Barone?" }
### QUESTION What is the socket related to the processor released on June 22, 2005, having a frequency of 1600MHz and voltage under 1.35V? ### CONTEXT CREATE TABLE table_name_7 (socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR) ### ANSWER SELECT socket FROM table_name_7 WHERE frequency = "1600mhz" AND release_date = "june 22, 2005" AND voltage < 1.35
{ "answer": "SELECT socket FROM table_name_7 WHERE frequency = \"1600mhz\" AND release_date = \"june 22, 2005\" AND voltage < 1.35", "context": "CREATE TABLE table_name_7 (socket VARCHAR, voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)", "question": "What is the socket related to the processor released on June 22, 2005, having a frequency of 1600MHz and voltage under 1.35V?" }
### QUESTION Which Size has a County of 62 perry? ### CONTEXT CREATE TABLE table_name_69 (size INTEGER, county VARCHAR) ### ANSWER SELECT MAX(size) FROM table_name_69 WHERE county = "62 perry"
{ "answer": "SELECT MAX(size) FROM table_name_69 WHERE county = \"62 perry\"", "context": "CREATE TABLE table_name_69 (size INTEGER, county VARCHAR)", "question": "Which Size has a County of 62 perry?" }
### QUESTION what is the least number of no decisions for scott feldman category:articles with hcards ### CONTEXT CREATE TABLE table_19864214_3 (no_decisions INTEGER, pitcher VARCHAR) ### ANSWER SELECT MIN(no_decisions) FROM table_19864214_3 WHERE pitcher = "Scott Feldman Category:Articles with hCards"
{ "answer": "SELECT MIN(no_decisions) FROM table_19864214_3 WHERE pitcher = \"Scott Feldman Category:Articles with hCards\"", "context": "CREATE TABLE table_19864214_3 (no_decisions INTEGER, pitcher VARCHAR)", "question": "what is the least number of no decisions for scott feldman category:articles with hcards" }
### QUESTION howe many positions did wallace, mike mike wallace play for ### CONTEXT CREATE TABLE table_20898602_1 (position VARCHAR, player VARCHAR) ### ANSWER SELECT COUNT(position) FROM table_20898602_1 WHERE player = "Wallace, Mike Mike Wallace"
{ "answer": "SELECT COUNT(position) FROM table_20898602_1 WHERE player = \"Wallace, Mike Mike Wallace\"", "context": "CREATE TABLE table_20898602_1 (position VARCHAR, player VARCHAR)", "question": "howe many positions did wallace, mike mike wallace play for " }
### QUESTION WHAT COLLEGE HAS A ROUND LARGER THAN 9, WITH BUTCH WEBSTER? ### CONTEXT CREATE TABLE table_name_74 (college VARCHAR, round VARCHAR, player VARCHAR) ### ANSWER SELECT college FROM table_name_74 WHERE round > 9 AND player = "butch webster"
{ "answer": "SELECT college FROM table_name_74 WHERE round > 9 AND player = \"butch webster\"", "context": "CREATE TABLE table_name_74 (college VARCHAR, round VARCHAR, player VARCHAR)", "question": "WHAT COLLEGE HAS A ROUND LARGER THAN 9, WITH BUTCH WEBSTER?" }
### QUESTION During the Mid-American Conference who is listed as the tournament winner? ### CONTEXT CREATE TABLE table_28365816_2 (tournament_winner VARCHAR, conference VARCHAR) ### ANSWER SELECT tournament_winner FROM table_28365816_2 WHERE conference = "Mid-American conference"
{ "answer": "SELECT tournament_winner FROM table_28365816_2 WHERE conference = \"Mid-American conference\"", "context": "CREATE TABLE table_28365816_2 (tournament_winner VARCHAR, conference VARCHAR)", "question": "During the Mid-American Conference who is listed as the tournament winner?" }
### QUESTION What is the autonomous community with television channels tpa tpa2 rtpa internacional? ### CONTEXT CREATE TABLE table_23143607_1 (autonomous_community VARCHAR, television_channels VARCHAR) ### ANSWER SELECT autonomous_community FROM table_23143607_1 WHERE television_channels = "TPA TPA2 RTPA Internacional"
{ "answer": "SELECT autonomous_community FROM table_23143607_1 WHERE television_channels = \"TPA TPA2 RTPA Internacional\"", "context": "CREATE TABLE table_23143607_1 (autonomous_community VARCHAR, television_channels VARCHAR)", "question": "What is the autonomous community with television channels tpa tpa2 rtpa internacional?" }
### QUESTION Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)? ### CONTEXT CREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR) ### ANSWER SELECT gold FROM table_name_2 WHERE event = "time trial details" AND silver = "simon richardson great britain (gbr)"
{ "answer": "SELECT gold FROM table_name_2 WHERE event = \"time trial details\" AND silver = \"simon richardson great britain (gbr)\"", "context": "CREATE TABLE table_name_2 (gold VARCHAR, event VARCHAR, silver VARCHAR)", "question": "Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)?" }
### QUESTION What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0? ### CONTEXT CREATE TABLE table_name_46 (agricultural_panel INTEGER, industrial_and_commercial_panel INTEGER) ### ANSWER SELECT SUM(agricultural_panel) FROM table_name_46 WHERE industrial_and_commercial_panel < 0
{ "answer": "SELECT SUM(agricultural_panel) FROM table_name_46 WHERE industrial_and_commercial_panel < 0", "context": "CREATE TABLE table_name_46 (agricultural_panel INTEGER, industrial_and_commercial_panel INTEGER)", "question": "What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?" }
### QUESTION How many production codes are there for the episode that had 4.36 million u.s. viewers? ### CONTEXT CREATE TABLE table_28037619_2 (production_code VARCHAR, us_viewers__million_ VARCHAR) ### ANSWER SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = "4.36"
{ "answer": "SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = \"4.36\"", "context": "CREATE TABLE table_28037619_2 (production_code VARCHAR, us_viewers__million_ VARCHAR)", "question": "How many production codes are there for the episode that had 4.36 million u.s. viewers?" }
### QUESTION When middle assyrian empire is the ubaid period in mesopotamia what is the copper age? ### CONTEXT CREATE TABLE table_23537091_1 (copper_age VARCHAR, ubaid_period_in_mesopotamia VARCHAR) ### ANSWER SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Middle Assyrian Empire"
{ "answer": "SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = \"Middle Assyrian Empire\"", "context": "CREATE TABLE table_23537091_1 (copper_age VARCHAR, ubaid_period_in_mesopotamia VARCHAR)", "question": "When middle assyrian empire is the ubaid period in mesopotamia what is the copper age?" }
### QUESTION Which Appointed has a Presentation of Credentials on November 22, 1990 ### CONTEXT CREATE TABLE table_name_45 (appointed_by VARCHAR, presentation_of_credentials VARCHAR) ### ANSWER SELECT appointed_by FROM table_name_45 WHERE presentation_of_credentials = "november 22, 1990"
{ "answer": "SELECT appointed_by FROM table_name_45 WHERE presentation_of_credentials = \"november 22, 1990\"", "context": "CREATE TABLE table_name_45 (appointed_by VARCHAR, presentation_of_credentials VARCHAR)", "question": "Which Appointed has a Presentation of Credentials on November 22, 1990" }
### QUESTION What are the notes where the authors are Zhou & Zhang? ### CONTEXT CREATE TABLE table_name_11 (notes VARCHAR, authors VARCHAR) ### ANSWER SELECT notes FROM table_name_11 WHERE authors = "zhou & zhang"
{ "answer": "SELECT notes FROM table_name_11 WHERE authors = \"zhou & zhang\"", "context": "CREATE TABLE table_name_11 (notes VARCHAR, authors VARCHAR)", "question": "What are the notes where the authors are Zhou & Zhang?" }
### QUESTION Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5? ### CONTEXT CREATE TABLE table_name_96 (champion VARCHAR, runner_up VARCHAR, score VARCHAR) ### ANSWER SELECT champion FROM table_name_96 WHERE runner_up = "florian mayer" AND score = "7–6(6), 4–6, 7–5"
{ "answer": "SELECT champion FROM table_name_96 WHERE runner_up = \"florian mayer\" AND score = \"7–6(6), 4–6, 7–5\"", "context": "CREATE TABLE table_name_96 (champion VARCHAR, runner_up VARCHAR, score VARCHAR)", "question": "Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5?" }
### QUESTION Show the description of the transaction type that occurs most frequently. ### CONTEXT CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR); CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR) ### ANSWER SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR); CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR)", "question": "Show the description of the transaction type that occurs most frequently." }
### QUESTION In which round did Paul McDonald have an overall greater than 109? ### CONTEXT CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR) ### ANSWER SELECT MAX(round) FROM table_name_22 WHERE player = "paul mcdonald" AND overall > 109
{ "answer": "SELECT MAX(round) FROM table_name_22 WHERE player = \"paul mcdonald\" AND overall > 109", "context": "CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR)", "question": "In which round did Paul McDonald have an overall greater than 109?" }
### QUESTION How many points against has team Cardiff had when there were less than 7 tries? ### CONTEXT CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR) ### ANSWER SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 7
{ "answer": "SELECT COUNT(points_against) FROM table_name_97 WHERE team = \"cardiff\" AND tries_against < 7", "context": "CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR)", "question": "How many points against has team Cardiff had when there were less than 7 tries?" }
### QUESTION What engine did Casey Mears use on the Reynard 01i Chassis? ### CONTEXT CREATE TABLE table_name_24 (engine VARCHAR, chassis VARCHAR, drivers VARCHAR) ### ANSWER SELECT engine FROM table_name_24 WHERE chassis = "reynard 01i" AND drivers = "casey mears"
{ "answer": "SELECT engine FROM table_name_24 WHERE chassis = \"reynard 01i\" AND drivers = \"casey mears\"", "context": "CREATE TABLE table_name_24 (engine VARCHAR, chassis VARCHAR, drivers VARCHAR)", "question": "What engine did Casey Mears use on the Reynard 01i Chassis?" }
### QUESTION What is the latest year with reporters Lesley Visser and Robin Roberts? ### CONTEXT CREATE TABLE table_22654139_3 (year INTEGER, reporters VARCHAR) ### ANSWER SELECT MAX(year) FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts"
{ "answer": "SELECT MAX(year) FROM table_22654139_3 WHERE reporters = \"Lesley Visser and Robin Roberts\"", "context": "CREATE TABLE table_22654139_3 (year INTEGER, reporters VARCHAR)", "question": "What is the latest year with reporters Lesley Visser and Robin Roberts?" }
### QUESTION What is the mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1? ### CONTEXT CREATE TABLE table_name_48 (mate VARCHAR, animal_name VARCHAR, tv_seasons VARCHAR, last_appearance VARCHAR) ### ANSWER SELECT mate FROM table_name_48 WHERE tv_seasons > 1 AND last_appearance = "bully, bully, bully (3x13)" AND animal_name = "hollow/holly"
{ "answer": "SELECT mate FROM table_name_48 WHERE tv_seasons > 1 AND last_appearance = \"bully, bully, bully (3x13)\" AND animal_name = \"hollow/holly\"", "context": "CREATE TABLE table_name_48 (mate VARCHAR, animal_name VARCHAR, tv_seasons VARCHAR, last_appearance VARCHAR)", "question": "What is the mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1?" }
### QUESTION Name the directors for peter gawler ### CONTEXT CREATE TABLE table_25764073_3 (director_s_ VARCHAR, writer_s_ VARCHAR) ### ANSWER SELECT director_s_ FROM table_25764073_3 WHERE writer_s_ = "Peter Gawler"
{ "answer": "SELECT director_s_ FROM table_25764073_3 WHERE writer_s_ = \"Peter Gawler\"", "context": "CREATE TABLE table_25764073_3 (director_s_ VARCHAR, writer_s_ VARCHAR)", "question": "Name the directors for peter gawler" }
### QUESTION Which Reservoir capacity has an Impounded body of water of tumut two pondage? ### CONTEXT CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR) ### ANSWER SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = "tumut two pondage"
{ "answer": "SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = \"tumut two pondage\"", "context": "CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR)", "question": "Which Reservoir capacity has an Impounded body of water of tumut two pondage?" }
### QUESTION What was the airdate of the episode that was directed by giancarlo volpe and written by is john o'bryan? ### CONTEXT CREATE TABLE table_14562722_1 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR) ### ANSWER SELECT original_air_date FROM table_14562722_1 WHERE directed_by = "Giancarlo Volpe" AND written_by = "John O'Bryan"
{ "answer": "SELECT original_air_date FROM table_14562722_1 WHERE directed_by = \"Giancarlo Volpe\" AND written_by = \"John O'Bryan\"", "context": "CREATE TABLE table_14562722_1 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)", "question": "What was the airdate of the episode that was directed by giancarlo volpe and written by is john o'bryan?" }
### QUESTION What are the notes for the Mandarin Chinese program on CTV earlier than 2013? ### CONTEXT CREATE TABLE table_name_40 (notes VARCHAR, network VARCHAR, year VARCHAR, language VARCHAR) ### ANSWER SELECT notes FROM table_name_40 WHERE year < 2013 AND language = "mandarin chinese" AND network = "ctv"
{ "answer": "SELECT notes FROM table_name_40 WHERE year < 2013 AND language = \"mandarin chinese\" AND network = \"ctv\"", "context": "CREATE TABLE table_name_40 (notes VARCHAR, network VARCHAR, year VARCHAR, language VARCHAR)", "question": "What are the notes for the Mandarin Chinese program on CTV earlier than 2013?" }
### QUESTION Who had the most rebounds in the game against the team with a 5-2 record against the Hawks? ### CONTEXT CREATE TABLE table_23248910_5 (high_rebounds VARCHAR, record VARCHAR) ### ANSWER SELECT high_rebounds FROM table_23248910_5 WHERE record = "5-2"
{ "answer": "SELECT high_rebounds FROM table_23248910_5 WHERE record = \"5-2\"", "context": "CREATE TABLE table_23248910_5 (high_rebounds VARCHAR, record VARCHAR)", "question": "Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?" }
### QUESTION What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162? ### CONTEXT CREATE TABLE table_name_66 (games VARCHAR, goals INTEGER, name VARCHAR) ### ANSWER SELECT AVG(goals) / games FROM table_name_66 WHERE name = "rummenigge, karl-heinz" AND goals < 162
{ "answer": "SELECT AVG(goals) / games FROM table_name_66 WHERE name = \"rummenigge, karl-heinz\" AND goals < 162", "context": "CREATE TABLE table_name_66 (games VARCHAR, goals INTEGER, name VARCHAR)", "question": "What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162?" }
### QUESTION How many distinct colleges are associated with players from the team with name "Columbus Crew". ### CONTEXT CREATE TABLE match_season (College VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR) ### ANSWER SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = "Columbus Crew"
{ "answer": "SELECT COUNT(DISTINCT T1.College) FROM match_season AS T1 JOIN team AS T2 ON T1.Team = T2.Team_id WHERE T2.Name = \"Columbus Crew\"", "context": "CREATE TABLE match_season (College VARCHAR, Team VARCHAR); CREATE TABLE team (Team_id VARCHAR, Name VARCHAR)", "question": "How many distinct colleges are associated with players from the team with name \"Columbus Crew\"." }
### QUESTION who directed with original air date being november18,1995 ### CONTEXT CREATE TABLE table_14637853_3 (directed_by VARCHAR, original_air_date VARCHAR) ### ANSWER SELECT directed_by FROM table_14637853_3 WHERE original_air_date = "November18,1995"
{ "answer": "SELECT directed_by FROM table_14637853_3 WHERE original_air_date = \"November18,1995\"", "context": "CREATE TABLE table_14637853_3 (directed_by VARCHAR, original_air_date VARCHAR)", "question": "who directed with original air date being november18,1995" }
### QUESTION How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen? ### CONTEXT CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen VARCHAR) ### ANSWER SELECT COUNT(bowler) FROM table_22962745_35 WHERE batsmen = "David Hussey Azhar Mahmood Gurkeerat Singh"
{ "answer": "SELECT COUNT(bowler) FROM table_22962745_35 WHERE batsmen = \"David Hussey Azhar Mahmood Gurkeerat Singh\"", "context": "CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen VARCHAR)", "question": "How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?" }
### QUESTION What is the id, name and nationality of the architect who built most mills? ### CONTEXT CREATE TABLE architect (id VARCHAR, name VARCHAR, nationality VARCHAR); CREATE TABLE mill (architect_id VARCHAR) ### ANSWER SELECT T1.id, T1.name, T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.id, T1.name, T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE architect (id VARCHAR, name VARCHAR, nationality VARCHAR); CREATE TABLE mill (architect_id VARCHAR)", "question": "What is the id, name and nationality of the architect who built most mills?" }
### QUESTION For each zip code, return the average mean temperature of August there. ### CONTEXT CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER, date VARCHAR) ### ANSWER SELECT zip_code, AVG(mean_temperature_f) FROM weather WHERE date LIKE "8/%" GROUP BY zip_code
{ "answer": "SELECT zip_code, AVG(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code", "context": "CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER, date VARCHAR)", "question": "For each zip code, return the average mean temperature of August there." }
### QUESTION Find the average age of students living in each dorm and the name of dorm. ### CONTEXT CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR) ### ANSWER SELECT AVG(T1.age), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name
{ "answer": "SELECT AVG(T1.age), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name", "context": "CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR)", "question": "Find the average age of students living in each dorm and the name of dorm." }
### QUESTION How many RolePlay actors played the same role as FlatSpin's Tracy Taylor? ### CONTEXT CREATE TABLE table_17827271_1 (roleplay VARCHAR, flatspin VARCHAR) ### ANSWER SELECT COUNT(roleplay) FROM table_17827271_1 WHERE flatspin = "Tracy Taylor"
{ "answer": "SELECT COUNT(roleplay) FROM table_17827271_1 WHERE flatspin = \"Tracy Taylor\"", "context": "CREATE TABLE table_17827271_1 (roleplay VARCHAR, flatspin VARCHAR)", "question": "How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?" }
### QUESTION At which site was Northwestern an opponent? ### CONTEXT CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR) ### ANSWER SELECT site FROM table_name_67 WHERE opponent_number = "northwestern"
{ "answer": "SELECT site FROM table_name_67 WHERE opponent_number = \"northwestern\"", "context": "CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR)", "question": "At which site was Northwestern an opponent?" }
### QUESTION What is the Player that has a Place of t2, and a Score of 74-70-68=212? ### CONTEXT CREATE TABLE table_name_64 (player VARCHAR, place VARCHAR, score VARCHAR) ### ANSWER SELECT player FROM table_name_64 WHERE place = "t2" AND score = 74 - 70 - 68 = 212
{ "answer": "SELECT player FROM table_name_64 WHERE place = \"t2\" AND score = 74 - 70 - 68 = 212", "context": "CREATE TABLE table_name_64 (player VARCHAR, place VARCHAR, score VARCHAR)", "question": "What is the Player that has a Place of t2, and a Score of 74-70-68=212?" }
### QUESTION What was Rut's Slovenes percentage in 1991? ### CONTEXT CREATE TABLE table_name_76 (percent_of_slovenes_1991 VARCHAR, village__slovenian_ VARCHAR) ### ANSWER SELECT percent_of_slovenes_1991 FROM table_name_76 WHERE village__slovenian_ = "rut"
{ "answer": "SELECT percent_of_slovenes_1991 FROM table_name_76 WHERE village__slovenian_ = \"rut\"", "context": "CREATE TABLE table_name_76 (percent_of_slovenes_1991 VARCHAR, village__slovenian_ VARCHAR)", "question": "What was Rut's Slovenes percentage in 1991?" }
### QUESTION How many points does Tom Hammond have if he has more than 12 points? ### CONTEXT CREATE TABLE table_name_12 (points INTEGER, player VARCHAR, extra_points VARCHAR) ### ANSWER SELECT SUM(points) FROM table_name_12 WHERE player = "tom hammond" AND extra_points > 12
{ "answer": "SELECT SUM(points) FROM table_name_12 WHERE player = \"tom hammond\" AND extra_points > 12", "context": "CREATE TABLE table_name_12 (points INTEGER, player VARCHAR, extra_points VARCHAR)", "question": "How many points does Tom Hammond have if he has more than 12 points?" }
### QUESTION What is the Serial Number of the Locomotive that Entered Service October 1989? ### CONTEXT CREATE TABLE table_name_26 (serial_no VARCHAR, entered_service VARCHAR) ### ANSWER SELECT serial_no FROM table_name_26 WHERE entered_service = "october 1989"
{ "answer": "SELECT serial_no FROM table_name_26 WHERE entered_service = \"october 1989\"", "context": "CREATE TABLE table_name_26 (serial_no VARCHAR, entered_service VARCHAR)", "question": "What is the Serial Number of the Locomotive that Entered Service October 1989?" }
### QUESTION Who's the actor for the Archers having a character of Martha Woodford? ### CONTEXT CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR) ### ANSWER SELECT actor FROM table_name_14 WHERE soap_opera = "the archers" AND character = "martha woodford"
{ "answer": "SELECT actor FROM table_name_14 WHERE soap_opera = \"the archers\" AND character = \"martha woodford\"", "context": "CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)", "question": "Who's the actor for the Archers having a character of Martha Woodford?" }
### QUESTION Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode? ### CONTEXT CREATE TABLE table_name_74 (episode INTEGER, date VARCHAR, performer_1 VARCHAR, performer_3 VARCHAR) ### ANSWER SELECT AVG(episode) FROM table_name_74 WHERE performer_1 = "greg proops" AND performer_3 = "ryan stiles" AND date = "25 august 1995"
{ "answer": "SELECT AVG(episode) FROM table_name_74 WHERE performer_1 = \"greg proops\" AND performer_3 = \"ryan stiles\" AND date = \"25 august 1995\"", "context": "CREATE TABLE table_name_74 (episode INTEGER, date VARCHAR, performer_1 VARCHAR, performer_3 VARCHAR)", "question": "Performer 1 of greg proops, and a Performer 3 of ryan stiles, and a Date of 25 august 1995 is which average episode?" }
### QUESTION What player is 2.01 m tall? ### CONTEXT CREATE TABLE table_12962773_2 (player VARCHAR, height VARCHAR) ### ANSWER SELECT player FROM table_12962773_2 WHERE height = "2.01"
{ "answer": "SELECT player FROM table_12962773_2 WHERE height = \"2.01\"", "context": "CREATE TABLE table_12962773_2 (player VARCHAR, height VARCHAR)", "question": "What player is 2.01 m tall?" }
### QUESTION What is the highest value for Byes, when Against is less than 1794, when Losses is "6", and when Draws is less than 0? ### CONTEXT CREATE TABLE table_name_61 (byes INTEGER, draws VARCHAR, against VARCHAR, losses VARCHAR) ### ANSWER SELECT MAX(byes) FROM table_name_61 WHERE against < 1794 AND losses = 6 AND draws < 0
{ "answer": "SELECT MAX(byes) FROM table_name_61 WHERE against < 1794 AND losses = 6 AND draws < 0", "context": "CREATE TABLE table_name_61 (byes INTEGER, draws VARCHAR, against VARCHAR, losses VARCHAR)", "question": "What is the highest value for Byes, when Against is less than 1794, when Losses is \"6\", and when Draws is less than 0?" }
### QUESTION What is the opening day net gross a Reliance Entertainment movie before 2011 had? ### CONTEXT CREATE TABLE table_name_90 (opening_day_net_gross INTEGER, studio_s_ VARCHAR, year VARCHAR) ### ANSWER SELECT SUM(opening_day_net_gross) FROM table_name_90 WHERE studio_s_ = "reliance entertainment" AND year < 2011
{ "answer": "SELECT SUM(opening_day_net_gross) FROM table_name_90 WHERE studio_s_ = \"reliance entertainment\" AND year < 2011", "context": "CREATE TABLE table_name_90 (opening_day_net_gross INTEGER, studio_s_ VARCHAR, year VARCHAR)", "question": "What is the opening day net gross a Reliance Entertainment movie before 2011 had?" }
### QUESTION What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos? ### CONTEXT CREATE TABLE table_name_92 (nat VARCHAR, name VARCHAR, ends VARCHAR, since VARCHAR) ### ANSWER SELECT nat FROM table_name_92 WHERE ends > 2010 AND since = 2006 AND name = "paligeorgos"
{ "answer": "SELECT nat FROM table_name_92 WHERE ends > 2010 AND since = 2006 AND name = \"paligeorgos\"", "context": "CREATE TABLE table_name_92 (nat VARCHAR, name VARCHAR, ends VARCHAR, since VARCHAR)", "question": "What is Nat., when Ends is greater than 2010, when Since is 2006, and when Name is Paligeorgos?" }
### QUESTION Which game is named tsegay kebede category:articles with hcards? ### CONTEXT CREATE TABLE table_name_70 (games VARCHAR, name VARCHAR) ### ANSWER SELECT games FROM table_name_70 WHERE name = "tsegay kebede category:articles with hcards"
{ "answer": "SELECT games FROM table_name_70 WHERE name = \"tsegay kebede category:articles with hcards\"", "context": "CREATE TABLE table_name_70 (games VARCHAR, name VARCHAR)", "question": "Which game is named tsegay kebede category:articles with hcards?" }
### QUESTION What change caused a change of staff in March 9, 1865? ### CONTEXT CREATE TABLE table_2147588_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR) ### ANSWER SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = "March 9, 1865"
{ "answer": "SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = \"March 9, 1865\"", "context": "CREATE TABLE table_2147588_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)", "question": "What change caused a change of staff in March 9, 1865?" }
### QUESTION What is the difference related to 2 losses and fewer than 10 points? ### CONTEXT CREATE TABLE table_name_51 (points_difference VARCHAR, lost VARCHAR, points VARCHAR) ### ANSWER SELECT points_difference FROM table_name_51 WHERE lost = 2 AND points < 10
{ "answer": "SELECT points_difference FROM table_name_51 WHERE lost = 2 AND points < 10", "context": "CREATE TABLE table_name_51 (points_difference VARCHAR, lost VARCHAR, points VARCHAR)", "question": "What is the difference related to 2 losses and fewer than 10 points?" }
### QUESTION What are the average points with a Chassis of zakspeed 881? ### CONTEXT CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR) ### ANSWER SELECT AVG(points) FROM table_name_40 WHERE chassis = "zakspeed 881"
{ "answer": "SELECT AVG(points) FROM table_name_40 WHERE chassis = \"zakspeed 881\"", "context": "CREATE TABLE table_name_40 (points INTEGER, chassis VARCHAR)", "question": "What are the average points with a Chassis of zakspeed 881?" }
### QUESTION When the assets are 2,550, what is the Market Value? ### CONTEXT CREATE TABLE table_1682026_2 (market_value__billion_$_ VARCHAR, assets__billion_$_ VARCHAR) ### ANSWER SELECT market_value__billion_$_ FROM table_1682026_2 WHERE assets__billion_$_ = "2,550"
{ "answer": "SELECT market_value__billion_$_ FROM table_1682026_2 WHERE assets__billion_$_ = \"2,550\"", "context": "CREATE TABLE table_1682026_2 (market_value__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)", "question": "When the assets are 2,550, what is the Market Value?" }
### QUESTION List the names of all the distinct customers who bought a keyboard. ### CONTEXT CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) ### ANSWER SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = "keyboard"
{ "answer": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = \"keyboard\"", "context": "CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)", "question": "List the names of all the distinct customers who bought a keyboard." }
### QUESTION What is the Label of the release with Catalog number LPM-2899? ### CONTEXT CREATE TABLE table_name_87 (label VARCHAR, catalog VARCHAR) ### ANSWER SELECT label FROM table_name_87 WHERE catalog = "lpm-2899"
{ "answer": "SELECT label FROM table_name_87 WHERE catalog = \"lpm-2899\"", "context": "CREATE TABLE table_name_87 (label VARCHAR, catalog VARCHAR)", "question": "What is the Label of the release with Catalog number LPM-2899?" }
### QUESTION In which round was Gabriel Veiga the opponent? ### CONTEXT CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR) ### ANSWER SELECT round FROM table_name_42 WHERE opponent = "gabriel veiga"
{ "answer": "SELECT round FROM table_name_42 WHERE opponent = \"gabriel veiga\"", "context": "CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR)", "question": "In which round was Gabriel Veiga the opponent?" }
### QUESTION How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4? ### CONTEXT CREATE TABLE table_name_2 (popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR) ### ANSWER SELECT AVG(popular_votes) FROM table_name_2 WHERE office = "us representative 4" AND percentage = "1.59%" AND year > 1992
{ "answer": "SELECT AVG(popular_votes) FROM table_name_2 WHERE office = \"us representative 4\" AND percentage = \"1.59%\" AND year > 1992", "context": "CREATE TABLE table_name_2 (popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR)", "question": "How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?" }
### QUESTION What country has t6 as the place, with sean o'hair as the player? ### CONTEXT CREATE TABLE table_name_88 (country VARCHAR, place VARCHAR, player VARCHAR) ### ANSWER SELECT country FROM table_name_88 WHERE place = "t6" AND player = "sean o'hair"
{ "answer": "SELECT country FROM table_name_88 WHERE place = \"t6\" AND player = \"sean o'hair\"", "context": "CREATE TABLE table_name_88 (country VARCHAR, place VARCHAR, player VARCHAR)", "question": "What country has t6 as the place, with sean o'hair as the player?" }
### QUESTION Name the most points for class of 125cc and team of mv agusta with year more than 1957 ### CONTEXT CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, team VARCHAR) ### ANSWER SELECT MAX(points) FROM table_name_65 WHERE class = "125cc" AND team = "mv agusta" AND year > 1957
{ "answer": "SELECT MAX(points) FROM table_name_65 WHERE class = \"125cc\" AND team = \"mv agusta\" AND year > 1957", "context": "CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, team VARCHAR)", "question": "Name the most points for class of 125cc and team of mv agusta with year more than 1957" }
### QUESTION Show the id and details of the investor that has the largest number of transactions. ### CONTEXT CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR) ### ANSWER SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)", "question": "Show the id and details of the investor that has the largest number of transactions." }
### QUESTION What is the rank of finale 37? ### CONTEXT CREATE TABLE table_11926114_1 (rank VARCHAR, finale VARCHAR) ### ANSWER SELECT rank FROM table_11926114_1 WHERE finale = 37
{ "answer": "SELECT rank FROM table_11926114_1 WHERE finale = 37", "context": "CREATE TABLE table_11926114_1 (rank VARCHAR, finale VARCHAR)", "question": "What is the rank of finale 37?" }
### QUESTION What is the structure of the document with the least number of accesses? ### CONTEXT CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR) ### ANSWER SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT t2.document_structure_description FROM documents AS t1 JOIN document_structures AS t2 ON t1.document_structure_code = t2.document_structure_code GROUP BY t1.document_structure_code ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE document_structures (document_structure_description VARCHAR, document_structure_code VARCHAR); CREATE TABLE documents (document_structure_code VARCHAR)", "question": "What is the structure of the document with the least number of accesses?" }
### QUESTION Which Round has a Nationality of united states, and a College/Junior/Club Team (League) of breck school (ushs)? ### CONTEXT CREATE TABLE table_name_19 (round INTEGER, nationality VARCHAR, college_junior_club_team__league_ VARCHAR) ### ANSWER SELECT MIN(round) FROM table_name_19 WHERE nationality = "united states" AND college_junior_club_team__league_ = "breck school (ushs)"
{ "answer": "SELECT MIN(round) FROM table_name_19 WHERE nationality = \"united states\" AND college_junior_club_team__league_ = \"breck school (ushs)\"", "context": "CREATE TABLE table_name_19 (round INTEGER, nationality VARCHAR, college_junior_club_team__league_ VARCHAR)", "question": "Which Round has a Nationality of united states, and a College/Junior/Club Team (League) of breck school (ushs)?" }
### QUESTION What pick was Scott Glennie from the Western hockey league ### CONTEXT CREATE TABLE table_name_62 (pick__number VARCHAR, league_from VARCHAR, player VARCHAR) ### ANSWER SELECT pick__number FROM table_name_62 WHERE league_from = "western hockey league" AND player = "scott glennie"
{ "answer": "SELECT pick__number FROM table_name_62 WHERE league_from = \"western hockey league\" AND player = \"scott glennie\"", "context": "CREATE TABLE table_name_62 (pick__number VARCHAR, league_from VARCHAR, player VARCHAR)", "question": "What pick was Scott Glennie from the Western hockey league" }