text
stringlengths
146
1.06k
source
dict
### QUESTION What is the census ranking when the area is 78.67 ? ### CONTEXT CREATE TABLE table_170969_2 (census_ranking VARCHAR, area_km_2 VARCHAR) ### ANSWER SELECT census_ranking FROM table_170969_2 WHERE area_km_2 = "78.67"
{ "answer": "SELECT census_ranking FROM table_170969_2 WHERE area_km_2 = \"78.67\"", "context": "CREATE TABLE table_170969_2 (census_ranking VARCHAR, area_km_2 VARCHAR)", "question": "What is the census ranking when the area is 78.67 ?" }
### QUESTION What is the total rank for New Zealand, when less than 1 bronze medals were won? ### CONTEXT CREATE TABLE table_name_56 (rank INTEGER, nation VARCHAR, bronze VARCHAR) ### ANSWER SELECT SUM(rank) FROM table_name_56 WHERE nation = "new zealand" AND bronze < 1
{ "answer": "SELECT SUM(rank) FROM table_name_56 WHERE nation = \"new zealand\" AND bronze < 1", "context": "CREATE TABLE table_name_56 (rank INTEGER, nation VARCHAR, bronze VARCHAR)", "question": "What is the total rank for New Zealand, when less than 1 bronze medals were won?" }
### QUESTION Which lead has Kirsty Balfour as second? ### CONTEXT CREATE TABLE table_name_22 (lead VARCHAR, skip VARCHAR) ### ANSWER SELECT lead FROM table_name_22 WHERE skip = "kirsty balfour"
{ "answer": "SELECT lead FROM table_name_22 WHERE skip = \"kirsty balfour\"", "context": "CREATE TABLE table_name_22 (lead VARCHAR, skip VARCHAR)", "question": "Which lead has Kirsty Balfour as second?" }
### QUESTION What is Location Attendance, when High Assists is Alvin Williams (9)? ### CONTEXT CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR) ### ANSWER SELECT location_attendance FROM table_name_29 WHERE high_assists = "alvin williams (9)"
{ "answer": "SELECT location_attendance FROM table_name_29 WHERE high_assists = \"alvin williams (9)\"", "context": "CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR)", "question": "What is Location Attendance, when High Assists is Alvin Williams (9)?" }
### QUESTION When did the United Kingdom format a stereo LP? ### CONTEXT CREATE TABLE table_name_29 (date VARCHAR, region VARCHAR, format VARCHAR) ### ANSWER SELECT date FROM table_name_29 WHERE region = "united kingdom" AND format = "stereo lp"
{ "answer": "SELECT date FROM table_name_29 WHERE region = \"united kingdom\" AND format = \"stereo lp\"", "context": "CREATE TABLE table_name_29 (date VARCHAR, region VARCHAR, format VARCHAR)", "question": "When did the United Kingdom format a stereo LP?" }
### QUESTION I want the greatest attendance when the opponent is the chicago bears ### CONTEXT CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR) ### ANSWER SELECT MAX(attendance) FROM table_name_64 WHERE opponent = "chicago bears"
{ "answer": "SELECT MAX(attendance) FROM table_name_64 WHERE opponent = \"chicago bears\"", "context": "CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR)", "question": "I want the greatest attendance when the opponent is the chicago bears" }
### QUESTION What place is the United States in that has a score of 68-73-68=209? ### CONTEXT CREATE TABLE table_name_8 (place VARCHAR, country VARCHAR, score VARCHAR) ### ANSWER SELECT place FROM table_name_8 WHERE country = "united states" AND score = 68 - 73 - 68 = 209
{ "answer": "SELECT place FROM table_name_8 WHERE country = \"united states\" AND score = 68 - 73 - 68 = 209", "context": "CREATE TABLE table_name_8 (place VARCHAR, country VARCHAR, score VARCHAR)", "question": "What place is the United States in that has a score of 68-73-68=209?" }
### QUESTION What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102? ### CONTEXT CREATE TABLE table_21781578_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR, production_code VARCHAR) ### ANSWER SELECT us_viewers__millions_ FROM table_21781578_2 WHERE directed_by = "Steve Shill" AND production_code = "E2102"
{ "answer": "SELECT us_viewers__millions_ FROM table_21781578_2 WHERE directed_by = \"Steve Shill\" AND production_code = \"E2102\"", "context": "CREATE TABLE table_21781578_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR, production_code VARCHAR)", "question": "What was the number of US Viewers in the episode directed by Steve Shill and having a production code of E2102?" }
### QUESTION Which Ipsos 5/16/09 has an Ifop- La Croix 5/15/09 of 26%? ### CONTEXT CREATE TABLE table_name_89 (csa_5_20_09 VARCHAR, ifop__la_croix_5_15_09 VARCHAR) ### ANSWER SELECT csa_5_20_09 FROM table_name_89 WHERE ifop__la_croix_5_15_09 = "26%"
{ "answer": "SELECT csa_5_20_09 FROM table_name_89 WHERE ifop__la_croix_5_15_09 = \"26%\"", "context": "CREATE TABLE table_name_89 (csa_5_20_09 VARCHAR, ifop__la_croix_5_15_09 VARCHAR)", "question": "Which Ipsos 5/16/09 has an Ifop- La Croix 5/15/09 of 26%?" }
### QUESTION Name the high points for toyota center 18,269? ### CONTEXT CREATE TABLE table_11964263_13 (high_points VARCHAR, location_attendance VARCHAR) ### ANSWER SELECT high_points FROM table_11964263_13 WHERE location_attendance = "Toyota Center 18,269"
{ "answer": "SELECT high_points FROM table_11964263_13 WHERE location_attendance = \"Toyota Center 18,269\"", "context": "CREATE TABLE table_11964263_13 (high_points VARCHAR, location_attendance VARCHAR)", "question": "Name the high points for toyota center 18,269?" }
### QUESTION Find the student first and last names and grade points of all enrollments. ### CONTEXT CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR) ### ANSWER SELECT T3.Fname, T3.LName, T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID
{ "answer": "SELECT T3.Fname, T3.LName, T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", "context": "CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR)", "question": "Find the student first and last names and grade points of all enrollments." }
### QUESTION Who is the successor when florida territory at-large is the district? ### CONTEXT CREATE TABLE table_225100_4 (successor VARCHAR, district VARCHAR) ### ANSWER SELECT successor FROM table_225100_4 WHERE district = "Florida Territory At-large"
{ "answer": "SELECT successor FROM table_225100_4 WHERE district = \"Florida Territory At-large\"", "context": "CREATE TABLE table_225100_4 (successor VARCHAR, district VARCHAR)", "question": "Who is the successor when florida territory at-large is the district?" }
### QUESTION Which team won against the New England Patriots 40-21? ### CONTEXT CREATE TABLE table_name_14 (winner VARCHAR, loser VARCHAR, result VARCHAR) ### ANSWER SELECT winner FROM table_name_14 WHERE loser = "new england patriots" AND result = "40-21"
{ "answer": "SELECT winner FROM table_name_14 WHERE loser = \"new england patriots\" AND result = \"40-21\"", "context": "CREATE TABLE table_name_14 (winner VARCHAR, loser VARCHAR, result VARCHAR)", "question": "Which team won against the New England Patriots 40-21?" }
### QUESTION Which player scored the most points and how many were scored on November 6? ### CONTEXT CREATE TABLE table_27744844_5 (high_points VARCHAR, date VARCHAR) ### ANSWER SELECT high_points FROM table_27744844_5 WHERE date = "November 6"
{ "answer": "SELECT high_points FROM table_27744844_5 WHERE date = \"November 6\"", "context": "CREATE TABLE table_27744844_5 (high_points VARCHAR, date VARCHAR)", "question": "Which player scored the most points and how many were scored on November 6?" }
### QUESTION Find the names of the students who are in the position of striker and got a yes tryout decision. ### CONTEXT CREATE TABLE tryout (pID VARCHAR, decision VARCHAR, pPos VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) ### ANSWER SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker'
{ "answer": "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker'", "context": "CREATE TABLE tryout (pID VARCHAR, decision VARCHAR, pPos VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR)", "question": "Find the names of the students who are in the position of striker and got a yes tryout decision." }
### QUESTION Tell me the affiliation for mls team of metrostars and pick number of 26 ### CONTEXT CREATE TABLE table_name_28 (affiliation VARCHAR, mls_team VARCHAR, pick__number VARCHAR) ### ANSWER SELECT affiliation FROM table_name_28 WHERE mls_team = "metrostars" AND pick__number = 26
{ "answer": "SELECT affiliation FROM table_name_28 WHERE mls_team = \"metrostars\" AND pick__number = 26", "context": "CREATE TABLE table_name_28 (affiliation VARCHAR, mls_team VARCHAR, pick__number VARCHAR)", "question": "Tell me the affiliation for mls team of metrostars and pick number of 26" }
### QUESTION Which controller has an interface of pcie 2.0 × 8? ### CONTEXT CREATE TABLE table_name_37 (controller VARCHAR, interface VARCHAR) ### ANSWER SELECT controller FROM table_name_37 WHERE interface = "pcie 2.0 × 8"
{ "answer": "SELECT controller FROM table_name_37 WHERE interface = \"pcie 2.0 × 8\"", "context": "CREATE TABLE table_name_37 (controller VARCHAR, interface VARCHAR)", "question": "Which controller has an interface of pcie 2.0 × 8?" }
### QUESTION How many professors who are from either Accounting or Biology department? ### CONTEXT CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR) ### ANSWER SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'
{ "answer": "SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'", "context": "CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR)", "question": "How many professors who are from either Accounting or Biology department?" }
### QUESTION Tell me the rank for bronze less than 17 and gold less than 1 ### CONTEXT CREATE TABLE table_name_28 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR) ### ANSWER SELECT rank FROM table_name_28 WHERE bronze < 17 AND silver > 1 AND gold < 1
{ "answer": "SELECT rank FROM table_name_28 WHERE bronze < 17 AND silver > 1 AND gold < 1", "context": "CREATE TABLE table_name_28 (rank VARCHAR, gold VARCHAR, bronze VARCHAR, silver VARCHAR)", "question": "Tell me the rank for bronze less than 17 and gold less than 1" }
### QUESTION Show the names of members and the location of performances they attended in ascending alphabetical order of their names. ### CONTEXT CREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR) ### ANSWER SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name
{ "answer": "SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID ORDER BY T2.Name", "context": "CREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)", "question": "Show the names of members and the location of performances they attended in ascending alphabetical order of their names." }
### QUESTION Find the name of the employee who got the highest one time bonus. ### CONTEXT CREATE TABLE evaluation (Employee_ID VARCHAR, bonus VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR) ### ANSWER SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1
{ "answer": "SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID = t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1", "context": "CREATE TABLE evaluation (Employee_ID VARCHAR, bonus VARCHAR); CREATE TABLE employee (name VARCHAR, Employee_ID VARCHAR)", "question": "Find the name of the employee who got the highest one time bonus." }
### QUESTION what is the full name and id of the college with the largest number of baseball players? ### CONTEXT CREATE TABLE player_college (college_id VARCHAR); CREATE TABLE college (name_full VARCHAR, college_id VARCHAR) ### ANSWER SELECT T1.name_full, T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.name_full, T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE player_college (college_id VARCHAR); CREATE TABLE college (name_full VARCHAR, college_id VARCHAR)", "question": "what is the full name and id of the college with the largest number of baseball players?" }
### QUESTION What is the laops of marcis auto racing? ### CONTEXT CREATE TABLE table_12001616_4 (laps VARCHAR, entrant VARCHAR) ### ANSWER SELECT laps FROM table_12001616_4 WHERE entrant = "Marcis Auto Racing"
{ "answer": "SELECT laps FROM table_12001616_4 WHERE entrant = \"Marcis Auto Racing\"", "context": "CREATE TABLE table_12001616_4 (laps VARCHAR, entrant VARCHAR)", "question": "What is the laops of marcis auto racing?" }
### QUESTION What is the content of the television service ewtn in the United Kingdom? ### CONTEXT CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR) ### ANSWER SELECT content FROM table_name_94 WHERE country = "united kingdom" AND television_service = "ewtn"
{ "answer": "SELECT content FROM table_name_94 WHERE country = \"united kingdom\" AND television_service = \"ewtn\"", "context": "CREATE TABLE table_name_94 (content VARCHAR, country VARCHAR, television_service VARCHAR)", "question": "What is the content of the television service ewtn in the United Kingdom?" }
### QUESTION What format is the Catalogue 9362486152 from the region of Australia in? ### CONTEXT CREATE TABLE table_name_79 (format VARCHAR, catalogue VARCHAR, region VARCHAR) ### ANSWER SELECT format FROM table_name_79 WHERE catalogue = "9362486152" AND region = "australia"
{ "answer": "SELECT format FROM table_name_79 WHERE catalogue = \"9362486152\" AND region = \"australia\"", "context": "CREATE TABLE table_name_79 (format VARCHAR, catalogue VARCHAR, region VARCHAR)", "question": "What format is the Catalogue 9362486152 from the region of Australia in?" }
### QUESTION Find the number of dorms and total capacity for each gender. ### CONTEXT CREATE TABLE dorm (gender VARCHAR, student_capacity INTEGER) ### ANSWER SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender
{ "answer": "SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender", "context": "CREATE TABLE dorm (gender VARCHAR, student_capacity INTEGER)", "question": "Find the number of dorms and total capacity for each gender." }
### QUESTION What is the sum for December against the vancouver canucks earlier than game 33? ### CONTEXT CREATE TABLE table_name_59 (december INTEGER, opponent VARCHAR, game VARCHAR) ### ANSWER SELECT SUM(december) FROM table_name_59 WHERE opponent = "vancouver canucks" AND game < 33
{ "answer": "SELECT SUM(december) FROM table_name_59 WHERE opponent = \"vancouver canucks\" AND game < 33", "context": "CREATE TABLE table_name_59 (december INTEGER, opponent VARCHAR, game VARCHAR)", "question": "What is the sum for December against the vancouver canucks earlier than game 33?" }
### QUESTION What is the record during the event, UFC 27? ### CONTEXT CREATE TABLE table_name_14 (record VARCHAR, event VARCHAR) ### ANSWER SELECT record FROM table_name_14 WHERE event = "ufc 27"
{ "answer": "SELECT record FROM table_name_14 WHERE event = \"ufc 27\"", "context": "CREATE TABLE table_name_14 (record VARCHAR, event VARCHAR)", "question": "What is the record during the event, UFC 27?" }
### QUESTION Show the average transaction amount for different transaction types. ### CONTEXT CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR, amount_of_transaction INTEGER) ### ANSWER SELECT transaction_type_code, AVG(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code
{ "answer": "SELECT transaction_type_code, AVG(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code", "context": "CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR, amount_of_transaction INTEGER)", "question": "Show the average transaction amount for different transaction types." }
### QUESTION What is the number of career caps for a full back, when tour Apps is smaller than 29? ### CONTEXT CREATE TABLE table_name_78 (career_caps VARCHAR, position VARCHAR, tour_apps VARCHAR) ### ANSWER SELECT COUNT(career_caps) FROM table_name_78 WHERE position = "full back" AND tour_apps < 29
{ "answer": "SELECT COUNT(career_caps) FROM table_name_78 WHERE position = \"full back\" AND tour_apps < 29", "context": "CREATE TABLE table_name_78 (career_caps VARCHAR, position VARCHAR, tour_apps VARCHAR)", "question": "What is the number of career caps for a full back, when tour Apps is smaller than 29?" }
### QUESTION Which Surface has an Opponent of rafael nadal, and an Event of 2? ### CONTEXT CREATE TABLE table_name_59 (surface VARCHAR, opponent VARCHAR, event VARCHAR) ### ANSWER SELECT surface FROM table_name_59 WHERE opponent = "rafael nadal" AND NOT event = 2
{ "answer": "SELECT surface FROM table_name_59 WHERE opponent = \"rafael nadal\" AND NOT event = 2", "context": "CREATE TABLE table_name_59 (surface VARCHAR, opponent VARCHAR, event VARCHAR)", "question": "Which Surface has an Opponent of rafael nadal, and an Event of 2?" }
### QUESTION What is the partial failure for the Country of russia, and a Failure larger than 0, and a Family of angara, and a Launch larger than 1? ### CONTEXT CREATE TABLE table_name_53 (partial_failures INTEGER, launches VARCHAR, family VARCHAR, country VARCHAR, failures VARCHAR) ### ANSWER SELECT AVG(partial_failures) FROM table_name_53 WHERE country = "russia" AND failures > 0 AND family = "angara" AND launches > 1
{ "answer": "SELECT AVG(partial_failures) FROM table_name_53 WHERE country = \"russia\" AND failures > 0 AND family = \"angara\" AND launches > 1", "context": "CREATE TABLE table_name_53 (partial_failures INTEGER, launches VARCHAR, family VARCHAR, country VARCHAR, failures VARCHAR)", "question": "What is the partial failure for the Country of russia, and a Failure larger than 0, and a Family of angara, and a Launch larger than 1?" }
### QUESTION What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix? ### CONTEXT CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, race VARCHAR) ### ANSWER SELECT circuit FROM table_name_16 WHERE fastest_lap = "juan manuel fangio" AND race = "german grand prix"
{ "answer": "SELECT circuit FROM table_name_16 WHERE fastest_lap = \"juan manuel fangio\" AND race = \"german grand prix\"", "context": "CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, race VARCHAR)", "question": "What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix?" }
### QUESTION What is the ranktotal number if the Hashan Tillakaratne? ### CONTEXT CREATE TABLE table_26041144_16 (rank VARCHAR, player VARCHAR) ### ANSWER SELECT COUNT(rank) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne"
{ "answer": "SELECT COUNT(rank) FROM table_26041144_16 WHERE player = \"Hashan Tillakaratne\"", "context": "CREATE TABLE table_26041144_16 (rank VARCHAR, player VARCHAR)", "question": "What is the ranktotal number if the Hashan Tillakaratne?" }
### QUESTION Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average? ### CONTEXT CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR) ### ANSWER SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND pick__number < 36
{ "answer": "SELECT AVG(overall) FROM table_name_47 WHERE position = \"defensive tackle\" AND round = 4 AND pick__number < 36", "context": "CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR)", "question": "Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?" }
### QUESTION What is the area for a population of 0.58 km? ### CONTEXT CREATE TABLE table_name_8 (area__km²_ VARCHAR, pop__km² VARCHAR) ### ANSWER SELECT area__km²_ FROM table_name_8 WHERE pop__km² = 0.58
{ "answer": "SELECT area__km²_ FROM table_name_8 WHERE pop__km² = 0.58", "context": "CREATE TABLE table_name_8 (area__km²_ VARCHAR, pop__km² VARCHAR)", "question": "What is the area for a population of 0.58 km?" }
### QUESTION The match against Paul-Henri Mathieu had what outcome? ### CONTEXT CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR) ### ANSWER SELECT outcome FROM table_name_92 WHERE opponent = "paul-henri mathieu"
{ "answer": "SELECT outcome FROM table_name_92 WHERE opponent = \"paul-henri mathieu\"", "context": "CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR)", "question": "The match against Paul-Henri Mathieu had what outcome?" }
### QUESTION How many teams does Lee Sorochan play for? ### CONTEXT CREATE TABLE table_2781227_2 (college_junior_club_team VARCHAR, player VARCHAR) ### ANSWER SELECT COUNT(college_junior_club_team) FROM table_2781227_2 WHERE player = "Lee Sorochan"
{ "answer": "SELECT COUNT(college_junior_club_team) FROM table_2781227_2 WHERE player = \"Lee Sorochan\"", "context": "CREATE TABLE table_2781227_2 (college_junior_club_team VARCHAR, player VARCHAR)", "question": "How many teams does Lee Sorochan play for?" }
### QUESTION What is every original air date with U.S. viewers of 0.23 million? ### CONTEXT CREATE TABLE table_29803475_2 (original_air_date VARCHAR, us_viewers__million_ VARCHAR) ### ANSWER SELECT original_air_date FROM table_29803475_2 WHERE us_viewers__million_ = "0.23"
{ "answer": "SELECT original_air_date FROM table_29803475_2 WHERE us_viewers__million_ = \"0.23\"", "context": "CREATE TABLE table_29803475_2 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)", "question": "What is every original air date with U.S. viewers of 0.23 million?" }
### QUESTION What is Score, when Country is "United States", and when To Par is "+4"? ### CONTEXT CREATE TABLE table_name_56 (score VARCHAR, country VARCHAR, to_par VARCHAR) ### ANSWER SELECT score FROM table_name_56 WHERE country = "united states" AND to_par = "+4"
{ "answer": "SELECT score FROM table_name_56 WHERE country = \"united states\" AND to_par = \"+4\"", "context": "CREATE TABLE table_name_56 (score VARCHAR, country VARCHAR, to_par VARCHAR)", "question": "What is Score, when Country is \"United States\", and when To Par is \"+4\"?" }
### QUESTION What is English Meaning, when Full Word is "Shens Gamo"? ### CONTEXT CREATE TABLE table_name_22 (english_meaning VARCHAR, full_word VARCHAR) ### ANSWER SELECT english_meaning FROM table_name_22 WHERE full_word = "shens gamo"
{ "answer": "SELECT english_meaning FROM table_name_22 WHERE full_word = \"shens gamo\"", "context": "CREATE TABLE table_name_22 (english_meaning VARCHAR, full_word VARCHAR)", "question": "What is English Meaning, when Full Word is \"Shens Gamo\"?" }
### QUESTION What is Model Number, when Part Number(s) is AY80609003987AB? ### CONTEXT CREATE TABLE table_name_70 (model_number VARCHAR, part_number_s_ VARCHAR) ### ANSWER SELECT model_number FROM table_name_70 WHERE part_number_s_ = "ay80609003987ab"
{ "answer": "SELECT model_number FROM table_name_70 WHERE part_number_s_ = \"ay80609003987ab\"", "context": "CREATE TABLE table_name_70 (model_number VARCHAR, part_number_s_ VARCHAR)", "question": "What is Model Number, when Part Number(s) is AY80609003987AB?" }
### QUESTION What is Player, when Country is "United States", and when To Par is "WD"? ### CONTEXT CREATE TABLE table_name_79 (player VARCHAR, country VARCHAR, to_par VARCHAR) ### ANSWER SELECT player FROM table_name_79 WHERE country = "united states" AND to_par = "wd"
{ "answer": "SELECT player FROM table_name_79 WHERE country = \"united states\" AND to_par = \"wd\"", "context": "CREATE TABLE table_name_79 (player VARCHAR, country VARCHAR, to_par VARCHAR)", "question": "What is Player, when Country is \"United States\", and when To Par is \"WD\"?" }
### QUESTION What was the score in the game where Carolina was the home team and Niittymaki received the decision? ### CONTEXT CREATE TABLE table_name_90 (score VARCHAR, decision VARCHAR, home VARCHAR) ### ANSWER SELECT score FROM table_name_90 WHERE decision = "niittymaki" AND home = "carolina"
{ "answer": "SELECT score FROM table_name_90 WHERE decision = \"niittymaki\" AND home = \"carolina\"", "context": "CREATE TABLE table_name_90 (score VARCHAR, decision VARCHAR, home VARCHAR)", "question": "What was the score in the game where Carolina was the home team and Niittymaki received the decision?" }
### QUESTION Which representative has a birthday of January 31, 1866? ### CONTEXT CREATE TABLE table_10284385_1 (representative VARCHAR, date_of_birth VARCHAR) ### ANSWER SELECT representative FROM table_10284385_1 WHERE date_of_birth = "January 31, 1866"
{ "answer": "SELECT representative FROM table_10284385_1 WHERE date_of_birth = \"January 31, 1866\"", "context": "CREATE TABLE table_10284385_1 (representative VARCHAR, date_of_birth VARCHAR)", "question": "Which representative has a birthday of January 31, 1866?" }
### QUESTION Name the average ERP W when it has a city of license of pound, virginia and frequency mhz more than 91.3 ### CONTEXT CREATE TABLE table_name_90 (erp_w INTEGER, city_of_license VARCHAR, frequency_mhz VARCHAR) ### ANSWER SELECT AVG(erp_w) FROM table_name_90 WHERE city_of_license = "pound, virginia" AND frequency_mhz > 91.3
{ "answer": "SELECT AVG(erp_w) FROM table_name_90 WHERE city_of_license = \"pound, virginia\" AND frequency_mhz > 91.3", "context": "CREATE TABLE table_name_90 (erp_w INTEGER, city_of_license VARCHAR, frequency_mhz VARCHAR)", "question": "Name the average ERP W when it has a city of license of pound, virginia and frequency mhz more than 91.3" }
### QUESTION How many totals have a Premier League smaller than 6, and a League Cup larger than 0? ### CONTEXT CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR) ### ANSWER SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0
{ "answer": "SELECT SUM(total) FROM table_name_9 WHERE premier_league < 6 AND league_cup > 0", "context": "CREATE TABLE table_name_9 (total INTEGER, premier_league VARCHAR, league_cup VARCHAR)", "question": "How many totals have a Premier League smaller than 6, and a League Cup larger than 0?" }
### QUESTION What are all the fault descriptions and the fault status of all the faults recoreded in the logs? ### CONTEXT CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR) ### ANSWER SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id
{ "answer": "SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id", "context": "CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR)", "question": "What are all the fault descriptions and the fault status of all the faults recoreded in the logs?" }
### QUESTION Find the first names of the faculty members who participate in Canoeing and Kayaking. ### CONTEXT CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### ANSWER SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'
{ "answer": "SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'", "context": "CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)", "question": "Find the first names of the faculty members who participate in Canoeing and Kayaking." }
### QUESTION for how many years did the player who graduated from stanford play for Grizzlies? ### CONTEXT CREATE TABLE table_name_11 (years_for_grizzlies VARCHAR, school_club_team VARCHAR) ### ANSWER SELECT years_for_grizzlies FROM table_name_11 WHERE school_club_team = "stanford"
{ "answer": "SELECT years_for_grizzlies FROM table_name_11 WHERE school_club_team = \"stanford\"", "context": "CREATE TABLE table_name_11 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)", "question": "for how many years did the player who graduated from stanford play for Grizzlies?" }
### QUESTION In what year did the team compete in the 2nd, Northeast season of the USL PDL League? ### CONTEXT CREATE TABLE table_1939214_1 (year VARCHAR, league VARCHAR, regular_season VARCHAR) ### ANSWER SELECT year FROM table_1939214_1 WHERE league = "USL PDL" AND regular_season = "2nd, Northeast"
{ "answer": "SELECT year FROM table_1939214_1 WHERE league = \"USL PDL\" AND regular_season = \"2nd, Northeast\"", "context": "CREATE TABLE table_1939214_1 (year VARCHAR, league VARCHAR, regular_season VARCHAR)", "question": "In what year did the team compete in the 2nd, Northeast season of the USL PDL League?" }
### QUESTION What is the number of claimed sales in the rock genre? ### CONTEXT CREATE TABLE table_name_85 (claimed_sales VARCHAR, genre VARCHAR) ### ANSWER SELECT claimed_sales FROM table_name_85 WHERE genre = "rock"
{ "answer": "SELECT claimed_sales FROM table_name_85 WHERE genre = \"rock\"", "context": "CREATE TABLE table_name_85 (claimed_sales VARCHAR, genre VARCHAR)", "question": "What is the number of claimed sales in the rock genre?" }
### QUESTION Who is Jason Leffler's primary sponsor? ### CONTEXT CREATE TABLE table_1529793_1 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR) ### ANSWER SELECT primary_sponsor_s_ FROM table_1529793_1 WHERE driver_s_ = "Jason Leffler"
{ "answer": "SELECT primary_sponsor_s_ FROM table_1529793_1 WHERE driver_s_ = \"Jason Leffler\"", "context": "CREATE TABLE table_1529793_1 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR)", "question": "Who is Jason Leffler's primary sponsor?" }
### QUESTION How many destinations have a weekly frequency and are named AC Express? ### CONTEXT CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR) ### ANSWER SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = "Weekly" AND train_name = "AC Express"
{ "answer": "SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = \"Weekly\" AND train_name = \"AC Express\"", "context": "CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR)", "question": "How many destinations have a weekly frequency and are named AC Express?" }
### QUESTION What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10? ### CONTEXT CREATE TABLE table_name_27 (minimum_tax_incl_sales_taxes__cad INTEGER, min_tax__cad¢_us_gal_ VARCHAR, federal_excise_tax___cad¢___l__ VARCHAR) ### ANSWER SELECT MIN(minimum_tax_incl_sales_taxes__cad) AS ¢_l_ FROM table_name_27 WHERE min_tax__cad¢_us_gal_ = 105.7 AND federal_excise_tax___cad¢___l__ > 10
{ "answer": "SELECT MIN(minimum_tax_incl_sales_taxes__cad) AS ¢_l_ FROM table_name_27 WHERE min_tax__cad¢_us_gal_ = 105.7 AND federal_excise_tax___cad¢___l__ > 10", "context": "CREATE TABLE table_name_27 (minimum_tax_incl_sales_taxes__cad INTEGER, min_tax__cad¢_us_gal_ VARCHAR, federal_excise_tax___cad¢___l__ VARCHAR)", "question": "What is the least minimum sales tax when the min tax is 105.7 and fed tax is more than 10?" }
### QUESTION What language did the word mahjong originate from? ### CONTEXT CREATE TABLE table_name_31 (source_language VARCHAR, meaning VARCHAR) ### ANSWER SELECT source_language FROM table_name_31 WHERE meaning = "mahjong"
{ "answer": "SELECT source_language FROM table_name_31 WHERE meaning = \"mahjong\"", "context": "CREATE TABLE table_name_31 (source_language VARCHAR, meaning VARCHAR)", "question": "What language did the word mahjong originate from?" }
### QUESTION What is the nationality of the Washington Capitals? ### CONTEXT CREATE TABLE table_name_68 (nationality VARCHAR, nhl_team VARCHAR) ### ANSWER SELECT nationality FROM table_name_68 WHERE nhl_team = "washington capitals"
{ "answer": "SELECT nationality FROM table_name_68 WHERE nhl_team = \"washington capitals\"", "context": "CREATE TABLE table_name_68 (nationality VARCHAR, nhl_team VARCHAR)", "question": "What is the nationality of the Washington Capitals?" }
### QUESTION What is the total championships of James Henry that has a league cup more than 1? ### CONTEXT CREATE TABLE table_name_4 (championship INTEGER, league_cup VARCHAR, name VARCHAR) ### ANSWER SELECT SUM(championship) FROM table_name_4 WHERE league_cup > 1 AND name = "james henry"
{ "answer": "SELECT SUM(championship) FROM table_name_4 WHERE league_cup > 1 AND name = \"james henry\"", "context": "CREATE TABLE table_name_4 (championship INTEGER, league_cup VARCHAR, name VARCHAR)", "question": "What is the total championships of James Henry that has a league cup more than 1?" }
### QUESTION What instrumental has chven-s as the adverbial? ### CONTEXT CREATE TABLE table_name_87 (instrumental VARCHAR, adverbial VARCHAR) ### ANSWER SELECT instrumental FROM table_name_87 WHERE adverbial = "chven-s"
{ "answer": "SELECT instrumental FROM table_name_87 WHERE adverbial = \"chven-s\"", "context": "CREATE TABLE table_name_87 (instrumental VARCHAR, adverbial VARCHAR)", "question": "What instrumental has chven-s as the adverbial?" }
### QUESTION What is the lowest octal with a 30 hexadecimal and less than 0 glyphs? ### CONTEXT CREATE TABLE table_name_82 (octal INTEGER, hexadecimal VARCHAR, glyph VARCHAR) ### ANSWER SELECT MIN(octal) FROM table_name_82 WHERE hexadecimal = 30 AND glyph < 0
{ "answer": "SELECT MIN(octal) FROM table_name_82 WHERE hexadecimal = 30 AND glyph < 0", "context": "CREATE TABLE table_name_82 (octal INTEGER, hexadecimal VARCHAR, glyph VARCHAR)", "question": "What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?" }
### QUESTION What is the total work number of Gowrie with a 0-6-4t type after 1908? ### CONTEXT CREATE TABLE table_name_51 (works_number VARCHAR, date VARCHAR, type VARCHAR, name VARCHAR) ### ANSWER SELECT COUNT(works_number) FROM table_name_51 WHERE type = "0-6-4t" AND name = "gowrie" AND date > 1908
{ "answer": "SELECT COUNT(works_number) FROM table_name_51 WHERE type = \"0-6-4t\" AND name = \"gowrie\" AND date > 1908", "context": "CREATE TABLE table_name_51 (works_number VARCHAR, date VARCHAR, type VARCHAR, name VARCHAR)", "question": "What is the total work number of Gowrie with a 0-6-4t type after 1908?" }
### QUESTION What is the earliest year when the composition is 99.99% silver and the issue price is $94.95? ### CONTEXT CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR) ### ANSWER SELECT MIN(year) FROM table_name_66 WHERE composition = "99.99% silver" AND issue_price = "$94.95"
{ "answer": "SELECT MIN(year) FROM table_name_66 WHERE composition = \"99.99% silver\" AND issue_price = \"$94.95\"", "context": "CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR)", "question": "What is the earliest year when the composition is 99.99% silver and the issue price is $94.95?" }
### QUESTION Which countries have either English or Dutch as an official language? ### CONTEXT CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### ANSWER SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND IsOfficial = "T" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch" AND IsOfficial = "T"
{ "answer": "SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND IsOfficial = \"T\" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\" AND IsOfficial = \"T\"", "context": "CREATE TABLE country (Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)", "question": "Which countries have either English or Dutch as an official language?" }
### QUESTION What is the score of the team that plays in lake oval? ### CONTEXT CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) ### ANSWER SELECT away_team AS score FROM table_name_85 WHERE venue = "lake oval"
{ "answer": "SELECT away_team AS score FROM table_name_85 WHERE venue = \"lake oval\"", "context": "CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)", "question": "What is the score of the team that plays in lake oval?" }
### QUESTION What grid has an average time of +22.505 and laps larger than 23? ### CONTEXT CREATE TABLE table_name_7 (grid INTEGER, time VARCHAR, laps VARCHAR) ### ANSWER SELECT AVG(grid) FROM table_name_7 WHERE time = "+22.505" AND laps > 23
{ "answer": "SELECT AVG(grid) FROM table_name_7 WHERE time = \"+22.505\" AND laps > 23", "context": "CREATE TABLE table_name_7 (grid INTEGER, time VARCHAR, laps VARCHAR)", "question": "What grid has an average time of +22.505 and laps larger than 23?" }
### QUESTION Name the nationality for defender 201 ### CONTEXT CREATE TABLE table_24565004_20 (nationality² VARCHAR, position VARCHAR, appearances¹ VARCHAR) ### ANSWER SELECT nationality² FROM table_24565004_20 WHERE position = "Defender" AND appearances¹ = 201
{ "answer": "SELECT nationality² FROM table_24565004_20 WHERE position = \"Defender\" AND appearances¹ = 201", "context": "CREATE TABLE table_24565004_20 (nationality² VARCHAR, position VARCHAR, appearances¹ VARCHAR)", "question": "Name the nationality for defender 201" }
### QUESTION Find the number of scientists involved for each project name. ### CONTEXT CREATE TABLE assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR) ### ANSWER SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name
{ "answer": "SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name", "context": "CREATE TABLE assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR)", "question": "Find the number of scientists involved for each project name." }
### QUESTION What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660? ### CONTEXT CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR) ### ANSWER SELECT COUNT(longitude) FROM table_name_38 WHERE latitude = 48.930222 AND geo_id < 3806755660
{ "answer": "SELECT COUNT(longitude) FROM table_name_38 WHERE latitude = 48.930222 AND geo_id < 3806755660", "context": "CREATE TABLE table_name_38 (longitude VARCHAR, latitude VARCHAR, geo_id VARCHAR)", "question": "What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660?" }
### QUESTION How many insurgents have 602 as the total per period? ### CONTEXT CREATE TABLE table_21636599_1 (insurgents INTEGER, total_per_period VARCHAR) ### ANSWER SELECT MAX(insurgents) FROM table_21636599_1 WHERE total_per_period = 602
{ "answer": "SELECT MAX(insurgents) FROM table_21636599_1 WHERE total_per_period = 602", "context": "CREATE TABLE table_21636599_1 (insurgents INTEGER, total_per_period VARCHAR)", "question": "How many insurgents have 602 as the total per period?" }
### QUESTION What award was won in the best sound category for the exorcist before 1998? ### CONTEXT CREATE TABLE table_name_85 (award VARCHAR, title VARCHAR, category VARCHAR, year VARCHAR, type VARCHAR) ### ANSWER SELECT award FROM table_name_85 WHERE year < 1998 AND type = "won" AND category = "best sound" AND title = "the exorcist"
{ "answer": "SELECT award FROM table_name_85 WHERE year < 1998 AND type = \"won\" AND category = \"best sound\" AND title = \"the exorcist\"", "context": "CREATE TABLE table_name_85 (award VARCHAR, title VARCHAR, category VARCHAR, year VARCHAR, type VARCHAR)", "question": "What award was won in the best sound category for the exorcist before 1998?" }
### QUESTION For the matches with home captain Graham Gooch played on the dates 3,4,5,6,7 June 1993, what was the result? ### CONTEXT CREATE TABLE table_name_24 (result VARCHAR, home_captain VARCHAR, date VARCHAR) ### ANSWER SELECT result FROM table_name_24 WHERE home_captain = "graham gooch" AND date = "3,4,5,6,7 june 1993"
{ "answer": "SELECT result FROM table_name_24 WHERE home_captain = \"graham gooch\" AND date = \"3,4,5,6,7 june 1993\"", "context": "CREATE TABLE table_name_24 (result VARCHAR, home_captain VARCHAR, date VARCHAR)", "question": "For the matches with home captain Graham Gooch played on the dates 3,4,5,6,7 June 1993, what was the result?" }
### QUESTION If the founding university is in Charlotte, NC, what is the nickname? ### CONTEXT CREATE TABLE table_2538117_7 (nickname VARCHAR, founding_university VARCHAR) ### ANSWER SELECT nickname FROM table_2538117_7 WHERE founding_university = "Charlotte, NC"
{ "answer": "SELECT nickname FROM table_2538117_7 WHERE founding_university = \"Charlotte, NC\"", "context": "CREATE TABLE table_2538117_7 (nickname VARCHAR, founding_university VARCHAR)", "question": "If the founding university is in Charlotte, NC, what is the nickname?" }
### QUESTION Who is the highest ranked player that has earnings below 395,386? ### CONTEXT CREATE TABLE table_name_70 (rank INTEGER, earnings__$__ INTEGER) ### ANSWER SELECT MAX(rank) FROM table_name_70 WHERE earnings__$__ < 395 OFFSET 386
{ "answer": "SELECT MAX(rank) FROM table_name_70 WHERE earnings__$__ < 395 OFFSET 386", "context": "CREATE TABLE table_name_70 (rank INTEGER, earnings__$__ INTEGER)", "question": "Who is the highest ranked player that has earnings below 395,386?" }
### QUESTION Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way. ### CONTEXT CREATE TABLE Tourist_Attractions (How_to_Get_There VARCHAR) ### ANSWER SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There
{ "answer": "SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There", "context": "CREATE TABLE Tourist_Attractions (How_to_Get_There VARCHAR)", "question": "Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way." }
### QUESTION Who is the turbine vendor for Meenadreen in Donegal county with less than 6 turbines with a size of 0.85 MW? ### CONTEXT CREATE TABLE table_name_85 (turbine_vendor VARCHAR, wind_farm VARCHAR, size__mw_ VARCHAR, turbines VARCHAR, county VARCHAR) ### ANSWER SELECT turbine_vendor FROM table_name_85 WHERE turbines < 6 AND county = "donegal" AND size__mw_ = "0.85" AND wind_farm = "meenadreen"
{ "answer": "SELECT turbine_vendor FROM table_name_85 WHERE turbines < 6 AND county = \"donegal\" AND size__mw_ = \"0.85\" AND wind_farm = \"meenadreen\"", "context": "CREATE TABLE table_name_85 (turbine_vendor VARCHAR, wind_farm VARCHAR, size__mw_ VARCHAR, turbines VARCHAR, county VARCHAR)", "question": "Who is the turbine vendor for Meenadreen in Donegal county with less than 6 turbines with a size of 0.85 MW?" }
### QUESTION How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ? ### CONTEXT CREATE TABLE table_24037660_2 (circuit VARCHAR, lmp_winning_team VARCHAR, gtc_winning_team VARCHAR) ### ANSWER SELECT COUNT(circuit) FROM table_24037660_2 WHERE lmp_winning_team = "#1 Patrón Highcroft Racing" AND gtc_winning_team = "#81 Alex Job Racing"
{ "answer": "SELECT COUNT(circuit) FROM table_24037660_2 WHERE lmp_winning_team = \"#1 Patrón Highcroft Racing\" AND gtc_winning_team = \"#81 Alex Job Racing\"", "context": "CREATE TABLE table_24037660_2 (circuit VARCHAR, lmp_winning_team VARCHAR, gtc_winning_team VARCHAR)", "question": "How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ?" }
### QUESTION Which document type is described with the prefix 'Initial'? ### CONTEXT CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR) ### ANSWER SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'
{ "answer": "SELECT document_type_code FROM Document_Types WHERE document_description LIKE 'Initial%'", "context": "CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR)", "question": "Which document type is described with the prefix 'Initial'?" }
### QUESTION Find the name and age of the person who is a friend of both Dan and Alice. ### CONTEXT CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR) ### ANSWER SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
{ "answer": "SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'", "context": "CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)", "question": "Find the name and age of the person who is a friend of both Dan and Alice." }
### QUESTION Rank smaller than 5, and a Time of 31’ 03.093 is what rider? ### CONTEXT CREATE TABLE table_name_8 (rider VARCHAR, rank VARCHAR, time VARCHAR) ### ANSWER SELECT rider FROM table_name_8 WHERE rank < 5 AND time = "31’ 03.093"
{ "answer": "SELECT rider FROM table_name_8 WHERE rank < 5 AND time = \"31’ 03.093\"", "context": "CREATE TABLE table_name_8 (rider VARCHAR, rank VARCHAR, time VARCHAR)", "question": "Rank smaller than 5, and a Time of 31’ 03.093 is what rider?" }
### QUESTION What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden? ### CONTEXT CREATE TABLE table_name_83 (company_or_product_name VARCHAR, episode VARCHAR, investing_dragon_s_ VARCHAR) ### ANSWER SELECT company_or_product_name FROM table_name_83 WHERE episode = "episode 3" AND investing_dragon_s_ = "deborah meaden"
{ "answer": "SELECT company_or_product_name FROM table_name_83 WHERE episode = \"episode 3\" AND investing_dragon_s_ = \"deborah meaden\"", "context": "CREATE TABLE table_name_83 (company_or_product_name VARCHAR, episode VARCHAR, investing_dragon_s_ VARCHAR)", "question": "What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?" }
### QUESTION Which Date has a Competition of pl group b, and Opponents of police, and a Venue of selayang municipal council stadium? ### CONTEXT CREATE TABLE table_name_52 (date VARCHAR, venue VARCHAR, competition VARCHAR, opponents VARCHAR) ### ANSWER SELECT date FROM table_name_52 WHERE competition = "pl group b" AND opponents = "police" AND venue = "selayang municipal council stadium"
{ "answer": "SELECT date FROM table_name_52 WHERE competition = \"pl group b\" AND opponents = \"police\" AND venue = \"selayang municipal council stadium\"", "context": "CREATE TABLE table_name_52 (date VARCHAR, venue VARCHAR, competition VARCHAR, opponents VARCHAR)", "question": "Which Date has a Competition of pl group b, and Opponents of police, and a Venue of selayang municipal council stadium?" }
### QUESTION Show the role description and the id of the project staff involved in most number of project outcomes? ### CONTEXT CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Project_Staff (staff_id VARCHAR, role_code VARCHAR, project_id VARCHAR); CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR) ### ANSWER SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.role_description, T2.staff_id FROM Staff_Roles AS T1 JOIN Project_Staff AS T2 ON T1.role_code = T2.role_code JOIN Project_outcomes AS T3 ON T2.project_id = T3.project_id GROUP BY T2.staff_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Project_Staff (staff_id VARCHAR, role_code VARCHAR, project_id VARCHAR); CREATE TABLE Staff_Roles (role_description VARCHAR, role_code VARCHAR)", "question": "Show the role description and the id of the project staff involved in most number of project outcomes?" }
### QUESTION What is the year when the spoksperson is Ruslana? ### CONTEXT CREATE TABLE table_1998037_9 (year_s_ INTEGER, spokesperson VARCHAR) ### ANSWER SELECT MIN(year_s_) FROM table_1998037_9 WHERE spokesperson = "Ruslana"
{ "answer": "SELECT MIN(year_s_) FROM table_1998037_9 WHERE spokesperson = \"Ruslana\"", "context": "CREATE TABLE table_1998037_9 (year_s_ INTEGER, spokesperson VARCHAR)", "question": "What is the year when the spoksperson is Ruslana?" }
### QUESTION Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name. ### CONTEXT CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR) ### ANSWER SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Badlands" AND T1.StagePosition = "back"
{ "answer": "SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Badlands\" AND T1.StagePosition = \"back\"", "context": "CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)", "question": "Who is performing in the back stage position for the song \"Badlands\"? Show the first name and the last name." }
### QUESTION What is the total number of weeks with a game at the Milwaukee County Stadium attended by 47,897? ### CONTEXT CREATE TABLE table_name_79 (week VARCHAR, venue VARCHAR, attendance VARCHAR) ### ANSWER SELECT COUNT(week) FROM table_name_79 WHERE venue = "milwaukee county stadium" AND attendance = 47 OFFSET 897
{ "answer": "SELECT COUNT(week) FROM table_name_79 WHERE venue = \"milwaukee county stadium\" AND attendance = 47 OFFSET 897", "context": "CREATE TABLE table_name_79 (week VARCHAR, venue VARCHAR, attendance VARCHAR)", "question": "What is the total number of weeks with a game at the Milwaukee County Stadium attended by 47,897?" }
### QUESTION What is Home, when Ground is Humber College North, and when Time is 15:00? ### CONTEXT CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR) ### ANSWER SELECT home FROM table_name_58 WHERE ground = "humber college north" AND time = "15:00"
{ "answer": "SELECT home FROM table_name_58 WHERE ground = \"humber college north\" AND time = \"15:00\"", "context": "CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR)", "question": "What is Home, when Ground is Humber College North, and when Time is 15:00?" }
### QUESTION What's the date for Details of 1000 copies? ### CONTEXT CREATE TABLE table_name_74 (date INTEGER, other_details VARCHAR) ### ANSWER SELECT MIN(date) FROM table_name_74 WHERE other_details = "1000 copies"
{ "answer": "SELECT MIN(date) FROM table_name_74 WHERE other_details = \"1000 copies\"", "context": "CREATE TABLE table_name_74 (date INTEGER, other_details VARCHAR)", "question": "What's the date for Details of 1000 copies?" }
### QUESTION How many times was Robert Gesink a winner? ### CONTEXT CREATE TABLE table_27573848_18 (mountains_classification VARCHAR, winner VARCHAR) ### ANSWER SELECT COUNT(mountains_classification) FROM table_27573848_18 WHERE winner = "Robert Gesink"
{ "answer": "SELECT COUNT(mountains_classification) FROM table_27573848_18 WHERE winner = \"Robert Gesink\"", "context": "CREATE TABLE table_27573848_18 (mountains_classification VARCHAR, winner VARCHAR)", "question": "How many times was Robert Gesink a winner?" }
### QUESTION On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia? ### CONTEXT CREATE TABLE table_26267607_2 (date VARCHAR, circuit VARCHAR, winning_team VARCHAR, pole_position VARCHAR) ### ANSWER SELECT date FROM table_26267607_2 WHERE winning_team = "Abt Sportsline" AND pole_position = "Mattias Ekström" AND circuit = "circuit Ricardo Tormo , Valencia"
{ "answer": "SELECT date FROM table_26267607_2 WHERE winning_team = \"Abt Sportsline\" AND pole_position = \"Mattias Ekström\" AND circuit = \"circuit Ricardo Tormo , Valencia\"", "context": "CREATE TABLE table_26267607_2 (date VARCHAR, circuit VARCHAR, winning_team VARCHAR, pole_position VARCHAR)", "question": "On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia?" }
### QUESTION What name has 100 w. pender st. as the address? ### CONTEXT CREATE TABLE table_name_6 (name VARCHAR, street_address VARCHAR) ### ANSWER SELECT name FROM table_name_6 WHERE street_address = "100 w. pender st."
{ "answer": "SELECT name FROM table_name_6 WHERE street_address = \"100 w. pender st.\"", "context": "CREATE TABLE table_name_6 (name VARCHAR, street_address VARCHAR)", "question": "What name has 100 w. pender st. as the address?" }
### QUESTION What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 × 6.4 gt/s qpi I/O? ### CONTEXT CREATE TABLE table_name_12 (release_price___usd__ VARCHAR, i_o_bus VARCHAR, part_number_s_ VARCHAR) ### ANSWER SELECT release_price___usd__ FROM table_name_12 WHERE i_o_bus = "1 × 6.4 gt/s qpi" AND part_number_s_ = "bx80601975at80601002274aa"
{ "answer": "SELECT release_price___usd__ FROM table_name_12 WHERE i_o_bus = \"1 × 6.4 gt/s qpi\" AND part_number_s_ = \"bx80601975at80601002274aa\"", "context": "CREATE TABLE table_name_12 (release_price___usd__ VARCHAR, i_o_bus VARCHAR, part_number_s_ VARCHAR)", "question": "What's the release price of the processor with the part number bx80601975at80601002274aa, and has 1 × 6.4 gt/s qpi I/O?" }
### QUESTION Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus? ### CONTEXT CREATE TABLE table_name_99 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR, time VARCHAR) ### ANSWER SELECT nationality FROM table_name_99 WHERE rank > 1 AND time < 22.12 AND lane < 4 AND name = "ashley callus"
{ "answer": "SELECT nationality FROM table_name_99 WHERE rank > 1 AND time < 22.12 AND lane < 4 AND name = \"ashley callus\"", "context": "CREATE TABLE table_name_99 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR, time VARCHAR)", "question": "Which Nationality has a Rank larger than 1, and a Time smaller than 22.12, and a Lane smaller than 4, and a Name of ashley callus?" }
### QUESTION Which country has Weerawila Airport? ### CONTEXT CREATE TABLE table_name_76 (country VARCHAR, airport VARCHAR) ### ANSWER SELECT country FROM table_name_76 WHERE airport = "weerawila airport"
{ "answer": "SELECT country FROM table_name_76 WHERE airport = \"weerawila airport\"", "context": "CREATE TABLE table_name_76 (country VARCHAR, airport VARCHAR)", "question": "Which country has Weerawila Airport?" }
### QUESTION What pick was Greg Strome? ### CONTEXT CREATE TABLE table_2850912_6 (pick__number INTEGER, player VARCHAR) ### ANSWER SELECT MAX(pick__number) FROM table_2850912_6 WHERE player = "Greg Strome"
{ "answer": "SELECT MAX(pick__number) FROM table_2850912_6 WHERE player = \"Greg Strome\"", "context": "CREATE TABLE table_2850912_6 (pick__number INTEGER, player VARCHAR)", "question": "What pick was Greg Strome?" }
### QUESTION Find the names of customers who have bought by at least three distinct products. ### CONTEXT CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id 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 GROUP BY T1.customer_id HAVING COUNT(DISTINCT T3.product_id) >= 3
{ "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 GROUP BY T1.customer_id HAVING COUNT(DISTINCT T3.product_id) >= 3", "context": "CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)", "question": "Find the names of customers who have bought by at least three distinct products." }
### QUESTION What is the sum of Cuts made when there were more than 72 events? ### CONTEXT CREATE TABLE table_name_95 (cuts_made INTEGER, events INTEGER) ### ANSWER SELECT SUM(cuts_made) FROM table_name_95 WHERE events > 72
{ "answer": "SELECT SUM(cuts_made) FROM table_name_95 WHERE events > 72", "context": "CREATE TABLE table_name_95 (cuts_made INTEGER, events INTEGER)", "question": "What is the sum of Cuts made when there were more than 72 events?" }
### QUESTION Show the years and the official names of the host cities of competitions. ### CONTEXT CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Year VARCHAR, Host_city_ID VARCHAR) ### ANSWER SELECT T2.Year, T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID
{ "answer": "SELECT T2.Year, T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID", "context": "CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Year VARCHAR, Host_city_ID VARCHAR)", "question": "Show the years and the official names of the host cities of competitions." }
### QUESTION Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final? ### CONTEXT CREATE TABLE table_name_18 (player VARCHAR, début VARCHAR, opposition VARCHAR, last_game VARCHAR) ### ANSWER SELECT player FROM table_name_18 WHERE opposition = "limerick" AND last_game = "munster semi-final" AND début = 1973
{ "answer": "SELECT player FROM table_name_18 WHERE opposition = \"limerick\" AND last_game = \"munster semi-final\" AND début = 1973", "context": "CREATE TABLE table_name_18 (player VARCHAR, début VARCHAR, opposition VARCHAR, last_game VARCHAR)", "question": "Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final?" }
### QUESTION What is the total number of Length Feet, when Parish is Clarendon, when Km From Kingston is 71.2, and when Length Meters is less than 21.3? ### CONTEXT CREATE TABLE table_name_97 (length_feet VARCHAR, length_meters VARCHAR, parish VARCHAR, km_from_kingston VARCHAR) ### ANSWER SELECT COUNT(length_feet) FROM table_name_97 WHERE parish = "clarendon" AND km_from_kingston = 71.2 AND length_meters < 21.3
{ "answer": "SELECT COUNT(length_feet) FROM table_name_97 WHERE parish = \"clarendon\" AND km_from_kingston = 71.2 AND length_meters < 21.3", "context": "CREATE TABLE table_name_97 (length_feet VARCHAR, length_meters VARCHAR, parish VARCHAR, km_from_kingston VARCHAR)", "question": "What is the total number of Length Feet, when Parish is Clarendon, when Km From Kingston is 71.2, and when Length Meters is less than 21.3?" }
### QUESTION What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model? ### CONTEXT CREATE TABLE table_name_50 (engine_capacity VARCHAR, model VARCHAR, mpg_us_extra_urban VARCHAR, transmission VARCHAR, mpg_us_urban VARCHAR) ### ANSWER SELECT COUNT(engine_capacity) FROM table_name_50 WHERE transmission = "a4" AND mpg_us_urban > 19 AND mpg_us_extra_urban > 38.6 AND model = "aveo"
{ "answer": "SELECT COUNT(engine_capacity) FROM table_name_50 WHERE transmission = \"a4\" AND mpg_us_urban > 19 AND mpg_us_extra_urban > 38.6 AND model = \"aveo\"", "context": "CREATE TABLE table_name_50 (engine_capacity VARCHAR, model VARCHAR, mpg_us_extra_urban VARCHAR, transmission VARCHAR, mpg_us_urban VARCHAR)", "question": "What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model?" }