text
stringlengths
146
1.06k
source
dict
### QUESTION Find the first names of all the authors who have written a paper with title containing the word "Functional". ### CONTEXT CREATE TABLE authors (fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR) ### ANSWER SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE "%Functional%"
{ "answer": "SELECT t1.fname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title LIKE \"%Functional%\"", "context": "CREATE TABLE authors (fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR); CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR)", "question": "Find the first names of all the authors who have written a paper with title containing the word \"Functional\"." }
### QUESTION Which Asian countries have a population that is larger than any country in Africa? ### CONTEXT CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) ### ANSWER SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT MAX(population) FROM country WHERE Continent = "Africa")
{ "answer": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT MAX(population) FROM country WHERE Continent = \"Africa\")", "context": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "question": "Which Asian countries have a population that is larger than any country in Africa?" }
### QUESTION how many records had result/games: 10 games (29,606 avg.) ### CONTEXT CREATE TABLE table_21436373_12 (type_of_record VARCHAR, result_games VARCHAR) ### ANSWER SELECT COUNT(type_of_record) FROM table_21436373_12 WHERE result_games = "10 games (29,606 avg.)"
{ "answer": "SELECT COUNT(type_of_record) FROM table_21436373_12 WHERE result_games = \"10 games (29,606 avg.)\"", "context": "CREATE TABLE table_21436373_12 (type_of_record VARCHAR, result_games VARCHAR)", "question": "how many records had result/games: 10 games (29,606 avg.)" }
### QUESTION What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57? ### CONTEXT CREATE TABLE table_name_67 (year INTEGER, rider VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR) ### ANSWER SELECT MIN(year) FROM table_name_67 WHERE final_position___tour > 72 AND final_position___vuelta < 77 AND final_position___giro < 57 AND rider = "valdimir poelnikov"
{ "answer": "SELECT MIN(year) FROM table_name_67 WHERE final_position___tour > 72 AND final_position___vuelta < 77 AND final_position___giro < 57 AND rider = \"valdimir poelnikov\"", "context": "CREATE TABLE table_name_67 (year INTEGER, rider VARCHAR, final_position___giro VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)", "question": "What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57?" }
### QUESTION What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships? ### CONTEXT CREATE TABLE table_174491_1 (fis_nordic_world_ski_championships VARCHAR, country VARCHAR, holmenkollen VARCHAR) ### ANSWER SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = "Norway" AND holmenkollen = "1958"
{ "answer": "SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = \"Norway\" AND holmenkollen = \"1958\"", "context": "CREATE TABLE table_174491_1 (fis_nordic_world_ski_championships VARCHAR, country VARCHAR, holmenkollen VARCHAR)", "question": "What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships?" }
### QUESTION What is the home of the match with a 0:2 result on 21.10.07? ### CONTEXT CREATE TABLE table_name_28 (home VARCHAR, result VARCHAR, date VARCHAR) ### ANSWER SELECT home FROM table_name_28 WHERE result = "0:2" AND date = "21.10.07"
{ "answer": "SELECT home FROM table_name_28 WHERE result = \"0:2\" AND date = \"21.10.07\"", "context": "CREATE TABLE table_name_28 (home VARCHAR, result VARCHAR, date VARCHAR)", "question": "What is the home of the match with a 0:2 result on 21.10.07?" }
### QUESTION What is the name of the driver with a rotax max engine, in the rotax heavy class, with arrow as chassis and on the TWR Raceline Seating team? ### CONTEXT CREATE TABLE table_name_32 (driver VARCHAR, team VARCHAR, chassis VARCHAR, engine VARCHAR, class VARCHAR) ### ANSWER SELECT driver FROM table_name_32 WHERE engine = "rotax max" AND class = "rotax heavy" AND chassis = "arrow" AND team = "twr raceline seating"
{ "answer": "SELECT driver FROM table_name_32 WHERE engine = \"rotax max\" AND class = \"rotax heavy\" AND chassis = \"arrow\" AND team = \"twr raceline seating\"", "context": "CREATE TABLE table_name_32 (driver VARCHAR, team VARCHAR, chassis VARCHAR, engine VARCHAR, class VARCHAR)", "question": "What is the name of the driver with a rotax max engine, in the rotax heavy class, with arrow as chassis and on the TWR Raceline Seating team?" }
### QUESTION Show the names of students who have at least 2 likes. ### CONTEXT CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR) ### ANSWER SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2
{ "answer": "SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)", "question": "Show the names of students who have at least 2 likes." }
### QUESTION What is the Total, when To Par is less than 14, when Finish is T12, and when Player is "Julius Boros"? ### CONTEXT CREATE TABLE table_name_13 (total VARCHAR, player VARCHAR, to_par VARCHAR, finish VARCHAR) ### ANSWER SELECT total FROM table_name_13 WHERE to_par < 14 AND finish = "t12" AND player = "julius boros"
{ "answer": "SELECT total FROM table_name_13 WHERE to_par < 14 AND finish = \"t12\" AND player = \"julius boros\"", "context": "CREATE TABLE table_name_13 (total VARCHAR, player VARCHAR, to_par VARCHAR, finish VARCHAR)", "question": "What is the Total, when To Par is less than 14, when Finish is T12, and when Player is \"Julius Boros\"?" }
### QUESTION What is the Winners when the United States is the runner-up at st. germain golf club? ### CONTEXT CREATE TABLE table_name_90 (winners VARCHAR, runners_up VARCHAR, venue VARCHAR) ### ANSWER SELECT winners FROM table_name_90 WHERE runners_up = "united states" AND venue = "st. germain golf club"
{ "answer": "SELECT winners FROM table_name_90 WHERE runners_up = \"united states\" AND venue = \"st. germain golf club\"", "context": "CREATE TABLE table_name_90 (winners VARCHAR, runners_up VARCHAR, venue VARCHAR)", "question": "What is the Winners when the United States is the runner-up at st. germain golf club?" }
### QUESTION What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995? ### CONTEXT CREATE TABLE table_name_1 (production_code VARCHAR, original_air_date VARCHAR, season__number VARCHAR, series__number VARCHAR) ### ANSWER SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = "september 21, 1995"
{ "answer": "SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = \"september 21, 1995\"", "context": "CREATE TABLE table_name_1 (production_code VARCHAR, original_air_date VARCHAR, season__number VARCHAR, series__number VARCHAR)", "question": "What is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995?" }
### QUESTION What are the average points for the Project Indy team that has the Ford xb engine? ### CONTEXT CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR) ### ANSWER SELECT AVG(points) FROM table_name_42 WHERE engine = "ford xb" AND team = "project indy"
{ "answer": "SELECT AVG(points) FROM table_name_42 WHERE engine = \"ford xb\" AND team = \"project indy\"", "context": "CREATE TABLE table_name_42 (points INTEGER, engine VARCHAR, team VARCHAR)", "question": "What are the average points for the Project Indy team that has the Ford xb engine?" }
### QUESTION Which Round has a College of arizona? ### CONTEXT CREATE TABLE table_name_26 (round INTEGER, college VARCHAR) ### ANSWER SELECT MIN(round) FROM table_name_26 WHERE college = "arizona"
{ "answer": "SELECT MIN(round) FROM table_name_26 WHERE college = \"arizona\"", "context": "CREATE TABLE table_name_26 (round INTEGER, college VARCHAR)", "question": "Which Round has a College of arizona?" }
### QUESTION Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes? ### CONTEXT CREATE TABLE table_name_22 (format VARCHAR, open_standard VARCHAR, image_support VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR) ### ANSWER SELECT format FROM table_name_22 WHERE interactivity_support = "no" AND word_wrap_support = "yes" AND image_support = "yes" AND open_standard = "yes"
{ "answer": "SELECT format FROM table_name_22 WHERE interactivity_support = \"no\" AND word_wrap_support = \"yes\" AND image_support = \"yes\" AND open_standard = \"yes\"", "context": "CREATE TABLE table_name_22 (format VARCHAR, open_standard VARCHAR, image_support VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR)", "question": "Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes?" }
### QUESTION Find the semester and year which has the least number of student taking any class. ### CONTEXT CREATE TABLE takes (semester VARCHAR, YEAR VARCHAR) ### ANSWER SELECT semester, YEAR FROM takes GROUP BY semester, YEAR ORDER BY COUNT(*) LIMIT 1
{ "answer": "SELECT semester, YEAR FROM takes GROUP BY semester, YEAR ORDER BY COUNT(*) LIMIT 1", "context": "CREATE TABLE takes (semester VARCHAR, YEAR VARCHAR)", "question": "Find the semester and year which has the least number of student taking any class." }
### QUESTION What is the average Grid, when Laps is less than 24, when Bike is "Honda CBR1000RR", and when Rider is "Jason Pridmore"? ### CONTEXT CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR) ### ANSWER SELECT AVG(grid) FROM table_name_7 WHERE laps < 24 AND bike = "honda cbr1000rr" AND rider = "jason pridmore"
{ "answer": "SELECT AVG(grid) FROM table_name_7 WHERE laps < 24 AND bike = \"honda cbr1000rr\" AND rider = \"jason pridmore\"", "context": "CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR, laps VARCHAR, bike VARCHAR)", "question": "What is the average Grid, when Laps is less than 24, when Bike is \"Honda CBR1000RR\", and when Rider is \"Jason Pridmore\"?" }
### QUESTION What is the Chipset based on with a Digital/analog signal of analog, with an Available interface of agp, with Retail name with all-in-wonder 9800? ### CONTEXT CREATE TABLE table_name_18 (chipset_based_on VARCHAR, retail_name VARCHAR, digital_analog_signal VARCHAR, available_interface VARCHAR) ### ANSWER SELECT chipset_based_on FROM table_name_18 WHERE digital_analog_signal = "analog" AND available_interface = "agp" AND retail_name = "all-in-wonder 9800"
{ "answer": "SELECT chipset_based_on FROM table_name_18 WHERE digital_analog_signal = \"analog\" AND available_interface = \"agp\" AND retail_name = \"all-in-wonder 9800\"", "context": "CREATE TABLE table_name_18 (chipset_based_on VARCHAR, retail_name VARCHAR, digital_analog_signal VARCHAR, available_interface VARCHAR)", "question": "What is the Chipset based on with a Digital/analog signal of analog, with an Available interface of agp, with Retail name with all-in-wonder 9800?" }
### QUESTION What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday? ### CONTEXT CREATE TABLE table_name_34 (monday_to_friday VARCHAR, mañana_es_para_siempre VARCHAR) ### ANSWER SELECT monday_to_friday FROM table_name_34 WHERE mañana_es_para_siempre = "impreuna pentru totdeauna"
{ "answer": "SELECT monday_to_friday FROM table_name_34 WHERE mañana_es_para_siempre = \"impreuna pentru totdeauna\"", "context": "CREATE TABLE table_name_34 (monday_to_friday VARCHAR, mañana_es_para_siempre VARCHAR)", "question": "What is Mañana es para siempre of impreuna pentru totdeauna from Monday to Friday?" }
### QUESTION Moving from Nancy after 2005, what is listed as the lowest rank? ### CONTEXT CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR) ### ANSWER SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = "nancy"
{ "answer": "SELECT MIN(rank) FROM table_name_37 WHERE year > 2005 AND moving_from = \"nancy\"", "context": "CREATE TABLE table_name_37 (rank INTEGER, year VARCHAR, moving_from VARCHAR)", "question": "Moving from Nancy after 2005, what is listed as the lowest rank?" }
### QUESTION In what year was there an award for TV Adicto Golden Awards and the category Female Revelation? ### CONTEXT CREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR) ### ANSWER SELECT year FROM table_name_78 WHERE award = "tv adicto golden awards" AND category = "female revelation"
{ "answer": "SELECT year FROM table_name_78 WHERE award = \"tv adicto golden awards\" AND category = \"female revelation\"", "context": "CREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR)", "question": "In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?" }
### QUESTION Find the distinct names of all songs that have a higher resolution than some songs in English. ### CONTEXT CREATE TABLE song (song_name VARCHAR, resolution INTEGER, languages VARCHAR) ### ANSWER SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = "english")
{ "answer": "SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = \"english\")", "context": "CREATE TABLE song (song_name VARCHAR, resolution INTEGER, languages VARCHAR)", "question": "Find the distinct names of all songs that have a higher resolution than some songs in English." }
### QUESTION How many points did Happy Valley score before game 14? ### CONTEXT CREATE TABLE table_name_89 (point VARCHAR, team VARCHAR, game VARCHAR) ### ANSWER SELECT COUNT(point) FROM table_name_89 WHERE team = "happy valley" AND game < 14
{ "answer": "SELECT COUNT(point) FROM table_name_89 WHERE team = \"happy valley\" AND game < 14", "context": "CREATE TABLE table_name_89 (point VARCHAR, team VARCHAR, game VARCHAR)", "question": "How many points did Happy Valley score before game 14?" }
### QUESTION In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135? ### CONTEXT CREATE TABLE table_name_93 (population_density INTEGER, population__2011_ VARCHAR, population__2006_ VARCHAR, county VARCHAR, area__km²_ VARCHAR) ### ANSWER SELECT MAX(population_density) FROM table_name_93 WHERE county = "prince" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135
{ "answer": "SELECT MAX(population_density) FROM table_name_93 WHERE county = \"prince\" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135", "context": "CREATE TABLE table_name_93 (population_density INTEGER, population__2011_ VARCHAR, population__2006_ VARCHAR, county VARCHAR, area__km²_ VARCHAR)", "question": "In the County of Prince, what was the highest Population density when the Area (km²) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135?" }
### QUESTION For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross? ### CONTEXT CREATE TABLE table_name_43 (worldwide_gross VARCHAR, director_s_ VARCHAR, rank VARCHAR, studio VARCHAR) ### ANSWER SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = "columbia pictures" AND director_s_ = "martin campbell"
{ "answer": "SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = \"columbia pictures\" AND director_s_ = \"martin campbell\"", "context": "CREATE TABLE table_name_43 (worldwide_gross VARCHAR, director_s_ VARCHAR, rank VARCHAR, studio VARCHAR)", "question": "For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross?" }
### QUESTION Which actors are from Ukraine? ### CONTEXT CREATE TABLE table_10236830_4 (actors_name VARCHAR, country VARCHAR) ### ANSWER SELECT actors_name FROM table_10236830_4 WHERE country = "Ukraine"
{ "answer": "SELECT actors_name FROM table_10236830_4 WHERE country = \"Ukraine\"", "context": "CREATE TABLE table_10236830_4 (actors_name VARCHAR, country VARCHAR)", "question": "Which actors are from Ukraine?" }
### QUESTION What tournament had an opponent of Els Callens Nancy Feber? ### CONTEXT CREATE TABLE table_name_95 (tournament VARCHAR, opponents_in_the_final VARCHAR) ### ANSWER SELECT tournament FROM table_name_95 WHERE opponents_in_the_final = "els callens nancy feber"
{ "answer": "SELECT tournament FROM table_name_95 WHERE opponents_in_the_final = \"els callens nancy feber\"", "context": "CREATE TABLE table_name_95 (tournament VARCHAR, opponents_in_the_final VARCHAR)", "question": "What tournament had an opponent of Els Callens Nancy Feber?" }
### QUESTION What was the Score in the game against the Buffalo Sabres? ### CONTEXT CREATE TABLE table_name_83 (score VARCHAR, opponent VARCHAR) ### ANSWER SELECT score FROM table_name_83 WHERE opponent = "buffalo sabres"
{ "answer": "SELECT score FROM table_name_83 WHERE opponent = \"buffalo sabres\"", "context": "CREATE TABLE table_name_83 (score VARCHAR, opponent VARCHAR)", "question": "What was the Score in the game against the Buffalo Sabres?" }
### QUESTION What is the date of vacancy when the team is manchester city and replaced by is mark hughes? ### CONTEXT CREATE TABLE table_10592536_8 (date_of_vacancy VARCHAR, team VARCHAR, replaced_by VARCHAR) ### ANSWER SELECT date_of_vacancy FROM table_10592536_8 WHERE team = "Manchester City" AND replaced_by = "Mark Hughes"
{ "answer": "SELECT date_of_vacancy FROM table_10592536_8 WHERE team = \"Manchester City\" AND replaced_by = \"Mark Hughes\"", "context": "CREATE TABLE table_10592536_8 (date_of_vacancy VARCHAR, team VARCHAR, replaced_by VARCHAR)", "question": "What is the date of vacancy when the team is manchester city and replaced by is mark hughes?" }
### QUESTION What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0? ### CONTEXT CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR) ### ANSWER SELECT date FROM table_name_7 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "20,000" AND result = "w52-0"
{ "answer": "SELECT date FROM table_name_7 WHERE site = \"memorial stadium • minneapolis, mn\" AND attendance = \"20,000\" AND result = \"w52-0\"", "context": "CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR)", "question": "What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?" }
### QUESTION Which Country has a Pinnacle height of metres (ft) and a Name of azeri tv tower? ### CONTEXT CREATE TABLE table_name_37 (country VARCHAR, pinnacle_height VARCHAR, name VARCHAR) ### ANSWER SELECT country FROM table_name_37 WHERE pinnacle_height = "metres (ft)" AND name = "azeri tv tower"
{ "answer": "SELECT country FROM table_name_37 WHERE pinnacle_height = \"metres (ft)\" AND name = \"azeri tv tower\"", "context": "CREATE TABLE table_name_37 (country VARCHAR, pinnacle_height VARCHAR, name VARCHAR)", "question": "Which Country has a Pinnacle height of metres (ft) and a Name of azeri tv tower?" }
### QUESTION Which contact channel has been used by the customer with name "Tillman Ernser"? ### CONTEXT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (customer_id VARCHAR) ### ANSWER SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser"
{ "answer": "SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Tillman Ernser\"", "context": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (customer_id VARCHAR)", "question": "Which contact channel has been used by the customer with name \"Tillman Ernser\"?" }
### QUESTION What is the lowest long with an avg/G more than -2.2 and a total name and a gain of more than 2,488? ### CONTEXT CREATE TABLE table_name_60 (long INTEGER, gain VARCHAR, avg_g VARCHAR, name VARCHAR) ### ANSWER SELECT MIN(long) FROM table_name_60 WHERE avg_g > -2.2 AND name = "total" AND gain > 2 OFFSET 488
{ "answer": "SELECT MIN(long) FROM table_name_60 WHERE avg_g > -2.2 AND name = \"total\" AND gain > 2 OFFSET 488", "context": "CREATE TABLE table_name_60 (long INTEGER, gain VARCHAR, avg_g VARCHAR, name VARCHAR)", "question": "What is the lowest long with an avg/G more than -2.2 and a total name and a gain of more than 2,488?" }
### QUESTION How many credit cards does customer Blanche Huels have? ### CONTEXT CREATE TABLE Customers_cards (customer_id VARCHAR, card_type_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR) ### ANSWER SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Blanche" AND T2.customer_last_name = "Huels" AND T1.card_type_code = "Credit"
{ "answer": "SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = \"Blanche\" AND T2.customer_last_name = \"Huels\" AND T1.card_type_code = \"Credit\"", "context": "CREATE TABLE Customers_cards (customer_id VARCHAR, card_type_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)", "question": "How many credit cards does customer Blanche Huels have?" }
### QUESTION Name the most late 1943 with late 194 in slovenia ### CONTEXT CREATE TABLE table_1115992_1 (late_1943 INTEGER, _late_1941 VARCHAR) ### ANSWER SELECT MAX(late_1943) FROM table_1115992_1 WHERE NOT _late_1941 = "Slovenia"
{ "answer": "SELECT MAX(late_1943) FROM table_1115992_1 WHERE NOT _late_1941 = \"Slovenia\"", "context": "CREATE TABLE table_1115992_1 (late_1943 INTEGER, _late_1941 VARCHAR)", "question": "Name the most late 1943 with late 194 in slovenia" }
### QUESTION What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11? ### CONTEXT CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR) ### ANSWER SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = "ktm" AND time_retired = "+56.440" AND grid < 11
{ "answer": "SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = \"ktm\" AND time_retired = \"+56.440\" AND grid < 11", "context": "CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)", "question": "What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?" }
### QUESTION how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament ### CONTEXT CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR) ### ANSWER SELECT COUNT(na__350_) FROM table_13663434_1 WHERE title_and_source = "Bokumo Sekai wo Sukuitai: Battle Tournament"
{ "answer": "SELECT COUNT(na__350_) FROM table_13663434_1 WHERE title_and_source = \"Bokumo Sekai wo Sukuitai: Battle Tournament\"", "context": "CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR)", "question": " how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament" }
### QUESTION What is the Republican seat plurality of North Carolina? ### CONTEXT CREATE TABLE table_name_18 (republican_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR) ### ANSWER SELECT republican_seat_plurality FROM table_name_18 WHERE state_ranked_in_partisan_order = "north carolina"
{ "answer": "SELECT republican_seat_plurality FROM table_name_18 WHERE state_ranked_in_partisan_order = \"north carolina\"", "context": "CREATE TABLE table_name_18 (republican_seat_plurality VARCHAR, state_ranked_in_partisan_order VARCHAR)", "question": "What is the Republican seat plurality of North Carolina?" }
### QUESTION When was the game at Gillette Stadium that ended in a final score of 30-17? ### CONTEXT CREATE TABLE table_name_37 (date VARCHAR, final_score VARCHAR, stadium VARCHAR) ### ANSWER SELECT date FROM table_name_37 WHERE final_score = "30-17" AND stadium = "gillette stadium"
{ "answer": "SELECT date FROM table_name_37 WHERE final_score = \"30-17\" AND stadium = \"gillette stadium\"", "context": "CREATE TABLE table_name_37 (date VARCHAR, final_score VARCHAR, stadium VARCHAR)", "question": "When was the game at Gillette Stadium that ended in a final score of 30-17?" }
### QUESTION Who were Petrova's opponents with Vania King? ### CONTEXT CREATE TABLE table_27611593_5 (opponents VARCHAR, partner VARCHAR) ### ANSWER SELECT opponents FROM table_27611593_5 WHERE partner = "Vania King"
{ "answer": "SELECT opponents FROM table_27611593_5 WHERE partner = \"Vania King\"", "context": "CREATE TABLE table_27611593_5 (opponents VARCHAR, partner VARCHAR)", "question": "Who were Petrova's opponents with Vania King?" }
### QUESTION What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is "PUR"? ### CONTEXT CREATE TABLE LOTS (lot_details VARCHAR, lot_id VARCHAR); CREATE TABLE TRANSACTIONS_LOTS (transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, share_count VARCHAR, transaction_type_code VARCHAR) ### ANSWER SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = "PUR"
{ "answer": "SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id = T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id = T3.transaction_id WHERE T3.share_count > 100 AND T3.transaction_type_code = \"PUR\"", "context": "CREATE TABLE LOTS (lot_details VARCHAR, lot_id VARCHAR); CREATE TABLE TRANSACTIONS_LOTS (transaction_id VARCHAR); CREATE TABLE TRANSACTIONS (transaction_id VARCHAR, share_count VARCHAR, transaction_type_code VARCHAR)", "question": "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is \"PUR\"?" }
### QUESTION What home team played at western oval? ### CONTEXT CREATE TABLE table_name_9 (home_team VARCHAR, venue VARCHAR) ### ANSWER SELECT home_team FROM table_name_9 WHERE venue = "western oval"
{ "answer": "SELECT home_team FROM table_name_9 WHERE venue = \"western oval\"", "context": "CREATE TABLE table_name_9 (home_team VARCHAR, venue VARCHAR)", "question": "What home team played at western oval?" }
### QUESTION What is the number of Ashmolean with 14s Harrison, and image less than 542? ### CONTEXT CREATE TABLE table_name_40 (ashmolean VARCHAR, harrison VARCHAR, image VARCHAR) ### ANSWER SELECT COUNT(ashmolean) FROM table_name_40 WHERE harrison = "14s" AND image < 542
{ "answer": "SELECT COUNT(ashmolean) FROM table_name_40 WHERE harrison = \"14s\" AND image < 542", "context": "CREATE TABLE table_name_40 (ashmolean VARCHAR, harrison VARCHAR, image VARCHAR)", "question": "What is the number of Ashmolean with 14s Harrison, and image less than 542?" }
### QUESTION What is the sum of Silver with a Bronze that is larger than 0 with a Gold smaller than 0? ### CONTEXT CREATE TABLE table_name_26 (silver INTEGER, bronze VARCHAR, gold VARCHAR) ### ANSWER SELECT SUM(silver) FROM table_name_26 WHERE bronze > 0 AND gold < 0
{ "answer": "SELECT SUM(silver) FROM table_name_26 WHERE bronze > 0 AND gold < 0", "context": "CREATE TABLE table_name_26 (silver INTEGER, bronze VARCHAR, gold VARCHAR)", "question": "What is the sum of Silver with a Bronze that is larger than 0 with a Gold smaller than 0?" }
### QUESTION Prior to 2004, what was the name of the competition that took place in Johannesburg, South Africa and had the 400 m hurdles event? ### CONTEXT CREATE TABLE table_name_75 (competition VARCHAR, venue VARCHAR, notes VARCHAR, year VARCHAR) ### ANSWER SELECT competition FROM table_name_75 WHERE notes = "400 m hurdles" AND year < 2004 AND venue = "johannesburg, south africa"
{ "answer": "SELECT competition FROM table_name_75 WHERE notes = \"400 m hurdles\" AND year < 2004 AND venue = \"johannesburg, south africa\"", "context": "CREATE TABLE table_name_75 (competition VARCHAR, venue VARCHAR, notes VARCHAR, year VARCHAR)", "question": "Prior to 2004, what was the name of the competition that took place in Johannesburg, South Africa and had the 400 m hurdles event?" }
### QUESTION What is the area of the civil parish kilworth and townland monadrishane? ### CONTEXT CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR) ### ANSWER SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = "Kilworth" AND townland = "Monadrishane"
{ "answer": "SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = \"Kilworth\" AND townland = \"Monadrishane\"", "context": "CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR)", "question": "What is the area of the civil parish kilworth and townland monadrishane?" }
### QUESTION How many authors or editors are there for the book title elf child? ### CONTEXT CREATE TABLE table_20193855_2 (author_s__or_editor_s_ VARCHAR, book_title VARCHAR) ### ANSWER SELECT COUNT(author_s__or_editor_s_) FROM table_20193855_2 WHERE book_title = "Elf Child"
{ "answer": "SELECT COUNT(author_s__or_editor_s_) FROM table_20193855_2 WHERE book_title = \"Elf Child\"", "context": "CREATE TABLE table_20193855_2 (author_s__or_editor_s_ VARCHAR, book_title VARCHAR)", "question": "How many authors or editors are there for the book title elf child?" }
### QUESTION When Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was number 5? ### CONTEXT CREATE TABLE table_name_76 (no_5 VARCHAR, no_4 VARCHAR, no_1 VARCHAR, no_8 VARCHAR, no_2 VARCHAR) ### ANSWER SELECT no_5 FROM table_name_76 WHERE no_8 = "chloe" AND no_2 = "olivia" AND no_1 = "emma" AND no_4 = "ava"
{ "answer": "SELECT no_5 FROM table_name_76 WHERE no_8 = \"chloe\" AND no_2 = \"olivia\" AND no_1 = \"emma\" AND no_4 = \"ava\"", "context": "CREATE TABLE table_name_76 (no_5 VARCHAR, no_4 VARCHAR, no_1 VARCHAR, no_8 VARCHAR, no_2 VARCHAR)", "question": "When Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was number 5?" }
### QUESTION What is the original title of the film for which Dersu Uzala was nominated? ### CONTEXT CREATE TABLE table_name_10 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) ### ANSWER SELECT original_title FROM table_name_10 WHERE film_title_used_in_nomination = "dersu uzala"
{ "answer": "SELECT original_title FROM table_name_10 WHERE film_title_used_in_nomination = \"dersu uzala\"", "context": "CREATE TABLE table_name_10 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)", "question": "What is the original title of the film for which Dersu Uzala was nominated?" }
### QUESTION Who directed the episode where u.s. viewers (million) is 12.90? ### CONTEXT CREATE TABLE table_10701133_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR) ### ANSWER SELECT directed_by FROM table_10701133_1 WHERE us_viewers__million_ = "12.90"
{ "answer": "SELECT directed_by FROM table_10701133_1 WHERE us_viewers__million_ = \"12.90\"", "context": "CREATE TABLE table_10701133_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)", "question": "Who directed the episode where u.s. viewers (million) is 12.90?" }
### QUESTION What's the rank for a team that has a percentage of 56% and a loss smaller than 4? ### CONTEXT CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR) ### ANSWER SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = "56%" AND loss < 4
{ "answer": "SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = \"56%\" AND loss < 4", "context": "CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR)", "question": "What's the rank for a team that has a percentage of 56% and a loss smaller than 4?" }
### QUESTION What is the Type for l. publilius philo vulscus? ### CONTEXT CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR) ### ANSWER SELECT type FROM table_name_46 WHERE name = "l. publilius philo vulscus"
{ "answer": "SELECT type FROM table_name_46 WHERE name = \"l. publilius philo vulscus\"", "context": "CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR)", "question": "What is the Type for l. publilius philo vulscus?" }
### QUESTION Show the names of customers who have the most mailshots. ### CONTEXT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR) ### ANSWER SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)", "question": "Show the names of customers who have the most mailshots." }
### QUESTION What Opponents in the final had a match in 1984 with a Score in the final of 7–6, 6–1? ### CONTEXT CREATE TABLE table_name_77 (opponents_in_the_final VARCHAR, date VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT opponents_in_the_final FROM table_name_77 WHERE date = 1984 AND score_in_the_final = "7–6, 6–1"
{ "answer": "SELECT opponents_in_the_final FROM table_name_77 WHERE date = 1984 AND score_in_the_final = \"7–6, 6–1\"", "context": "CREATE TABLE table_name_77 (opponents_in_the_final VARCHAR, date VARCHAR, score_in_the_final VARCHAR)", "question": "What Opponents in the final had a match in 1984 with a Score in the final of 7–6, 6–1?" }
### QUESTION What competition had a final round in the finals and the final position winners? ### CONTEXT CREATE TABLE table_name_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR) ### ANSWER SELECT competition FROM table_name_66 WHERE final_position = "winners" AND final_round = "finals"
{ "answer": "SELECT competition FROM table_name_66 WHERE final_position = \"winners\" AND final_round = \"finals\"", "context": "CREATE TABLE table_name_66 (competition VARCHAR, final_position VARCHAR, final_round VARCHAR)", "question": "What competition had a final round in the finals and the final position winners?" }
### QUESTION How many languages is refractaire as the film title used in nomination? ### CONTEXT CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR) ### ANSWER SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Refractaire"
{ "answer": "SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = \"Refractaire\"", "context": "CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)", "question": "How many languages is refractaire as the film title used in nomination?" }
### QUESTION What was the score for an n/a location with the odds of p + 1? ### CONTEXT CREATE TABLE table_name_61 (result VARCHAR, location VARCHAR, odds VARCHAR) ### ANSWER SELECT result FROM table_name_61 WHERE location = "n/a" AND odds = "p + 1"
{ "answer": "SELECT result FROM table_name_61 WHERE location = \"n/a\" AND odds = \"p + 1\"", "context": "CREATE TABLE table_name_61 (result VARCHAR, location VARCHAR, odds VARCHAR)", "question": "What was the score for an n/a location with the odds of p + 1?" }
### QUESTION Find the addresses of the course authors who teach the course with name "operating system" or "data structure". ### CONTEXT CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR) ### ANSWER SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = "operating system" OR T2.course_name = "data structure"
{ "answer": "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = \"operating system\" OR T2.course_name = \"data structure\"", "context": "CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)", "question": "Find the addresses of the course authors who teach the course with name \"operating system\" or \"data structure\"." }
### QUESTION Which African countries have a smaller population than that of any country in Asia? ### CONTEXT CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) ### ANSWER SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MIN(population) FROM country WHERE Continent = "Asia")
{ "answer": "SELECT Name FROM country WHERE Continent = \"Africa\" AND population < (SELECT MIN(population) FROM country WHERE Continent = \"Asia\")", "context": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "question": "Which African countries have a smaller population than that of any country in Asia?" }
### QUESTION How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005? ### CONTEXT CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2005 VARCHAR) ### ANSWER SELECT COUNT(_percentage_of_all_immigrants_2007) FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2005 = "1.2%"
{ "answer": "SELECT COUNT(_percentage_of_all_immigrants_2007) FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2005 = \"1.2%\"", "context": "CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2005 VARCHAR)", "question": "How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?" }
### QUESTION Which city has the IATA SSG? ### CONTEXT CREATE TABLE table_name_40 (city VARCHAR, iata VARCHAR) ### ANSWER SELECT city FROM table_name_40 WHERE iata = "ssg"
{ "answer": "SELECT city FROM table_name_40 WHERE iata = \"ssg\"", "context": "CREATE TABLE table_name_40 (city VARCHAR, iata VARCHAR)", "question": "Which city has the IATA SSG?" }
### QUESTION How many episodes are there for the three darts challenge with Sharon Osbourne? ### CONTEXT CREATE TABLE table_26733129_1 (episode_number INTEGER, three_darts_challenge VARCHAR) ### ANSWER SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = "Sharon Osbourne"
{ "answer": "SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = \"Sharon Osbourne\"", "context": "CREATE TABLE table_26733129_1 (episode_number INTEGER, three_darts_challenge VARCHAR)", "question": "How many episodes are there for the three darts challenge with Sharon Osbourne?" }
### QUESTION Show the names of pilots and models of aircrafts they have flied with. ### CONTEXT CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR); CREATE TABLE aircraft (Model VARCHAR, Aircraft_ID VARCHAR) ### ANSWER SELECT T3.Pilot_name, T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID
{ "answer": "SELECT T3.Pilot_name, T2.Model FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID", "context": "CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR); CREATE TABLE aircraft (Model VARCHAR, Aircraft_ID VARCHAR)", "question": "Show the names of pilots and models of aircrafts they have flied with." }
### QUESTION What is the date of birth of the player that has 11 caps and plays the prop position? ### CONTEXT CREATE TABLE table_name_41 (date_of_birth__age_ VARCHAR, caps VARCHAR, position VARCHAR) ### ANSWER SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = "prop"
{ "answer": "SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = \"prop\"", "context": "CREATE TABLE table_name_41 (date_of_birth__age_ VARCHAR, caps VARCHAR, position VARCHAR)", "question": "What is the date of birth of the player that has 11 caps and plays the prop position?" }
### QUESTION Can one access the Jersey territory using a Croatian identity card? ### CONTEXT CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR) ### ANSWER SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Jersey"
{ "answer": "SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = \"Jersey\"", "context": "CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)", "question": "Can one access the Jersey territory using a Croatian identity card?" }
### QUESTION What was the decision on october 5? ### CONTEXT CREATE TABLE table_name_44 (decision VARCHAR, date VARCHAR) ### ANSWER SELECT decision FROM table_name_44 WHERE date = "october 5"
{ "answer": "SELECT decision FROM table_name_44 WHERE date = \"october 5\"", "context": "CREATE TABLE table_name_44 (decision VARCHAR, date VARCHAR)", "question": "What was the decision on october 5?" }
### QUESTION What is the total frequency mhz of the kgrj call sign, which has an erp w greater than 21,500? ### CONTEXT CREATE TABLE table_name_19 (frequency_mhz VARCHAR, call_sign VARCHAR, erp_w VARCHAR) ### ANSWER SELECT COUNT(frequency_mhz) FROM table_name_19 WHERE call_sign = "kgrj" AND erp_w > 21 OFFSET 500
{ "answer": "SELECT COUNT(frequency_mhz) FROM table_name_19 WHERE call_sign = \"kgrj\" AND erp_w > 21 OFFSET 500", "context": "CREATE TABLE table_name_19 (frequency_mhz VARCHAR, call_sign VARCHAR, erp_w VARCHAR)", "question": "What is the total frequency mhz of the kgrj call sign, which has an erp w greater than 21,500?" }
### QUESTION Find the name and checking balance of the account with the lowest savings balance. ### CONTEXT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1
{ "answer": "SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1", "context": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the name and checking balance of the account with the lowest savings balance." }
### QUESTION What issue was the Spoofed Title of the crockford files in? ### CONTEXT CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR) ### ANSWER SELECT issue FROM table_name_50 WHERE spoofed_title = "the crockford files"
{ "answer": "SELECT issue FROM table_name_50 WHERE spoofed_title = \"the crockford files\"", "context": "CREATE TABLE table_name_50 (issue VARCHAR, spoofed_title VARCHAR)", "question": "What issue was the Spoofed Title of the crockford files in?" }
### QUESTION What is the lowest Draft, when Player is "Dave Christian Category:Articles with hCards"? ### CONTEXT CREATE TABLE table_name_74 (draft INTEGER, player VARCHAR) ### ANSWER SELECT MIN(draft) FROM table_name_74 WHERE player = "dave christian category:articles with hcards"
{ "answer": "SELECT MIN(draft) FROM table_name_74 WHERE player = \"dave christian category:articles with hcards\"", "context": "CREATE TABLE table_name_74 (draft INTEGER, player VARCHAR)", "question": "What is the lowest Draft, when Player is \"Dave Christian Category:Articles with hCards\"?" }
### QUESTION What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill? ### CONTEXT CREATE TABLE table_name_69 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, entrant VARCHAR) ### ANSWER SELECT chassis FROM table_name_69 WHERE rounds = "all" AND entrant = "benson and hedges jordan" AND driver = "damon hill"
{ "answer": "SELECT chassis FROM table_name_69 WHERE rounds = \"all\" AND entrant = \"benson and hedges jordan\" AND driver = \"damon hill\"", "context": "CREATE TABLE table_name_69 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, entrant VARCHAR)", "question": "What is the chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill?" }
### QUESTION What was the transfer fee when winter was the transfer window? ### CONTEXT CREATE TABLE table_name_1 (transfer_fee VARCHAR, transfer_window VARCHAR) ### ANSWER SELECT transfer_fee FROM table_name_1 WHERE transfer_window = "winter"
{ "answer": "SELECT transfer_fee FROM table_name_1 WHERE transfer_window = \"winter\"", "context": "CREATE TABLE table_name_1 (transfer_fee VARCHAR, transfer_window VARCHAR)", "question": "What was the transfer fee when winter was the transfer window?" }
### QUESTION What Place has a To par of –4? ### CONTEXT CREATE TABLE table_name_92 (place VARCHAR, to_par VARCHAR) ### ANSWER SELECT place FROM table_name_92 WHERE to_par = "–4"
{ "answer": "SELECT place FROM table_name_92 WHERE to_par = \"–4\"", "context": "CREATE TABLE table_name_92 (place VARCHAR, to_par VARCHAR)", "question": "What Place has a To par of –4?" }
### QUESTION What is the total number of Year with Wins of 1, and Losses smaller than 1? ### CONTEXT CREATE TABLE table_name_93 (year INTEGER, wins VARCHAR, losses VARCHAR) ### ANSWER SELECT SUM(year) FROM table_name_93 WHERE wins = 1 AND losses < 1
{ "answer": "SELECT SUM(year) FROM table_name_93 WHERE wins = 1 AND losses < 1", "context": "CREATE TABLE table_name_93 (year INTEGER, wins VARCHAR, losses VARCHAR)", "question": "What is the total number of Year with Wins of 1, and Losses smaller than 1?" }
### QUESTION What is the average Top-5 for the open championship, and a Top-10 smaller than 2? ### CONTEXT CREATE TABLE table_name_98 (top_5 INTEGER, tournament VARCHAR, top_10 VARCHAR) ### ANSWER SELECT AVG(top_5) FROM table_name_98 WHERE tournament = "the open championship" AND top_10 < 2
{ "answer": "SELECT AVG(top_5) FROM table_name_98 WHERE tournament = \"the open championship\" AND top_10 < 2", "context": "CREATE TABLE table_name_98 (top_5 INTEGER, tournament VARCHAR, top_10 VARCHAR)", "question": "What is the average Top-5 for the open championship, and a Top-10 smaller than 2?" }
### QUESTION What is the Title of the Pye Label mono LP release? ### CONTEXT CREATE TABLE table_name_18 (title VARCHAR, format VARCHAR, label VARCHAR) ### ANSWER SELECT title FROM table_name_18 WHERE format = "mono lp" AND label = "pye"
{ "answer": "SELECT title FROM table_name_18 WHERE format = \"mono lp\" AND label = \"pye\"", "context": "CREATE TABLE table_name_18 (title VARCHAR, format VARCHAR, label VARCHAR)", "question": "What is the Title of the Pye Label mono LP release?" }
### QUESTION If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge? ### CONTEXT CREATE TABLE table_26389588_1 (primary_cartridge VARCHAR, year_of_introduction VARCHAR, country_of_origin VARCHAR) ### ANSWER SELECT primary_cartridge FROM table_26389588_1 WHERE year_of_introduction = "1962" AND country_of_origin = "Denmark"
{ "answer": "SELECT primary_cartridge FROM table_26389588_1 WHERE year_of_introduction = \"1962\" AND country_of_origin = \"Denmark\"", "context": "CREATE TABLE table_26389588_1 (primary_cartridge VARCHAR, year_of_introduction VARCHAR, country_of_origin VARCHAR)", "question": "If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?" }
### QUESTION What is the event with a result of 3-2? ### CONTEXT CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR) ### ANSWER SELECT competition FROM table_name_40 WHERE result = "3-2"
{ "answer": "SELECT competition FROM table_name_40 WHERE result = \"3-2\"", "context": "CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR)", "question": "What is the event with a result of 3-2?" }
### QUESTION What event had a tko (punches) method and jason macdonald as the opponent? ### CONTEXT CREATE TABLE table_name_74 (event VARCHAR, method VARCHAR, opponent VARCHAR) ### ANSWER SELECT event FROM table_name_74 WHERE method = "tko (punches)" AND opponent = "jason macdonald"
{ "answer": "SELECT event FROM table_name_74 WHERE method = \"tko (punches)\" AND opponent = \"jason macdonald\"", "context": "CREATE TABLE table_name_74 (event VARCHAR, method VARCHAR, opponent VARCHAR)", "question": "What event had a tko (punches) method and jason macdonald as the opponent?" }
### QUESTION What year did Martina Navratilova win Wimbledon? ### CONTEXT CREATE TABLE table_2092557_12 (wimbledon VARCHAR, player VARCHAR) ### ANSWER SELECT wimbledon FROM table_2092557_12 WHERE player = "Martina Navratilova"
{ "answer": "SELECT wimbledon FROM table_2092557_12 WHERE player = \"Martina Navratilova\"", "context": "CREATE TABLE table_2092557_12 (wimbledon VARCHAR, player VARCHAR)", "question": "What year did Martina Navratilova win Wimbledon?" }
### QUESTION What is the frequency of number 3 with a bus station origin? ### CONTEXT CREATE TABLE table_name_33 (frequency VARCHAR, origin VARCHAR, number VARCHAR) ### ANSWER SELECT frequency FROM table_name_33 WHERE origin = "bus station" AND number = 3
{ "answer": "SELECT frequency FROM table_name_33 WHERE origin = \"bus station\" AND number = 3", "context": "CREATE TABLE table_name_33 (frequency VARCHAR, origin VARCHAR, number VARCHAR)", "question": "What is the frequency of number 3 with a bus station origin?" }
### QUESTION Where is Emerson Fittipaldi starting in Pole position? ### CONTEXT CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR) ### ANSWER SELECT city_location FROM table_name_60 WHERE pole_position = "emerson fittipaldi"
{ "answer": "SELECT city_location FROM table_name_60 WHERE pole_position = \"emerson fittipaldi\"", "context": "CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR)", "question": "Where is Emerson Fittipaldi starting in Pole position?" }
### QUESTION What is the document id and name with greatest number of paragraphs? ### CONTEXT CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR) ### ANSWER SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.document_id, T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)", "question": "What is the document id and name with greatest number of paragraphs?" }
### QUESTION How many games were played in park "Columbia Park" in 1907? ### CONTEXT CREATE TABLE park (park_id VARCHAR, park_name VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR) ### ANSWER SELECT COUNT(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'
{ "answer": "SELECT COUNT(*) FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 1907 AND T2.park_name = 'Columbia Park'", "context": "CREATE TABLE park (park_id VARCHAR, park_name VARCHAR); CREATE TABLE home_game (park_id VARCHAR, year VARCHAR)", "question": "How many games were played in park \"Columbia Park\" in 1907?" }
### QUESTION What is the Loan Club from Eng that ended on 22 February? ### CONTEXT CREATE TABLE table_name_57 (loan_club VARCHAR, country VARCHAR, ended VARCHAR) ### ANSWER SELECT loan_club FROM table_name_57 WHERE country = "eng" AND ended = "22 february"
{ "answer": "SELECT loan_club FROM table_name_57 WHERE country = \"eng\" AND ended = \"22 february\"", "context": "CREATE TABLE table_name_57 (loan_club VARCHAR, country VARCHAR, ended VARCHAR)", "question": "What is the Loan Club from Eng that ended on 22 February?" }
### QUESTION What is the competition that was at serravalle, san marino? ### CONTEXT CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR) ### ANSWER SELECT competition FROM table_name_80 WHERE venue = "serravalle, san marino"
{ "answer": "SELECT competition FROM table_name_80 WHERE venue = \"serravalle, san marino\"", "context": "CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR)", "question": "What is the competition that was at serravalle, san marino?" }
### QUESTION Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin ### CONTEXT CREATE TABLE table_name_18 (termination_of_mission VARCHAR, appointed_by VARCHAR, representative VARCHAR) ### ANSWER SELECT termination_of_mission FROM table_name_18 WHERE appointed_by = "woodrow wilson" AND representative = "benton mcmillin"
{ "answer": "SELECT termination_of_mission FROM table_name_18 WHERE appointed_by = \"woodrow wilson\" AND representative = \"benton mcmillin\"", "context": "CREATE TABLE table_name_18 (termination_of_mission VARCHAR, appointed_by VARCHAR, representative VARCHAR)", "question": "Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin" }
### QUESTION Which location has a date of may 21? ### CONTEXT CREATE TABLE table_name_95 (location VARCHAR, date VARCHAR) ### ANSWER SELECT location FROM table_name_95 WHERE date = "may 21"
{ "answer": "SELECT location FROM table_name_95 WHERE date = \"may 21\"", "context": "CREATE TABLE table_name_95 (location VARCHAR, date VARCHAR)", "question": "Which location has a date of may 21?" }
### QUESTION Which Body Length/mm has a Lead Pitch/mm smaller than 0.5? ### CONTEXT CREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER) ### ANSWER SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_pitch_mm < 0.5
{ "answer": "SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_pitch_mm < 0.5", "context": "CREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER)", "question": "Which Body Length/mm has a Lead Pitch/mm smaller than 0.5?" }
### QUESTION Who was the trainer with Robert Courtney was owner? ### CONTEXT CREATE TABLE table_name_8 (trainer VARCHAR, owner VARCHAR) ### ANSWER SELECT trainer FROM table_name_8 WHERE owner = "robert courtney"
{ "answer": "SELECT trainer FROM table_name_8 WHERE owner = \"robert courtney\"", "context": "CREATE TABLE table_name_8 (trainer VARCHAR, owner VARCHAR)", "question": "Who was the trainer with Robert Courtney was owner?" }
### QUESTION What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored? ### CONTEXT CREATE TABLE table_name_80 (all_bills_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR, all_amendments_sponsored VARCHAR, all_bills_sponsored VARCHAR) ### ANSWER SELECT COUNT(all_bills_cosponsored) FROM table_name_80 WHERE all_amendments_sponsored < 15 AND all_bills_sponsored = 6 AND all_amendments_cosponsored < 0
{ "answer": "SELECT COUNT(all_bills_cosponsored) FROM table_name_80 WHERE all_amendments_sponsored < 15 AND all_bills_sponsored = 6 AND all_amendments_cosponsored < 0", "context": "CREATE TABLE table_name_80 (all_bills_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR, all_amendments_sponsored VARCHAR, all_bills_sponsored VARCHAR)", "question": "What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?" }
### QUESTION Which Record has a Game larger than 15, and Points smaller than 31, and a November of 7? ### CONTEXT CREATE TABLE table_name_36 (record VARCHAR, november VARCHAR, game VARCHAR, points VARCHAR) ### ANSWER SELECT record FROM table_name_36 WHERE game > 15 AND points < 31 AND november = 7
{ "answer": "SELECT record FROM table_name_36 WHERE game > 15 AND points < 31 AND november = 7", "context": "CREATE TABLE table_name_36 (record VARCHAR, november VARCHAR, game VARCHAR, points VARCHAR)", "question": "Which Record has a Game larger than 15, and Points smaller than 31, and a November of 7?" }
### QUESTION What is the Senators' division record? ### CONTEXT CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR) ### ANSWER SELECT division_record FROM table_name_39 WHERE team = "senators"
{ "answer": "SELECT division_record FROM table_name_39 WHERE team = \"senators\"", "context": "CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR)", "question": "What is the Senators' division record?" }
### QUESTION Which Score in the final has an Outcome of winner, and a Date of 3 august 2013? ### CONTEXT CREATE TABLE table_name_31 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR) ### ANSWER SELECT score_in_the_final FROM table_name_31 WHERE outcome = "winner" AND date = "3 august 2013"
{ "answer": "SELECT score_in_the_final FROM table_name_31 WHERE outcome = \"winner\" AND date = \"3 august 2013\"", "context": "CREATE TABLE table_name_31 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)", "question": "Which Score in the final has an Outcome of winner, and a Date of 3 august 2013?" }
### QUESTION What is Area km 2, when Population is greater than 1,395? ### CONTEXT CREATE TABLE table_name_21 (area_km_2 INTEGER, population INTEGER) ### ANSWER SELECT MIN(area_km_2) FROM table_name_21 WHERE population > 1 OFFSET 395
{ "answer": "SELECT MIN(area_km_2) FROM table_name_21 WHERE population > 1 OFFSET 395", "context": "CREATE TABLE table_name_21 (area_km_2 INTEGER, population INTEGER)", "question": "What is Area km 2, when Population is greater than 1,395?" }
### QUESTION When 441st bs, 7th bw is the unit what is the b-52 model? ### CONTEXT CREATE TABLE table_18933037_3 (b_52_model VARCHAR, unit VARCHAR) ### ANSWER SELECT b_52_model FROM table_18933037_3 WHERE unit = "441st BS, 7th BW"
{ "answer": "SELECT b_52_model FROM table_18933037_3 WHERE unit = \"441st BS, 7th BW\"", "context": "CREATE TABLE table_18933037_3 (b_52_model VARCHAR, unit VARCHAR)", "question": "When 441st bs, 7th bw is the unit what is the b-52 model?" }
### QUESTION What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw? ### CONTEXT CREATE TABLE table_name_97 (points_difference VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR) ### ANSWER SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1
{ "answer": "SELECT points_difference FROM table_name_97 WHERE points > 2 AND lost < 3 AND drawn < 1", "context": "CREATE TABLE table_name_97 (points_difference VARCHAR, drawn VARCHAR, points VARCHAR, lost VARCHAR)", "question": "What is the difference associated with more than 2 points, fewer than 3 losses, and fewer than 1 draw?" }
### QUESTION Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3? ### CONTEXT CREATE TABLE table_name_10 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR) ### ANSWER SELECT location_attendance FROM table_name_10 WHERE high_assists = "luke ridnour (10)" AND date = "december 3"
{ "answer": "SELECT location_attendance FROM table_name_10 WHERE high_assists = \"luke ridnour (10)\" AND date = \"december 3\"", "context": "CREATE TABLE table_name_10 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)", "question": "Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?" }
### QUESTION how many types of organization were founded in san diego state university? ### CONTEXT CREATE TABLE table_2538117_2 (type VARCHAR, founding_university VARCHAR) ### ANSWER SELECT COUNT(type) FROM table_2538117_2 WHERE founding_university = "San Diego State University"
{ "answer": "SELECT COUNT(type) FROM table_2538117_2 WHERE founding_university = \"San Diego State University\"", "context": "CREATE TABLE table_2538117_2 (type VARCHAR, founding_university VARCHAR)", "question": "how many types of organization were founded in san diego state university? " }
### QUESTION Name the oberliga hessen for sv sandhausen and fsv salmrohr ### CONTEXT CREATE TABLE table_14242137_4 (oberliga_hessen VARCHAR, oberliga_baden_württemberg VARCHAR, oberliga_südwest VARCHAR) ### ANSWER SELECT oberliga_hessen FROM table_14242137_4 WHERE oberliga_baden_württemberg = "SV Sandhausen" AND oberliga_südwest = "FSV Salmrohr"
{ "answer": "SELECT oberliga_hessen FROM table_14242137_4 WHERE oberliga_baden_württemberg = \"SV Sandhausen\" AND oberliga_südwest = \"FSV Salmrohr\"", "context": "CREATE TABLE table_14242137_4 (oberliga_hessen VARCHAR, oberliga_baden_württemberg VARCHAR, oberliga_südwest VARCHAR)", "question": "Name the oberliga hessen for sv sandhausen and fsv salmrohr" }
### QUESTION What album was the song It's going so badly on? ### CONTEXT CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR) ### ANSWER SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = "It's Going So Badly"
{ "answer": "SELECT album_s_ FROM table_23667534_1 WHERE song_s__title = \"It's Going So Badly\"", "context": "CREATE TABLE table_23667534_1 (album_s_ VARCHAR, song_s__title VARCHAR)", "question": "What album was the song It's going so badly on?" }