text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
What was the vote tally on the episode aired May 5, 2005?
### CONTEXT
CREATE TABLE table_1272844_2 (vote VARCHAR, air_date VARCHAR)
### ANSWER
SELECT vote FROM table_1272844_2 WHERE air_date = "May 5, 2005" | {
"answer": "SELECT vote FROM table_1272844_2 WHERE air_date = \"May 5, 2005\"",
"context": "CREATE TABLE table_1272844_2 (vote VARCHAR, air_date VARCHAR)",
"question": "What was the vote tally on the episode aired May 5, 2005?"
} |
### QUESTION
Which federal state has 6 representatives of national average?
### CONTEXT
CREATE TABLE table_name_3 (federal_state VARCHAR, representatives_of_national_average VARCHAR)
### ANSWER
SELECT federal_state FROM table_name_3 WHERE representatives_of_national_average = "6" | {
"answer": "SELECT federal_state FROM table_name_3 WHERE representatives_of_national_average = \"6\"",
"context": "CREATE TABLE table_name_3 (federal_state VARCHAR, representatives_of_national_average VARCHAR)",
"question": "Which federal state has 6 representatives of national average?"
} |
### QUESTION
When gaoliang 高涼 is the commandery what is the commandery capital?
### CONTEXT
CREATE TABLE table_278229_1 (commandery VARCHAR)
### ANSWER
SELECT commandery AS capital FROM table_278229_1 WHERE commandery = "Gaoliang 高涼" | {
"answer": "SELECT commandery AS capital FROM table_278229_1 WHERE commandery = \"Gaoliang 高涼\"",
"context": "CREATE TABLE table_278229_1 (commandery VARCHAR)",
"question": "When gaoliang 高涼 is the commandery what is the commandery capital?"
} |
### QUESTION
Show the names of editors that are on the committee of journals with sales bigger than 3000.
### CONTEXT
CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER)
### ANSWER
SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000 | {
"answer": "SELECT T2.Name FROM journal_committee AS T1 JOIN editor AS T2 ON T1.Editor_ID = T2.Editor_ID JOIN journal AS T3 ON T1.Journal_ID = T3.Journal_ID WHERE T3.Sales > 3000",
"context": "CREATE TABLE journal_committee (Editor_ID VARCHAR, Journal_ID VARCHAR); CREATE TABLE editor (Name VARCHAR, Editor_ID VARCHAR); CREATE TABLE journal (Journal_ID VARCHAR, Sales INTEGER)",
"question": "Show the names of editors that are on the committee of journals with sales bigger than 3000."
} |
### QUESTION
What is surfside beach, SC frequency?
### CONTEXT
CREATE TABLE table_name_79 (frequency_mhz VARCHAR, city_of_license VARCHAR)
### ANSWER
SELECT frequency_mhz FROM table_name_79 WHERE city_of_license = "surfside beach, sc" | {
"answer": "SELECT frequency_mhz FROM table_name_79 WHERE city_of_license = \"surfside beach, sc\"",
"context": "CREATE TABLE table_name_79 (frequency_mhz VARCHAR, city_of_license VARCHAR)",
"question": "What is surfside beach, SC frequency?"
} |
### QUESTION
WHAT TEAM CLASSIFIED IN THE STAGE WHERE BRADLEY WIGGINS WON THE POINTS CLASSIFICATION ?
### CONTEXT
CREATE TABLE table_11667521_17 (team_classification VARCHAR, points_classification VARCHAR)
### ANSWER
SELECT team_classification FROM table_11667521_17 WHERE points_classification = "Bradley Wiggins" | {
"answer": "SELECT team_classification FROM table_11667521_17 WHERE points_classification = \"Bradley Wiggins\"",
"context": "CREATE TABLE table_11667521_17 (team_classification VARCHAR, points_classification VARCHAR)",
"question": "WHAT TEAM CLASSIFIED IN THE STAGE WHERE BRADLEY WIGGINS WON THE POINTS CLASSIFICATION ?"
} |
### QUESTION
What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?
### CONTEXT
CREATE TABLE table_name_40 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)
### ANSWER
SELECT MAX(first_elected) FROM table_name_40 WHERE results = "lost re-election democratic gain" AND incumbent = "john hostettler" | {
"answer": "SELECT MAX(first_elected) FROM table_name_40 WHERE results = \"lost re-election democratic gain\" AND incumbent = \"john hostettler\"",
"context": "CREATE TABLE table_name_40 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)",
"question": "What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?"
} |
### QUESTION
When is the Opponent of new england patriots?
### CONTEXT
CREATE TABLE table_name_3 (time___et__ VARCHAR, opponent VARCHAR)
### ANSWER
SELECT time___et__ FROM table_name_3 WHERE opponent = "new england patriots" | {
"answer": "SELECT time___et__ FROM table_name_3 WHERE opponent = \"new england patriots\"",
"context": "CREATE TABLE table_name_3 (time___et__ VARCHAR, opponent VARCHAR)",
"question": "When is the Opponent of new england patriots?"
} |
### QUESTION
How many Attendance has a Opponent of west bromwich albion, and a Result of 3 – 3, and a Match larger than 20?
### CONTEXT
CREATE TABLE table_name_79 (attendance INTEGER, match VARCHAR, opponent VARCHAR, result VARCHAR)
### ANSWER
SELECT SUM(attendance) FROM table_name_79 WHERE opponent = "west bromwich albion" AND result = "3 – 3" AND match > 20 | {
"answer": "SELECT SUM(attendance) FROM table_name_79 WHERE opponent = \"west bromwich albion\" AND result = \"3 – 3\" AND match > 20",
"context": "CREATE TABLE table_name_79 (attendance INTEGER, match VARCHAR, opponent VARCHAR, result VARCHAR)",
"question": "How many Attendance has a Opponent of west bromwich albion, and a Result of 3 – 3, and a Match larger than 20?"
} |
### QUESTION
How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?
### CONTEXT
CREATE TABLE table_name_19 (south_asians_2011 VARCHAR, province VARCHAR, south_asians_2001 VARCHAR)
### ANSWER
SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = "quebec" AND south_asians_2001 < 59 OFFSET 510 | {
"answer": "SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = \"quebec\" AND south_asians_2001 < 59 OFFSET 510",
"context": "CREATE TABLE table_name_19 (south_asians_2011 VARCHAR, province VARCHAR, south_asians_2001 VARCHAR)",
"question": "How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?"
} |
### QUESTION
What's the authority when the roll is less than 234 for the massey east area?
### CONTEXT
CREATE TABLE table_name_79 (authority VARCHAR, roll VARCHAR, area VARCHAR)
### ANSWER
SELECT authority FROM table_name_79 WHERE roll < 234 AND area = "massey east" | {
"answer": "SELECT authority FROM table_name_79 WHERE roll < 234 AND area = \"massey east\"",
"context": "CREATE TABLE table_name_79 (authority VARCHAR, roll VARCHAR, area VARCHAR)",
"question": "What's the authority when the roll is less than 234 for the massey east area?"
} |
### QUESTION
What is the name of UMass Boston's softball stadium?
### CONTEXT
CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR)
### ANSWER
SELECT softball_stadium FROM table_1974545_3 WHERE school = "UMass Boston" | {
"answer": "SELECT softball_stadium FROM table_1974545_3 WHERE school = \"UMass Boston\"",
"context": "CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR)",
"question": "What is the name of UMass Boston's softball stadium?"
} |
### QUESTION
What is the highest round that has a draftee from Washington State University?
### CONTEXT
CREATE TABLE table_name_60 (round INTEGER, school VARCHAR)
### ANSWER
SELECT MAX(round) FROM table_name_60 WHERE school = "washington state university" | {
"answer": "SELECT MAX(round) FROM table_name_60 WHERE school = \"washington state university\"",
"context": "CREATE TABLE table_name_60 (round INTEGER, school VARCHAR)",
"question": "What is the highest round that has a draftee from Washington State University?"
} |
### QUESTION
What is the 2007 estimate for tulsa-bartlesville, ok csa?
### CONTEXT
CREATE TABLE table_12720275_1 (combined_statistical_area__or_metropolitan_statistical_area_if_noted_ VARCHAR)
### ANSWER
SELECT 2007 AS _estimate FROM table_12720275_1 WHERE combined_statistical_area__or_metropolitan_statistical_area_if_noted_ = "Tulsa-Bartlesville, OK CSA" | {
"answer": "SELECT 2007 AS _estimate FROM table_12720275_1 WHERE combined_statistical_area__or_metropolitan_statistical_area_if_noted_ = \"Tulsa-Bartlesville, OK CSA\"",
"context": "CREATE TABLE table_12720275_1 (combined_statistical_area__or_metropolitan_statistical_area_if_noted_ VARCHAR)",
"question": "What is the 2007 estimate for tulsa-bartlesville, ok csa?"
} |
### QUESTION
What is the score of the match on November 15, 2011?
### CONTEXT
CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR)
### ANSWER
SELECT score FROM table_name_44 WHERE date = "november 15, 2011" | {
"answer": "SELECT score FROM table_name_44 WHERE date = \"november 15, 2011\"",
"context": "CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR)",
"question": "What is the score of the match on November 15, 2011?"
} |
### QUESTION
What is the class of the qb, Josh Riddell?
### CONTEXT
CREATE TABLE table_name_45 (class VARCHAR, position VARCHAR, name VARCHAR)
### ANSWER
SELECT class FROM table_name_45 WHERE position = "qb" AND name = "josh riddell" | {
"answer": "SELECT class FROM table_name_45 WHERE position = \"qb\" AND name = \"josh riddell\"",
"context": "CREATE TABLE table_name_45 (class VARCHAR, position VARCHAR, name VARCHAR)",
"question": "What is the class of the qb, Josh Riddell?"
} |
### QUESTION
What year had the category of best international newcomer?
### CONTEXT
CREATE TABLE table_name_53 (year VARCHAR, category VARCHAR)
### ANSWER
SELECT COUNT(year) FROM table_name_53 WHERE category = "best international newcomer" | {
"answer": "SELECT COUNT(year) FROM table_name_53 WHERE category = \"best international newcomer\"",
"context": "CREATE TABLE table_name_53 (year VARCHAR, category VARCHAR)",
"question": "What year had the category of best international newcomer?"
} |
### QUESTION
What episode number has an audience share of 10%?
### CONTEXT
CREATE TABLE table_name_80 (episode_number VARCHAR, audience_share__average_ VARCHAR)
### ANSWER
SELECT COUNT(episode_number) FROM table_name_80 WHERE audience_share__average_ = "10%" | {
"answer": "SELECT COUNT(episode_number) FROM table_name_80 WHERE audience_share__average_ = \"10%\"",
"context": "CREATE TABLE table_name_80 (episode_number VARCHAR, audience_share__average_ VARCHAR)",
"question": "What episode number has an audience share of 10%?"
} |
### QUESTION
When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?
### CONTEXT
CREATE TABLE table_29289372_1 (population__2010_ VARCHAR, income_classification VARCHAR, city_municipality VARCHAR)
### ANSWER
SELECT COUNT(population__2010_) FROM table_29289372_1 WHERE income_classification = "1st Class" AND city_municipality = "Itogon, Benguet" | {
"answer": "SELECT COUNT(population__2010_) FROM table_29289372_1 WHERE income_classification = \"1st Class\" AND city_municipality = \"Itogon, Benguet\"",
"context": "CREATE TABLE table_29289372_1 (population__2010_ VARCHAR, income_classification VARCHAR, city_municipality VARCHAR)",
"question": "When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?"
} |
### QUESTION
What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?
### CONTEXT
CREATE TABLE table_name_77 (league_cup INTEGER, total VARCHAR, fa_cup VARCHAR, premier_league VARCHAR)
### ANSWER
SELECT MAX(league_cup) FROM table_name_77 WHERE fa_cup > 0 AND premier_league < 34 AND total = 11 | {
"answer": "SELECT MAX(league_cup) FROM table_name_77 WHERE fa_cup > 0 AND premier_league < 34 AND total = 11",
"context": "CREATE TABLE table_name_77 (league_cup INTEGER, total VARCHAR, fa_cup VARCHAR, premier_league VARCHAR)",
"question": "What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?"
} |
### QUESTION
What is the average number of goals with more than 9 points, less than 14 goals against, and a goal difference less than 17?
### CONTEXT
CREATE TABLE table_name_81 (goals_for INTEGER, goal_difference VARCHAR, points VARCHAR, goals_against VARCHAR)
### ANSWER
SELECT AVG(goals_for) FROM table_name_81 WHERE points > 9 AND goals_against < 14 AND goal_difference < 17 | {
"answer": "SELECT AVG(goals_for) FROM table_name_81 WHERE points > 9 AND goals_against < 14 AND goal_difference < 17",
"context": "CREATE TABLE table_name_81 (goals_for INTEGER, goal_difference VARCHAR, points VARCHAR, goals_against VARCHAR)",
"question": "What is the average number of goals with more than 9 points, less than 14 goals against, and a goal difference less than 17?"
} |
### QUESTION
List the top 10 customers by total gross sales. List customers' first and last name and total gross sales.
### CONTEXT
CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10 | {
"answer": "SELECT T1.first_name, T1.last_name, SUM(T2.total) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY SUM(T2.total) DESC LIMIT 10",
"context": "CREATE TABLE invoices (total INTEGER, customer_id VARCHAR); CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR)",
"question": "List the top 10 customers by total gross sales. List customers' first and last name and total gross sales."
} |
### QUESTION
What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?
### CONTEXT
CREATE TABLE table_name_2 (attendance INTEGER, opponent VARCHAR, opponents VARCHAR)
### ANSWER
SELECT AVG(attendance) FROM table_name_2 WHERE opponent = "pittsburgh steelers" AND opponents > 0 | {
"answer": "SELECT AVG(attendance) FROM table_name_2 WHERE opponent = \"pittsburgh steelers\" AND opponents > 0",
"context": "CREATE TABLE table_name_2 (attendance INTEGER, opponent VARCHAR, opponents VARCHAR)",
"question": "What is the average attendance for games against the Pittsburgh Steelers when the opponents scored more than 0 points?"
} |
### QUESTION
Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents?
### CONTEXT
CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
### ANSWER
SELECT attendance FROM table_name_39 WHERE week < 16 AND opponent = "washington redskins" | {
"answer": "SELECT attendance FROM table_name_39 WHERE week < 16 AND opponent = \"washington redskins\"",
"context": "CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)",
"question": "Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents?"
} |
### QUESTION
what's the shigella with yersinia being yscp
### CONTEXT
CREATE TABLE table_10321124_1 (shigella VARCHAR, yersinia VARCHAR)
### ANSWER
SELECT shigella FROM table_10321124_1 WHERE yersinia = "YscP" | {
"answer": "SELECT shigella FROM table_10321124_1 WHERE yersinia = \"YscP\"",
"context": "CREATE TABLE table_10321124_1 (shigella VARCHAR, yersinia VARCHAR)",
"question": "what's the shigella with yersinia being yscp"
} |
### QUESTION
What is the boat builder for a boat built in 1910/11 and a number of 39?
### CONTEXT
CREATE TABLE table_name_42 (boat_builder VARCHAR, year_built VARCHAR, number VARCHAR)
### ANSWER
SELECT boat_builder FROM table_name_42 WHERE year_built = "1910/11" AND number = 39 | {
"answer": "SELECT boat_builder FROM table_name_42 WHERE year_built = \"1910/11\" AND number = 39",
"context": "CREATE TABLE table_name_42 (boat_builder VARCHAR, year_built VARCHAR, number VARCHAR)",
"question": "What is the boat builder for a boat built in 1910/11 and a number of 39?"
} |
### QUESTION
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?
### CONTEXT
CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)
### ANSWER
SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12" | {
"answer": "SELECT winner FROM table_name_85 WHERE points_classification = \"francesco moser\" AND stage = \"12\"",
"context": "CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)",
"question": "Who was the winner of Stage 12 with a Points Classification of Francesco Moser?"
} |
### QUESTION
What manufacturer has a year made of 1923?
### CONTEXT
CREATE TABLE table_name_73 (manufacturer VARCHAR, year_made VARCHAR)
### ANSWER
SELECT manufacturer FROM table_name_73 WHERE year_made = "1923" | {
"answer": "SELECT manufacturer FROM table_name_73 WHERE year_made = \"1923\"",
"context": "CREATE TABLE table_name_73 (manufacturer VARCHAR, year_made VARCHAR)",
"question": "What manufacturer has a year made of 1923?"
} |
### QUESTION
What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?
### CONTEXT
CREATE TABLE table_name_90 (location VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)
### ANSWER
SELECT location FROM table_name_90 WHERE winner = "baltimore colts" AND year < 1972 AND result = "14-6" | {
"answer": "SELECT location FROM table_name_90 WHERE winner = \"baltimore colts\" AND year < 1972 AND result = \"14-6\"",
"context": "CREATE TABLE table_name_90 (location VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)",
"question": "What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?"
} |
### QUESTION
What "party" was re-elected in district South Carolina 7?
### CONTEXT
CREATE TABLE table_2668243_22 (party VARCHAR, result VARCHAR, district VARCHAR)
### ANSWER
SELECT party FROM table_2668243_22 WHERE result = "Re-elected" AND district = "South Carolina 7" | {
"answer": "SELECT party FROM table_2668243_22 WHERE result = \"Re-elected\" AND district = \"South Carolina 7\"",
"context": "CREATE TABLE table_2668243_22 (party VARCHAR, result VARCHAR, district VARCHAR)",
"question": "What \"party\" was re-elected in district South Carolina 7?"
} |
### QUESTION
What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?
### CONTEXT
CREATE TABLE table_229059_2 (winners_share__ INTEGER, champion VARCHAR)
### ANSWER
SELECT MIN(winners_share__) AS $_ FROM table_229059_2 WHERE champion = "Se Ri Pak (2)" | {
"answer": "SELECT MIN(winners_share__) AS $_ FROM table_229059_2 WHERE champion = \"Se Ri Pak (2)\"",
"context": "CREATE TABLE table_229059_2 (winners_share__ INTEGER, champion VARCHAR)",
"question": "What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?"
} |
### QUESTION
What was the maximum speed for straight-4, 1.466 cc Type r 150?
### CONTEXT
CREATE TABLE table_name_60 (vmax VARCHAR, type VARCHAR, cylinder VARCHAR, capacity VARCHAR)
### ANSWER
SELECT vmax FROM table_name_60 WHERE cylinder = "straight-4" AND capacity = "1.466 cc" AND type = "r 150" | {
"answer": "SELECT vmax FROM table_name_60 WHERE cylinder = \"straight-4\" AND capacity = \"1.466 cc\" AND type = \"r 150\"",
"context": "CREATE TABLE table_name_60 (vmax VARCHAR, type VARCHAR, cylinder VARCHAR, capacity VARCHAR)",
"question": "What was the maximum speed for straight-4, 1.466 cc Type r 150?"
} |
### QUESTION
What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?
### CONTEXT
CREATE TABLE table_name_12 (sfc_in_g__kn INTEGER, engine_type VARCHAR, sfc_in_lb__lbf·h_ VARCHAR)
### ANSWER
SELECT MAX(sfc_in_g__kn) AS ·s_ FROM table_name_12 WHERE engine_type = "rolls-royce/snecma olympus 593" AND sfc_in_lb__lbf·h_ < 1.195 | {
"answer": "SELECT MAX(sfc_in_g__kn) AS ·s_ FROM table_name_12 WHERE engine_type = \"rolls-royce/snecma olympus 593\" AND sfc_in_lb__lbf·h_ < 1.195",
"context": "CREATE TABLE table_name_12 (sfc_in_g__kn INTEGER, engine_type VARCHAR, sfc_in_lb__lbf·h_ VARCHAR)",
"question": "What is the highest SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?"
} |
### QUESTION
In what year was the republican incumbent from Kentucky 2 district first elected?
### CONTEXT
CREATE TABLE table_name_37 (first_elected INTEGER, party VARCHAR, district VARCHAR)
### ANSWER
SELECT SUM(first_elected) FROM table_name_37 WHERE party = "republican" AND district = "kentucky 2" | {
"answer": "SELECT SUM(first_elected) FROM table_name_37 WHERE party = \"republican\" AND district = \"kentucky 2\"",
"context": "CREATE TABLE table_name_37 (first_elected INTEGER, party VARCHAR, district VARCHAR)",
"question": "In what year was the republican incumbent from Kentucky 2 district first elected?"
} |
### QUESTION
Who is themens doubles when the mens singles is flemming delfs?
### CONTEXT
CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
### ANSWER
SELECT mens_doubles FROM table_12171145_1 WHERE mens_singles = "Flemming Delfs" | {
"answer": "SELECT mens_doubles FROM table_12171145_1 WHERE mens_singles = \"Flemming Delfs\"",
"context": "CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, mens_singles VARCHAR)",
"question": "Who is themens doubles when the mens singles is flemming delfs?"
} |
### QUESTION
What are the countries where either English or Dutch is the official language ?
### CONTEXT
CREATE TABLE countrylanguage (countrycode VARCHAR, language VARCHAR); CREATE TABLE country (name VARCHAR, code VARCHAR)
### ANSWER
SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = "english" AND isofficial = "t" UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = "dutch" AND isofficial = "t" | {
"answer": "SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = \"english\" AND isofficial = \"t\" UNION SELECT t1.name FROM country AS t1 JOIN countrylanguage AS t2 ON t1.code = t2.countrycode WHERE t2.language = \"dutch\" AND isofficial = \"t\"",
"context": "CREATE TABLE countrylanguage (countrycode VARCHAR, language VARCHAR); CREATE TABLE country (name VARCHAR, code VARCHAR)",
"question": "What are the countries where either English or Dutch is the official language ?"
} |
### QUESTION
Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?
### CONTEXT
CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)
### ANSWER
SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1 | {
"answer": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1",
"context": "CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)",
"question": "Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?"
} |
### QUESTION
What away team is playing at the Brunswick Street Oval Venue?
### CONTEXT
CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)
### ANSWER
SELECT away_team FROM table_name_22 WHERE venue = "brunswick street oval" | {
"answer": "SELECT away_team FROM table_name_22 WHERE venue = \"brunswick street oval\"",
"context": "CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)",
"question": "What away team is playing at the Brunswick Street Oval Venue?"
} |
### QUESTION
Which episode in year 2003 that have Gary Murphy and Neil Thompson?
### CONTEXT
CREATE TABLE table_name_10 (episode VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
### ANSWER
SELECT episode FROM table_name_10 WHERE nominee_s_ = "gary murphy and neil thompson" AND year = 2003 | {
"answer": "SELECT episode FROM table_name_10 WHERE nominee_s_ = \"gary murphy and neil thompson\" AND year = 2003",
"context": "CREATE TABLE table_name_10 (episode VARCHAR, nominee_s_ VARCHAR, year VARCHAR)",
"question": "Which episode in year 2003 that have Gary Murphy and Neil Thompson?"
} |
### QUESTION
Name the population density people where population % eu for 1.7%
### CONTEXT
CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR)
### ANSWER
SELECT COUNT(pop_density_people_km_2) FROM table_1606824_1 WHERE population__percentage_of_eu = "1.7%" | {
"answer": "SELECT COUNT(pop_density_people_km_2) FROM table_1606824_1 WHERE population__percentage_of_eu = \"1.7%\"",
"context": "CREATE TABLE table_1606824_1 (pop_density_people_km_2 VARCHAR, population__percentage_of_eu VARCHAR)",
"question": "Name the population density people where population % eu for 1.7%"
} |
### QUESTION
What year was incumbent william f. stevenson first elected?
### CONTEXT
CREATE TABLE table_1342451_38 (first_elected VARCHAR, incumbent VARCHAR)
### ANSWER
SELECT first_elected FROM table_1342451_38 WHERE incumbent = "William F. Stevenson" | {
"answer": "SELECT first_elected FROM table_1342451_38 WHERE incumbent = \"William F. Stevenson\"",
"context": "CREATE TABLE table_1342451_38 (first_elected VARCHAR, incumbent VARCHAR)",
"question": "What year was incumbent william f. stevenson first elected?"
} |
### QUESTION
What is the date the high rebounds were by lamarcus aldridge (6)?
### CONTEXT
CREATE TABLE table_27734769_8 (date VARCHAR, high_rebounds VARCHAR)
### ANSWER
SELECT date FROM table_27734769_8 WHERE high_rebounds = "LaMarcus Aldridge (6)" | {
"answer": "SELECT date FROM table_27734769_8 WHERE high_rebounds = \"LaMarcus Aldridge (6)\"",
"context": "CREATE TABLE table_27734769_8 (date VARCHAR, high_rebounds VARCHAR)",
"question": "What is the date the high rebounds were by lamarcus aldridge (6)?"
} |
### QUESTION
Who is the incumbent that is listed with the candidates listed as marilyn lloyd (d) 57.4% harold w. coker (r) 42.6%?
### CONTEXT
CREATE TABLE table_1341577_43 (incumbent VARCHAR, candidates VARCHAR)
### ANSWER
SELECT incumbent FROM table_1341577_43 WHERE candidates = "Marilyn Lloyd (D) 57.4% Harold W. Coker (R) 42.6%" | {
"answer": "SELECT incumbent FROM table_1341577_43 WHERE candidates = \"Marilyn Lloyd (D) 57.4% Harold W. Coker (R) 42.6%\"",
"context": "CREATE TABLE table_1341577_43 (incumbent VARCHAR, candidates VARCHAR)",
"question": "Who is the incumbent that is listed with the candidates listed as marilyn lloyd (d) 57.4% harold w. coker (r) 42.6%?"
} |
### QUESTION
Name the least fa cup goals with fa cup apps being 2 and fw
### CONTEXT
CREATE TABLE table_27086613_5 (fa_cup_goals INTEGER, fa_cup_apps VARCHAR, position VARCHAR)
### ANSWER
SELECT MIN(fa_cup_goals) FROM table_27086613_5 WHERE fa_cup_apps = 2 AND position = "FW" | {
"answer": "SELECT MIN(fa_cup_goals) FROM table_27086613_5 WHERE fa_cup_apps = 2 AND position = \"FW\"",
"context": "CREATE TABLE table_27086613_5 (fa_cup_goals INTEGER, fa_cup_apps VARCHAR, position VARCHAR)",
"question": "Name the least fa cup goals with fa cup apps being 2 and fw "
} |
### QUESTION
What place had a score smaller than 74 and a par of e?
### CONTEXT
CREATE TABLE table_name_43 (place VARCHAR, score VARCHAR, to_par VARCHAR)
### ANSWER
SELECT place FROM table_name_43 WHERE score < 74 AND to_par = "e" | {
"answer": "SELECT place FROM table_name_43 WHERE score < 74 AND to_par = \"e\"",
"context": "CREATE TABLE table_name_43 (place VARCHAR, score VARCHAR, to_par VARCHAR)",
"question": "What place had a score smaller than 74 and a par of e?"
} |
### QUESTION
What name was proposed on 09/08/1983 in hillsborough county?
### CONTEXT
CREATE TABLE table_name_73 (name VARCHAR, county VARCHAR, proposed VARCHAR)
### ANSWER
SELECT name FROM table_name_73 WHERE county = "hillsborough" AND proposed = "09/08/1983" | {
"answer": "SELECT name FROM table_name_73 WHERE county = \"hillsborough\" AND proposed = \"09/08/1983\"",
"context": "CREATE TABLE table_name_73 (name VARCHAR, county VARCHAR, proposed VARCHAR)",
"question": "What name was proposed on 09/08/1983 in hillsborough county?"
} |
### QUESTION
What is the density of the common with an area of 20.4 km^2?
### CONTEXT
CREATE TABLE table_1449176_1 (density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR)
### ANSWER
SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE area__km_2__ = "20.4" | {
"answer": "SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE area__km_2__ = \"20.4\"",
"context": "CREATE TABLE table_1449176_1 (density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR)",
"question": "What is the density of the common with an area of 20.4 km^2?"
} |
### QUESTION
Which Pick # has a College of concordia?
### CONTEXT
CREATE TABLE table_name_45 (pick__number INTEGER, college VARCHAR)
### ANSWER
SELECT MAX(pick__number) FROM table_name_45 WHERE college = "concordia" | {
"answer": "SELECT MAX(pick__number) FROM table_name_45 WHERE college = \"concordia\"",
"context": "CREATE TABLE table_name_45 (pick__number INTEGER, college VARCHAR)",
"question": "Which Pick # has a College of concordia?"
} |
### QUESTION
What prize money has michelob light challenge of champions as the commercial name?
### CONTEXT
CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR)
### ANSWER
SELECT prize_money FROM table_name_56 WHERE commercial_name = "michelob light challenge of champions" | {
"answer": "SELECT prize_money FROM table_name_56 WHERE commercial_name = \"michelob light challenge of champions\"",
"context": "CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR)",
"question": "What prize money has michelob light challenge of champions as the commercial name?"
} |
### QUESTION
What is the total number of runs when the average was less than 31.25 and there were fewer than 24 innings?
### CONTEXT
CREATE TABLE table_name_51 (runs VARCHAR, average VARCHAR, innings VARCHAR)
### ANSWER
SELECT COUNT(runs) FROM table_name_51 WHERE average > 31.25 AND innings < 24 | {
"answer": "SELECT COUNT(runs) FROM table_name_51 WHERE average > 31.25 AND innings < 24",
"context": "CREATE TABLE table_name_51 (runs VARCHAR, average VARCHAR, innings VARCHAR)",
"question": "What is the total number of runs when the average was less than 31.25 and there were fewer than 24 innings?"
} |
### QUESTION
How many documents were shipped by USPS?
### CONTEXT
CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS" | {
"answer": "SELECT COUNT(*) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\"",
"context": "CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR)",
"question": "How many documents were shipped by USPS?"
} |
### QUESTION
Who had the lowest field goals but had 10 points and more than 2 touchdowns?
### CONTEXT
CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR)
### ANSWER
SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 2 | {
"answer": "SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 2",
"context": "CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR)",
"question": "Who had the lowest field goals but had 10 points and more than 2 touchdowns?"
} |
### QUESTION
What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?
### CONTEXT
CREATE TABLE table_name_41 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR)
### ANSWER
SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = "रविवार ravivār" AND tuesday_mangala__mars_ = "मंगळवार mangaḷavār" | {
"answer": "SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = \"रविवार ravivār\" AND tuesday_mangala__mars_ = \"मंगळवार mangaḷavār\"",
"context": "CREATE TABLE table_name_41 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR)",
"question": "What is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?"
} |
### QUESTION
Name the total number of director for vesničko má středisková
### CONTEXT
CREATE TABLE table_23141790_1 (director VARCHAR, original_title VARCHAR)
### ANSWER
SELECT COUNT(director) FROM table_23141790_1 WHERE original_title = "Vesničko má středisková" | {
"answer": "SELECT COUNT(director) FROM table_23141790_1 WHERE original_title = \"Vesničko má středisková\"",
"context": "CREATE TABLE table_23141790_1 (director VARCHAR, original_title VARCHAR)",
"question": "Name the total number of director for vesničko má středisková"
} |
### QUESTION
In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?
### CONTEXT
CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR)
### ANSWER
SELECT MIN(year) FROM table_22514845_4 WHERE reporters = "Howard Cosell and Jack Whitaker" AND s_analyst = "Bill Hartack" | {
"answer": "SELECT MIN(year) FROM table_22514845_4 WHERE reporters = \"Howard Cosell and Jack Whitaker\" AND s_analyst = \"Bill Hartack\"",
"context": "CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR)",
"question": "In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack?"
} |
### QUESTION
what is the right ascension (j2000) when the constellation is sextans and the declination (j2000) is °28′01″?
### CONTEXT
CREATE TABLE table_name_53 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR)
### ANSWER
SELECT right_ascension___j2000__ FROM table_name_53 WHERE constellation = "sextans" AND declination___j2000__ = "°28′01″" | {
"answer": "SELECT right_ascension___j2000__ FROM table_name_53 WHERE constellation = \"sextans\" AND declination___j2000__ = \"°28′01″\"",
"context": "CREATE TABLE table_name_53 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR)",
"question": "what is the right ascension (j2000) when the constellation is sextans and the declination (j2000) is °28′01″?"
} |
### QUESTION
Which elevation groundstation has a capacity in persons/hour larger than 820, and a Name or route of lager 1, and a slope length smaller than 336?
### CONTEXT
CREATE TABLE table_name_68 (elevation_groundstation INTEGER, slope_length VARCHAR, capacity_in_persons_hour VARCHAR, name_or_route VARCHAR)
### ANSWER
SELECT AVG(elevation_groundstation) FROM table_name_68 WHERE capacity_in_persons_hour > 820 AND name_or_route = "lager 1" AND slope_length < 336 | {
"answer": "SELECT AVG(elevation_groundstation) FROM table_name_68 WHERE capacity_in_persons_hour > 820 AND name_or_route = \"lager 1\" AND slope_length < 336",
"context": "CREATE TABLE table_name_68 (elevation_groundstation INTEGER, slope_length VARCHAR, capacity_in_persons_hour VARCHAR, name_or_route VARCHAR)",
"question": "Which elevation groundstation has a capacity in persons/hour larger than 820, and a Name or route of lager 1, and a slope length smaller than 336?"
} |
### QUESTION
How many countries does honoree Roberto de Vicenzo represent?
### CONTEXT
CREATE TABLE table_1515346_2 (country VARCHAR, honoree_s_ VARCHAR)
### ANSWER
SELECT COUNT(country) FROM table_1515346_2 WHERE honoree_s_ = "Roberto De Vicenzo" | {
"answer": "SELECT COUNT(country) FROM table_1515346_2 WHERE honoree_s_ = \"Roberto De Vicenzo\"",
"context": "CREATE TABLE table_1515346_2 (country VARCHAR, honoree_s_ VARCHAR)",
"question": "How many countries does honoree Roberto de Vicenzo represent?"
} |
### QUESTION
Who was the away team in a tie no larger than 16 with forest green rovers at home?
### CONTEXT
CREATE TABLE table_name_95 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)
### ANSWER
SELECT away_team FROM table_name_95 WHERE tie_no > 16 AND home_team = "forest green rovers" | {
"answer": "SELECT away_team FROM table_name_95 WHERE tie_no > 16 AND home_team = \"forest green rovers\"",
"context": "CREATE TABLE table_name_95 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR)",
"question": "Who was the away team in a tie no larger than 16 with forest green rovers at home?"
} |
### QUESTION
What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?
### CONTEXT
CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
### ANSWER
SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2–6, 0–6" | {
"answer": "SELECT date FROM table_name_49 WHERE opponent_in_the_final = \"steffi graf\" AND score_in_the_final = \"2–6, 0–6\"",
"context": "CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)",
"question": "What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?"
} |
### QUESTION
Which team was at Corio Oval on 4 June 1927?
### CONTEXT
CREATE TABLE table_name_77 (away_team VARCHAR, date VARCHAR, venue VARCHAR)
### ANSWER
SELECT away_team FROM table_name_77 WHERE date = "4 june 1927" AND venue = "corio oval" | {
"answer": "SELECT away_team FROM table_name_77 WHERE date = \"4 june 1927\" AND venue = \"corio oval\"",
"context": "CREATE TABLE table_name_77 (away_team VARCHAR, date VARCHAR, venue VARCHAR)",
"question": "Which team was at Corio Oval on 4 June 1927?"
} |
### QUESTION
Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?
### CONTEXT
CREATE TABLE table_name_77 (party VARCHAR, years_in_assembly VARCHAR, name VARCHAR)
### ANSWER
SELECT party FROM table_name_77 WHERE years_in_assembly = "2008–present" AND name = "tom ammiano" | {
"answer": "SELECT party FROM table_name_77 WHERE years_in_assembly = \"2008–present\" AND name = \"tom ammiano\"",
"context": "CREATE TABLE table_name_77 (party VARCHAR, years_in_assembly VARCHAR, name VARCHAR)",
"question": "Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?"
} |
### QUESTION
Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?
### CONTEXT
CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR)
### ANSWER
SELECT race_caller FROM table_22514845_4 WHERE s_host = "Jim McKay and Al Michaels" AND year = 1987 | {
"answer": "SELECT race_caller FROM table_22514845_4 WHERE s_host = \"Jim McKay and Al Michaels\" AND year = 1987",
"context": "CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR)",
"question": "Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?"
} |
### QUESTION
What is the rank of the qual 141.471?
### CONTEXT
CREATE TABLE table_name_3 (rank VARCHAR, qual VARCHAR)
### ANSWER
SELECT rank FROM table_name_3 WHERE qual = "141.471" | {
"answer": "SELECT rank FROM table_name_3 WHERE qual = \"141.471\"",
"context": "CREATE TABLE table_name_3 (rank VARCHAR, qual VARCHAR)",
"question": "What is the rank of the qual 141.471?"
} |
### QUESTION
What's the website for the Listen Live webcast on the 99.3 frequency?
### CONTEXT
CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR)
### ANSWER
SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3 | {
"answer": "SELECT website FROM table_name_81 WHERE webcast = \"listen live\" AND frequency = 99.3",
"context": "CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR)",
"question": "What's the website for the Listen Live webcast on the 99.3 frequency?"
} |
### QUESTION
List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'
### CONTEXT
CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta' | {
"answer": "SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'",
"context": "CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR)",
"question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'"
} |
### QUESTION
What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?
### CONTEXT
CREATE TABLE table_name_46 (catalog VARCHAR, date VARCHAR, label VARCHAR, format VARCHAR, country VARCHAR)
### ANSWER
SELECT catalog FROM table_name_46 WHERE format = "lp" AND country = "us" AND label = "sundazed" AND date = "2006" | {
"answer": "SELECT catalog FROM table_name_46 WHERE format = \"lp\" AND country = \"us\" AND label = \"sundazed\" AND date = \"2006\"",
"context": "CREATE TABLE table_name_46 (catalog VARCHAR, date VARCHAR, label VARCHAR, format VARCHAR, country VARCHAR)",
"question": "What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?"
} |
### QUESTION
Which Bronze has a Nation of argentina, and a Silver smaller than 0?
### CONTEXT
CREATE TABLE table_name_28 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
### ANSWER
SELECT AVG(bronze) FROM table_name_28 WHERE nation = "argentina" AND silver < 0 | {
"answer": "SELECT AVG(bronze) FROM table_name_28 WHERE nation = \"argentina\" AND silver < 0",
"context": "CREATE TABLE table_name_28 (bronze INTEGER, nation VARCHAR, silver VARCHAR)",
"question": "Which Bronze has a Nation of argentina, and a Silver smaller than 0?"
} |
### QUESTION
Which first election for the labor party is James Sharpe a part of?
### CONTEXT
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR)
### ANSWER
SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe" | {
"answer": "SELECT first_elected FROM table_name_28 WHERE party = \"labor\" AND member = \"james sharpe\"",
"context": "CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR)",
"question": "Which first election for the labor party is James Sharpe a part of?"
} |
### QUESTION
How many characteristics does the product named "sesame" have?
### CONTEXT
CREATE TABLE product_characteristics (product_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
### ANSWER
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "sesame" | {
"answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = \"sesame\"",
"context": "CREATE TABLE product_characteristics (product_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)",
"question": "How many characteristics does the product named \"sesame\" have?"
} |
### QUESTION
Find the campus fee of "San Jose State University" in year 2000.
### CONTEXT
CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR)
### ANSWER
SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = "San Jose State University" AND t1.year = 2000 | {
"answer": "SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = \"San Jose State University\" AND t1.year = 2000",
"context": "CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR)",
"question": "Find the campus fee of \"San Jose State University\" in year 2000."
} |
### QUESTION
Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?
### CONTEXT
CREATE TABLE MODEL_LIST (Model VARCHAR, Maker VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR)
### ANSWER
SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500 | {
"answer": "SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model = T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker = T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId = T4.Id WHERE T3.FullName = 'General Motors' OR T4.weight > 3500",
"context": "CREATE TABLE MODEL_LIST (Model VARCHAR, Maker VARCHAR); CREATE TABLE CAR_MAKERS (Id VARCHAR, FullName VARCHAR); CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, weight VARCHAR)",
"question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?"
} |
### QUESTION
Which committees have delegates from both democratic party and liberal party?
### CONTEXT
CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR)
### ANSWER
SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Liberal" | {
"answer": "SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Democratic\" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = \"Liberal\"",
"context": "CREATE TABLE election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR)",
"question": "Which committees have delegates from both democratic party and liberal party?"
} |
### QUESTION
What team has a national league in 2001?
### CONTEXT
CREATE TABLE table_name_31 (team VARCHAR, league VARCHAR, year VARCHAR)
### ANSWER
SELECT team FROM table_name_31 WHERE league = "national" AND year = 2001 | {
"answer": "SELECT team FROM table_name_31 WHERE league = \"national\" AND year = 2001",
"context": "CREATE TABLE table_name_31 (team VARCHAR, league VARCHAR, year VARCHAR)",
"question": "What team has a national league in 2001?"
} |
### QUESTION
What is the coinage metal for a KM number of S75?
### CONTEXT
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, km_number VARCHAR)
### ANSWER
SELECT coinage_metal FROM table_26336060_19 WHERE km_number = "S75" | {
"answer": "SELECT coinage_metal FROM table_26336060_19 WHERE km_number = \"S75\"",
"context": "CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, km_number VARCHAR)",
"question": "What is the coinage metal for a KM number of S75?"
} |
### QUESTION
When did Episode 29 (7) originally air?
### CONTEXT
CREATE TABLE table_name_65 (original_airdate VARCHAR, episode__number VARCHAR)
### ANSWER
SELECT original_airdate FROM table_name_65 WHERE episode__number = "29 (7)" | {
"answer": "SELECT original_airdate FROM table_name_65 WHERE episode__number = \"29 (7)\"",
"context": "CREATE TABLE table_name_65 (original_airdate VARCHAR, episode__number VARCHAR)",
"question": "When did Episode 29 (7) originally air?"
} |
### QUESTION
What is the suriname with a 16.8% brokopondo?
### CONTEXT
CREATE TABLE table_name_62 (suriname VARCHAR, brokopondo VARCHAR)
### ANSWER
SELECT suriname FROM table_name_62 WHERE brokopondo = "16.8%" | {
"answer": "SELECT suriname FROM table_name_62 WHERE brokopondo = \"16.8%\"",
"context": "CREATE TABLE table_name_62 (suriname VARCHAR, brokopondo VARCHAR)",
"question": "What is the suriname with a 16.8% brokopondo?"
} |
### QUESTION
How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007?
### CONTEXT
CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, original_air_date VARCHAR)
### ANSWER
SELECT us_viewers__millions_ FROM table_13301516_1 WHERE original_air_date = "November 13, 2007" | {
"answer": "SELECT us_viewers__millions_ FROM table_13301516_1 WHERE original_air_date = \"November 13, 2007\"",
"context": "CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, original_air_date VARCHAR)",
"question": "How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007?"
} |
### QUESTION
On which date did Ger Loughnane from Team Clare have a match?
### CONTEXT
CREATE TABLE table_name_88 (date VARCHAR, team VARCHAR, player VARCHAR)
### ANSWER
SELECT date FROM table_name_88 WHERE team = "clare" AND player = "ger loughnane" | {
"answer": "SELECT date FROM table_name_88 WHERE team = \"clare\" AND player = \"ger loughnane\"",
"context": "CREATE TABLE table_name_88 (date VARCHAR, team VARCHAR, player VARCHAR)",
"question": "On which date did Ger Loughnane from Team Clare have a match?"
} |
### QUESTION
Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6, and a Chimoré Municipality (%) of 5.1, and an Entre Ríos Municipality (%) smaller than 0.9?
### CONTEXT
CREATE TABLE table_name_61 (pocona_municipality___percentage_ INTEGER, entre_ríos_municipality___percentage_ VARCHAR, puerto_villarroel_municipality___percentage_ VARCHAR, chimoré_municipality___percentage_ VARCHAR)
### ANSWER
SELECT MIN(pocona_municipality___percentage_) FROM table_name_61 WHERE puerto_villarroel_municipality___percentage_ < 14.6 AND chimoré_municipality___percentage_ = 5.1 AND entre_ríos_municipality___percentage_ < 0.9 | {
"answer": "SELECT MIN(pocona_municipality___percentage_) FROM table_name_61 WHERE puerto_villarroel_municipality___percentage_ < 14.6 AND chimoré_municipality___percentage_ = 5.1 AND entre_ríos_municipality___percentage_ < 0.9",
"context": "CREATE TABLE table_name_61 (pocona_municipality___percentage_ INTEGER, entre_ríos_municipality___percentage_ VARCHAR, puerto_villarroel_municipality___percentage_ VARCHAR, chimoré_municipality___percentage_ VARCHAR)",
"question": "Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6, and a Chimoré Municipality (%) of 5.1, and an Entre Ríos Municipality (%) smaller than 0.9?"
} |
### QUESTION
What is the round for a year earlier than 1987?
### CONTEXT
CREATE TABLE table_name_19 (round VARCHAR, year INTEGER)
### ANSWER
SELECT round FROM table_name_19 WHERE year < 1987 | {
"answer": "SELECT round FROM table_name_19 WHERE year < 1987",
"context": "CREATE TABLE table_name_19 (round VARCHAR, year INTEGER)",
"question": "What is the round for a year earlier than 1987?"
} |
### QUESTION
Which episode has a Challenge Winner of berto?
### CONTEXT
CREATE TABLE table_name_50 (episode VARCHAR, challenge_winner VARCHAR)
### ANSWER
SELECT episode FROM table_name_50 WHERE challenge_winner = "berto" | {
"answer": "SELECT episode FROM table_name_50 WHERE challenge_winner = \"berto\"",
"context": "CREATE TABLE table_name_50 (episode VARCHAR, challenge_winner VARCHAR)",
"question": "Which episode has a Challenge Winner of berto?"
} |
### QUESTION
What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?
### CONTEXT
CREATE TABLE table_2267345_2 (team_classification VARCHAR, young_rider_classification VARCHAR, combativity_award VARCHAR)
### ANSWER
SELECT COUNT(team_classification) FROM table_2267345_2 WHERE young_rider_classification = "Salvatore Commesso" AND combativity_award = "Jacky Durand" | {
"answer": "SELECT COUNT(team_classification) FROM table_2267345_2 WHERE young_rider_classification = \"Salvatore Commesso\" AND combativity_award = \"Jacky Durand\"",
"context": "CREATE TABLE table_2267345_2 (team_classification VARCHAR, young_rider_classification VARCHAR, combativity_award VARCHAR)",
"question": "What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?"
} |
### QUESTION
What are the email addresses of teachers whose address has zip code "918"?
### CONTEXT
CREATE TABLE Addresses (address_id VARCHAR, zip_postcode VARCHAR); CREATE TABLE Teachers (email_address VARCHAR, address_id VARCHAR)
### ANSWER
SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = "918" | {
"answer": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = \"918\"",
"context": "CREATE TABLE Addresses (address_id VARCHAR, zip_postcode VARCHAR); CREATE TABLE Teachers (email_address VARCHAR, address_id VARCHAR)",
"question": "What are the email addresses of teachers whose address has zip code \"918\"?"
} |
### QUESTION
which chapter was Transmitted on wednesday if the episode of "363 the hangover part ii" was transmitted on monday?
### CONTEXT
CREATE TABLE table_18173916_8 (wednesday VARCHAR, monday VARCHAR)
### ANSWER
SELECT wednesday FROM table_18173916_8 WHERE monday = "363 The Hangover Part II" | {
"answer": "SELECT wednesday FROM table_18173916_8 WHERE monday = \"363 The Hangover Part II\"",
"context": "CREATE TABLE table_18173916_8 (wednesday VARCHAR, monday VARCHAR)",
"question": "which chapter was Transmitted on wednesday if the episode of \"363 the hangover part ii\" was transmitted on monday? "
} |
### QUESTION
What is the lowest place with more than 26 goals scored, 18 goals conceded, and a draw entry of 6?
### CONTEXT
CREATE TABLE table_name_10 (place INTEGER, goals_scored VARCHAR, draw VARCHAR, goals_conceded VARCHAR)
### ANSWER
SELECT MIN(place) FROM table_name_10 WHERE draw = 6 AND goals_conceded = 18 AND goals_scored > 26 | {
"answer": "SELECT MIN(place) FROM table_name_10 WHERE draw = 6 AND goals_conceded = 18 AND goals_scored > 26",
"context": "CREATE TABLE table_name_10 (place INTEGER, goals_scored VARCHAR, draw VARCHAR, goals_conceded VARCHAR)",
"question": "What is the lowest place with more than 26 goals scored, 18 goals conceded, and a draw entry of 6?"
} |
### QUESTION
What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name?
### CONTEXT
CREATE TABLE table_17964087_2 (chinese_name VARCHAR, romanised_name VARCHAR)
### ANSWER
SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = "Chan Chi-yuen, Paul" | {
"answer": "SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = \"Chan Chi-yuen, Paul\"",
"context": "CREATE TABLE table_17964087_2 (chinese_name VARCHAR, romanised_name VARCHAR)",
"question": "What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name?"
} |
### QUESTION
What was the finish with a total larger than 286, a to par of +4 and Bob Tway played?
### CONTEXT
CREATE TABLE table_name_70 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
### ANSWER
SELECT finish FROM table_name_70 WHERE total > 286 AND to_par = "+4" AND player = "bob tway" | {
"answer": "SELECT finish FROM table_name_70 WHERE total > 286 AND to_par = \"+4\" AND player = \"bob tway\"",
"context": "CREATE TABLE table_name_70 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)",
"question": "What was the finish with a total larger than 286, a to par of +4 and Bob Tway played?"
} |
### QUESTION
Which Round has a School/Club Team of arizona, and a Pick smaller than 298?
### CONTEXT
CREATE TABLE table_name_68 (round INTEGER, school_club_team VARCHAR, pick VARCHAR)
### ANSWER
SELECT MAX(round) FROM table_name_68 WHERE school_club_team = "arizona" AND pick < 298 | {
"answer": "SELECT MAX(round) FROM table_name_68 WHERE school_club_team = \"arizona\" AND pick < 298",
"context": "CREATE TABLE table_name_68 (round INTEGER, school_club_team VARCHAR, pick VARCHAR)",
"question": "Which Round has a School/Club Team of arizona, and a Pick smaller than 298?"
} |
### QUESTION
What is the number of group b winner for francavilla?
### CONTEXT
CREATE TABLE table_1137142_1 (group_b_winner VARCHAR, group_c_winner VARCHAR)
### ANSWER
SELECT COUNT(group_b_winner) FROM table_1137142_1 WHERE group_c_winner = "Francavilla" | {
"answer": "SELECT COUNT(group_b_winner) FROM table_1137142_1 WHERE group_c_winner = \"Francavilla\"",
"context": "CREATE TABLE table_1137142_1 (group_b_winner VARCHAR, group_c_winner VARCHAR)",
"question": "What is the number of group b winner for francavilla?"
} |
### QUESTION
Find the name and id of the item with the highest average rating.
### CONTEXT
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
### ANSWER
SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1 | {
"answer": "SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1",
"context": "CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)",
"question": "Find the name and id of the item with the highest average rating."
} |
### QUESTION
Which Total has a Date of 1602, and Greater Doubles smaller than 16?
### CONTEXT
CREATE TABLE table_name_72 (total INTEGER, date VARCHAR, greater_doubles VARCHAR)
### ANSWER
SELECT MAX(total) FROM table_name_72 WHERE date = 1602 AND greater_doubles < 16 | {
"answer": "SELECT MAX(total) FROM table_name_72 WHERE date = 1602 AND greater_doubles < 16",
"context": "CREATE TABLE table_name_72 (total INTEGER, date VARCHAR, greater_doubles VARCHAR)",
"question": "Which Total has a Date of 1602, and Greater Doubles smaller than 16?"
} |
### QUESTION
What's the heigh of the player who went to lake howell high school?
### CONTEXT
CREATE TABLE table_name_72 (height VARCHAR, school VARCHAR)
### ANSWER
SELECT height FROM table_name_72 WHERE school = "lake howell high school" | {
"answer": "SELECT height FROM table_name_72 WHERE school = \"lake howell high school\"",
"context": "CREATE TABLE table_name_72 (height VARCHAR, school VARCHAR)",
"question": "What's the heigh of the player who went to lake howell high school?"
} |
### QUESTION
WHAT IS THE LOST WITH 1 LOSING BONUS, 148 POINTS?
### CONTEXT
CREATE TABLE table_name_32 (lost VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)
### ANSWER
SELECT lost FROM table_name_32 WHERE losing_bonus = "1" AND points_for = "148" | {
"answer": "SELECT lost FROM table_name_32 WHERE losing_bonus = \"1\" AND points_for = \"148\"",
"context": "CREATE TABLE table_name_32 (lost VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)",
"question": "WHAT IS THE LOST WITH 1 LOSING BONUS, 148 POINTS?"
} |
### QUESTION
Who is the opponent with a score of 6–5 13?
### CONTEXT
CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR)
### ANSWER
SELECT opponent FROM table_name_82 WHERE score = "6–5 13" | {
"answer": "SELECT opponent FROM table_name_82 WHERE score = \"6–5 13\"",
"context": "CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR)",
"question": "Who is the opponent with a score of 6–5 13?"
} |
### QUESTION
What is the surface of the match on July 5, 2009?
### CONTEXT
CREATE TABLE table_name_95 (surface VARCHAR, date VARCHAR)
### ANSWER
SELECT surface FROM table_name_95 WHERE date = "july 5, 2009" | {
"answer": "SELECT surface FROM table_name_95 WHERE date = \"july 5, 2009\"",
"context": "CREATE TABLE table_name_95 (surface VARCHAR, date VARCHAR)",
"question": "What is the surface of the match on July 5, 2009?"
} |
### QUESTION
If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power?
### CONTEXT
CREATE TABLE table_21021796_1 (power VARCHAR, torque VARCHAR, applications VARCHAR)
### ANSWER
SELECT power FROM table_21021796_1 WHERE torque = "N·m (lb·ft) @1600–2400 rpm" AND applications = "2000 W90x Sprinter" | {
"answer": "SELECT power FROM table_21021796_1 WHERE torque = \"N·m (lb·ft) @1600–2400 rpm\" AND applications = \"2000 W90x Sprinter\"",
"context": "CREATE TABLE table_21021796_1 (power VARCHAR, torque VARCHAR, applications VARCHAR)",
"question": "If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power?"
} |
### QUESTION
Which Rank that a Name of thomas morgenstern, and Points larger than 288.7?
### CONTEXT
CREATE TABLE table_name_29 (rank INTEGER, name VARCHAR, points VARCHAR)
### ANSWER
SELECT SUM(rank) FROM table_name_29 WHERE name = "thomas morgenstern" AND points > 288.7 | {
"answer": "SELECT SUM(rank) FROM table_name_29 WHERE name = \"thomas morgenstern\" AND points > 288.7",
"context": "CREATE TABLE table_name_29 (rank INTEGER, name VARCHAR, points VARCHAR)",
"question": "Which Rank that a Name of thomas morgenstern, and Points larger than 288.7?"
} |
### QUESTION
What is the street address of Oliver Building?
### CONTEXT
CREATE TABLE table_name_20 (street_address VARCHAR, name VARCHAR)
### ANSWER
SELECT street_address FROM table_name_20 WHERE name = "oliver building" | {
"answer": "SELECT street_address FROM table_name_20 WHERE name = \"oliver building\"",
"context": "CREATE TABLE table_name_20 (street_address VARCHAR, name VARCHAR)",
"question": "What is the street address of Oliver Building?"
} |
### QUESTION
Who was the opponent in the game played after Week 4 on October 15, 2000?
### CONTEXT
CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR, date VARCHAR)
### ANSWER
SELECT opponent FROM table_name_37 WHERE week > 4 AND date = "october 15, 2000" | {
"answer": "SELECT opponent FROM table_name_37 WHERE week > 4 AND date = \"october 15, 2000\"",
"context": "CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR, date VARCHAR)",
"question": "Who was the opponent in the game played after Week 4 on October 15, 2000?"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.