text
stringlengths
146
1.06k
source
dict
### QUESTION What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? ### CONTEXT CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR) ### ANSWER SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress"
{ "answer": "SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = \"nominated\" AND actor = \"viola davis\" AND award = \"best supporting actress\"", "context": "CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR)", "question": "What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress?" }
### QUESTION Which Runs is the highest one that has a Match larger than 63, and a Venue of national stadium, karachi, and a Year smaller than 1996? ### CONTEXT CREATE TABLE table_name_75 (runs INTEGER, year VARCHAR, match VARCHAR, venue VARCHAR) ### ANSWER SELECT MAX(runs) FROM table_name_75 WHERE match > 63 AND venue = "national stadium, karachi" AND year < 1996
{ "answer": "SELECT MAX(runs) FROM table_name_75 WHERE match > 63 AND venue = \"national stadium, karachi\" AND year < 1996", "context": "CREATE TABLE table_name_75 (runs INTEGER, year VARCHAR, match VARCHAR, venue VARCHAR)", "question": "Which Runs is the highest one that has a Match larger than 63, and a Venue of national stadium, karachi, and a Year smaller than 1996?" }
### QUESTION What's the original air date of the episode with a broadcast order s04 e01? ### CONTEXT CREATE TABLE table_1231892_4 (us_air_date VARCHAR, broadcast_order VARCHAR) ### ANSWER SELECT us_air_date FROM table_1231892_4 WHERE broadcast_order = "S04 E01"
{ "answer": "SELECT us_air_date FROM table_1231892_4 WHERE broadcast_order = \"S04 E01\"", "context": "CREATE TABLE table_1231892_4 (us_air_date VARCHAR, broadcast_order VARCHAR)", "question": "What's the original air date of the episode with a broadcast order s04 e01?" }
### QUESTION Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? ### CONTEXT CREATE TABLE table_name_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR) ### ANSWER SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 june"
{ "answer": "SELECT winning_driver FROM table_name_15 WHERE winning_team = \"a.z.k./roc-compétition a.z.k./roc-compétition\" AND date = \"2 june\"", "context": "CREATE TABLE table_name_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR)", "question": "Who is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team?" }
### QUESTION What was the host of the round in the Montagne Center in Texas? ### CONTEXT CREATE TABLE table_name_62 (host VARCHAR, state VARCHAR, venue VARCHAR) ### ANSWER SELECT host FROM table_name_62 WHERE state = "texas" AND venue = "montagne center"
{ "answer": "SELECT host FROM table_name_62 WHERE state = \"texas\" AND venue = \"montagne center\"", "context": "CREATE TABLE table_name_62 (host VARCHAR, state VARCHAR, venue VARCHAR)", "question": "What was the host of the round in the Montagne Center in Texas?" }
### QUESTION Which current venues location is Mason, Ohio? ### CONTEXT CREATE TABLE table_14903081_1 (current_venue VARCHAR, location VARCHAR) ### ANSWER SELECT current_venue FROM table_14903081_1 WHERE location = "Mason, Ohio"
{ "answer": "SELECT current_venue FROM table_14903081_1 WHERE location = \"Mason, Ohio\"", "context": "CREATE TABLE table_14903081_1 (current_venue VARCHAR, location VARCHAR)", "question": "Which current venues location is Mason, Ohio?" }
### QUESTION Show the statement id and the statement detail for the statement with most number of accounts. ### CONTEXT CREATE TABLE Accounts (statement_id VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR) ### ANSWER SELECT T1.statement_id, T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.statement_id, T2.statement_details FROM Accounts AS T1 JOIN Statements AS T2 ON T1.statement_id = T2.statement_id GROUP BY T1.statement_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Accounts (statement_id VARCHAR); CREATE TABLE Statements (statement_details VARCHAR, statement_id VARCHAR)", "question": "Show the statement id and the statement detail for the statement with most number of accounts." }
### QUESTION what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth? ### CONTEXT CREATE TABLE table_name_48 (race VARCHAR, course VARCHAR, jockey VARCHAR, margin VARCHAR) ### ANSWER SELECT race FROM table_name_48 WHERE jockey = "frankie dettori" AND margin > 3 AND course = "yarmouth"
{ "answer": "SELECT race FROM table_name_48 WHERE jockey = \"frankie dettori\" AND margin > 3 AND course = \"yarmouth\"", "context": "CREATE TABLE table_name_48 (race VARCHAR, course VARCHAR, jockey VARCHAR, margin VARCHAR)", "question": "what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth?" }
### QUESTION What is the number of people in attendance when venue shows A, and Di Matteo, M. Hughes were the scorers? ### CONTEXT CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, scorers VARCHAR) ### ANSWER SELECT SUM(attendance) FROM table_name_99 WHERE venue = "a" AND scorers = "di matteo, m. hughes"
{ "answer": "SELECT SUM(attendance) FROM table_name_99 WHERE venue = \"a\" AND scorers = \"di matteo, m. hughes\"", "context": "CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, scorers VARCHAR)", "question": "What is the number of people in attendance when venue shows A, and Di Matteo, M. Hughes were the scorers?" }
### QUESTION What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction? ### CONTEXT CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR) ### ANSWER SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'
{ "answer": "SELECT DISTINCT T1.name, T1.location, T1.product FROM enzyme AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.enzyme_id = T1.id WHERE T2.interaction_type = 'inhibitor'", "context": "CREATE TABLE enzyme (name VARCHAR, location VARCHAR, product VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (enzyme_id VARCHAR, interaction_type VARCHAR)", "question": "What are the distinct name, location and products of the enzymes which has any 'inhibitor' interaction?" }
### QUESTION Which Nationality has a Player of rudy poeschek? ### CONTEXT CREATE TABLE table_name_51 (nationality VARCHAR, player VARCHAR) ### ANSWER SELECT nationality FROM table_name_51 WHERE player = "rudy poeschek"
{ "answer": "SELECT nationality FROM table_name_51 WHERE player = \"rudy poeschek\"", "context": "CREATE TABLE table_name_51 (nationality VARCHAR, player VARCHAR)", "question": "Which Nationality has a Player of rudy poeschek?" }
### QUESTION Which Position has a Player of patrick macdonald? ### CONTEXT CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) ### ANSWER SELECT position FROM table_name_35 WHERE player = "patrick macdonald"
{ "answer": "SELECT position FROM table_name_35 WHERE player = \"patrick macdonald\"", "context": "CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR)", "question": "Which Position has a Player of patrick macdonald?" }
### QUESTION What is the total of Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1? ### CONTEXT CREATE TABLE table_name_22 (played INTEGER, position VARCHAR, goals_for VARCHAR, lost VARCHAR) ### ANSWER SELECT SUM(played) FROM table_name_22 WHERE goals_for > 60 AND lost = 8 AND position < 1
{ "answer": "SELECT SUM(played) FROM table_name_22 WHERE goals_for > 60 AND lost = 8 AND position < 1", "context": "CREATE TABLE table_name_22 (played INTEGER, position VARCHAR, goals_for VARCHAR, lost VARCHAR)", "question": "What is the total of Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1?" }
### QUESTION How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere? ### CONTEXT CREATE TABLE table_19982699_1 (_number INTEGER, producer VARCHAR, television_premiere VARCHAR) ### ANSWER SELECT MIN(_number) FROM table_19982699_1 WHERE producer = "Charles Salmon" AND television_premiere = "January 27, 2007"
{ "answer": "SELECT MIN(_number) FROM table_19982699_1 WHERE producer = \"Charles Salmon\" AND television_premiere = \"January 27, 2007\"", "context": "CREATE TABLE table_19982699_1 (_number INTEGER, producer VARCHAR, television_premiere VARCHAR)", "question": "How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?" }
### QUESTION What is the pos with more than 1 tier during Pokal Slovenije 1. round? ### CONTEXT CREATE TABLE table_name_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR) ### ANSWER SELECT pos FROM table_name_20 WHERE tier > 1 AND cup_competitions = "pokal slovenije 1. round"
{ "answer": "SELECT pos FROM table_name_20 WHERE tier > 1 AND cup_competitions = \"pokal slovenije 1. round\"", "context": "CREATE TABLE table_name_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR)", "question": "What is the pos with more than 1 tier during Pokal Slovenije 1. round?" }
### QUESTION Which race resulted in 2nd place in the 1996 season on 20-Jan-1996? ### CONTEXT CREATE TABLE table_name_80 (race VARCHAR, date VARCHAR, place VARCHAR, season VARCHAR) ### ANSWER SELECT race FROM table_name_80 WHERE place = "2nd" AND season = 1996 AND date = "20-jan-1996"
{ "answer": "SELECT race FROM table_name_80 WHERE place = \"2nd\" AND season = 1996 AND date = \"20-jan-1996\"", "context": "CREATE TABLE table_name_80 (race VARCHAR, date VARCHAR, place VARCHAR, season VARCHAR)", "question": "Which race resulted in 2nd place in the 1996 season on 20-Jan-1996?" }
### QUESTION Which Season has a Final Place of 8th and 8 Podiums? ### CONTEXT CREATE TABLE table_name_79 (season VARCHAR, final_placing VARCHAR, podiums VARCHAR) ### ANSWER SELECT season FROM table_name_79 WHERE final_placing = "8th" AND podiums = "8"
{ "answer": "SELECT season FROM table_name_79 WHERE final_placing = \"8th\" AND podiums = \"8\"", "context": "CREATE TABLE table_name_79 (season VARCHAR, final_placing VARCHAR, podiums VARCHAR)", "question": "Which Season has a Final Place of 8th and 8 Podiums?" }
### QUESTION What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile? ### CONTEXT CREATE TABLE table_name_57 (picture_coding_types VARCHAR, chroma_format VARCHAR, name VARCHAR) ### ANSWER SELECT picture_coding_types FROM table_name_57 WHERE chroma_format = "4:2:2 or 4:2:0" AND name = "4:2:2 profile"
{ "answer": "SELECT picture_coding_types FROM table_name_57 WHERE chroma_format = \"4:2:2 or 4:2:0\" AND name = \"4:2:2 profile\"", "context": "CREATE TABLE table_name_57 (picture_coding_types VARCHAR, chroma_format VARCHAR, name VARCHAR)", "question": "What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile?" }
### QUESTION WHo is the Player got a Pick # smaller than 61, and a College of texas? ### CONTEXT CREATE TABLE table_name_17 (player VARCHAR, pick__number VARCHAR, college VARCHAR) ### ANSWER SELECT player FROM table_name_17 WHERE pick__number < 61 AND college = "texas"
{ "answer": "SELECT player FROM table_name_17 WHERE pick__number < 61 AND college = \"texas\"", "context": "CREATE TABLE table_name_17 (player VARCHAR, pick__number VARCHAR, college VARCHAR)", "question": "WHo is the Player got a Pick # smaller than 61, and a College of texas?" }
### QUESTION What's the most amount of point finishes for v8supercar? ### CONTEXT CREATE TABLE table_2822193_1 (point_finishes__non_podium_ INTEGER, series VARCHAR) ### ANSWER SELECT MAX(point_finishes__non_podium_) FROM table_2822193_1 WHERE series = "V8Supercar"
{ "answer": "SELECT MAX(point_finishes__non_podium_) FROM table_2822193_1 WHERE series = \"V8Supercar\"", "context": "CREATE TABLE table_2822193_1 (point_finishes__non_podium_ INTEGER, series VARCHAR)", "question": "What's the most amount of point finishes for v8supercar?" }
### QUESTION What is the production code for episode 6 in the season? ### CONTEXT CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR) ### ANSWER SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6
{ "answer": "SELECT production_code FROM table_1876825_3 WHERE no_in_season = 6", "context": "CREATE TABLE table_1876825_3 (production_code VARCHAR, no_in_season VARCHAR)", "question": "What is the production code for episode 6 in the season?" }
### QUESTION After week 11, what was the Result on December 13, 1964? ### CONTEXT CREATE TABLE table_name_49 (result VARCHAR, week VARCHAR, date VARCHAR) ### ANSWER SELECT result FROM table_name_49 WHERE week > 11 AND date = "december 13, 1964"
{ "answer": "SELECT result FROM table_name_49 WHERE week > 11 AND date = \"december 13, 1964\"", "context": "CREATE TABLE table_name_49 (result VARCHAR, week VARCHAR, date VARCHAR)", "question": "After week 11, what was the Result on December 13, 1964?" }
### QUESTION Which distinct source system code includes the substring 'en'? ### CONTEXT CREATE TABLE cmi_cross_references (source_system_code VARCHAR) ### ANSWER SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'
{ "answer": "SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'", "context": "CREATE TABLE cmi_cross_references (source_system_code VARCHAR)", "question": "Which distinct source system code includes the substring 'en'?" }
### QUESTION How many total team penalties are there when cross country penalties is 30.40? ### CONTEXT CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR) ### ANSWER SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = "30.40"
{ "answer": "SELECT total_team_penalties FROM table_18666752_3 WHERE cross_country_penalties = \"30.40\"", "context": "CREATE TABLE table_18666752_3 (total_team_penalties VARCHAR, cross_country_penalties VARCHAR)", "question": "How many total team penalties are there when cross country penalties is 30.40?" }
### QUESTION Show the budget type code and description and the corresponding document id. ### CONTEXT CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR) ### ANSWER SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code
{ "answer": "SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code", "context": "CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR)", "question": "Show the budget type code and description and the corresponding document id." }
### QUESTION How many regions had an incarceration rate for females of 63? ### CONTEXT CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, incarceration_rate_female VARCHAR) ### ANSWER SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63
{ "answer": "SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63", "context": "CREATE TABLE table_25042332_31 (incarceration_rate_total VARCHAR, incarceration_rate_female VARCHAR)", "question": "How many regions had an incarceration rate for females of 63?" }
### QUESTION Which High rebounds have a Game larger than 2, and a Team of @ denver, and High assists of kobe bryant (5)? ### CONTEXT CREATE TABLE table_name_27 (high_rebounds VARCHAR, high_assists VARCHAR, game VARCHAR, team VARCHAR) ### ANSWER SELECT high_rebounds FROM table_name_27 WHERE game > 2 AND team = "@ denver" AND high_assists = "kobe bryant (5)"
{ "answer": "SELECT high_rebounds FROM table_name_27 WHERE game > 2 AND team = \"@ denver\" AND high_assists = \"kobe bryant (5)\"", "context": "CREATE TABLE table_name_27 (high_rebounds VARCHAR, high_assists VARCHAR, game VARCHAR, team VARCHAR)", "question": "Which High rebounds have a Game larger than 2, and a Team of @ denver, and High assists of kobe bryant (5)?" }
### QUESTION Show the names for all females from Canada having a wedding in year 2016. ### CONTEXT CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR) ### ANSWER SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'
{ "answer": "SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'", "context": "CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR)", "question": "Show the names for all females from Canada having a wedding in year 2016." }
### QUESTION How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league? ### CONTEXT CREATE TABLE table_name_87 (new_entries_this_round VARCHAR, leagues_entering_at_this_round VARCHAR) ### ANSWER SELECT new_entries_this_round FROM table_name_87 WHERE leagues_entering_at_this_round = "tff third league & turkish regional amateur league"
{ "answer": "SELECT new_entries_this_round FROM table_name_87 WHERE leagues_entering_at_this_round = \"tff third league & turkish regional amateur league\"", "context": "CREATE TABLE table_name_87 (new_entries_this_round VARCHAR, leagues_entering_at_this_round VARCHAR)", "question": "How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league?" }
### QUESTION What nation has 0 as the silver, 1 as the bronze, with 18 as the rank? ### CONTEXT CREATE TABLE table_name_84 (nation VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR) ### ANSWER SELECT nation FROM table_name_84 WHERE silver = 0 AND bronze = 1 AND rank = "18"
{ "answer": "SELECT nation FROM table_name_84 WHERE silver = 0 AND bronze = 1 AND rank = \"18\"", "context": "CREATE TABLE table_name_84 (nation VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR)", "question": "What nation has 0 as the silver, 1 as the bronze, with 18 as the rank?" }
### QUESTION What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002? ### CONTEXT CREATE TABLE table_name_95 (displacement VARCHAR, year VARCHAR, power VARCHAR) ### ANSWER SELECT displacement FROM table_name_95 WHERE year > 2002 AND power = "220kw (299hp) @ 4000"
{ "answer": "SELECT displacement FROM table_name_95 WHERE year > 2002 AND power = \"220kw (299hp) @ 4000\"", "context": "CREATE TABLE table_name_95 (displacement VARCHAR, year VARCHAR, power VARCHAR)", "question": "What is the Displacement that has Power of 220kw (299hp) @ 4000, and a year larger than 2002?" }
### QUESTION What are the names of products whose availability equals to 1? ### CONTEXT CREATE TABLE view_product_availability (product_id VARCHAR, available_yn VARCHAR); CREATE TABLE products_for_hire (product_name VARCHAR, product_id VARCHAR) ### ANSWER SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1
{ "answer": "SELECT T2.product_name FROM view_product_availability AS T1 JOIN products_for_hire AS T2 ON T1.product_id = T2.product_id WHERE T1.available_yn = 1", "context": "CREATE TABLE view_product_availability (product_id VARCHAR, available_yn VARCHAR); CREATE TABLE products_for_hire (product_name VARCHAR, product_id VARCHAR)", "question": "What are the names of products whose availability equals to 1?" }
### QUESTION List the dates of enrollment and completion of the student with personal name "Karson". ### CONTEXT CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, personal_name VARCHAR) ### ANSWER SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = "Karson"
{ "answer": "SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = \"Karson\"", "context": "CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, personal_name VARCHAR)", "question": "List the dates of enrollment and completion of the student with personal name \"Karson\"." }
### QUESTION Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle. ### CONTEXT CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR) ### ANSWER SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"
{ "answer": "SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = \"NYC\" AND T2.Election_Cycle = \"Spring\"", "context": "CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)", "question": "Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle." }
### QUESTION How many millions of U.S. viewers watched episode 185? ### CONTEXT CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR) ### ANSWER SELECT us_viewers__millions_ FROM table_13301516_1 WHERE no_in_series = 185
{ "answer": "SELECT us_viewers__millions_ FROM table_13301516_1 WHERE no_in_series = 185", "context": "CREATE TABLE table_13301516_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)", "question": "How many millions of U.S. viewers watched episode 185?" }
### QUESTION What is the name of the player with an Overall larger than 227? ### CONTEXT CREATE TABLE table_name_14 (player VARCHAR, overall INTEGER) ### ANSWER SELECT player FROM table_name_14 WHERE overall > 227
{ "answer": "SELECT player FROM table_name_14 WHERE overall > 227", "context": "CREATE TABLE table_name_14 (player VARCHAR, overall INTEGER)", "question": "What is the name of the player with an Overall larger than 227?" }
### QUESTION Find the first names of professors who are not playing Canoeing or Kayaking. ### CONTEXT CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### ANSWER SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'
{ "answer": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'", "context": "CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)", "question": "Find the first names of professors who are not playing Canoeing or Kayaking." }
### QUESTION What is the Score of T2 Place Player Dow Finsterwald? ### CONTEXT CREATE TABLE table_name_12 (score VARCHAR, place VARCHAR, player VARCHAR) ### ANSWER SELECT score FROM table_name_12 WHERE place = "t2" AND player = "dow finsterwald"
{ "answer": "SELECT score FROM table_name_12 WHERE place = \"t2\" AND player = \"dow finsterwald\"", "context": "CREATE TABLE table_name_12 (score VARCHAR, place VARCHAR, player VARCHAR)", "question": "What is the Score of T2 Place Player Dow Finsterwald?" }
### QUESTION What is the number for years 1985-88 ### CONTEXT CREATE TABLE table_11545282_18 (no INTEGER, years_for_jazz VARCHAR) ### ANSWER SELECT MIN(no) FROM table_11545282_18 WHERE years_for_jazz = "1985-88"
{ "answer": "SELECT MIN(no) FROM table_11545282_18 WHERE years_for_jazz = \"1985-88\"", "context": "CREATE TABLE table_11545282_18 (no INTEGER, years_for_jazz VARCHAR)", "question": "What is the number for years 1985-88" }
### QUESTION Which club has the most members majoring in "600"? ### CONTEXT CREATE TABLE student (stuid VARCHAR, major VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### ANSWER SELECT 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.major = "600" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT 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.major = \"600\" GROUP BY t1.clubname ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE student (stuid VARCHAR, major VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)", "question": "Which club has the most members majoring in \"600\"?" }
### QUESTION List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS. ### CONTEXT CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR) ### ANSWER SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS"
{ "answer": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\"", "context": "CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)", "question": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS." }
### QUESTION What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109? ### CONTEXT CREATE TABLE table_name_35 (original_air_date VARCHAR, directed_by VARCHAR, production_code VARCHAR) ### ANSWER SELECT original_air_date FROM table_name_35 WHERE directed_by = "lev l. spiro" AND production_code = "07-00-109"
{ "answer": "SELECT original_air_date FROM table_name_35 WHERE directed_by = \"lev l. spiro\" AND production_code = \"07-00-109\"", "context": "CREATE TABLE table_name_35 (original_air_date VARCHAR, directed_by VARCHAR, production_code VARCHAR)", "question": "What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109?" }
### QUESTION What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3? ### CONTEXT CREATE TABLE table_name_60 (total INTEGER, name VARCHAR, other VARCHAR) ### ANSWER SELECT AVG(total) FROM table_name_60 WHERE name = "simon gillett category:articles with hcards" AND other > 3
{ "answer": "SELECT AVG(total) FROM table_name_60 WHERE name = \"simon gillett category:articles with hcards\" AND other > 3", "context": "CREATE TABLE table_name_60 (total INTEGER, name VARCHAR, other VARCHAR)", "question": "What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?" }
### QUESTION What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC? ### CONTEXT CREATE TABLE table_name_7 (year_10_6th_quad VARCHAR, open_2nd_viii VARCHAR, year_11_2nd_viii VARCHAR) ### ANSWER SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = "acgs" AND year_11_2nd_viii = "nc"
{ "answer": "SELECT year_10_6th_quad FROM table_name_7 WHERE open_2nd_viii = \"acgs\" AND year_11_2nd_viii = \"nc\"", "context": "CREATE TABLE table_name_7 (year_10_6th_quad VARCHAR, open_2nd_viii VARCHAR, year_11_2nd_viii VARCHAR)", "question": "What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC?" }
### QUESTION How many gold medals has the club with the most coaches won? ### CONTEXT CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR) ### ANSWER SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR)", "question": "How many gold medals has the club with the most coaches won?" }
### QUESTION display the full name (first and last name), and salary of those employees who working in any department located in London. ### CONTEXT CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR) ### ANSWER SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'
{ "answer": "SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'", "context": "CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR)", "question": "display the full name (first and last name), and salary of those employees who working in any department located in London." }
### QUESTION What are the manager's first name, last name and id who won the most manager award? ### CONTEXT CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE manager_award (player_id VARCHAR) ### ANSWER SELECT T1.name_first, T1.name_last, T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.name_first, T1.name_last, T2.player_id FROM player AS T1 JOIN manager_award AS T2 ON T1.player_id = T2.player_id GROUP BY T2.player_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE manager_award (player_id VARCHAR)", "question": "What are the manager's first name, last name and id who won the most manager award?" }
### QUESTION What is Away Team, when Ground is Colonial Stadium? ### CONTEXT CREATE TABLE table_name_19 (away_team VARCHAR, ground VARCHAR) ### ANSWER SELECT away_team FROM table_name_19 WHERE ground = "colonial stadium"
{ "answer": "SELECT away_team FROM table_name_19 WHERE ground = \"colonial stadium\"", "context": "CREATE TABLE table_name_19 (away_team VARCHAR, ground VARCHAR)", "question": "What is Away Team, when Ground is Colonial Stadium?" }
### QUESTION What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points? ### CONTEXT CREATE TABLE table_name_55 (chassis VARCHAR, points VARCHAR, engine VARCHAR, entrant VARCHAR) ### ANSWER SELECT chassis FROM table_name_55 WHERE engine = "maserati straight-6" AND entrant = "officine alfieri maserati" AND points < 6
{ "answer": "SELECT chassis FROM table_name_55 WHERE engine = \"maserati straight-6\" AND entrant = \"officine alfieri maserati\" AND points < 6", "context": "CREATE TABLE table_name_55 (chassis VARCHAR, points VARCHAR, engine VARCHAR, entrant VARCHAR)", "question": "What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points?" }
### QUESTION What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated? ### CONTEXT CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR) ### ANSWER SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = "pedro martínez de luna y gotor"
{ "answer": "SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = \"pedro martínez de luna y gotor\"", "context": "CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR)", "question": "What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated?" }
### QUESTION What is the height above sea level for the station opened 175.67km from Wellington prior to 1887? ### CONTEXT CREATE TABLE table_name_2 (height_above_sea_level__m_ VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR) ### ANSWER SELECT height_above_sea_level__m_ FROM table_name_2 WHERE opened < 1887 AND distance_from_wellington = "175.67km"
{ "answer": "SELECT height_above_sea_level__m_ FROM table_name_2 WHERE opened < 1887 AND distance_from_wellington = \"175.67km\"", "context": "CREATE TABLE table_name_2 (height_above_sea_level__m_ VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR)", "question": "What is the height above sea level for the station opened 175.67km from Wellington prior to 1887?" }
### QUESTION Which Adelaide has an Auckland of no and a Melbourne of no? ### CONTEXT CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR) ### ANSWER SELECT adelaide FROM table_name_76 WHERE auckland = "no" AND melbourne = "no"
{ "answer": "SELECT adelaide FROM table_name_76 WHERE auckland = \"no\" AND melbourne = \"no\"", "context": "CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR)", "question": "Which Adelaide has an Auckland of no and a Melbourne of no?" }
### QUESTION What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner? ### CONTEXT CREATE TABLE table_name_11 (points_classification_navy_blue_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR) ### ANSWER SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner"
{ "answer": "SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = \"yoann le boulanger\" AND team_classification = \"gerolsteiner\"", "context": "CREATE TABLE table_name_11 (points_classification_navy_blue_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR)", "question": "What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner?" }
### QUESTION What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls? ### CONTEXT CREATE TABLE table_18461045_1 (kentucky VARCHAR, illinois VARCHAR) ### ANSWER SELECT kentucky FROM table_18461045_1 WHERE illinois = "Rock Falls LL Rock Falls"
{ "answer": "SELECT kentucky FROM table_18461045_1 WHERE illinois = \"Rock Falls LL Rock Falls\"", "context": "CREATE TABLE table_18461045_1 (kentucky VARCHAR, illinois VARCHAR)", "question": "What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls?" }
### QUESTION Which Season was the Division Two Fownhope Reserves champions? ### CONTEXT CREATE TABLE table_name_92 (season VARCHAR, division_two VARCHAR) ### ANSWER SELECT season FROM table_name_92 WHERE division_two = "fownhope reserves"
{ "answer": "SELECT season FROM table_name_92 WHERE division_two = \"fownhope reserves\"", "context": "CREATE TABLE table_name_92 (season VARCHAR, division_two VARCHAR)", "question": "Which Season was the Division Two Fownhope Reserves champions?" }
### QUESTION What was the overall draft number of Tom Fleming, a wide receiver? ### CONTEXT CREATE TABLE table_name_28 (overall VARCHAR, position VARCHAR, player VARCHAR) ### ANSWER SELECT COUNT(overall) FROM table_name_28 WHERE position = "wide receiver" AND player = "tom fleming"
{ "answer": "SELECT COUNT(overall) FROM table_name_28 WHERE position = \"wide receiver\" AND player = \"tom fleming\"", "context": "CREATE TABLE table_name_28 (overall VARCHAR, position VARCHAR, player VARCHAR)", "question": "What was the overall draft number of Tom Fleming, a wide receiver?" }
### QUESTION Name the position in table for 1 july 2008 when manner of departure is resigned ### CONTEXT CREATE TABLE table_17039232_3 (position_in_table VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR) ### ANSWER SELECT position_in_table FROM table_17039232_3 WHERE date_of_appointment = "1 July 2008" AND manner_of_departure = "Resigned"
{ "answer": "SELECT position_in_table FROM table_17039232_3 WHERE date_of_appointment = \"1 July 2008\" AND manner_of_departure = \"Resigned\"", "context": "CREATE TABLE table_17039232_3 (position_in_table VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)", "question": "Name the position in table for 1 july 2008 when manner of departure is resigned" }
### QUESTION Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order. ### CONTEXT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC
{ "answer": "SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC", "context": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order." }
### QUESTION What score did vasil levski national stadium, sofia, which was friendly during competition, earn? ### CONTEXT CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR, venue VARCHAR) ### ANSWER SELECT score FROM table_name_96 WHERE competition = "friendly" AND venue = "vasil levski national stadium, sofia"
{ "answer": "SELECT score FROM table_name_96 WHERE competition = \"friendly\" AND venue = \"vasil levski national stadium, sofia\"", "context": "CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR, venue VARCHAR)", "question": "What score did vasil levski national stadium, sofia, which was friendly during competition, earn?" }
### QUESTION What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'? ### CONTEXT CREATE TABLE Rent_Arrears (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR) ### ANSWER SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz'
{ "answer": "SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz'", "context": "CREATE TABLE Rent_Arrears (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR)", "question": "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?" }
### QUESTION What's the lowest goal difference when the position is higher than 16? ### CONTEXT CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER) ### ANSWER SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16
{ "answer": "SELECT MIN(goal_difference) FROM table_name_85 WHERE position > 16", "context": "CREATE TABLE table_name_85 (goal_difference INTEGER, position INTEGER)", "question": "What's the lowest goal difference when the position is higher than 16?" }
### QUESTION Which District has a Party of republican and a Result of lost re-election democratic gain? ### CONTEXT CREATE TABLE table_name_82 (district VARCHAR, party VARCHAR, result VARCHAR) ### ANSWER SELECT district FROM table_name_82 WHERE party = "republican" AND result = "lost re-election democratic gain"
{ "answer": "SELECT district FROM table_name_82 WHERE party = \"republican\" AND result = \"lost re-election democratic gain\"", "context": "CREATE TABLE table_name_82 (district VARCHAR, party VARCHAR, result VARCHAR)", "question": "Which District has a Party of republican and a Result of lost re-election democratic gain?" }
### QUESTION How many episodes have a segment d that is goalie masks (part 2)? ### CONTEXT CREATE TABLE table_name_53 (episode VARCHAR, segment_d VARCHAR) ### ANSWER SELECT COUNT(episode) FROM table_name_53 WHERE segment_d = "goalie masks (part 2)"
{ "answer": "SELECT COUNT(episode) FROM table_name_53 WHERE segment_d = \"goalie masks (part 2)\"", "context": "CREATE TABLE table_name_53 (episode VARCHAR, segment_d VARCHAR)", "question": "How many episodes have a segment d that is goalie masks (part 2)?" }
### QUESTION What is the minimum stage where Sergei Smetanine won? ### CONTEXT CREATE TABLE table_15088557_1 (stage INTEGER, winner VARCHAR) ### ANSWER SELECT MIN(stage) FROM table_15088557_1 WHERE winner = "Sergei Smetanine"
{ "answer": "SELECT MIN(stage) FROM table_15088557_1 WHERE winner = \"Sergei Smetanine\"", "context": "CREATE TABLE table_15088557_1 (stage INTEGER, winner VARCHAR)", "question": "What is the minimum stage where Sergei Smetanine won?" }
### QUESTION What is the total rank for the Netherlands when more than 2 silver medals were won? ### CONTEXT CREATE TABLE table_name_8 (rank VARCHAR, nation VARCHAR, silver VARCHAR) ### ANSWER SELECT COUNT(rank) FROM table_name_8 WHERE nation = "netherlands" AND silver > 2
{ "answer": "SELECT COUNT(rank) FROM table_name_8 WHERE nation = \"netherlands\" AND silver > 2", "context": "CREATE TABLE table_name_8 (rank VARCHAR, nation VARCHAR, silver VARCHAR)", "question": "What is the total rank for the Netherlands when more than 2 silver medals were won?" }
### QUESTION What DS division has S. L. M. Haneefa as the divisional secretary? ### CONTEXT CREATE TABLE table_12485020_1 (ds_division VARCHAR, divisional_secretary VARCHAR) ### ANSWER SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = "S. L. M. Haneefa"
{ "answer": "SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = \"S. L. M. Haneefa\"", "context": "CREATE TABLE table_12485020_1 (ds_division VARCHAR, divisional_secretary VARCHAR)", "question": "What DS division has S. L. M. Haneefa as the divisional secretary?" }
### QUESTION what was the opponent on 26 october 1889? ### CONTEXT CREATE TABLE table_name_51 (opponents VARCHAR, date VARCHAR) ### ANSWER SELECT opponents FROM table_name_51 WHERE date = "26 october 1889"
{ "answer": "SELECT opponents FROM table_name_51 WHERE date = \"26 october 1889\"", "context": "CREATE TABLE table_name_51 (opponents VARCHAR, date VARCHAR)", "question": "what was the opponent on 26 october 1889?" }
### QUESTION What model has both a standard byte string and floating-point? ### CONTEXT CREATE TABLE table_name_90 (model VARCHAR, byte_string VARCHAR, floating_point VARCHAR) ### ANSWER SELECT model FROM table_name_90 WHERE byte_string = "standard" AND floating_point = "standard"
{ "answer": "SELECT model FROM table_name_90 WHERE byte_string = \"standard\" AND floating_point = \"standard\"", "context": "CREATE TABLE table_name_90 (model VARCHAR, byte_string VARCHAR, floating_point VARCHAR)", "question": "What model has both a standard byte string and floating-point?" }
### QUESTION Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951. ### CONTEXT CREATE TABLE table_10798421_1 (village__german_ VARCHAR, percent_of_slovenes_1951 VARCHAR) ### ANSWER SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = "96.9%"
{ "answer": "SELECT village__german_ FROM table_10798421_1 WHERE percent_of_slovenes_1951 = \"96.9%\"", "context": "CREATE TABLE table_10798421_1 (village__german_ VARCHAR, percent_of_slovenes_1951 VARCHAR)", "question": "Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951. " }
### QUESTION What is the mean number of events where the rank is 1 and there are more than 3 wins? ### CONTEXT CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR) ### ANSWER SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3
{ "answer": "SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3", "context": "CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR)", "question": "What is the mean number of events where the rank is 1 and there are more than 3 wins?" }
### QUESTION Name the total number of NGC number for sagittarius and diffuse nebula with declination of °02′ ### CONTEXT CREATE TABLE table_name_86 (ngc_number VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR) ### ANSWER SELECT COUNT(ngc_number) FROM table_name_86 WHERE constellation = "sagittarius" AND object_type = "diffuse nebula" AND declination___j2000__ = "°02′"
{ "answer": "SELECT COUNT(ngc_number) FROM table_name_86 WHERE constellation = \"sagittarius\" AND object_type = \"diffuse nebula\" AND declination___j2000__ = \"°02′\"", "context": "CREATE TABLE table_name_86 (ngc_number VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)", "question": "Name the total number of NGC number for sagittarius and diffuse nebula with declination of °02′" }
### QUESTION What are the id and zip code of the address with the highest monthly rental? ### CONTEXT CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR) ### ANSWER SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1
{ "answer": "SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1", "context": "CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR)", "question": "What are the id and zip code of the address with the highest monthly rental?" }
### QUESTION What is the nickname of the team that has the colors blue and gold? ### CONTEXT CREATE TABLE table_name_42 (nickname VARCHAR, colors VARCHAR) ### ANSWER SELECT nickname FROM table_name_42 WHERE colors = "blue and gold"
{ "answer": "SELECT nickname FROM table_name_42 WHERE colors = \"blue and gold\"", "context": "CREATE TABLE table_name_42 (nickname VARCHAR, colors VARCHAR)", "question": "What is the nickname of the team that has the colors blue and gold?" }
### QUESTION What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0? ### CONTEXT CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR) ### ANSWER SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0
{ "answer": "SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0", "context": "CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR)", "question": "What is the highest Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0?" }
### QUESTION how many population estimate 2005 are for majene? ### CONTEXT CREATE TABLE table_name_86 (population_estimate_2005 VARCHAR, capital VARCHAR) ### ANSWER SELECT COUNT(population_estimate_2005) FROM table_name_86 WHERE capital = "majene"
{ "answer": "SELECT COUNT(population_estimate_2005) FROM table_name_86 WHERE capital = \"majene\"", "context": "CREATE TABLE table_name_86 (population_estimate_2005 VARCHAR, capital VARCHAR)", "question": "how many population estimate 2005 are for majene?" }
### QUESTION What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912? ### CONTEXT CREATE TABLE table_name_31 (result VARCHAR, venue VARCHAR, date VARCHAR) ### ANSWER SELECT result FROM table_name_31 WHERE venue = "sydney cricket ground" AND date = "23,24,26,27,28,29 feb, 1 mar 1912"
{ "answer": "SELECT result FROM table_name_31 WHERE venue = \"sydney cricket ground\" AND date = \"23,24,26,27,28,29 feb, 1 mar 1912\"", "context": "CREATE TABLE table_name_31 (result VARCHAR, venue VARCHAR, date VARCHAR)", "question": "What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?" }
### QUESTION Who was the home team on June 9? ### CONTEXT CREATE TABLE table_name_81 (home VARCHAR, date VARCHAR) ### ANSWER SELECT home FROM table_name_81 WHERE date = "june 9"
{ "answer": "SELECT home FROM table_name_81 WHERE date = \"june 9\"", "context": "CREATE TABLE table_name_81 (home VARCHAR, date VARCHAR)", "question": "Who was the home team on June 9?" }
### QUESTION Why did the change happen in the state where the formal installation happen on February 14, 1859? ### CONTEXT CREATE TABLE table_1802760_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR) ### ANSWER SELECT reason_for_change FROM table_1802760_3 WHERE date_of_successors_formal_installation = "February 14, 1859"
{ "answer": "SELECT reason_for_change FROM table_1802760_3 WHERE date_of_successors_formal_installation = \"February 14, 1859\"", "context": "CREATE TABLE table_1802760_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)", "question": "Why did the change happen in the state where the formal installation happen on February 14, 1859?" }
### QUESTION Show the names of people and the number of times they have been on the affirmative side of debates. ### CONTEXT CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate_people (Affirmative VARCHAR) ### ANSWER SELECT T2.Name, COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name
{ "answer": "SELECT T2.Name, COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name", "context": "CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate_people (Affirmative VARCHAR)", "question": "Show the names of people and the number of times they have been on the affirmative side of debates." }
### QUESTION I want the constructor for brakes and grid less than 14 ### CONTEXT CREATE TABLE table_name_39 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR) ### ANSWER SELECT constructor FROM table_name_39 WHERE time_retired = "brakes" AND grid < 14
{ "answer": "SELECT constructor FROM table_name_39 WHERE time_retired = \"brakes\" AND grid < 14", "context": "CREATE TABLE table_name_39 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR)", "question": "I want the constructor for brakes and grid less than 14" }
### QUESTION What was the lowest percentages of wins in 1989 with a GB [c] of 17? ### CONTEXT CREATE TABLE table_name_59 (win_percentage INTEGER, reds_season VARCHAR, gb_ VARCHAR, c_ VARCHAR) ### ANSWER SELECT MIN(win_percentage) FROM table_name_59 WHERE gb_[c_] = "17" AND reds_season = 1989
{ "answer": "SELECT MIN(win_percentage) FROM table_name_59 WHERE gb_[c_] = \"17\" AND reds_season = 1989", "context": "CREATE TABLE table_name_59 (win_percentage INTEGER, reds_season VARCHAR, gb_ VARCHAR, c_ VARCHAR)", "question": "What was the lowest percentages of wins in 1989 with a GB [c] of 17?" }
### QUESTION What was the result for Thirst in 2010 at the Green Globe Film Awards? ### CONTEXT CREATE TABLE table_name_91 (result VARCHAR, group VARCHAR, film_series VARCHAR, year VARCHAR) ### ANSWER SELECT result FROM table_name_91 WHERE film_series = "thirst" AND year = 2010 AND group = "green globe film awards"
{ "answer": "SELECT result FROM table_name_91 WHERE film_series = \"thirst\" AND year = 2010 AND group = \"green globe film awards\"", "context": "CREATE TABLE table_name_91 (result VARCHAR, group VARCHAR, film_series VARCHAR, year VARCHAR)", "question": "What was the result for Thirst in 2010 at the Green Globe Film Awards?" }
### QUESTION Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov? ### CONTEXT CREATE TABLE table_name_10 (winner VARCHAR, young_rider_classification VARCHAR, mountains_classification VARCHAR, general_classification VARCHAR, points_classification VARCHAR) ### ANSWER SELECT winner FROM table_name_10 WHERE general_classification = "miguel indurain" AND points_classification = "mario cipollini" AND mountains_classification = "claudio chiappucci" AND young_rider_classification = "pavel tonkov"
{ "answer": "SELECT winner FROM table_name_10 WHERE general_classification = \"miguel indurain\" AND points_classification = \"mario cipollini\" AND mountains_classification = \"claudio chiappucci\" AND young_rider_classification = \"pavel tonkov\"", "context": "CREATE TABLE table_name_10 (winner VARCHAR, young_rider_classification VARCHAR, mountains_classification VARCHAR, general_classification VARCHAR, points_classification VARCHAR)", "question": "Who was the winner when the General classification was held by Miguel Indurain, the Points classification held by Mario Cipollini, the Mountains classification held by Claudio Chiappucci, and the Young RIder classification held by Pavel Tonkov?" }
### QUESTION what is the y = 2009 when the expression is month = floor ((d + e + 114) / 31)? ### CONTEXT CREATE TABLE table_214479_8 (y_ VARCHAR, _2009 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR) ### ANSWER SELECT y_ = _2009 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31)
{ "answer": "SELECT y_ = _2009 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31)", "context": "CREATE TABLE table_214479_8 (y_ VARCHAR, _2009 VARCHAR, expression VARCHAR, month VARCHAR, d VARCHAR, e VARCHAR)", "question": "what is the y = 2009 when the expression is month = floor ((d + e + 114) / 31)?" }
### QUESTION Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32? ### CONTEXT CREATE TABLE table_name_39 (faces INTEGER, dual_archimedean_solid VARCHAR, vertices VARCHAR) ### ANSWER SELECT AVG(faces) FROM table_name_39 WHERE dual_archimedean_solid = "truncated icosahedron" AND vertices > 32
{ "answer": "SELECT AVG(faces) FROM table_name_39 WHERE dual_archimedean_solid = \"truncated icosahedron\" AND vertices > 32", "context": "CREATE TABLE table_name_39 (faces INTEGER, dual_archimedean_solid VARCHAR, vertices VARCHAR)", "question": "Which Faces have a Dual Archimedean solid of truncated icosahedron, and Vertices larger than 32?" }
### QUESTION What is the highest number of loss with a 7 position and more than 45 goals? ### CONTEXT CREATE TABLE table_name_73 (losses INTEGER, position VARCHAR, goals_for VARCHAR) ### ANSWER SELECT MAX(losses) FROM table_name_73 WHERE position = 7 AND goals_for > 45
{ "answer": "SELECT MAX(losses) FROM table_name_73 WHERE position = 7 AND goals_for > 45", "context": "CREATE TABLE table_name_73 (losses INTEGER, position VARCHAR, goals_for VARCHAR)", "question": "What is the highest number of loss with a 7 position and more than 45 goals?" }
### QUESTION What was Tom Watson's lowest To par when the total was larger than 144? ### CONTEXT CREATE TABLE table_name_44 (to_par INTEGER, player VARCHAR, total VARCHAR) ### ANSWER SELECT MIN(to_par) FROM table_name_44 WHERE player = "tom watson" AND total > 144
{ "answer": "SELECT MIN(to_par) FROM table_name_44 WHERE player = \"tom watson\" AND total > 144", "context": "CREATE TABLE table_name_44 (to_par INTEGER, player VARCHAR, total VARCHAR)", "question": "What was Tom Watson's lowest To par when the total was larger than 144?" }
### QUESTION What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968? ### CONTEXT CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR) ### ANSWER SELECT AVG(points) FROM table_name_16 WHERE entrant = "scuderia scribante" AND chassis = "brabham bt11" AND year < 1968
{ "answer": "SELECT AVG(points) FROM table_name_16 WHERE entrant = \"scuderia scribante\" AND chassis = \"brabham bt11\" AND year < 1968", "context": "CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR)", "question": "What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968?" }
### QUESTION What date has 11 as the tie no.? ### CONTEXT CREATE TABLE table_name_48 (date VARCHAR, tie_no VARCHAR) ### ANSWER SELECT date FROM table_name_48 WHERE tie_no = "11"
{ "answer": "SELECT date FROM table_name_48 WHERE tie_no = \"11\"", "context": "CREATE TABLE table_name_48 (date VARCHAR, tie_no VARCHAR)", "question": "What date has 11 as the tie no.?" }
### QUESTION List all every engineer's first name, last name, details and coresponding skill description. ### CONTEXT CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR) ### ANSWER SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id
{ "answer": "SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id", "context": "CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)", "question": "List all every engineer's first name, last name, details and coresponding skill description." }
### QUESTION Tell me the tournament with a hard surface for 6–1, 6–2 ### CONTEXT CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR, score VARCHAR) ### ANSWER SELECT tournament FROM table_name_99 WHERE surface = "hard" AND score = "6–1, 6–2"
{ "answer": "SELECT tournament FROM table_name_99 WHERE surface = \"hard\" AND score = \"6–1, 6–2\"", "context": "CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR, score VARCHAR)", "question": "Tell me the tournament with a hard surface for 6–1, 6–2" }
### QUESTION What is the sum of against scores when there are 3 losses and less than 6 games played? ### CONTEXT CREATE TABLE table_name_1 (against VARCHAR, lost VARCHAR, played VARCHAR) ### ANSWER SELECT COUNT(against) FROM table_name_1 WHERE lost = 3 AND played < 6
{ "answer": "SELECT COUNT(against) FROM table_name_1 WHERE lost = 3 AND played < 6", "context": "CREATE TABLE table_name_1 (against VARCHAR, lost VARCHAR, played VARCHAR)", "question": "What is the sum of against scores when there are 3 losses and less than 6 games played?" }
### QUESTION What is the document type name and the document type description and creation date for all the documents? ### CONTEXT CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (Document_date VARCHAR, document_type_code VARCHAR) ### ANSWER SELECT T1.document_type_name, T1.document_type_description, T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code
{ "answer": "SELECT T1.document_type_name, T1.document_type_description, T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code", "context": "CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (Document_date VARCHAR, document_type_code VARCHAR)", "question": "What is the document type name and the document type description and creation date for all the documents?" }
### QUESTION What County has a Median Family Income of $79,331? ### CONTEXT CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR) ### ANSWER SELECT county FROM table_name_3 WHERE median_family_income = "$79,331"
{ "answer": "SELECT county FROM table_name_3 WHERE median_family_income = \"$79,331\"", "context": "CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR)", "question": "What County has a Median Family Income of $79,331?" }
### QUESTION How many members have professor edward acton as vice-chancellor? ### CONTEXT CREATE TABLE table_142950_1 (total_number_of_students VARCHAR, vice_chancellor VARCHAR) ### ANSWER SELECT COUNT(total_number_of_students) FROM table_142950_1 WHERE vice_chancellor = "Professor Edward Acton"
{ "answer": "SELECT COUNT(total_number_of_students) FROM table_142950_1 WHERE vice_chancellor = \"Professor Edward Acton\"", "context": "CREATE TABLE table_142950_1 (total_number_of_students VARCHAR, vice_chancellor VARCHAR)", "question": "How many members have professor edward acton as vice-chancellor?" }
### QUESTION Venue of klfa stadium, cheras, and a Score of 3-3 had what competition? ### CONTEXT CREATE TABLE table_name_71 (competition VARCHAR, venue VARCHAR, score VARCHAR) ### ANSWER SELECT competition FROM table_name_71 WHERE venue = "klfa stadium, cheras" AND score = "3-3"
{ "answer": "SELECT competition FROM table_name_71 WHERE venue = \"klfa stadium, cheras\" AND score = \"3-3\"", "context": "CREATE TABLE table_name_71 (competition VARCHAR, venue VARCHAR, score VARCHAR)", "question": "Venue of klfa stadium, cheras, and a Score of 3-3 had what competition?" }
### QUESTION when the nickname halley is used, what are the date completed ### CONTEXT CREATE TABLE table_15070195_1 (date_completed VARCHAR, nickname VARCHAR) ### ANSWER SELECT date_completed FROM table_15070195_1 WHERE nickname = "Halley"
{ "answer": "SELECT date_completed FROM table_15070195_1 WHERE nickname = \"Halley\"", "context": "CREATE TABLE table_15070195_1 (date_completed VARCHAR, nickname VARCHAR)", "question": "when the nickname halley is used, what are the date completed" }
### QUESTION How many barony's appear when Ballyvadona is the townland. ### CONTEXT CREATE TABLE table_30120556_1 (barony VARCHAR, townland VARCHAR) ### ANSWER SELECT COUNT(barony) FROM table_30120556_1 WHERE townland = "Ballyvadona"
{ "answer": "SELECT COUNT(barony) FROM table_30120556_1 WHERE townland = \"Ballyvadona\"", "context": "CREATE TABLE table_30120556_1 (barony VARCHAR, townland VARCHAR)", "question": "How many barony's appear when Ballyvadona is the townland." }
### QUESTION Find the name and position of physicians who prescribe some medication whose brand is X? ### CONTEXT CREATE TABLE medication (code VARCHAR, Brand VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, employeeid VARCHAR) ### ANSWER SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = "X"
{ "answer": "SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = \"X\"", "context": "CREATE TABLE medication (code VARCHAR, Brand VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, employeeid VARCHAR)", "question": "Find the name and position of physicians who prescribe some medication whose brand is X?" }
### QUESTION Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36? ### CONTEXT CREATE TABLE table_name_76 (gender VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR, years VARCHAR) ### ANSWER SELECT gender FROM table_name_76 WHERE authority = "state" AND years = "1–8" AND decile < 10 AND roll = 36
{ "answer": "SELECT gender FROM table_name_76 WHERE authority = \"state\" AND years = \"1–8\" AND decile < 10 AND roll = 36", "context": "CREATE TABLE table_name_76 (gender VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR, years VARCHAR)", "question": "Which gender has an Authority of state, Years of 1–8, and a Decile smaller than 10, and a Roll of 36?" }