answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT population FROM table_name_15 WHERE area = "11" | CREATE TABLE table_name_15 (population VARCHAR, area VARCHAR) | What is the population of area of 11? |
SELECT traditional FROM table_name_14 WHERE population = "44,803" | CREATE TABLE table_name_14 (traditional VARCHAR, population VARCHAR) | What shows for traditional when the population was 44,803? |
SELECT population FROM table_name_8 WHERE area = "4,575" | CREATE TABLE table_name_8 (population VARCHAR, area VARCHAR) | What is the population when the area is 4,575? |
SELECT simplified FROM table_name_13 WHERE density = "52" | CREATE TABLE table_name_13 (simplified VARCHAR, density VARCHAR) | What shows for simplified when the density is 52? |
SELECT density FROM table_name_33 WHERE simplified = "南山区" | CREATE TABLE table_name_33 (density VARCHAR, simplified VARCHAR) | What is the density when simplified shows 南山区? |
SELECT pinyin FROM table_name_22 WHERE simplified = "南山区" | CREATE TABLE table_name_22 (pinyin VARCHAR, simplified VARCHAR) | What is the pinyin when the simplified shows 南山区? |
SELECT country FROM table_name_26 WHERE player = "greg norman" | CREATE TABLE table_name_26 (country VARCHAR, player VARCHAR) | What country does Greg Norman represent? |
SELECT year_s__won FROM table_name_11 WHERE total = 286 | CREATE TABLE table_name_11 (year_s__won VARCHAR, total VARCHAR) | What years won have a total of 286? |
SELECT player FROM table_name_22 WHERE total = 295 | CREATE TABLE table_name_22 (player VARCHAR, total VARCHAR) | Which player had a total of 295? |
SELECT to_par FROM table_name_10 WHERE total = 291 | CREATE TABLE table_name_10 (to_par VARCHAR, total VARCHAR) | What is the To par when there was a total of 291? |
SELECT years_of_daylight_service FROM table_name_7 WHERE builder = "alco" | CREATE TABLE table_name_7 (years_of_daylight_service VARCHAR, builder VARCHAR) | What is the year of daylight service when the builder was Alco? |
SELECT 2006 AS _07_season FROM table_name_64 WHERE team = "kf fushë kosova" | CREATE TABLE table_name_64 (team VARCHAR) | What is 2006-07 Season, when Team is "KF Fushë Kosova"? |
SELECT year_s__won FROM table_name_40 WHERE total = 145 AND country = "united states" | CREATE TABLE table_name_40 (year_s__won VARCHAR, total VARCHAR, country VARCHAR) | What is Year(s) Won, when Total is "145", and when Country is "United States"? |
SELECT MIN(to_par) FROM table_name_97 WHERE total < 148 AND year_s__won = "1959 , 1968 , 1974" | CREATE TABLE table_name_97 (to_par INTEGER, total VARCHAR, year_s__won VARCHAR) | What is the lowest To par, when Total is greater than 148, and when Year(s) Won is "1959 , 1968 , 1974"? |
SELECT country FROM table_name_20 WHERE to_par = 1 AND player = "seve ballesteros" | CREATE TABLE table_name_20 (country VARCHAR, to_par VARCHAR, player VARCHAR) | What is Country, when To par is "1", and when Player is "Seve Ballesteros"? |
SELECT SUM(total) FROM table_name_81 WHERE year_s__won = "1966 , 1970 , 1978" AND to_par < 4 | CREATE TABLE table_name_81 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR) | What is the sum of Total, when Year(s) Won is "1966 , 1970 , 1978", and when To par is less than 4? |
SELECT country FROM table_name_19 WHERE total < 148 AND player = "gary player" | CREATE TABLE table_name_19 (country VARCHAR, total VARCHAR, player VARCHAR) | What is Country, when Total is less than 148, and when Player is "Gary Player"? |
SELECT to_par FROM table_name_7 WHERE total < 148 AND country = "south africa" | CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR) | What is To par, when Total is less than 148, and when Country is "South Africa"? |
SELECT AVG(age_at_appointment) FROM table_name_58 WHERE portfolio_attachment = "security" | CREATE TABLE table_name_58 (age_at_appointment INTEGER, portfolio_attachment VARCHAR) | What is the average age at appointment of those attached to security? |
SELECT distance FROM table_name_59 WHERE date = "saturday, august 23" | CREATE TABLE table_name_59 (distance VARCHAR, date VARCHAR) | What was the distance of the race on saturday, august 23? |
SELECT winner FROM table_name_70 WHERE distance = "175.6km" | CREATE TABLE table_name_70 (winner VARCHAR, distance VARCHAR) | Who was the winner of the race that had a distance of 175.6km? |
SELECT winner FROM table_name_18 WHERE date = "wednesday, august 27" | CREATE TABLE table_name_18 (winner VARCHAR, date VARCHAR) | Who won the race on wednesday, august 27? |
SELECT distance FROM table_name_71 WHERE route = "maldegem > brussels" | CREATE TABLE table_name_71 (distance VARCHAR, route VARCHAR) | What is the distance of the maldegem > brussels route? |
SELECT winner FROM table_name_63 WHERE route = "mechelen > mechelen" | CREATE TABLE table_name_63 (winner VARCHAR, route VARCHAR) | Who was the winner of the mechelen > mechelen route? |
SELECT imap_shared FROM table_name_93 WHERE web_ui = "web ui" | CREATE TABLE table_name_93 (imap_shared VARCHAR, web_ui VARCHAR) | What IMAP sharing options exist for software with a web UI? |
SELECT total FROM table_name_3 WHERE event = "wc belgrade" AND rank_points = "10" | CREATE TABLE table_name_3 (total VARCHAR, event VARCHAR, rank_points VARCHAR) | What's the total for the wc belgrade event with 10 rank points? |
SELECT total FROM table_name_72 WHERE rank_points = "olympic gold medalist" | CREATE TABLE table_name_72 (total VARCHAR, rank_points VARCHAR) | That's the total for rank points of olympic gold medalist? |
SELECT shooter FROM table_name_51 WHERE score_points = "defending champion" | CREATE TABLE table_name_51 (shooter VARCHAR, score_points VARCHAR) | Who's the shooter with score points of defending champion? |
SELECT shooter FROM table_name_57 WHERE total = "25" | CREATE TABLE table_name_57 (shooter VARCHAR, total VARCHAR) | Who's the shooter with a total of 25? |
SELECT shooter FROM table_name_32 WHERE score_points = "13" AND rank_points = "10" | CREATE TABLE table_name_32 (shooter VARCHAR, score_points VARCHAR, rank_points VARCHAR) | Who's the shooter with 13 score points and 10 rank points? |
SELECT MAX(points) FROM table_name_95 WHERE top_goal_scorer = "khaled msakni (10)" AND final_standing < 12 | CREATE TABLE table_name_95 (points INTEGER, top_goal_scorer VARCHAR, final_standing VARCHAR) | What is the highest points when the top goal scorer was Khaled Msakni (10), and the final standing is less than 12? |
SELECT final_standing FROM table_name_58 WHERE years = "1981–82" | CREATE TABLE table_name_58 (final_standing VARCHAR, years VARCHAR) | What is the final standing in 1981–82? |
SELECT event FROM table_name_76 WHERE position = "4th" AND year = 2007 | CREATE TABLE table_name_76 (event VARCHAR, position VARCHAR, year VARCHAR) | Which event had 4th place and took place in the year 2007? |
SELECT runner_up FROM table_name_14 WHERE score = "4 & 3" AND winner = "michael bonallack" | CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR, winner VARCHAR) | What runner-up has 4 & 3 as the score, with michael bonallack as the winner? |
SELECT venue FROM table_name_83 WHERE score = "3 & 2" AND year = "1965" | CREATE TABLE table_name_83 (venue VARCHAR, score VARCHAR, year VARCHAR) | What venue has 3 & 2 as the score, and 1965 as the year? |
SELECT runner_up FROM table_name_95 WHERE year = "2008" | CREATE TABLE table_name_95 (runner_up VARCHAR, year VARCHAR) | What runner-up has 2008 as the year? |
SELECT winner FROM table_name_70 WHERE venue = "royal st george's golf club" AND year = "1969" | CREATE TABLE table_name_70 (winner VARCHAR, venue VARCHAR, year VARCHAR) | What winner has royal st george's golf club as the venue, and 1969 as the year? |
SELECT runner_up FROM table_name_6 WHERE year = "1925" | CREATE TABLE table_name_6 (runner_up VARCHAR, year VARCHAR) | What runner-up has 1925 as the year? |
SELECT year FROM table_name_3 WHERE runner_up = "john davies" AND winner = "warren humphreys" | CREATE TABLE table_name_3 (year VARCHAR, runner_up VARCHAR, winner VARCHAR) | What year has John Davies as the runner-up, with warren humphreys as the winner? |
SELECT nationality FROM table_name_71 WHERE goals = 27 | CREATE TABLE table_name_71 (nationality VARCHAR, goals VARCHAR) | What country is the player who scored 27 goals from? |
SELECT years FROM table_name_62 WHERE goals = 27 | CREATE TABLE table_name_62 (years VARCHAR, goals VARCHAR) | For the player that scored 27 goals, what years did he score them? |
SELECT finish FROM table_name_33 WHERE total < 282 | CREATE TABLE table_name_33 (finish VARCHAR, total INTEGER) | In what place(s) did the player(s) with a total less than 282 finish? |
SELECT finish FROM table_name_94 WHERE total > 284 AND to_par = "+5" AND player = "nick faldo" | CREATE TABLE table_name_94 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR) | In what place did Nick Faldo, who had more than 284 points and a to par score of +5, finish? |
SELECT mandate_end FROM table_name_44 WHERE office = "prime minister" AND name_a = "agathe uwilingiyimana" | CREATE TABLE table_name_44 (mandate_end VARCHAR, office VARCHAR, name_a VARCHAR) | When did Prime Minister Agathe Uwilingiyimana's mandate end? |
SELECT power_output__kw_ FROM table_name_29 WHERE number_in_class = 5 | CREATE TABLE table_name_29 (power_output__kw_ VARCHAR, number_in_class VARCHAR) | What is the power output for class 5? |
SELECT class FROM table_name_75 WHERE power_output__kw_ > 700 AND number_in_class = 48 | CREATE TABLE table_name_75 (class VARCHAR, power_output__kw_ VARCHAR, number_in_class VARCHAR) | Which class has a power output larger than 700 and a class of 48? |
SELECT week_8_oct_26 FROM table_name_44 WHERE week_7_oct_19 = "syarcuse (4-2)" | CREATE TABLE table_name_44 (week_8_oct_26 VARCHAR, week_7_oct_19 VARCHAR) | What is the Week 8 result of the team that lost to syarcuse (4-2) in Week 7? |
SELECT week_1_sept_7 FROM table_name_15 WHERE preseason = "colorado state" | CREATE TABLE table_name_15 (week_1_sept_7 VARCHAR, preseason VARCHAR) | What is the Week 1 result of Colorado State? |
SELECT incumbent FROM table_name_95 WHERE district = "colorado 4" | CREATE TABLE table_name_95 (incumbent VARCHAR, district VARCHAR) | Who is the incumbent for the Colorado 4 district? |
SELECT district FROM table_name_41 WHERE party = "republican" AND results = "retired to run for governor democratic gain" | CREATE TABLE table_name_41 (district VARCHAR, party VARCHAR, results VARCHAR) | What district is the incumbent Republican and the incumbent retired to run for governor democratic gain? |
SELECT party FROM table_name_66 WHERE district = "colorado 6" | CREATE TABLE table_name_66 (party VARCHAR, district VARCHAR) | In Colorado 6 district what is the party? |
SELECT tournament FROM table_name_76 WHERE surface = "clay" AND score_in_the_final = "6–1, 3–6, 6–2" | CREATE TABLE table_name_76 (tournament VARCHAR, surface VARCHAR, score_in_the_final VARCHAR) | Which tournament had a clay surface and a score of 6–1, 3–6, 6–2? |
SELECT COUNT(date) FROM table_name_39 WHERE score_in_the_final = "4–6, 4–6" | CREATE TABLE table_name_39 (date VARCHAR, score_in_the_final VARCHAR) | How many days had a score of 4–6, 4–6? |
SELECT to_par FROM table_name_85 WHERE year_won = 1988 | CREATE TABLE table_name_85 (to_par VARCHAR, year_won VARCHAR) | What was the To Par of Tiger Woods who won in 1988? |
SELECT team_sites FROM table_name_59 WHERE name = "microsoft sharepoint" | CREATE TABLE table_name_59 (team_sites VARCHAR, name VARCHAR) | What is the team sites entry for Microsoft Sharepoint? |
SELECT extranet FROM table_name_72 WHERE intranet = "yes" AND name = "microsoft exchange server" | CREATE TABLE table_name_72 (extranet VARCHAR, intranet VARCHAR, name VARCHAR) | If the intranet entry is Yes, what is the extranet entry for Microsoft Exchange server? |
SELECT team_sites FROM table_name_53 WHERE public = "no" AND developer = "yes" | CREATE TABLE table_name_53 (team_sites VARCHAR, public VARCHAR, developer VARCHAR) | What is the team sites entry that has a public entry of No and a developer entry of Yes? |
SELECT name FROM table_name_34 WHERE public = "yes" AND personal_sites = "no" AND team_sites = "no" | CREATE TABLE table_name_34 (name VARCHAR, team_sites VARCHAR, public VARCHAR, personal_sites VARCHAR) | What is the name for the entry that has a public of Yes, a personal sites of No, and a team sites of No? |
SELECT name FROM table_name_61 WHERE developer = "yes" AND personal_sites = "no" | CREATE TABLE table_name_61 (name VARCHAR, developer VARCHAR, personal_sites VARCHAR) | What is the name of the entry that has a developer entry of Yes and a personal sites entry of No? |
SELECT line_name FROM table_name_90 WHERE nimt_junction = "ohakune junction" | CREATE TABLE table_name_90 (line_name VARCHAR, nimt_junction VARCHAR) | What Line has Ohakune Junction as its NIMT? |
SELECT line_name FROM table_name_4 WHERE terminus = "newmarket junction" | CREATE TABLE table_name_4 (line_name VARCHAR, terminus VARCHAR) | What line has Newmarket Junction terminus? |
SELECT terminus FROM table_name_37 WHERE length = "3.5km" | CREATE TABLE table_name_37 (terminus VARCHAR, length VARCHAR) | What terminus is 3.5km in lenght? |
SELECT line_name FROM table_name_7 WHERE nimt_junction = "huntly" | CREATE TABLE table_name_7 (line_name VARCHAR, nimt_junction VARCHAR) | What line has Junction of Huntly NIMT |
SELECT AVG(final) FROM table_name_42 WHERE all_around > 19.35 AND total > 40 | CREATE TABLE table_name_42 (final INTEGER, all_around VARCHAR, total VARCHAR) | What is the average final with an all around greater than 19.35 and a total over 40? |
SELECT SUM(final) FROM table_name_26 WHERE place > 2 AND nation = "finland" AND all_around > 18.9 | CREATE TABLE table_name_26 (final INTEGER, all_around VARCHAR, place VARCHAR, nation VARCHAR) | What is the sum of the final for finland, who placed greater than 2 and had an all around larger than 18.9? |
SELECT place FROM table_name_66 WHERE money___£__ = "140,000" AND score = 68 - 68 - 75 - 68 = 279 | CREATE TABLE table_name_66 (place VARCHAR, money___£__ VARCHAR, score VARCHAR) | What is the place of the player with £140,000 and a 68-68-75-68=279 score? |
SELECT country FROM table_name_61 WHERE place = "t1" AND player = "stuart appleby" | CREATE TABLE table_name_61 (country VARCHAR, place VARCHAR, player VARCHAR) | What is the country of player stuart appleby, who has a t1 place? |
SELECT place FROM table_name_45 WHERE money___£__ = "77,500" AND player = "sergio garcía" | CREATE TABLE table_name_45 (place VARCHAR, money___£__ VARCHAR, player VARCHAR) | What is the place of player sergio garcía, who has £77,500? |
SELECT to_par FROM table_name_92 WHERE score = 73 - 70 - 70 - 65 = 278 | CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR) | What is the to par of the player with a 73-70-70-65=278 score? |
SELECT player FROM table_name_97 WHERE money___£__ = "140,000" | CREATE TABLE table_name_97 (player VARCHAR, money___£__ VARCHAR) | Who is the player with £140,000? |
SELECT date FROM table_name_90 WHERE time = "56.49" | CREATE TABLE table_name_90 (date VARCHAR, time VARCHAR) | What is Date, when Time is "56.49"? |
SELECT event FROM table_name_6 WHERE date = "19 december 2009" | CREATE TABLE table_name_6 (event VARCHAR, date VARCHAR) | What is Event, when Date is "19 December 2009"? |
SELECT time FROM table_name_62 WHERE meet = "duel in the pool" AND date = "19 december 2009" | CREATE TABLE table_name_62 (time VARCHAR, meet VARCHAR, date VARCHAR) | What is Time, when Meet is "Duel in the Pool", and when Date is "19 December 2009"? |
SELECT location FROM table_name_72 WHERE event = "100m butterfly" | CREATE TABLE table_name_72 (location VARCHAR, event VARCHAR) | What is the Location, when Event is "100m Butterfly"? |
SELECT date FROM table_name_86 WHERE meet = "world championships" AND nationality = "united states" AND time = "1:46.68" | CREATE TABLE table_name_86 (date VARCHAR, time VARCHAR, meet VARCHAR, nationality VARCHAR) | What is Date, when Meet is "World Championships", when Nationality is "United States", and when Time is "1:46.68"? |
SELECT event FROM table_name_41 WHERE meet = "world championships" AND time = "20.51" | CREATE TABLE table_name_41 (event VARCHAR, meet VARCHAR, time VARCHAR) | What is Event, when Meet is "World Championships", and when Time is "20.51"? |
SELECT MAX(number_of_households) FROM table_name_30 WHERE median_household_income = "$31,176" AND population < 25 OFFSET 607 | CREATE TABLE table_name_30 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR) | What is the highest number of households with a median household income of $31,176, and a population of 25,607? |
SELECT median_household_income FROM table_name_68 WHERE county = "cape girardeau" | CREATE TABLE table_name_68 (median_household_income VARCHAR, county VARCHAR) | What is the median household income for Cape Girardeau? |
SELECT colourist_s FROM table_name_89 WHERE letterer_s = "albers" AND story_title = "broken glass (part 3)" | CREATE TABLE table_name_89 (colourist_s VARCHAR, letterer_s VARCHAR, story_title VARCHAR) | Who is the Colourist that has a Story Title of Broken Glass (part 3) and a Letterer of Albers? |
SELECT cover_date FROM table_name_59 WHERE story_title = "spacehikers (part 2)" | CREATE TABLE table_name_59 (cover_date VARCHAR, story_title VARCHAR) | What is the Cover Date of the Story Title Spacehikers (Part 2)? |
SELECT story_title FROM table_name_60 WHERE letterer_s = "albers" | CREATE TABLE table_name_60 (story_title VARCHAR, letterer_s VARCHAR) | What is the Story Title that has Albers as the Letterer? |
SELECT drivers FROM table_name_23 WHERE laps = 133 AND class = "oc" | CREATE TABLE table_name_23 (drivers VARCHAR, laps VARCHAR, class VARCHAR) | Who are the drivers with 133 laps in OC class? |
SELECT MAX(laps) FROM table_name_62 WHERE class = "oc" AND qual_pos = 7 | CREATE TABLE table_name_62 (laps INTEGER, class VARCHAR, qual_pos VARCHAR) | What are the most laps for the Qual position of 7 in the OC class? |
SELECT MIN(laps) FROM table_name_17 WHERE team = "perkins engineering" | CREATE TABLE table_name_17 (laps INTEGER, team VARCHAR) | What are Perkins Engineering's fewest laps? |
SELECT class FROM table_name_48 WHERE qual_pos = 30 | CREATE TABLE table_name_48 (class VARCHAR, qual_pos VARCHAR) | Which class has a Qual position of 30? |
SELECT release_date FROM table_name_36 WHERE version = "1.0" AND category = "utilities" AND developer = "microsoft" AND title = "msn money" | CREATE TABLE table_name_36 (release_date VARCHAR, title VARCHAR, developer VARCHAR, version VARCHAR, category VARCHAR) | What Release date has a Version of 1.0, a Category of utilities, a Developer of microsoft, and a Title of msn money? |
SELECT release_date FROM table_name_86 WHERE category = "utilities" AND developer = "microsoft" AND title = "chord finder" | CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR) | What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder? |
SELECT developer FROM table_name_12 WHERE release_date = "2010-12-16" AND title = "facebook" | CREATE TABLE table_name_12 (developer VARCHAR, release_date VARCHAR, title VARCHAR) | What Developer has a Release date of 2010-12-16, and a Title of facebook? |
SELECT title FROM table_name_83 WHERE version = "1.0.0.3" | CREATE TABLE table_name_83 (title VARCHAR, version VARCHAR) | What Title has a Version of 1.0.0.3? |
SELECT version FROM table_name_77 WHERE title = "alarm clock" | CREATE TABLE table_name_77 (version VARCHAR, title VARCHAR) | What Version has a Title of alarm clock? |
SELECT version FROM table_name_34 WHERE developer = "dino games" AND title = "metronome" | CREATE TABLE table_name_34 (version VARCHAR, developer VARCHAR, title VARCHAR) | What Version has a Developer of dino games, and a Title of metronome? |
SELECT venue FROM table_name_39 WHERE opposing_teams = "wales" | CREATE TABLE table_name_39 (venue VARCHAR, opposing_teams VARCHAR) | Where did Wales play? |
SELECT venue FROM table_name_47 WHERE against = 19 | CREATE TABLE table_name_47 (venue VARCHAR, against VARCHAR) | What venue has 19 against? |
SELECT award_ceremony FROM table_name_87 WHERE nominee = "sarah travis" AND category = "best orchestrations" | CREATE TABLE table_name_87 (award_ceremony VARCHAR, nominee VARCHAR, category VARCHAR) | Which Award Ceremony has a Nominee of sarah travis, and a Category of the best orchestrations? |
SELECT MAX(year_signed) FROM table_name_79 WHERE reason_for_separation = "†" AND year_separated = "1997" | CREATE TABLE table_name_79 (year_signed INTEGER, reason_for_separation VARCHAR, year_separated VARCHAR) | What is the most current year signed for separation of † and a separation year of 1997? |
SELECT chinese_name FROM table_name_58 WHERE english_name = "andy lau" | CREATE TABLE table_name_58 (chinese_name VARCHAR, english_name VARCHAR) | What is the Chinese name for the English name Andy Lau? |
SELECT year_separated FROM table_name_74 WHERE reason_for_separation = "capital stopped recording music" AND english_name = "wilfred lau" | CREATE TABLE table_name_74 (year_separated VARCHAR, reason_for_separation VARCHAR, english_name VARCHAR) | What year was Wilfred Lau separated because Capital stopped recording music? |
SELECT english_name FROM table_name_30 WHERE year_signed > 1974 AND chinese_name = "蘇永康" | CREATE TABLE table_name_30 (english_name VARCHAR, year_signed VARCHAR, chinese_name VARCHAR) | What is the English name for the Chinese name of 蘇永康 later than 1974? |
SELECT year_signed FROM table_name_82 WHERE year_separated = "1987" AND chinese_name = "蘇永康" | CREATE TABLE table_name_82 (year_signed VARCHAR, year_separated VARCHAR, chinese_name VARCHAR) | What was the signed year for the Chinese name 蘇永康 who separated in 1987? |
SELECT site FROM table_name_44 WHERE date = "october 7" | CREATE TABLE table_name_44 (site VARCHAR, date VARCHAR) | WHAT IS THE SITE ON OCTOBER 7? |
Subsets and Splits