text
stringlengths
146
1.06k
source
dict
### QUESTION What begin has victoria as the state/territory and a ICA0 of ymml? ### CONTEXT CREATE TABLE table_name_18 (begin VARCHAR, state_territory VARCHAR, icao VARCHAR) ### ANSWER SELECT begin FROM table_name_18 WHERE state_territory = "victoria" AND icao = "ymml"
{ "answer": "SELECT begin FROM table_name_18 WHERE state_territory = \"victoria\" AND icao = \"ymml\"", "context": "CREATE TABLE table_name_18 (begin VARCHAR, state_territory VARCHAR, icao VARCHAR)", "question": "What begin has victoria as the state/territory and a ICA0 of ymml?" }
### QUESTION What is the name of the tournament played 13 November 2000? ### CONTEXT CREATE TABLE table_name_35 (tournament VARCHAR, date VARCHAR) ### ANSWER SELECT tournament FROM table_name_35 WHERE date = "13 november 2000"
{ "answer": "SELECT tournament FROM table_name_35 WHERE date = \"13 november 2000\"", "context": "CREATE TABLE table_name_35 (tournament VARCHAR, date VARCHAR)", "question": "What is the name of the tournament played 13 November 2000?" }
### QUESTION Games started of 4 is in what hometown? ### CONTEXT CREATE TABLE table_name_79 (hometown VARCHAR, games_started VARCHAR) ### ANSWER SELECT hometown FROM table_name_79 WHERE games_started = "4"
{ "answer": "SELECT hometown FROM table_name_79 WHERE games_started = \"4\"", "context": "CREATE TABLE table_name_79 (hometown VARCHAR, games_started VARCHAR)", "question": "Games started of 4 is in what hometown?" }
### QUESTION Who won the FIS Nordic World Ski Championships in 1972? ### CONTEXT CREATE TABLE table_name_4 (winner VARCHAR, fis_nordic_world_ski_championships VARCHAR) ### ANSWER SELECT winner FROM table_name_4 WHERE fis_nordic_world_ski_championships = "1972"
{ "answer": "SELECT winner FROM table_name_4 WHERE fis_nordic_world_ski_championships = \"1972\"", "context": "CREATE TABLE table_name_4 (winner VARCHAR, fis_nordic_world_ski_championships VARCHAR)", "question": "Who won the FIS Nordic World Ski Championships in 1972?" }
### QUESTION How many championships does Pakistan have? ### CONTEXT CREATE TABLE table_19487922_2 (championships VARCHAR, country VARCHAR) ### ANSWER SELECT COUNT(championships) FROM table_19487922_2 WHERE country = "Pakistan"
{ "answer": "SELECT COUNT(championships) FROM table_19487922_2 WHERE country = \"Pakistan\"", "context": "CREATE TABLE table_19487922_2 (championships VARCHAR, country VARCHAR)", "question": "How many championships does Pakistan have?" }
### QUESTION List the names of shops that have no devices in stock. ### CONTEXT CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_Name VARCHAR, Shop_ID VARCHAR) ### ANSWER SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock)
{ "answer": "SELECT Shop_Name FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM stock)", "context": "CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_Name VARCHAR, Shop_ID VARCHAR)", "question": "List the names of shops that have no devices in stock." }
### QUESTION Find the checking balance of the accounts whose savings balance is higher than the average savings balance. ### CONTEXT CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER) ### ANSWER SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM savings))
{ "answer": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM savings))", "context": "CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER)", "question": "Find the checking balance of the accounts whose savings balance is higher than the average savings balance." }
### QUESTION What Venue had Carlton has the Away team? ### CONTEXT CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR) ### ANSWER SELECT venue FROM table_name_29 WHERE away_team = "carlton"
{ "answer": "SELECT venue FROM table_name_29 WHERE away_team = \"carlton\"", "context": "CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)", "question": "What Venue had Carlton has the Away team?" }
### QUESTION What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical? ### CONTEXT CREATE TABLE table_name_96 (year INTEGER, award_ceremony VARCHAR, category VARCHAR) ### ANSWER SELECT AVG(year) FROM table_name_96 WHERE award_ceremony = "drama desk award" AND category = "outstanding featured actress in a musical"
{ "answer": "SELECT AVG(year) FROM table_name_96 WHERE award_ceremony = \"drama desk award\" AND category = \"outstanding featured actress in a musical\"", "context": "CREATE TABLE table_name_96 (year INTEGER, award_ceremony VARCHAR, category VARCHAR)", "question": "What year is associated with a drama desk award ceremony and a Category of outstanding featured actress in a musical?" }
### QUESTION Which race was on the Las Vegas Motor Speedway for 2 hours? ### CONTEXT CREATE TABLE table_name_36 (race VARCHAR, circuit VARCHAR, length VARCHAR) ### ANSWER SELECT race FROM table_name_36 WHERE circuit = "las vegas motor speedway" AND length = "2 hours"
{ "answer": "SELECT race FROM table_name_36 WHERE circuit = \"las vegas motor speedway\" AND length = \"2 hours\"", "context": "CREATE TABLE table_name_36 (race VARCHAR, circuit VARCHAR, length VARCHAR)", "question": "Which race was on the Las Vegas Motor Speedway for 2 hours?" }
### QUESTION Which inhabitants have lega lombarda as the party, with an election greater than 2010? ### CONTEXT CREATE TABLE table_name_26 (inhabitants VARCHAR, party VARCHAR, election VARCHAR) ### ANSWER SELECT inhabitants FROM table_name_26 WHERE party = "lega lombarda" AND election > 2010
{ "answer": "SELECT inhabitants FROM table_name_26 WHERE party = \"lega lombarda\" AND election > 2010", "context": "CREATE TABLE table_name_26 (inhabitants VARCHAR, party VARCHAR, election VARCHAR)", "question": "Which inhabitants have lega lombarda as the party, with an election greater than 2010?" }
### QUESTION What is the name and open year for the branch with most number of memberships registered in 2016? ### CONTEXT CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, open_year VARCHAR, branch_id VARCHAR) ### ANSWER SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, open_year VARCHAR, branch_id VARCHAR)", "question": "What is the name and open year for the branch with most number of memberships registered in 2016?" }
### QUESTION How many villages had 21.7% of slovenes in 1991? ### CONTEXT CREATE TABLE table_10797463_1 (village__german_ VARCHAR, percent_of_slovenes_1991 VARCHAR) ### ANSWER SELECT COUNT(village__german_) FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "21.7%"
{ "answer": "SELECT COUNT(village__german_) FROM table_10797463_1 WHERE percent_of_slovenes_1991 = \"21.7%\"", "context": "CREATE TABLE table_10797463_1 (village__german_ VARCHAR, percent_of_slovenes_1991 VARCHAR)", "question": "How many villages had 21.7% of slovenes in 1991?" }
### QUESTION Who was the clerk when the highway commissioner was Albert Lewis? ### CONTEXT CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR) ### ANSWER SELECT clerk FROM table_name_14 WHERE highway_commissioners = "albert lewis"
{ "answer": "SELECT clerk FROM table_name_14 WHERE highway_commissioners = \"albert lewis\"", "context": "CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR)", "question": "Who was the clerk when the highway commissioner was Albert Lewis?" }
### QUESTION What is the original air date when there were 12.81 million u.s viewers? ### CONTEXT CREATE TABLE table_11404452_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) ### ANSWER SELECT original_air_date FROM table_11404452_1 WHERE us_viewers__millions_ = "12.81"
{ "answer": "SELECT original_air_date FROM table_11404452_1 WHERE us_viewers__millions_ = \"12.81\"", "context": "CREATE TABLE table_11404452_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)", "question": "What is the original air date when there were 12.81 million u.s viewers?" }
### QUESTION Who was the defensive award winner in February when the rookie award was given to Rhys Duch? ### CONTEXT CREATE TABLE table_14132239_3 (defensive VARCHAR, month VARCHAR, rookie VARCHAR) ### ANSWER SELECT defensive FROM table_14132239_3 WHERE month = "February" AND rookie = "Rhys Duch"
{ "answer": "SELECT defensive FROM table_14132239_3 WHERE month = \"February\" AND rookie = \"Rhys Duch\"", "context": "CREATE TABLE table_14132239_3 (defensive VARCHAR, month VARCHAR, rookie VARCHAR)", "question": "Who was the defensive award winner in February when the rookie award was given to Rhys Duch?" }
### QUESTION What is the digital reaction for week of top 5 for Taylor Hicks? ### CONTEXT CREATE TABLE table_name_20 (hot_digital_songs_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR) ### ANSWER SELECT hot_digital_songs_reaction FROM table_name_20 WHERE week = "top 5" AND performer_s_ = "taylor hicks"
{ "answer": "SELECT hot_digital_songs_reaction FROM table_name_20 WHERE week = \"top 5\" AND performer_s_ = \"taylor hicks\"", "context": "CREATE TABLE table_name_20 (hot_digital_songs_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR)", "question": "What is the digital reaction for week of top 5 for Taylor Hicks?" }
### QUESTION How many debut years have Years at club of 1950–1951, and Games larger than 14? ### CONTEXT CREATE TABLE table_name_39 (debut_year INTEGER, years_at_club VARCHAR, games VARCHAR) ### ANSWER SELECT SUM(debut_year) FROM table_name_39 WHERE years_at_club = "1950–1951" AND games > 14
{ "answer": "SELECT SUM(debut_year) FROM table_name_39 WHERE years_at_club = \"1950–1951\" AND games > 14", "context": "CREATE TABLE table_name_39 (debut_year INTEGER, years_at_club VARCHAR, games VARCHAR)", "question": "How many debut years have Years at club of 1950–1951, and Games larger than 14?" }
### QUESTION What is the Score with a Visitor of bucks, and a Leading scorer with maurice williams (25)? ### CONTEXT CREATE TABLE table_name_81 (score VARCHAR, visitor VARCHAR, leading_scorer VARCHAR) ### ANSWER SELECT score FROM table_name_81 WHERE visitor = "bucks" AND leading_scorer = "maurice williams (25)"
{ "answer": "SELECT score FROM table_name_81 WHERE visitor = \"bucks\" AND leading_scorer = \"maurice williams (25)\"", "context": "CREATE TABLE table_name_81 (score VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)", "question": "What is the Score with a Visitor of bucks, and a Leading scorer with maurice williams (25)?" }
### QUESTION Name the total number of score for staples center 13,266 ### CONTEXT CREATE TABLE table_17323529_5 (score VARCHAR, location_attendance VARCHAR) ### ANSWER SELECT COUNT(score) FROM table_17323529_5 WHERE location_attendance = "Staples Center 13,266"
{ "answer": "SELECT COUNT(score) FROM table_17323529_5 WHERE location_attendance = \"Staples Center 13,266\"", "context": "CREATE TABLE table_17323529_5 (score VARCHAR, location_attendance VARCHAR)", "question": "Name the total number of score for staples center 13,266" }
### QUESTION What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis? ### CONTEXT CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR) ### ANSWER SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8
{ "answer": "SELECT year FROM table_name_51 WHERE chassis = \"dallara\" AND team = \"andretti green racing\" AND finish < 8", "context": "CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR)", "question": "What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?" }
### QUESTION How many episodes with different season numbers had the Jeans family in them? ### CONTEXT CREATE TABLE table_19897294_10 (no_in_season VARCHAR, family_families VARCHAR) ### ANSWER SELECT COUNT(no_in_season) FROM table_19897294_10 WHERE family_families = "The Jeans Family"
{ "answer": "SELECT COUNT(no_in_season) FROM table_19897294_10 WHERE family_families = \"The Jeans Family\"", "context": "CREATE TABLE table_19897294_10 (no_in_season VARCHAR, family_families VARCHAR)", "question": "How many episodes with different season numbers had the Jeans family in them?" }
### QUESTION How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington? ### CONTEXT CREATE TABLE table_name_37 (game VARCHAR, opponent VARCHAR, opponents VARCHAR, nets_points VARCHAR) ### ANSWER SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = "washington"
{ "answer": "SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = \"washington\"", "context": "CREATE TABLE table_name_37 (game VARCHAR, opponent VARCHAR, opponents VARCHAR, nets_points VARCHAR)", "question": "How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington?" }
### QUESTION How many attended the game with a record of 43-34? ### CONTEXT CREATE TABLE table_name_59 (attendance VARCHAR, record VARCHAR) ### ANSWER SELECT COUNT(attendance) FROM table_name_59 WHERE record = "43-34"
{ "answer": "SELECT COUNT(attendance) FROM table_name_59 WHERE record = \"43-34\"", "context": "CREATE TABLE table_name_59 (attendance VARCHAR, record VARCHAR)", "question": "How many attended the game with a record of 43-34?" }
### QUESTION List the names of the customers who have once bought product "food". ### CONTEXT CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR) ### ANSWER SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT(*) >= 1
{ "answer": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING COUNT(*) >= 1", "context": "CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR)", "question": "List the names of the customers who have once bought product \"food\"." }
### QUESTION Find the make and production time of the cars that were produced in the earliest year? ### CONTEXT CREATE TABLE CARS_DATA (YEAR INTEGER); CREATE TABLE CAR_NAMES (Make VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Year VARCHAR, Id VARCHAR) ### ANSWER SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA)
{ "answer": "SELECT T2.Make, T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Year = (SELECT MIN(YEAR) FROM CARS_DATA)", "context": "CREATE TABLE CARS_DATA (YEAR INTEGER); CREATE TABLE CAR_NAMES (Make VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Year VARCHAR, Id VARCHAR)", "question": "Find the make and production time of the cars that were produced in the earliest year?" }
### QUESTION Which surface has a Date of 22 august 2006? ### CONTEXT CREATE TABLE table_name_57 (surface VARCHAR, date VARCHAR) ### ANSWER SELECT surface FROM table_name_57 WHERE date = "22 august 2006"
{ "answer": "SELECT surface FROM table_name_57 WHERE date = \"22 august 2006\"", "context": "CREATE TABLE table_name_57 (surface VARCHAR, date VARCHAR)", "question": "Which surface has a Date of 22 august 2006?" }
### QUESTION find the names of programs whose origin is not in Beijing. ### CONTEXT CREATE TABLE program (name VARCHAR, origin VARCHAR) ### ANSWER SELECT name FROM program WHERE origin <> 'Beijing'
{ "answer": "SELECT name FROM program WHERE origin <> 'Beijing'", "context": "CREATE TABLE program (name VARCHAR, origin VARCHAR)", "question": "find the names of programs whose origin is not in Beijing." }
### QUESTION What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes? ### CONTEXT CREATE TABLE table_name_62 (wins INTEGER, byes VARCHAR, golden_rivers VARCHAR, against VARCHAR, losses VARCHAR) ### ANSWER SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = "ultima" AND byes < 2
{ "answer": "SELECT SUM(wins) FROM table_name_62 WHERE against > 1136 AND losses < 15 AND golden_rivers = \"ultima\" AND byes < 2", "context": "CREATE TABLE table_name_62 (wins INTEGER, byes VARCHAR, golden_rivers VARCHAR, against VARCHAR, losses VARCHAR)", "question": "What was the total number of wins that had an against greater than 1136 but losses less than 15 with Ultima with less than 2 byes?" }
### QUESTION What is the gross capacity of the unit that started commercial operation on August 28, 1987? ### CONTEXT CREATE TABLE table_name_17 (gross_capacity VARCHAR, commercial_operation VARCHAR) ### ANSWER SELECT gross_capacity FROM table_name_17 WHERE commercial_operation = "august 28, 1987"
{ "answer": "SELECT gross_capacity FROM table_name_17 WHERE commercial_operation = \"august 28, 1987\"", "context": "CREATE TABLE table_name_17 (gross_capacity VARCHAR, commercial_operation VARCHAR)", "question": "What is the gross capacity of the unit that started commercial operation on August 28, 1987?" }
### QUESTION what's the total number of position with driver  robby gordon ### CONTEXT CREATE TABLE table_10160447_1 (position VARCHAR, driver VARCHAR) ### ANSWER SELECT COUNT(position) FROM table_10160447_1 WHERE driver = "Robby Gordon"
{ "answer": "SELECT COUNT(position) FROM table_10160447_1 WHERE driver = \"Robby Gordon\"", "context": "CREATE TABLE table_10160447_1 (position VARCHAR, driver VARCHAR)", "question": "what's the total number of position with driver  robby gordon" }
### QUESTION Show first name and last name for all the students advised by Michael Goodrich. ### CONTEXT CREATE TABLE Faculty (FacID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Student (fname VARCHAR, lname VARCHAR, advisor VARCHAR) ### ANSWER SELECT T2.fname, T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = "Michael" AND T1.lname = "Goodrich"
{ "answer": "SELECT T2.fname, T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.fname = \"Michael\" AND T1.lname = \"Goodrich\"", "context": "CREATE TABLE Faculty (FacID VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Student (fname VARCHAR, lname VARCHAR, advisor VARCHAR)", "question": "Show first name and last name for all the students advised by Michael Goodrich." }
### QUESTION How many members does the club "Tennis Club" has? ### CONTEXT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR) ### ANSWER SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Tennis Club"
{ "answer": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Tennis Club\"", "context": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)", "question": "How many members does the club \"Tennis Club\" has?" }
### QUESTION What country had a finish of t49? ### CONTEXT CREATE TABLE table_name_7 (country VARCHAR, finish VARCHAR) ### ANSWER SELECT country FROM table_name_7 WHERE finish = "t49"
{ "answer": "SELECT country FROM table_name_7 WHERE finish = \"t49\"", "context": "CREATE TABLE table_name_7 (country VARCHAR, finish VARCHAR)", "question": "What country had a finish of t49?" }
### QUESTION What is the lowest Game, when High Assists is "Maurice Williams (8)"? ### CONTEXT CREATE TABLE table_name_11 (game INTEGER, high_assists VARCHAR) ### ANSWER SELECT MIN(game) FROM table_name_11 WHERE high_assists = "maurice williams (8)"
{ "answer": "SELECT MIN(game) FROM table_name_11 WHERE high_assists = \"maurice williams (8)\"", "context": "CREATE TABLE table_name_11 (game INTEGER, high_assists VARCHAR)", "question": "What is the lowest Game, when High Assists is \"Maurice Williams (8)\"?" }
### QUESTION Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee. ### CONTEXT CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE employees (reports_to VARCHAR) ### ANSWER SELECT T2.first_name, T2.last_name, COUNT(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY COUNT(T1.reports_to) DESC LIMIT 1
{ "answer": "SELECT T2.first_name, T2.last_name, COUNT(T1.reports_to) FROM employees AS T1 JOIN employees AS T2 ON T1.reports_to = T2.id GROUP BY T1.reports_to ORDER BY COUNT(T1.reports_to) DESC LIMIT 1", "context": "CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE employees (reports_to VARCHAR)", "question": "Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee." }
### QUESTION What is the Location of the Old Bedians Pitch? ### CONTEXT CREATE TABLE table_name_97 (location VARCHAR, pitch VARCHAR) ### ANSWER SELECT location FROM table_name_97 WHERE pitch = "old bedians"
{ "answer": "SELECT location FROM table_name_97 WHERE pitch = \"old bedians\"", "context": "CREATE TABLE table_name_97 (location VARCHAR, pitch VARCHAR)", "question": "What is the Location of the Old Bedians Pitch?" }
### QUESTION The results for gt2 winning team is all lars-erik nielsen allan simonsen richard westbrook. ### CONTEXT CREATE TABLE table_14154271_2 (results VARCHAR, gt2_winning_team VARCHAR) ### ANSWER SELECT results FROM table_14154271_2 WHERE gt2_winning_team = "Lars-Erik Nielsen Allan Simonsen Richard Westbrook"
{ "answer": "SELECT results FROM table_14154271_2 WHERE gt2_winning_team = \"Lars-Erik Nielsen Allan Simonsen Richard Westbrook\"", "context": "CREATE TABLE table_14154271_2 (results VARCHAR, gt2_winning_team VARCHAR)", "question": "The results for gt2 winning team is all lars-erik nielsen allan simonsen richard westbrook. " }
### QUESTION What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)? ### CONTEXT CREATE TABLE table_name_7 (agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR, domestic_use__m_3__p_yr__in__percentage_ VARCHAR) ### ANSWER SELECT agricultural_use__m_3__p_yr__in__percentage_ FROM table_name_7 WHERE per_capita_withdrawal__m_3__p_yr_ > 923 AND domestic_use__m_3__p_yr__in__percentage_ = "73(7%)"
{ "answer": "SELECT agricultural_use__m_3__p_yr__in__percentage_ FROM table_name_7 WHERE per_capita_withdrawal__m_3__p_yr_ > 923 AND domestic_use__m_3__p_yr__in__percentage_ = \"73(7%)\"", "context": "CREATE TABLE table_name_7 (agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR, domestic_use__m_3__p_yr__in__percentage_ VARCHAR)", "question": "What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)?" }
### QUESTION What is the first name and last name of the student who have most number of sports? ### CONTEXT CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR) ### ANSWER SELECT T2.Fname, T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T2.Fname, T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR)", "question": "What is the first name and last name of the student who have most number of sports?" }
### QUESTION What is the highest Points in Position 2 with more than 3 Drawn games? ### CONTEXT CREATE TABLE table_name_75 (points INTEGER, position VARCHAR, drawn VARCHAR) ### ANSWER SELECT MAX(points) FROM table_name_75 WHERE position = 2 AND drawn > 3
{ "answer": "SELECT MAX(points) FROM table_name_75 WHERE position = 2 AND drawn > 3", "context": "CREATE TABLE table_name_75 (points INTEGER, position VARCHAR, drawn VARCHAR)", "question": "What is the highest Points in Position 2 with more than 3 Drawn games?" }
### QUESTION Which week was the December 21, 2003 game? ### CONTEXT CREATE TABLE table_name_59 (week VARCHAR, date VARCHAR) ### ANSWER SELECT week FROM table_name_59 WHERE date = "december 21, 2003"
{ "answer": "SELECT week FROM table_name_59 WHERE date = \"december 21, 2003\"", "context": "CREATE TABLE table_name_59 (week VARCHAR, date VARCHAR)", "question": "Which week was the December 21, 2003 game?" }
### QUESTION Which match was the final score 7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)? ### CONTEXT CREATE TABLE table_26202812_7 (no VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT no FROM table_26202812_7 WHERE score_in_the_final = "7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)"
{ "answer": "SELECT no FROM table_26202812_7 WHERE score_in_the_final = \"7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)\"", "context": "CREATE TABLE table_26202812_7 (no VARCHAR, score_in_the_final VARCHAR)", "question": "Which match was the final score 7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)?" }
### QUESTION How many documents are using the template with type code 'PPT'? ### CONTEXT CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR) ### ANSWER SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'
{ "answer": "SELECT COUNT(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Template_Type_Code = 'PPT'", "context": "CREATE TABLE Templates (Template_ID VARCHAR, Template_Type_Code VARCHAR); CREATE TABLE Documents (Template_ID VARCHAR)", "question": "How many documents are using the template with type code 'PPT'?" }
### QUESTION What is the zip code of staff with first name as Janessa and last name as Sawayn lived? ### CONTEXT CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### ANSWER SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
{ "answer": "SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"", "context": "CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "question": "What is the zip code of staff with first name as Janessa and last name as Sawayn lived?" }
### QUESTION Find the names of all the clubs that have at least a member from the city with city code "BAL". ### CONTEXT CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR) ### ANSWER SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "BAL"
{ "answer": "SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = \"BAL\"", "context": "CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)", "question": "Find the names of all the clubs that have at least a member from the city with city code \"BAL\"." }
### QUESTION Name the Points which has a Team of sportivo luqueño, and Wins larger than 1? ### CONTEXT CREATE TABLE table_name_41 (points INTEGER, team VARCHAR, wins VARCHAR) ### ANSWER SELECT MIN(points) FROM table_name_41 WHERE team = "sportivo luqueño" AND wins > 1
{ "answer": "SELECT MIN(points) FROM table_name_41 WHERE team = \"sportivo luqueño\" AND wins > 1", "context": "CREATE TABLE table_name_41 (points INTEGER, team VARCHAR, wins VARCHAR)", "question": "Name the Points which has a Team of sportivo luqueño, and Wins larger than 1?" }
### QUESTION What is the elista with 1 played and 153⅓ baku? ### CONTEXT CREATE TABLE table_name_14 (elista VARCHAR, played VARCHAR, baku VARCHAR) ### ANSWER SELECT elista FROM table_name_14 WHERE played = 1 AND baku = "153⅓"
{ "answer": "SELECT elista FROM table_name_14 WHERE played = 1 AND baku = \"153⅓\"", "context": "CREATE TABLE table_name_14 (elista VARCHAR, played VARCHAR, baku VARCHAR)", "question": "What is the elista with 1 played and 153⅓ baku?" }
### QUESTION How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0? ### CONTEXT CREATE TABLE table_name_27 (poles INTEGER, drivers VARCHAR, flaps VARCHAR) ### ANSWER SELECT SUM(poles) FROM table_name_27 WHERE drivers = "juan cruz álvarez" AND flaps > 0
{ "answer": "SELECT SUM(poles) FROM table_name_27 WHERE drivers = \"juan cruz álvarez\" AND flaps > 0", "context": "CREATE TABLE table_name_27 (poles INTEGER, drivers VARCHAR, flaps VARCHAR)", "question": "How many Poles have Drivers of juan cruz álvarez, and FLaps larger than 0?" }
### QUESTION Who was the original artist when the order number is 9? ### CONTEXT CREATE TABLE table_15796072_1 (original_artist VARCHAR, order__number VARCHAR) ### ANSWER SELECT original_artist FROM table_15796072_1 WHERE order__number = "9"
{ "answer": "SELECT original_artist FROM table_15796072_1 WHERE order__number = \"9\"", "context": "CREATE TABLE table_15796072_1 (original_artist VARCHAR, order__number VARCHAR)", "question": "Who was the original artist when the order number is 9?" }
### QUESTION I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s ### CONTEXT CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR) ### ANSWER SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = "spiral galaxy" AND right_ascension___j2000__ = "08h14m40.4s"
{ "answer": "SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = \"spiral galaxy\" AND right_ascension___j2000__ = \"08h14m40.4s\"", "context": "CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR)", "question": "I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s" }
### QUESTION What is the largest area in Alaska with a population of 39 and rank over 19? ### CONTEXT CREATE TABLE table_name_41 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR) ### ANSWER SELECT MAX(area__km_2__) FROM table_name_41 WHERE location = "alaska" AND population__2000_ = "39" AND rank > 19
{ "answer": "SELECT MAX(area__km_2__) FROM table_name_41 WHERE location = \"alaska\" AND population__2000_ = \"39\" AND rank > 19", "context": "CREATE TABLE table_name_41 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR)", "question": "What is the largest area in Alaska with a population of 39 and rank over 19?" }
### QUESTION Tell me the location for win with record of 8-5 ### CONTEXT CREATE TABLE table_name_52 (location VARCHAR, res VARCHAR, record VARCHAR) ### ANSWER SELECT location FROM table_name_52 WHERE res = "win" AND record = "8-5"
{ "answer": "SELECT location FROM table_name_52 WHERE res = \"win\" AND record = \"8-5\"", "context": "CREATE TABLE table_name_52 (location VARCHAR, res VARCHAR, record VARCHAR)", "question": "Tell me the location for win with record of 8-5" }
### QUESTION Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti? ### CONTEXT CREATE TABLE table_name_61 (capacity INTEGER, class VARCHAR, vehicle VARCHAR) ### ANSWER SELECT MIN(capacity) FROM table_name_61 WHERE class = "cm22" AND vehicle = "1999 subaru impreza wrx sti"
{ "answer": "SELECT MIN(capacity) FROM table_name_61 WHERE class = \"cm22\" AND vehicle = \"1999 subaru impreza wrx sti\"", "context": "CREATE TABLE table_name_61 (capacity INTEGER, class VARCHAR, vehicle VARCHAR)", "question": "Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti?" }
### QUESTION Show the ids of the employees who don't authorize destruction for any document. ### CONTEXT CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR) ### ANSWER SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed
{ "answer": "SELECT employee_id FROM Employees EXCEPT SELECT Destruction_Authorised_by_Employee_ID FROM Documents_to_be_destroyed", "context": "CREATE TABLE Documents_to_be_destroyed (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR); CREATE TABLE Employees (employee_id VARCHAR, Destruction_Authorised_by_Employee_ID VARCHAR)", "question": "Show the ids of the employees who don't authorize destruction for any document." }
### QUESTION The cylinder layout v8 is produced in what years? ### CONTEXT CREATE TABLE table_26352332_4 (years_produced VARCHAR, cylinder_layout VARCHAR) ### ANSWER SELECT years_produced FROM table_26352332_4 WHERE cylinder_layout = "V8"
{ "answer": "SELECT years_produced FROM table_26352332_4 WHERE cylinder_layout = \"V8\"", "context": "CREATE TABLE table_26352332_4 (years_produced VARCHAR, cylinder_layout VARCHAR)", "question": "The cylinder layout v8 is produced in what years?" }
### QUESTION What is the result for the champions jeonju kcc egis with runners-up seoul samsung thunders after 2007? ### CONTEXT CREATE TABLE table_name_39 (result VARCHAR, champions VARCHAR, year VARCHAR, runners_up VARCHAR) ### ANSWER SELECT result FROM table_name_39 WHERE year > 2007 AND runners_up = "seoul samsung thunders" AND champions = "jeonju kcc egis"
{ "answer": "SELECT result FROM table_name_39 WHERE year > 2007 AND runners_up = \"seoul samsung thunders\" AND champions = \"jeonju kcc egis\"", "context": "CREATE TABLE table_name_39 (result VARCHAR, champions VARCHAR, year VARCHAR, runners_up VARCHAR)", "question": "What is the result for the champions jeonju kcc egis with runners-up seoul samsung thunders after 2007?" }
### QUESTION How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played? ### CONTEXT CREATE TABLE table_name_36 (wins INTEGER, played VARCHAR, points VARCHAR, position VARCHAR) ### ANSWER SELECT SUM(wins) FROM table_name_36 WHERE points > 19 AND position < 12 AND played < 30
{ "answer": "SELECT SUM(wins) FROM table_name_36 WHERE points > 19 AND position < 12 AND played < 30", "context": "CREATE TABLE table_name_36 (wins INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)", "question": "How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played?" }
### QUESTION What is the affiliation of the University called Explorers? ### CONTEXT CREATE TABLE table_19210115_1 (affiliation VARCHAR, nickname VARCHAR) ### ANSWER SELECT affiliation FROM table_19210115_1 WHERE nickname = "Explorers"
{ "answer": "SELECT affiliation FROM table_19210115_1 WHERE nickname = \"Explorers\"", "context": "CREATE TABLE table_19210115_1 (affiliation VARCHAR, nickname VARCHAR)", "question": "What is the affiliation of the University called Explorers?" }
### QUESTION Find the average age of female (sex is F) students who have secretary votes in the spring election cycle. ### CONTEXT CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR) ### ANSWER SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring"
{ "answer": "SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = \"F\" AND T2.Election_Cycle = \"Spring\"", "context": "CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)", "question": "Find the average age of female (sex is F) students who have secretary votes in the spring election cycle." }
### QUESTION Who had the high assist total on january 2? ### CONTEXT CREATE TABLE table_17340355_7 (high_assists VARCHAR, date VARCHAR) ### ANSWER SELECT high_assists FROM table_17340355_7 WHERE date = "January 2"
{ "answer": "SELECT high_assists FROM table_17340355_7 WHERE date = \"January 2\"", "context": "CREATE TABLE table_17340355_7 (high_assists VARCHAR, date VARCHAR)", "question": "Who had the high assist total on january 2?" }
### QUESTION How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown? ### CONTEXT CREATE TABLE table_27116696_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR) ### ANSWER SELECT us_viewers__million_ FROM table_27116696_1 WHERE directed_by = "Allison Liddi-Brown"
{ "answer": "SELECT us_viewers__million_ FROM table_27116696_1 WHERE directed_by = \"Allison Liddi-Brown\"", "context": "CREATE TABLE table_27116696_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR)", "question": "How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?" }
### QUESTION Name the mountains classification for alexander kristoff ### CONTEXT CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, points_classification VARCHAR) ### ANSWER SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = "Alexander Kristoff"
{ "answer": "SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = \"Alexander Kristoff\"", "context": "CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, points_classification VARCHAR)", "question": "Name the mountains classification for alexander kristoff" }
### QUESTION How man cuts were there of players who had 0 wins but had 1 player in the top 25 with more than 4 events? ### CONTEXT CREATE TABLE table_name_76 (cuts_made INTEGER, events VARCHAR, wins VARCHAR, top_25 VARCHAR) ### ANSWER SELECT SUM(cuts_made) FROM table_name_76 WHERE wins = 0 AND top_25 = 1 AND events > 4
{ "answer": "SELECT SUM(cuts_made) FROM table_name_76 WHERE wins = 0 AND top_25 = 1 AND events > 4", "context": "CREATE TABLE table_name_76 (cuts_made INTEGER, events VARCHAR, wins VARCHAR, top_25 VARCHAR)", "question": "How man cuts were there of players who had 0 wins but had 1 player in the top 25 with more than 4 events?" }
### QUESTION What is the highest Against where they lost less than 20 games, tied more than 2 of them, and they had Favour less than 11? ### CONTEXT CREATE TABLE table_name_85 (against INTEGER, favour VARCHAR, lost VARCHAR, draw VARCHAR) ### ANSWER SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11
{ "answer": "SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11", "context": "CREATE TABLE table_name_85 (against INTEGER, favour VARCHAR, lost VARCHAR, draw VARCHAR)", "question": "What is the highest Against where they lost less than 20 games, tied more than 2 of them, and they had Favour less than 11?" }
### QUESTION List the 1st air date for the episode with a iceb786e production code. ### CONTEXT CREATE TABLE table_2501754_3 (original_airdate VARCHAR, prod_code VARCHAR) ### ANSWER SELECT original_airdate FROM table_2501754_3 WHERE prod_code = "ICEB786E"
{ "answer": "SELECT original_airdate FROM table_2501754_3 WHERE prod_code = \"ICEB786E\"", "context": "CREATE TABLE table_2501754_3 (original_airdate VARCHAR, prod_code VARCHAR)", "question": "List the 1st air date for the episode with a iceb786e production code." }
### QUESTION What is Event, when Round is "1", when Location is "New Town, North Dakota , United States" and when Time is "4:12"? ### CONTEXT CREATE TABLE table_name_9 (event VARCHAR, time VARCHAR, round VARCHAR, location VARCHAR) ### ANSWER SELECT event FROM table_name_9 WHERE round = 1 AND location = "new town, north dakota , united states" AND time = "4:12"
{ "answer": "SELECT event FROM table_name_9 WHERE round = 1 AND location = \"new town, north dakota , united states\" AND time = \"4:12\"", "context": "CREATE TABLE table_name_9 (event VARCHAR, time VARCHAR, round VARCHAR, location VARCHAR)", "question": "What is Event, when Round is \"1\", when Location is \"New Town, North Dakota , United States\" and when Time is \"4:12\"?" }
### QUESTION What is the average rating stars and title for the oldest movie? ### CONTEXT CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (YEAR INTEGER) ### ANSWER SELECT AVG(T1.stars), T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT MIN(YEAR) FROM Movie)
{ "answer": "SELECT AVG(T1.stars), T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT MIN(YEAR) FROM Movie)", "context": "CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (YEAR INTEGER)", "question": "What is the average rating stars and title for the oldest movie?" }
### QUESTION List the duration, file size and format of songs whose genre is pop, ordered by title? ### CONTEXT CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, song_name VARCHAR); CREATE TABLE files (duration VARCHAR, file_size VARCHAR, formats VARCHAR, f_id VARCHAR) ### ANSWER SELECT T1.duration, T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = "pop" ORDER BY T2.song_name
{ "answer": "SELECT T1.duration, T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.genre_is = \"pop\" ORDER BY T2.song_name", "context": "CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, song_name VARCHAR); CREATE TABLE files (duration VARCHAR, file_size VARCHAR, formats VARCHAR, f_id VARCHAR)", "question": "List the duration, file size and format of songs whose genre is pop, ordered by title?" }
### QUESTION How many different L2 cache numbers are there for the 7130M model? ### CONTEXT CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR) ### ANSWER SELECT COUNT(l2_cache__mb_) FROM table_269920_3 WHERE model = "7130M"
{ "answer": "SELECT COUNT(l2_cache__mb_) FROM table_269920_3 WHERE model = \"7130M\"", "context": "CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR)", "question": "How many different L2 cache numbers are there for the 7130M model?" }
### QUESTION Find the first name and gender of student who have more than one pet. ### CONTEXT CREATE TABLE student (fname VARCHAR, sex VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR) ### ANSWER SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1
{ "answer": "SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1", "context": "CREATE TABLE student (fname VARCHAR, sex VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR)", "question": "Find the first name and gender of student who have more than one pet." }
### QUESTION What was Footscray's score when it played as the home team? ### CONTEXT CREATE TABLE table_name_2 (home_team VARCHAR) ### ANSWER SELECT home_team AS score FROM table_name_2 WHERE home_team = "footscray"
{ "answer": "SELECT home_team AS score FROM table_name_2 WHERE home_team = \"footscray\"", "context": "CREATE TABLE table_name_2 (home_team VARCHAR)", "question": "What was Footscray's score when it played as the home team?" }
### QUESTION What was the round when he fought Joe Stevenson? ### CONTEXT CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR) ### ANSWER SELECT round FROM table_name_26 WHERE opponent = "joe stevenson"
{ "answer": "SELECT round FROM table_name_26 WHERE opponent = \"joe stevenson\"", "context": "CREATE TABLE table_name_26 (round VARCHAR, opponent VARCHAR)", "question": "What was the round when he fought Joe Stevenson?" }
### QUESTION Name the simplified charaacters being hsin-yüan … i-ma ### CONTEXT CREATE TABLE table_16162581_1 (simplified_characters VARCHAR, wade_giles VARCHAR) ### ANSWER SELECT simplified_characters FROM table_16162581_1 WHERE wade_giles = "hsin-yüan … i-ma"
{ "answer": "SELECT simplified_characters FROM table_16162581_1 WHERE wade_giles = \"hsin-yüan … i-ma\"", "context": "CREATE TABLE table_16162581_1 (simplified_characters VARCHAR, wade_giles VARCHAR)", "question": "Name the simplified charaacters being hsin-yüan … i-ma" }
### QUESTION What is the highest Ranking Round Rank for Russia with a Final Rank over 11? ### CONTEXT CREATE TABLE table_name_3 (ranking_round_rank INTEGER, nation VARCHAR, final_rank VARCHAR) ### ANSWER SELECT MAX(ranking_round_rank) FROM table_name_3 WHERE nation = "russia" AND final_rank > 11
{ "answer": "SELECT MAX(ranking_round_rank) FROM table_name_3 WHERE nation = \"russia\" AND final_rank > 11", "context": "CREATE TABLE table_name_3 (ranking_round_rank INTEGER, nation VARCHAR, final_rank VARCHAR)", "question": "What is the highest Ranking Round Rank for Russia with a Final Rank over 11?" }
### QUESTION Find the average price of wines that are not produced from Sonoma county. ### CONTEXT CREATE TABLE wine (price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Appelation VARCHAR) ### ANSWER SELECT AVG(price) FROM wine WHERE NOT Appelation IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')
{ "answer": "SELECT AVG(price) FROM wine WHERE NOT Appelation IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma')", "context": "CREATE TABLE wine (price INTEGER, Appelation VARCHAR); CREATE TABLE APPELLATIONS (Appelation VARCHAR, County VARCHAR); CREATE TABLE WINE (Appelation VARCHAR)", "question": "Find the average price of wines that are not produced from Sonoma county." }
### QUESTION Which student visited restaurant most often? List student's first name and last name. ### CONTEXT CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR) ### ANSWER SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR)", "question": "Which student visited restaurant most often? List student's first name and last name." }
### QUESTION List the names of all players who have a crossing score higher than 90 and prefer their right foot. ### CONTEXT CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, crossing VARCHAR, preferred_foot VARCHAR) ### ANSWER SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = "right"
{ "answer": "SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = \"right\"", "context": "CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, crossing VARCHAR, preferred_foot VARCHAR)", "question": "List the names of all players who have a crossing score higher than 90 and prefer their right foot." }
### QUESTION What is the M-R Romaja for the province having a capital of Cheongju? ### CONTEXT CREATE TABLE table_name_34 (m_r_romaja VARCHAR, capital VARCHAR) ### ANSWER SELECT m_r_romaja FROM table_name_34 WHERE capital = "cheongju"
{ "answer": "SELECT m_r_romaja FROM table_name_34 WHERE capital = \"cheongju\"", "context": "CREATE TABLE table_name_34 (m_r_romaja VARCHAR, capital VARCHAR)", "question": "What is the M-R Romaja for the province having a capital of Cheongju?" }
### QUESTION Who were the opponents in the final where the score in the final is 6–4, 7–6 2? ### CONTEXT CREATE TABLE table_22597626_17 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT opponents_in_the_final FROM table_22597626_17 WHERE score_in_the_final = "6–4, 7–6 2"
{ "answer": "SELECT opponents_in_the_final FROM table_22597626_17 WHERE score_in_the_final = \"6–4, 7–6 2\"", "context": "CREATE TABLE table_22597626_17 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)", "question": "Who were the opponents in the final where the score in the final is 6–4, 7–6 2?" }
### QUESTION What team was the home team on 27 june 1981, at vfl park? ### CONTEXT CREATE TABLE table_name_88 (home_team VARCHAR, date VARCHAR, venue VARCHAR) ### ANSWER SELECT home_team FROM table_name_88 WHERE date = "27 june 1981" AND venue = "vfl park"
{ "answer": "SELECT home_team FROM table_name_88 WHERE date = \"27 june 1981\" AND venue = \"vfl park\"", "context": "CREATE TABLE table_name_88 (home_team VARCHAR, date VARCHAR, venue VARCHAR)", "question": "What team was the home team on 27 june 1981, at vfl park?" }
### QUESTION If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians? ### CONTEXT CREATE TABLE table_15314901_1 (velocity_angle_η_in_i_radians VARCHAR, coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR) ### ANSWER SELECT velocity_angle_η_in_i_radians FROM table_15314901_1 WHERE coordinate_velocity_v_dx_dt_in_units_of_c = "(e 2 − 1)/(e 2 + 1) ≅ 0.761"
{ "answer": "SELECT velocity_angle_η_in_i_radians FROM table_15314901_1 WHERE coordinate_velocity_v_dx_dt_in_units_of_c = \"(e 2 − 1)/(e 2 + 1) ≅ 0.761\"", "context": "CREATE TABLE table_15314901_1 (velocity_angle_η_in_i_radians VARCHAR, coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR)", "question": "If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians?" }
### QUESTION What is the pick# for the medicine hat tigers (wchl)? ### CONTEXT CREATE TABLE table_1473672_2 (pick__number INTEGER, college_junior_club_team VARCHAR) ### ANSWER SELECT MIN(pick__number) FROM table_1473672_2 WHERE college_junior_club_team = "Medicine Hat Tigers (WCHL)"
{ "answer": "SELECT MIN(pick__number) FROM table_1473672_2 WHERE college_junior_club_team = \"Medicine Hat Tigers (WCHL)\"", "context": "CREATE TABLE table_1473672_2 (pick__number INTEGER, college_junior_club_team VARCHAR)", "question": "What is the pick# for the medicine hat tigers (wchl)?" }
### QUESTION who is the constructor when the free practice driver(s) is n/a, the chassis is 005 and the driver is takuma sato? ### CONTEXT CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, free_practice_driver_s_ VARCHAR, chassis VARCHAR) ### ANSWER SELECT constructor FROM table_name_42 WHERE free_practice_driver_s_ = "n/a" AND chassis = "005" AND driver = "takuma sato"
{ "answer": "SELECT constructor FROM table_name_42 WHERE free_practice_driver_s_ = \"n/a\" AND chassis = \"005\" AND driver = \"takuma sato\"", "context": "CREATE TABLE table_name_42 (constructor VARCHAR, driver VARCHAR, free_practice_driver_s_ VARCHAR, chassis VARCHAR)", "question": "who is the constructor when the free practice driver(s) is n/a, the chassis is 005 and the driver is takuma sato?" }
### QUESTION What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7? ### CONTEXT CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR) ### ANSWER SELECT MAX(total) FROM table_name_87 WHERE bronze = 1 AND rank = "7" AND gold > 0
{ "answer": "SELECT MAX(total) FROM table_name_87 WHERE bronze = 1 AND rank = \"7\" AND gold > 0", "context": "CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)", "question": "What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?" }
### QUESTION Which attendance has a Channel of espn, and a Date of september 5, 2002? ### CONTEXT CREATE TABLE table_name_57 (attendance VARCHAR, channel VARCHAR, date VARCHAR) ### ANSWER SELECT attendance FROM table_name_57 WHERE channel = "espn" AND date = "september 5, 2002"
{ "answer": "SELECT attendance FROM table_name_57 WHERE channel = \"espn\" AND date = \"september 5, 2002\"", "context": "CREATE TABLE table_name_57 (attendance VARCHAR, channel VARCHAR, date VARCHAR)", "question": "Which attendance has a Channel of espn, and a Date of september 5, 2002?" }
### QUESTION Which pick was from Lamar High School? ### CONTEXT CREATE TABLE table_name_15 (pick VARCHAR, school VARCHAR) ### ANSWER SELECT pick FROM table_name_15 WHERE school = "lamar high school"
{ "answer": "SELECT pick FROM table_name_15 WHERE school = \"lamar high school\"", "context": "CREATE TABLE table_name_15 (pick VARCHAR, school VARCHAR)", "question": "Which pick was from Lamar High School?" }
### QUESTION How many people vacated to successor Dave E. Satterfield, Jr. (d)? ### CONTEXT CREATE TABLE table_2159547_3 (vacator VARCHAR, successor VARCHAR) ### ANSWER SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = "Dave E. Satterfield, Jr. (D)"
{ "answer": "SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = \"Dave E. Satterfield, Jr. (D)\"", "context": "CREATE TABLE table_2159547_3 (vacator VARCHAR, successor VARCHAR)", "question": "How many people vacated to successor Dave E. Satterfield, Jr. (d)?" }
### QUESTION What capacity opened lessed than 1937 and is located in the region of champagne-ardenne? ### CONTEXT CREATE TABLE table_name_95 (capacity VARCHAR, opened VARCHAR, region VARCHAR) ### ANSWER SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = "champagne-ardenne"
{ "answer": "SELECT capacity FROM table_name_95 WHERE opened < 1937 AND region = \"champagne-ardenne\"", "context": "CREATE TABLE table_name_95 (capacity VARCHAR, opened VARCHAR, region VARCHAR)", "question": "What capacity opened lessed than 1937 and is located in the region of champagne-ardenne?" }
### QUESTION What is the record of game 7? ### CONTEXT CREATE TABLE table_name_4 (record VARCHAR, game VARCHAR) ### ANSWER SELECT record FROM table_name_4 WHERE game = 7
{ "answer": "SELECT record FROM table_name_4 WHERE game = 7", "context": "CREATE TABLE table_name_4 (record VARCHAR, game VARCHAR)", "question": "What is the record of game 7?" }
### QUESTION Where was the UFC 154 match held? ### CONTEXT CREATE TABLE table_name_18 (location VARCHAR, event VARCHAR) ### ANSWER SELECT location FROM table_name_18 WHERE event = "ufc 154"
{ "answer": "SELECT location FROM table_name_18 WHERE event = \"ufc 154\"", "context": "CREATE TABLE table_name_18 (location VARCHAR, event VARCHAR)", "question": "Where was the UFC 154 match held?" }
### QUESTION What is Player, when Opponent is source: . last updated: 28 june 2007.? ### CONTEXT CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR) ### ANSWER SELECT player FROM table_name_17 WHERE opponent = "source: . last updated: 28 june 2007."
{ "answer": "SELECT player FROM table_name_17 WHERE opponent = \"source: . last updated: 28 june 2007.\"", "context": "CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR)", "question": "What is Player, when Opponent is source: . last updated: 28 june 2007.?" }
### QUESTION How much is the purse ( $ ) when the margin of victory is 1 stroke? ### CONTEXT CREATE TABLE table_13388681_1 (purse___$__ VARCHAR, margin_of_victory VARCHAR) ### ANSWER SELECT purse___$__ FROM table_13388681_1 WHERE margin_of_victory = "1 stroke"
{ "answer": "SELECT purse___$__ FROM table_13388681_1 WHERE margin_of_victory = \"1 stroke\"", "context": "CREATE TABLE table_13388681_1 (purse___$__ VARCHAR, margin_of_victory VARCHAR)", "question": "How much is the purse ( $ ) when the margin of victory is 1 stroke?" }
### QUESTION Team of honda 250cc, and a Time of 31’ 03.093 has what lowest rank? ### CONTEXT CREATE TABLE table_name_74 (rank INTEGER, team VARCHAR, time VARCHAR) ### ANSWER SELECT MIN(rank) FROM table_name_74 WHERE team = "honda 250cc" AND time = "31’ 03.093"
{ "answer": "SELECT MIN(rank) FROM table_name_74 WHERE team = \"honda 250cc\" AND time = \"31’ 03.093\"", "context": "CREATE TABLE table_name_74 (rank INTEGER, team VARCHAR, time VARCHAR)", "question": "Team of honda 250cc, and a Time of 31’ 03.093 has what lowest rank?" }
### QUESTION How many different actors from the Second national tour year 2 played the character played by Oliver Tompsett from the original West End cast? ### CONTEXT CREATE TABLE table_19529639_3 (second_national_tour_year_2 VARCHAR, original_west_end_cast VARCHAR) ### ANSWER SELECT COUNT(second_national_tour_year_2) FROM table_19529639_3 WHERE original_west_end_cast = "Oliver Tompsett"
{ "answer": "SELECT COUNT(second_national_tour_year_2) FROM table_19529639_3 WHERE original_west_end_cast = \"Oliver Tompsett\"", "context": "CREATE TABLE table_19529639_3 (second_national_tour_year_2 VARCHAR, original_west_end_cast VARCHAR)", "question": "How many different actors from the Second national tour year 2 played the character played by Oliver Tompsett from the original West End cast?" }
### QUESTION Which Lost has Seasons of 2, and Goals against larger than 43? ### CONTEXT CREATE TABLE table_name_75 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR) ### ANSWER SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43
{ "answer": "SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43", "context": "CREATE TABLE table_name_75 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR)", "question": "Which Lost has Seasons of 2, and Goals against larger than 43?" }
### QUESTION What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79? ### CONTEXT CREATE TABLE table_name_69 (markatal INTEGER, municipality VARCHAR, inhabitants_per_km² VARCHAR) ### ANSWER SELECT MAX(markatal) FROM table_name_69 WHERE municipality = "leirvík" AND inhabitants_per_km² > 79
{ "answer": "SELECT MAX(markatal) FROM table_name_69 WHERE municipality = \"leirvík\" AND inhabitants_per_km² > 79", "context": "CREATE TABLE table_name_69 (markatal INTEGER, municipality VARCHAR, inhabitants_per_km² VARCHAR)", "question": "What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79?" }
### QUESTION Name the least december for hsbc arena/18,017 ### CONTEXT CREATE TABLE table_27537870_5 (december INTEGER, location_attendance VARCHAR) ### ANSWER SELECT MIN(december) FROM table_27537870_5 WHERE location_attendance = "HSBC Arena/18,017"
{ "answer": "SELECT MIN(december) FROM table_27537870_5 WHERE location_attendance = \"HSBC Arena/18,017\"", "context": "CREATE TABLE table_27537870_5 (december INTEGER, location_attendance VARCHAR)", "question": "Name the least december for hsbc arena/18,017" }
### QUESTION Tell me the home team score for richmond home team ### CONTEXT CREATE TABLE table_name_87 (home_team VARCHAR) ### ANSWER SELECT home_team AS score FROM table_name_87 WHERE home_team = "richmond"
{ "answer": "SELECT home_team AS score FROM table_name_87 WHERE home_team = \"richmond\"", "context": "CREATE TABLE table_name_87 (home_team VARCHAR)", "question": "Tell me the home team score for richmond home team" }
### QUESTION Where is the home ground for the club coached by nick pantsaras and founded before 1946? ### CONTEXT CREATE TABLE table_name_48 (home_ground VARCHAR, founded VARCHAR, coach VARCHAR) ### ANSWER SELECT home_ground FROM table_name_48 WHERE founded < 1946 AND coach = "nick pantsaras"
{ "answer": "SELECT home_ground FROM table_name_48 WHERE founded < 1946 AND coach = \"nick pantsaras\"", "context": "CREATE TABLE table_name_48 (home_ground VARCHAR, founded VARCHAR, coach VARCHAR)", "question": "Where is the home ground for the club coached by nick pantsaras and founded before 1946?" }