text
stringlengths
146
1.06k
source
dict
### QUESTION Name the average debt as % of value for operating income more than -16 and % change on year being 62 ### CONTEXT CREATE TABLE table_name_7 (debt_as__percentage_of_value INTEGER, _percentage_change_on_year VARCHAR, operating_income__$m_ VARCHAR) ### ANSWER SELECT AVG(debt_as__percentage_of_value) FROM table_name_7 WHERE _percentage_change_on_year = "62" AND operating_income__$m_ > -16
{ "answer": "SELECT AVG(debt_as__percentage_of_value) FROM table_name_7 WHERE _percentage_change_on_year = \"62\" AND operating_income__$m_ > -16", "context": "CREATE TABLE table_name_7 (debt_as__percentage_of_value INTEGER, _percentage_change_on_year VARCHAR, operating_income__$m_ VARCHAR)", "question": "Name the average debt as % of value for operating income more than -16 and % change on year being 62" }
### QUESTION What is the average public debt % of GDP in 2013 Q1 of the country with a member slate sorted by GDP of Czech Republic and a GDP per capita in PPP US dollars in 2012 greater than 27,191? ### CONTEXT CREATE TABLE table_name_7 (public_debt__percentage_of_gdp__2013_q1_ INTEGER, member_state_sorted_by_gdp VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR) ### ANSWER SELECT AVG(public_debt__percentage_of_gdp__2013_q1_) FROM table_name_7 WHERE member_state_sorted_by_gdp = "czech republic" AND gdp_per_capita_in_ppp_us$__2012_ > 27 OFFSET 191
{ "answer": "SELECT AVG(public_debt__percentage_of_gdp__2013_q1_) FROM table_name_7 WHERE member_state_sorted_by_gdp = \"czech republic\" AND gdp_per_capita_in_ppp_us$__2012_ > 27 OFFSET 191", "context": "CREATE TABLE table_name_7 (public_debt__percentage_of_gdp__2013_q1_ INTEGER, member_state_sorted_by_gdp VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)", "question": "What is the average public debt % of GDP in 2013 Q1 of the country with a member slate sorted by GDP of Czech Republic and a GDP per capita in PPP US dollars in 2012 greater than 27,191?" }
### QUESTION What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66? ### CONTEXT CREATE TABLE table_name_74 (victory_margin__in_lengths_ VARCHAR, time VARCHAR, finish VARCHAR, jockey VARCHAR) ### ANSWER SELECT victory_margin__in_lengths_ FROM table_name_74 WHERE finish = "1st" AND jockey = "kent desormeaux" AND time = "1:35.66"
{ "answer": "SELECT victory_margin__in_lengths_ FROM table_name_74 WHERE finish = \"1st\" AND jockey = \"kent desormeaux\" AND time = \"1:35.66\"", "context": "CREATE TABLE table_name_74 (victory_margin__in_lengths_ VARCHAR, time VARCHAR, finish VARCHAR, jockey VARCHAR)", "question": "What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?" }
### QUESTION What is the lowest crowd with home team richmond? ### CONTEXT CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR) ### ANSWER SELECT MIN(crowd) FROM table_name_79 WHERE home_team = "richmond"
{ "answer": "SELECT MIN(crowd) FROM table_name_79 WHERE home_team = \"richmond\"", "context": "CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR)", "question": "What is the lowest crowd with home team richmond?" }
### QUESTION How many pac-12 sports are shown for california polytechnic state university? ### CONTEXT CREATE TABLE table_27816698_2 (pac_12_sports VARCHAR, institution VARCHAR) ### ANSWER SELECT COUNT(pac_12_sports) FROM table_27816698_2 WHERE institution = "California Polytechnic State University"
{ "answer": "SELECT COUNT(pac_12_sports) FROM table_27816698_2 WHERE institution = \"California Polytechnic State University\"", "context": "CREATE TABLE table_27816698_2 (pac_12_sports VARCHAR, institution VARCHAR)", "question": "How many pac-12 sports are shown for california polytechnic state university?" }
### QUESTION What is the total number of points for the conference division, a league position of 9th, and a lost result less than 13? ### CONTEXT CREATE TABLE table_name_61 (points VARCHAR, lost VARCHAR, division VARCHAR, league_pos VARCHAR) ### ANSWER SELECT COUNT(points) FROM table_name_61 WHERE division = "conference" AND league_pos = "9th" AND lost < 13
{ "answer": "SELECT COUNT(points) FROM table_name_61 WHERE division = \"conference\" AND league_pos = \"9th\" AND lost < 13", "context": "CREATE TABLE table_name_61 (points VARCHAR, lost VARCHAR, division VARCHAR, league_pos VARCHAR)", "question": "What is the total number of points for the conference division, a league position of 9th, and a lost result less than 13?" }
### QUESTION What Location has a College or Campus Name of anna university - tharamani campus? ### CONTEXT CREATE TABLE table_name_81 (location VARCHAR, college_or_campus_name VARCHAR) ### ANSWER SELECT location FROM table_name_81 WHERE college_or_campus_name = "anna university - tharamani campus"
{ "answer": "SELECT location FROM table_name_81 WHERE college_or_campus_name = \"anna university - tharamani campus\"", "context": "CREATE TABLE table_name_81 (location VARCHAR, college_or_campus_name VARCHAR)", "question": "What Location has a College or Campus Name of anna university - tharamani campus?" }
### QUESTION what is the rank when bronze is less than 1 and silver is less than 1? ### CONTEXT CREATE TABLE table_name_52 (rank VARCHAR, bronze VARCHAR, silver VARCHAR) ### ANSWER SELECT rank FROM table_name_52 WHERE bronze < 1 AND silver < 1
{ "answer": "SELECT rank FROM table_name_52 WHERE bronze < 1 AND silver < 1", "context": "CREATE TABLE table_name_52 (rank VARCHAR, bronze VARCHAR, silver VARCHAR)", "question": "what is the rank when bronze is less than 1 and silver is less than 1?" }
### QUESTION What is the total market value in billions of the company with 20.96 billion in profits and less than 166.99 billions in assets? ### CONTEXT CREATE TABLE table_name_34 (market_value__billion_ VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR) ### ANSWER SELECT COUNT(market_value__billion_) AS $_ FROM table_name_34 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ < 166.99
{ "answer": "SELECT COUNT(market_value__billion_) AS $_ FROM table_name_34 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ < 166.99", "context": "CREATE TABLE table_name_34 (market_value__billion_ VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)", "question": "What is the total market value in billions of the company with 20.96 billion in profits and less than 166.99 billions in assets?" }
### QUESTION What is the GDP (PPP) (USD, per capita) for Algeria? ### CONTEXT CREATE TABLE table_2155836_1 (_per_capita_ VARCHAR, gdp__ppp___usd INTEGER, country VARCHAR) ### ANSWER SELECT MIN(gdp__ppp___usd), _per_capita_ FROM table_2155836_1 WHERE country = "Algeria"
{ "answer": "SELECT MIN(gdp__ppp___usd), _per_capita_ FROM table_2155836_1 WHERE country = \"Algeria\"", "context": "CREATE TABLE table_2155836_1 (_per_capita_ VARCHAR, gdp__ppp___usd INTEGER, country VARCHAR)", "question": "What is the GDP (PPP) (USD, per capita) for Algeria? " }
### QUESTION Who was the opponent during the competition in which the bowling figures were 5-33 (10)? ### CONTEXT CREATE TABLE table_name_82 (versus VARCHAR, bowling_figures_wickets_runs__overs_ VARCHAR) ### ANSWER SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = "5-33 (10)"
{ "answer": "SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = \"5-33 (10)\"", "context": "CREATE TABLE table_name_82 (versus VARCHAR, bowling_figures_wickets_runs__overs_ VARCHAR)", "question": "Who was the opponent during the competition in which the bowling figures were 5-33 (10)?" }
### QUESTION What was the distance for the 11th position? ### CONTEXT CREATE TABLE table_22265261_1 (distance VARCHAR, position VARCHAR) ### ANSWER SELECT distance FROM table_22265261_1 WHERE position = "11th"
{ "answer": "SELECT distance FROM table_22265261_1 WHERE position = \"11th\"", "context": "CREATE TABLE table_22265261_1 (distance VARCHAR, position VARCHAR)", "question": "What was the distance for the 11th position?" }
### QUESTION In what constituency was the result labour hold and Liberal democrat Elizabeth Newton won? ### CONTEXT CREATE TABLE table_name_12 (constituency VARCHAR, result VARCHAR, liberal_democrats VARCHAR) ### ANSWER SELECT constituency FROM table_name_12 WHERE result = "labour hold" AND liberal_democrats = "elizabeth newton"
{ "answer": "SELECT constituency FROM table_name_12 WHERE result = \"labour hold\" AND liberal_democrats = \"elizabeth newton\"", "context": "CREATE TABLE table_name_12 (constituency VARCHAR, result VARCHAR, liberal_democrats VARCHAR)", "question": "In what constituency was the result labour hold and Liberal democrat Elizabeth Newton won?" }
### QUESTION What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34? ### CONTEXT CREATE TABLE table_name_14 (other INTEGER, name VARCHAR, total VARCHAR) ### ANSWER SELECT SUM(other) FROM table_name_14 WHERE name = "simon gillett category:articles with hcards" AND total < 34
{ "answer": "SELECT SUM(other) FROM table_name_14 WHERE name = \"simon gillett category:articles with hcards\" AND total < 34", "context": "CREATE TABLE table_name_14 (other INTEGER, name VARCHAR, total VARCHAR)", "question": "What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34?" }
### QUESTION What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence? ### CONTEXT CREATE TABLE table_name_49 (pick__number VARCHAR, college_junior_club_team VARCHAR, position VARCHAR) ### ANSWER SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = "edmonton oil kings (wchl)" AND position = "defence"
{ "answer": "SELECT pick__number FROM table_name_49 WHERE college_junior_club_team = \"edmonton oil kings (wchl)\" AND position = \"defence\"", "context": "CREATE TABLE table_name_49 (pick__number VARCHAR, college_junior_club_team VARCHAR, position VARCHAR)", "question": "What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?" }
### QUESTION What circuit did Rupert Keegan win in round 8? ### CONTEXT CREATE TABLE table_name_21 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) ### ANSWER SELECT circuit FROM table_name_21 WHERE winning_driver = "rupert keegan" AND round = 8
{ "answer": "SELECT circuit FROM table_name_21 WHERE winning_driver = \"rupert keegan\" AND round = 8", "context": "CREATE TABLE table_name_21 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR)", "question": "What circuit did Rupert Keegan win in round 8?" }
### QUESTION Name the least revenue for chelsea of england with rank less than 7 ### CONTEXT CREATE TABLE table_name_73 (revenue__ INTEGER, rank VARCHAR, country VARCHAR, team VARCHAR) ### ANSWER SELECT MIN(revenue__) AS $m_ FROM table_name_73 WHERE country = "england" AND team = "chelsea" AND rank < 7
{ "answer": "SELECT MIN(revenue__) AS $m_ FROM table_name_73 WHERE country = \"england\" AND team = \"chelsea\" AND rank < 7", "context": "CREATE TABLE table_name_73 (revenue__ INTEGER, rank VARCHAR, country VARCHAR, team VARCHAR)", "question": "Name the least revenue for chelsea of england with rank less than 7" }
### QUESTION Who won the series when the San Francisco Giants lost? ### CONTEXT CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR) ### ANSWER SELECT winning_team FROM table_name_92 WHERE losing_team = "san francisco giants"
{ "answer": "SELECT winning_team FROM table_name_92 WHERE losing_team = \"san francisco giants\"", "context": "CREATE TABLE table_name_92 (winning_team VARCHAR, losing_team VARCHAR)", "question": "Who won the series when the San Francisco Giants lost?" }
### QUESTION What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia? ### CONTEXT CREATE TABLE table_name_90 (serial_no VARCHAR, entered_service VARCHAR, owner VARCHAR) ### ANSWER SELECT serial_no FROM table_name_90 WHERE entered_service = "november 1984" AND owner = "chicago freight car leasing australia"
{ "answer": "SELECT serial_no FROM table_name_90 WHERE entered_service = \"november 1984\" AND owner = \"chicago freight car leasing australia\"", "context": "CREATE TABLE table_name_90 (serial_no VARCHAR, entered_service VARCHAR, owner VARCHAR)", "question": "What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia?" }
### QUESTION What was the crowd size for the game with a score of 101-105? ### CONTEXT CREATE TABLE table_name_13 (crowd VARCHAR, score VARCHAR) ### ANSWER SELECT crowd FROM table_name_13 WHERE score = "101-105"
{ "answer": "SELECT crowd FROM table_name_13 WHERE score = \"101-105\"", "context": "CREATE TABLE table_name_13 (crowd VARCHAR, score VARCHAR)", "question": "What was the crowd size for the game with a score of 101-105?" }
### QUESTION Name the tries against for played 22 and points against of 183 ### CONTEXT CREATE TABLE table_13564702_3 (tries_against VARCHAR, played VARCHAR, points_against VARCHAR) ### ANSWER SELECT tries_against FROM table_13564702_3 WHERE played = "22" AND points_against = "183"
{ "answer": "SELECT tries_against FROM table_13564702_3 WHERE played = \"22\" AND points_against = \"183\"", "context": "CREATE TABLE table_13564702_3 (tries_against VARCHAR, played VARCHAR, points_against VARCHAR)", "question": "Name the tries against for played 22 and points against of 183" }
### QUESTION What was the winning score in 1985 for Championship of u.s. women's open? ### CONTEXT CREATE TABLE table_name_8 (winning_score VARCHAR, year VARCHAR, championship VARCHAR) ### ANSWER SELECT winning_score FROM table_name_8 WHERE year < 1985 AND championship = "u.s. women's open"
{ "answer": "SELECT winning_score FROM table_name_8 WHERE year < 1985 AND championship = \"u.s. women's open\"", "context": "CREATE TABLE table_name_8 (winning_score VARCHAR, year VARCHAR, championship VARCHAR)", "question": "What was the winning score in 1985 for Championship of u.s. women's open?" }
### QUESTION What venue has an against over 14, an opposing team of scotland, and a status of five nations? ### CONTEXT CREATE TABLE table_name_16 (venue VARCHAR, status VARCHAR, against VARCHAR, opposing_teams VARCHAR) ### ANSWER SELECT venue FROM table_name_16 WHERE against > 14 AND opposing_teams = "scotland" AND status = "five nations"
{ "answer": "SELECT venue FROM table_name_16 WHERE against > 14 AND opposing_teams = \"scotland\" AND status = \"five nations\"", "context": "CREATE TABLE table_name_16 (venue VARCHAR, status VARCHAR, against VARCHAR, opposing_teams VARCHAR)", "question": "What venue has an against over 14, an opposing team of scotland, and a status of five nations?" }
### QUESTION What is the score 1 for the major league soccer all-star game? ### CONTEXT CREATE TABLE table_name_20 (score1 VARCHAR, competition_or_tour VARCHAR) ### ANSWER SELECT score1 FROM table_name_20 WHERE competition_or_tour = "major league soccer all-star game"
{ "answer": "SELECT score1 FROM table_name_20 WHERE competition_or_tour = \"major league soccer all-star game\"", "context": "CREATE TABLE table_name_20 (score1 VARCHAR, competition_or_tour VARCHAR)", "question": "What is the score 1 for the major league soccer all-star game?" }
### QUESTION Who was the wenning witcher when ezequiel astacio was the losing pitcher? ### CONTEXT CREATE TABLE table_13710464_1 (winning_pitcher VARCHAR, losing_pitcher VARCHAR) ### ANSWER SELECT winning_pitcher FROM table_13710464_1 WHERE losing_pitcher = "Ezequiel Astacio"
{ "answer": "SELECT winning_pitcher FROM table_13710464_1 WHERE losing_pitcher = \"Ezequiel Astacio\"", "context": "CREATE TABLE table_13710464_1 (winning_pitcher VARCHAR, losing_pitcher VARCHAR)", "question": "Who was the wenning witcher when ezequiel astacio was the losing pitcher?" }
### QUESTION How many episodes were written by Alexander Woo and directed by Scott Winant? ### CONTEXT CREATE TABLE table_26493520_1 (title VARCHAR, written_by VARCHAR, directed_by VARCHAR) ### ANSWER SELECT COUNT(title) FROM table_26493520_1 WHERE written_by = "Alexander Woo" AND directed_by = "Scott Winant"
{ "answer": "SELECT COUNT(title) FROM table_26493520_1 WHERE written_by = \"Alexander Woo\" AND directed_by = \"Scott Winant\"", "context": "CREATE TABLE table_26493520_1 (title VARCHAR, written_by VARCHAR, directed_by VARCHAR)", "question": "How many episodes were written by Alexander Woo and directed by Scott Winant?" }
### QUESTION How many totals had more than 4 bronze? ### CONTEXT CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER) ### ANSWER SELECT SUM(total) FROM table_name_93 WHERE bronze > 4
{ "answer": "SELECT SUM(total) FROM table_name_93 WHERE bronze > 4", "context": "CREATE TABLE table_name_93 (total INTEGER, bronze INTEGER)", "question": "How many totals had more than 4 bronze?" }
### QUESTION What was the series# with the original airdate of october 23, 1967? ### CONTEXT CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR) ### ANSWER SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = "October 23, 1967"
{ "answer": "SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = \"October 23, 1967\"", "context": "CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR)", "question": "What was the series# with the original airdate of october 23, 1967?" }
### QUESTION with delivery date of 2001 2001 what is gross tonnage? ### CONTEXT CREATE TABLE table_name_35 (gross_tonnage INTEGER, delivery_date VARCHAR) ### ANSWER SELECT AVG(gross_tonnage) FROM table_name_35 WHERE delivery_date = "2001 2001"
{ "answer": "SELECT AVG(gross_tonnage) FROM table_name_35 WHERE delivery_date = \"2001 2001\"", "context": "CREATE TABLE table_name_35 (gross_tonnage INTEGER, delivery_date VARCHAR)", "question": "with delivery date of 2001 2001 what is gross tonnage?" }
### QUESTION What points average has a played greater than 20? ### CONTEXT CREATE TABLE table_name_31 (points INTEGER, played INTEGER) ### ANSWER SELECT AVG(points) FROM table_name_31 WHERE played > 20
{ "answer": "SELECT AVG(points) FROM table_name_31 WHERE played > 20", "context": "CREATE TABLE table_name_31 (points INTEGER, played INTEGER)", "question": "What points average has a played greater than 20?" }
### QUESTION what is the away team score when the home team is essendon? ### CONTEXT CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR) ### ANSWER SELECT away_team AS score FROM table_name_2 WHERE home_team = "essendon"
{ "answer": "SELECT away_team AS score FROM table_name_2 WHERE home_team = \"essendon\"", "context": "CREATE TABLE table_name_2 (away_team VARCHAR, home_team VARCHAR)", "question": "what is the away team score when the home team is essendon?" }
### QUESTION With the score of 6–3, 2–6, [10–8] and played on clay who was the opponent? ### CONTEXT CREATE TABLE table_name_69 (opponent VARCHAR, surface VARCHAR, score VARCHAR) ### ANSWER SELECT opponent FROM table_name_69 WHERE surface = "clay" AND score = "6–3, 2–6, [10–8]"
{ "answer": "SELECT opponent FROM table_name_69 WHERE surface = \"clay\" AND score = \"6–3, 2–6, [10–8]\"", "context": "CREATE TABLE table_name_69 (opponent VARCHAR, surface VARCHAR, score VARCHAR)", "question": "With the score of 6–3, 2–6, [10–8] and played on clay who was the opponent?" }
### QUESTION which opponents in the u.s. championships played after 1945 and had a score of 3–6, 6–4, 2–6, 6–3, 20–18? ### CONTEXT CREATE TABLE table_name_5 (opponents_in_the_final VARCHAR, score VARCHAR, championship VARCHAR, year VARCHAR) ### ANSWER SELECT opponents_in_the_final FROM table_name_5 WHERE championship = "u.s. championships" AND year > 1945 AND score = "3–6, 6–4, 2–6, 6–3, 20–18"
{ "answer": "SELECT opponents_in_the_final FROM table_name_5 WHERE championship = \"u.s. championships\" AND year > 1945 AND score = \"3–6, 6–4, 2–6, 6–3, 20–18\"", "context": "CREATE TABLE table_name_5 (opponents_in_the_final VARCHAR, score VARCHAR, championship VARCHAR, year VARCHAR)", "question": "which opponents in the u.s. championships played after 1945 and had a score of 3–6, 6–4, 2–6, 6–3, 20–18?" }
### QUESTION What is the highest placing for marie mcneil / robert mccall, with less than 168.58? ### CONTEXT CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR) ### ANSWER SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58
{ "answer": "SELECT MAX(placings) FROM table_name_82 WHERE name = \"marie mcneil / robert mccall\" AND points < 168.58", "context": "CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR)", "question": "What is the highest placing for marie mcneil / robert mccall, with less than 168.58?" }
### QUESTION What county has a school with less than 301 students and plays IHSAA class A football? ### CONTEXT CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR) ### ANSWER SELECT county FROM table_name_81 WHERE ihsaa_football_class = "a" AND size < 301
{ "answer": "SELECT county FROM table_name_81 WHERE ihsaa_football_class = \"a\" AND size < 301", "context": "CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR)", "question": "What county has a school with less than 301 students and plays IHSAA class A football?" }
### QUESTION What is the operator of the ensemble from Yorkshire? ### CONTEXT CREATE TABLE table_name_99 (operator VARCHAR, region VARCHAR) ### ANSWER SELECT operator FROM table_name_99 WHERE region = "yorkshire"
{ "answer": "SELECT operator FROM table_name_99 WHERE region = \"yorkshire\"", "context": "CREATE TABLE table_name_99 (operator VARCHAR, region VARCHAR)", "question": "What is the operator of the ensemble from Yorkshire?" }
### QUESTION What is the name of the country where moving from is listed as bristol city? ### CONTEXT CREATE TABLE table_17634290_7 (country VARCHAR, moving_from VARCHAR) ### ANSWER SELECT country FROM table_17634290_7 WHERE moving_from = "Bristol City"
{ "answer": "SELECT country FROM table_17634290_7 WHERE moving_from = \"Bristol City\"", "context": "CREATE TABLE table_17634290_7 (country VARCHAR, moving_from VARCHAR)", "question": "What is the name of the country where moving from is listed as bristol city?" }
### QUESTION Who directed the episode that had 0.57 million U.S. viewers? ### CONTEXT CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) ### ANSWER SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = "0.57"
{ "answer": "SELECT directed_by FROM table_26914076_4 WHERE us_viewers__millions_ = \"0.57\"", "context": "CREATE TABLE table_26914076_4 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)", "question": "Who directed the episode that had 0.57 million U.S. viewers? " }
### QUESTION What is the namesake of Ayashe at a longitude less than 270.7, latitude more than -47.1, and a diameter less than 7.2? ### CONTEXT CREATE TABLE table_name_87 (named VARCHAR, name VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR) ### ANSWER SELECT named AS after FROM table_name_87 WHERE longitude < 270.7 AND latitude > -47.1 AND diameter__km_ < 7.2 AND name = "ayashe"
{ "answer": "SELECT named AS after FROM table_name_87 WHERE longitude < 270.7 AND latitude > -47.1 AND diameter__km_ < 7.2 AND name = \"ayashe\"", "context": "CREATE TABLE table_name_87 (named VARCHAR, name VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR)", "question": "What is the namesake of Ayashe at a longitude less than 270.7, latitude more than -47.1, and a diameter less than 7.2?" }
### QUESTION Which teams were in the central division and located in livonia? ### CONTEXT CREATE TABLE table_11094950_1 (team VARCHAR, division VARCHAR, location VARCHAR) ### ANSWER SELECT team FROM table_11094950_1 WHERE division = "Central" AND location = "Livonia"
{ "answer": "SELECT team FROM table_11094950_1 WHERE division = \"Central\" AND location = \"Livonia\"", "context": "CREATE TABLE table_11094950_1 (team VARCHAR, division VARCHAR, location VARCHAR)", "question": "Which teams were in the central division and located in livonia?" }
### QUESTION What's the region for an item on November 10, 2007 that's a cd? ### CONTEXT CREATE TABLE table_name_91 (region VARCHAR, date VARCHAR, format VARCHAR) ### ANSWER SELECT region FROM table_name_91 WHERE date = "november 10, 2007" AND format = "cd"
{ "answer": "SELECT region FROM table_name_91 WHERE date = \"november 10, 2007\" AND format = \"cd\"", "context": "CREATE TABLE table_name_91 (region VARCHAR, date VARCHAR, format VARCHAR)", "question": "What's the region for an item on November 10, 2007 that's a cd?" }
### QUESTION What was the result of the election where stephen van rensselaer was the incumbent and the party represented was the adams-clay federalist party? ### CONTEXT CREATE TABLE table_2668264_17 (result VARCHAR, party VARCHAR, incumbent VARCHAR) ### ANSWER SELECT result FROM table_2668264_17 WHERE party = "Adams-Clay Federalist" AND incumbent = "Stephen Van Rensselaer"
{ "answer": "SELECT result FROM table_2668264_17 WHERE party = \"Adams-Clay Federalist\" AND incumbent = \"Stephen Van Rensselaer\"", "context": "CREATE TABLE table_2668264_17 (result VARCHAR, party VARCHAR, incumbent VARCHAR)", "question": "What was the result of the election where stephen van rensselaer was the incumbent and the party represented was the adams-clay federalist party?" }
### QUESTION What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984? ### CONTEXT CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR) ### ANSWER SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = "willy.tel" AND up__up_to_kbit_s_ > 1984
{ "answer": "SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = \"willy.tel\" AND up__up_to_kbit_s_ > 1984", "context": "CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR)", "question": "What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984?" }
### QUESTION What time is CDT when EDT is 4:55 a.m.? ### CONTEXT CREATE TABLE table_name_71 (cdt___5_utc_ VARCHAR, edt___4_utc_ VARCHAR) ### ANSWER SELECT cdt___5_utc_ FROM table_name_71 WHERE edt___4_utc_ = "4:55 a.m."
{ "answer": "SELECT cdt___5_utc_ FROM table_name_71 WHERE edt___4_utc_ = \"4:55 a.m.\"", "context": "CREATE TABLE table_name_71 (cdt___5_utc_ VARCHAR, edt___4_utc_ VARCHAR)", "question": "What time is CDT when EDT is 4:55 a.m.?" }
### QUESTION Find the id of songs that are available in mp4 format and have resolution lower than 1000. ### CONTEXT CREATE TABLE song (f_id VARCHAR, formats VARCHAR, resolution INTEGER); CREATE TABLE files (f_id VARCHAR, formats VARCHAR, resolution INTEGER) ### ANSWER SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000
{ "answer": "SELECT f_id FROM files WHERE formats = \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution < 1000", "context": "CREATE TABLE song (f_id VARCHAR, formats VARCHAR, resolution INTEGER); CREATE TABLE files (f_id VARCHAR, formats VARCHAR, resolution INTEGER)", "question": "Find the id of songs that are available in mp4 format and have resolution lower than 1000." }
### QUESTION What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I? ### CONTEXT CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR) ### ANSWER SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = "block i"
{ "answer": "SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = \"block i\"", "context": "CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR)", "question": "What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I?" }
### QUESTION What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186? ### CONTEXT CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR) ### ANSWER SELECT name FROM table_name_91 WHERE area = "balclutha" AND decile < 7 AND roll > 186
{ "answer": "SELECT name FROM table_name_91 WHERE area = \"balclutha\" AND decile < 7 AND roll > 186", "context": "CREATE TABLE table_name_91 (name VARCHAR, roll VARCHAR, area VARCHAR, decile VARCHAR)", "question": "What's the school name in Balclutha that has a Decile of 7 and a roll larger than 186?" }
### QUESTION What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349? ### CONTEXT CREATE TABLE table_name_72 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR, faith VARCHAR) ### ANSWER SELECT MIN(ofsted_number) FROM table_name_72 WHERE type = "primary" AND faith = "ce" AND intake = 30 AND dcsf_number < 3349
{ "answer": "SELECT MIN(ofsted_number) FROM table_name_72 WHERE type = \"primary\" AND faith = \"ce\" AND intake = 30 AND dcsf_number < 3349", "context": "CREATE TABLE table_name_72 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR, faith VARCHAR)", "question": "What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?" }
### QUESTION What is the number of the model with three parallel printer ports? ### CONTEXT CREATE TABLE table_1300080_1 (model_number VARCHAR, printer_ports VARCHAR) ### ANSWER SELECT model_number FROM table_1300080_1 WHERE printer_ports = "Three Parallel"
{ "answer": "SELECT model_number FROM table_1300080_1 WHERE printer_ports = \"Three Parallel\"", "context": "CREATE TABLE table_1300080_1 (model_number VARCHAR, printer_ports VARCHAR)", "question": "What is the number of the model with three parallel printer ports?" }
### QUESTION Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey? ### CONTEXT CREATE TABLE table_name_78 (league INTEGER, venue VARCHAR, club VARCHAR) ### ANSWER SELECT MIN(league) AS championships FROM table_name_78 WHERE venue = "penn state ice pavilion" AND club = "penn state nittany lions men's ice hockey"
{ "answer": "SELECT MIN(league) AS championships FROM table_name_78 WHERE venue = \"penn state ice pavilion\" AND club = \"penn state nittany lions men's ice hockey\"", "context": "CREATE TABLE table_name_78 (league INTEGER, venue VARCHAR, club VARCHAR)", "question": "Which League championship is the lowest one that has a Venue of penn state ice pavilion, and a Club of penn state nittany lions men's ice hockey?" }
### QUESTION How many final venues were there in the 1997-98 season? ### CONTEXT CREATE TABLE table_19651669_1 (final_venue VARCHAR, season VARCHAR) ### ANSWER SELECT COUNT(final_venue) FROM table_19651669_1 WHERE season = "1997-98"
{ "answer": "SELECT COUNT(final_venue) FROM table_19651669_1 WHERE season = \"1997-98\"", "context": "CREATE TABLE table_19651669_1 (final_venue VARCHAR, season VARCHAR)", "question": "How many final venues were there in the 1997-98 season?" }
### QUESTION What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix? ### CONTEXT CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR) ### ANSWER SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Chinese Grand Prix"
{ "answer": "SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Australian Grand Prix\" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = \"Chinese Grand Prix\"", "context": "CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)", "question": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?" }
### QUESTION What is the record when the visiting team was the Quebec Nordiques on April 22? ### CONTEXT CREATE TABLE table_name_26 (record VARCHAR, visitor VARCHAR, date VARCHAR) ### ANSWER SELECT record FROM table_name_26 WHERE visitor = "quebec nordiques" AND date = "april 22"
{ "answer": "SELECT record FROM table_name_26 WHERE visitor = \"quebec nordiques\" AND date = \"april 22\"", "context": "CREATE TABLE table_name_26 (record VARCHAR, visitor VARCHAR, date VARCHAR)", "question": "What is the record when the visiting team was the Quebec Nordiques on April 22?" }
### QUESTION What are the coreceptors of the chromosomes in that location 11q22.2-q22.3? ### CONTEXT CREATE TABLE table_29871617_1 (coreceptor VARCHAR, chromosomal_location VARCHAR) ### ANSWER SELECT coreceptor FROM table_29871617_1 WHERE chromosomal_location = "11q22.2-q22.3"
{ "answer": "SELECT coreceptor FROM table_29871617_1 WHERE chromosomal_location = \"11q22.2-q22.3\"", "context": "CREATE TABLE table_29871617_1 (coreceptor VARCHAR, chromosomal_location VARCHAR)", "question": "What are the coreceptors of the chromosomes in that location 11q22.2-q22.3?" }
### QUESTION Find the last name of the student who has a cat that is age 3. ### CONTEXT CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pet_age VARCHAR, pettype VARCHAR) ### ANSWER SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'
{ "answer": "SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pet_age = 3 AND T3.pettype = 'cat'", "context": "CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pet_age VARCHAR, pettype VARCHAR)", "question": "Find the last name of the student who has a cat that is age 3." }
### QUESTION What are all the title directed by reginald hudlin ### CONTEXT CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR) ### ANSWER SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin"
{ "answer": "SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = \"Reginald Hudlin\"", "context": "CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)", "question": "What are all the title directed by reginald hudlin" }
### QUESTION At which Conference was the Division in the East, and the Home Stadium named fedexfield? ### CONTEXT CREATE TABLE table_name_94 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR) ### ANSWER SELECT conference FROM table_name_94 WHERE division = "east" AND home_stadium = "fedexfield"
{ "answer": "SELECT conference FROM table_name_94 WHERE division = \"east\" AND home_stadium = \"fedexfield\"", "context": "CREATE TABLE table_name_94 (conference VARCHAR, division VARCHAR, home_stadium VARCHAR)", "question": "At which Conference was the Division in the East, and the Home Stadium named fedexfield?" }
### QUESTION Which Overall has a College of florida state, and a Round larger than 2? ### CONTEXT CREATE TABLE table_name_76 (overall INTEGER, college VARCHAR, round VARCHAR) ### ANSWER SELECT SUM(overall) FROM table_name_76 WHERE college = "florida state" AND round > 2
{ "answer": "SELECT SUM(overall) FROM table_name_76 WHERE college = \"florida state\" AND round > 2", "context": "CREATE TABLE table_name_76 (overall INTEGER, college VARCHAR, round VARCHAR)", "question": "Which Overall has a College of florida state, and a Round larger than 2?" }
### QUESTION What are the line 1 of addresses shared by some students and some teachers? ### CONTEXT CREATE TABLE Teachers (address_id VARCHAR); CREATE TABLE Students (address_id VARCHAR); CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR) ### ANSWER SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id
{ "answer": "SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id", "context": "CREATE TABLE Teachers (address_id VARCHAR); CREATE TABLE Students (address_id VARCHAR); CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR)", "question": "What are the line 1 of addresses shared by some students and some teachers?" }
### QUESTION WHAT IS THE PLACE WITH A SCORE OF 73-65-73-71=282? ### CONTEXT CREATE TABLE table_name_84 (place VARCHAR, score VARCHAR) ### ANSWER SELECT place FROM table_name_84 WHERE score = 73 - 65 - 73 - 71 = 282
{ "answer": "SELECT place FROM table_name_84 WHERE score = 73 - 65 - 73 - 71 = 282", "context": "CREATE TABLE table_name_84 (place VARCHAR, score VARCHAR)", "question": "WHAT IS THE PLACE WITH A SCORE OF 73-65-73-71=282?" }
### QUESTION What is the council area for the Larkhall urban sub-area? ### CONTEXT CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR) ### ANSWER SELECT council_area FROM table_name_51 WHERE urban_sub_area = "larkhall"
{ "answer": "SELECT council_area FROM table_name_51 WHERE urban_sub_area = \"larkhall\"", "context": "CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR)", "question": "What is the council area for the Larkhall urban sub-area?" }
### QUESTION Name the lowest Gain which has a Long of 0, and a GP-GS of 4–0, and a Loss smaller than 3? ### CONTEXT CREATE TABLE table_name_95 (gain INTEGER, loss VARCHAR, long VARCHAR, gp_gs VARCHAR) ### ANSWER SELECT MIN(gain) FROM table_name_95 WHERE long = 0 AND gp_gs = "4–0" AND loss < 3
{ "answer": "SELECT MIN(gain) FROM table_name_95 WHERE long = 0 AND gp_gs = \"4–0\" AND loss < 3", "context": "CREATE TABLE table_name_95 (gain INTEGER, loss VARCHAR, long VARCHAR, gp_gs VARCHAR)", "question": "Name the lowest Gain which has a Long of 0, and a GP-GS of 4–0, and a Loss smaller than 3?" }
### QUESTION How many states that have some college students playing in the mid position but not in the goalie position. ### CONTEXT CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR) ### ANSWER SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie')
{ "answer": "SELECT COUNT(*) FROM (SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'mid' EXCEPT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'goalie')", "context": "CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)", "question": "How many states that have some college students playing in the mid position but not in the goalie position." }
### QUESTION What's the highest annual interchange for wimbledon railway station? ### CONTEXT CREATE TABLE table_name_82 (annual_interchanges__millions__2011_12 INTEGER, railway_station VARCHAR) ### ANSWER SELECT MAX(annual_interchanges__millions__2011_12) FROM table_name_82 WHERE railway_station = "wimbledon"
{ "answer": "SELECT MAX(annual_interchanges__millions__2011_12) FROM table_name_82 WHERE railway_station = \"wimbledon\"", "context": "CREATE TABLE table_name_82 (annual_interchanges__millions__2011_12 INTEGER, railway_station VARCHAR)", "question": "What's the highest annual interchange for wimbledon railway station?" }
### QUESTION How many wins did Glenelg FL of bahgallah have when there were more than 3 byes? ### CONTEXT CREATE TABLE table_name_93 (wins VARCHAR, glenelg_fl VARCHAR, byes VARCHAR) ### ANSWER SELECT COUNT(wins) FROM table_name_93 WHERE glenelg_fl = "bahgallah" AND byes > 3
{ "answer": "SELECT COUNT(wins) FROM table_name_93 WHERE glenelg_fl = \"bahgallah\" AND byes > 3", "context": "CREATE TABLE table_name_93 (wins VARCHAR, glenelg_fl VARCHAR, byes VARCHAR)", "question": "How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?" }
### QUESTION What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)? ### CONTEXT CREATE TABLE SECTION (course_id VARCHAR, building VARCHAR, room_number VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, course_id VARCHAR); CREATE TABLE classroom (capacity INTEGER, building VARCHAR, room_number VARCHAR); CREATE TABLE classroom (capacity INTEGER) ### ANSWER SELECT T3.title, T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT MAX(capacity) FROM classroom)
{ "answer": "SELECT T3.title, T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building = T2.building AND T1.room_number = T2.room_number JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.capacity = (SELECT MAX(capacity) FROM classroom)", "context": "CREATE TABLE SECTION (course_id VARCHAR, building VARCHAR, room_number VARCHAR); CREATE TABLE course (title VARCHAR, credits VARCHAR, course_id VARCHAR); CREATE TABLE classroom (capacity INTEGER, building VARCHAR, room_number VARCHAR); CREATE TABLE classroom (capacity INTEGER)", "question": "What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?" }
### QUESTION Please show the most common publication date. ### CONTEXT CREATE TABLE publication (Publication_Date VARCHAR) ### ANSWER SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE publication (Publication_Date VARCHAR)", "question": "Please show the most common publication date." }
### QUESTION Which position has a club of Meralomas and a player named David Biddle? ### CONTEXT CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR) ### ANSWER SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle"
{ "answer": "SELECT position FROM table_name_59 WHERE club_province = \"meralomas\" AND player = \"david biddle\"", "context": "CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR)", "question": "Which position has a club of Meralomas and a player named David Biddle?" }
### QUESTION how many video out connections does the sounddock portable have? ### CONTEXT CREATE TABLE table_24384861_1 (video_out VARCHAR, version VARCHAR) ### ANSWER SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = "SoundDock Portable"
{ "answer": "SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = \"SoundDock Portable\"", "context": "CREATE TABLE table_24384861_1 (video_out VARCHAR, version VARCHAR)", "question": "how many video out connections does the sounddock portable have?" }
### QUESTION What is the official language spoken in the country whose head of state is Beatrix? ### CONTEXT CREATE TABLE country (Code VARCHAR, HeadOfState VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR) ### ANSWER SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = "Beatrix" AND T2.IsOfficial = "T"
{ "answer": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.HeadOfState = \"Beatrix\" AND T2.IsOfficial = \"T\"", "context": "CREATE TABLE country (Code VARCHAR, HeadOfState VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR, IsOfficial VARCHAR)", "question": "What is the official language spoken in the country whose head of state is Beatrix?" }
### QUESTION Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages. ### CONTEXT CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) ### ANSWER SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2
{ "answer": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2", "context": "CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)", "question": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages." }
### QUESTION When was the game number 3 played? ### CONTEXT CREATE TABLE table_23286112_6 (date VARCHAR, game VARCHAR) ### ANSWER SELECT date FROM table_23286112_6 WHERE game = 3
{ "answer": "SELECT date FROM table_23286112_6 WHERE game = 3", "context": "CREATE TABLE table_23286112_6 (date VARCHAR, game VARCHAR)", "question": "When was the game number 3 played?" }
### QUESTION Return the name and gender of the staff who was assigned in 2016. ### CONTEXT CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR, date_assigned_from VARCHAR) ### ANSWER SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE "2016%"
{ "answer": "SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE \"2016%\"", "context": "CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR, date_assigned_from VARCHAR)", "question": "Return the name and gender of the staff who was assigned in 2016." }
### QUESTION Show the names of customers who have at least 2 mailshots with outcome code 'Order'. ### CONTEXT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR) ### ANSWER SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING COUNT(*) >= 2
{ "answer": "SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)", "question": "Show the names of customers who have at least 2 mailshots with outcome code 'Order'." }
### QUESTION What is the chromosomal location of il-1β? ### CONTEXT CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR) ### ANSWER SELECT chromosomal_location FROM table_29871617_1 WHERE name = "IL-1β"
{ "answer": "SELECT chromosomal_location FROM table_29871617_1 WHERE name = \"IL-1β\"", "context": "CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR)", "question": "What is the chromosomal location of il-1β?" }
### QUESTION Name the highest total for the tournament more than 0 and regular season after 8 ### CONTEXT CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR) ### ANSWER SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8
{ "answer": "SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8", "context": "CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR)", "question": "Name the highest total for the tournament more than 0 and regular season after 8" }
### QUESTION For each product that has problems, find the number of problems reported after 1986-11-13 and the product id? ### CONTEXT CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER) ### ANSWER SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
{ "answer": "SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > \"1986-11-13\" GROUP BY T2.product_id", "context": "CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER)", "question": "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?" }
### QUESTION What is the lowest numbered episode that had a rating/share of 0.9/4 and more than 3.79 million viewers? ### CONTEXT ### ANSWER SELECT MIN(episode__number) FROM table_name_89 WHERE rating/share = 0.9 / 4 AND viewers__millions_ > 3.79
{ "answer": "SELECT MIN(episode__number) FROM table_name_89 WHERE rating/share = 0.9 / 4 AND viewers__millions_ > 3.79", "context": "", "question": "What is the lowest numbered episode that had a rating/share of 0.9/4 and more than 3.79 million viewers?" }
### QUESTION What are all the AAA classes in the school years of 2004-05? ### CONTEXT CREATE TABLE table_14603212_5 (class_aAA VARCHAR, school_year VARCHAR) ### ANSWER SELECT class_aAA FROM table_14603212_5 WHERE school_year = "2004-05"
{ "answer": "SELECT class_aAA FROM table_14603212_5 WHERE school_year = \"2004-05\"", "context": "CREATE TABLE table_14603212_5 (class_aAA VARCHAR, school_year VARCHAR)", "question": "What are all the AAA classes in the school years of 2004-05?" }
### QUESTION Name the least episode for november 29, 1985 ### CONTEXT CREATE TABLE table_20967430_2 (ep INTEGER, original_air_date VARCHAR) ### ANSWER SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = "November 29, 1985"
{ "answer": "SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = \"November 29, 1985\"", "context": "CREATE TABLE table_20967430_2 (ep INTEGER, original_air_date VARCHAR)", "question": "Name the least episode for november 29, 1985" }
### QUESTION What is the average Margin that has a Round of 13. (h)? ### CONTEXT CREATE TABLE table_name_3 (margin INTEGER, round VARCHAR) ### ANSWER SELECT AVG(margin) FROM table_name_3 WHERE round = "13. (h)"
{ "answer": "SELECT AVG(margin) FROM table_name_3 WHERE round = \"13. (h)\"", "context": "CREATE TABLE table_name_3 (margin INTEGER, round VARCHAR)", "question": "What is the average Margin that has a Round of 13. (h)?" }
### QUESTION what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2? ### CONTEXT CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR) ### ANSWER SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 2
{ "answer": "SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = \"le domaine-du-roy\" AND type = \"m\" AND region < 2", "context": "CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR)", "question": "what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2?" }
### QUESTION what are the notes for date (from) 12 august 1897? ### CONTEXT CREATE TABLE table_12562214_1 (notes VARCHAR, date__from_ VARCHAR) ### ANSWER SELECT notes FROM table_12562214_1 WHERE date__from_ = "12 August 1897"
{ "answer": "SELECT notes FROM table_12562214_1 WHERE date__from_ = \"12 August 1897\"", "context": "CREATE TABLE table_12562214_1 (notes VARCHAR, date__from_ VARCHAR)", "question": "what are the notes for date (from) 12 august 1897?" }
### QUESTION What is the engine configuration & notes 0-100km/h with an engine type with b5252 fs? ### CONTEXT CREATE TABLE table_name_49 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR) ### ANSWER SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_49 WHERE engine_type = "b5252 fs"
{ "answer": "SELECT engine_configuration_ & _notes_0_100km_h FROM table_name_49 WHERE engine_type = \"b5252 fs\"", "context": "CREATE TABLE table_name_49 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR)", "question": "What is the engine configuration & notes 0-100km/h with an engine type with b5252 fs?" }
### QUESTION What year did a short course have a time of 7:51.80? ### CONTEXT CREATE TABLE table_name_24 (year_set VARCHAR, long_course_short_course VARCHAR, time VARCHAR) ### ANSWER SELECT COUNT(year_set) FROM table_name_24 WHERE long_course_short_course = "short course" AND time = "7:51.80"
{ "answer": "SELECT COUNT(year_set) FROM table_name_24 WHERE long_course_short_course = \"short course\" AND time = \"7:51.80\"", "context": "CREATE TABLE table_name_24 (year_set VARCHAR, long_course_short_course VARCHAR, time VARCHAR)", "question": "What year did a short course have a time of 7:51.80?" }
### QUESTION what is the money for trevor immelman? ### CONTEXT CREATE TABLE table_name_77 (money___$__ VARCHAR, player VARCHAR) ### ANSWER SELECT money___$__ FROM table_name_77 WHERE player = "trevor immelman"
{ "answer": "SELECT money___$__ FROM table_name_77 WHERE player = \"trevor immelman\"", "context": "CREATE TABLE table_name_77 (money___$__ VARCHAR, player VARCHAR)", "question": "what is the money for trevor immelman?" }
### QUESTION Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw? ### CONTEXT CREATE TABLE table_name_63 (round INTEGER, college_junior_club_team__league_ VARCHAR, position VARCHAR) ### ANSWER SELECT AVG(round) FROM table_name_63 WHERE college_junior_club_team__league_ = "hamilton red wings (oha)" AND position = "rw"
{ "answer": "SELECT AVG(round) FROM table_name_63 WHERE college_junior_club_team__league_ = \"hamilton red wings (oha)\" AND position = \"rw\"", "context": "CREATE TABLE table_name_63 (round INTEGER, college_junior_club_team__league_ VARCHAR, position VARCHAR)", "question": "Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw?" }
### QUESTION What is the broadcast date of the 16mm t/r episode? ### CONTEXT CREATE TABLE table_1849243_1 (broadcast_date VARCHAR, archive VARCHAR) ### ANSWER SELECT broadcast_date FROM table_1849243_1 WHERE archive = "16mm t/r"
{ "answer": "SELECT broadcast_date FROM table_1849243_1 WHERE archive = \"16mm t/r\"", "context": "CREATE TABLE table_1849243_1 (broadcast_date VARCHAR, archive VARCHAR)", "question": "What is the broadcast date of the 16mm t/r episode?" }
### QUESTION List the project details of the project both producing patent and paper as outcomes. ### CONTEXT CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) ### ANSWER SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'
{ "answer": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'", "context": "CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)", "question": "List the project details of the project both producing patent and paper as outcomes." }
### QUESTION Which Maximum episode premiered March 8, 2008? ### CONTEXT CREATE TABLE table_2140071_8 (episode INTEGER, premier_date VARCHAR) ### ANSWER SELECT MAX(episode) FROM table_2140071_8 WHERE premier_date = "March 8, 2008"
{ "answer": "SELECT MAX(episode) FROM table_2140071_8 WHERE premier_date = \"March 8, 2008\"", "context": "CREATE TABLE table_2140071_8 (episode INTEGER, premier_date VARCHAR)", "question": "Which Maximum episode premiered March 8, 2008?" }
### QUESTION Find the number of the products that have their color described as "red" and have a characteristic named "slow". ### CONTEXT CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "slow"
{ "answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"slow\"", "context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\"." }
### QUESTION How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7? ### CONTEXT ### ANSWER SELECT COUNT(*) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7
{ "answer": "SELECT COUNT(*) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7", "context": "", "question": "How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?" }
### QUESTION what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0? ### CONTEXT CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR) ### ANSWER SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0
{ "answer": "SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0", "context": "CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR)", "question": "what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?" }
### QUESTION Name the attendance for atlanta braves opponent for september 9 ### CONTEXT CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR) ### ANSWER SELECT AVG(attendance) FROM table_name_26 WHERE opponent = "atlanta braves" AND date = "september 9"
{ "answer": "SELECT AVG(attendance) FROM table_name_26 WHERE opponent = \"atlanta braves\" AND date = \"september 9\"", "context": "CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR)", "question": "Name the attendance for atlanta braves opponent for september 9" }
### QUESTION What kind of Takuu has a North Marquesan of /vehine/? ### CONTEXT CREATE TABLE table_name_83 (takuu VARCHAR, north_marquesan VARCHAR) ### ANSWER SELECT takuu FROM table_name_83 WHERE north_marquesan = "/vehine/"
{ "answer": "SELECT takuu FROM table_name_83 WHERE north_marquesan = \"/vehine/\"", "context": "CREATE TABLE table_name_83 (takuu VARCHAR, north_marquesan VARCHAR)", "question": "What kind of Takuu has a North Marquesan of /vehine/?" }
### QUESTION What was the transfer window with a moving from of fenerbahçe? ### CONTEXT CREATE TABLE table_name_21 (transfer_window VARCHAR, moving_from VARCHAR) ### ANSWER SELECT transfer_window FROM table_name_21 WHERE moving_from = "fenerbahçe"
{ "answer": "SELECT transfer_window FROM table_name_21 WHERE moving_from = \"fenerbahçe\"", "context": "CREATE TABLE table_name_21 (transfer_window VARCHAR, moving_from VARCHAR)", "question": "What was the transfer window with a moving from of fenerbahçe?" }
### QUESTION How many points did the Ford V8 with a Tyrrell 007 have? ### CONTEXT CREATE TABLE table_name_3 (points VARCHAR, engine VARCHAR, chassis VARCHAR) ### ANSWER SELECT points FROM table_name_3 WHERE engine = "ford v8" AND chassis = "tyrrell 007"
{ "answer": "SELECT points FROM table_name_3 WHERE engine = \"ford v8\" AND chassis = \"tyrrell 007\"", "context": "CREATE TABLE table_name_3 (points VARCHAR, engine VARCHAR, chassis VARCHAR)", "question": "How many points did the Ford V8 with a Tyrrell 007 have?" }
### QUESTION What was the title of the episode that aired February 9, 1979? ### CONTEXT CREATE TABLE table_2343740_1 (title VARCHAR, original_air_date VARCHAR) ### ANSWER SELECT title FROM table_2343740_1 WHERE original_air_date = "February 9, 1979"
{ "answer": "SELECT title FROM table_2343740_1 WHERE original_air_date = \"February 9, 1979\"", "context": "CREATE TABLE table_2343740_1 (title VARCHAR, original_air_date VARCHAR)", "question": "What was the title of the episode that aired February 9, 1979?" }
### QUESTION What is the ship id and name that caused most total injuries? ### CONTEXT CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR) ### ANSWER SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR)", "question": "What is the ship id and name that caused most total injuries?" }
### QUESTION How many games did they have a record of 39-12-6? ### CONTEXT CREATE TABLE table_23308178_8 (game VARCHAR, record VARCHAR) ### ANSWER SELECT COUNT(game) FROM table_23308178_8 WHERE record = "39-12-6"
{ "answer": "SELECT COUNT(game) FROM table_23308178_8 WHERE record = \"39-12-6\"", "context": "CREATE TABLE table_23308178_8 (game VARCHAR, record VARCHAR)", "question": "How many games did they have a record of 39-12-6?" }