answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT COUNT(points) FROM table_name_99 WHERE loses > 16 AND goals_scored > 44 AND position < 13 | CREATE TABLE table_name_99 (points VARCHAR, position VARCHAR, loses VARCHAR, goals_scored VARCHAR) | How many points are there with more losses than 16, more goals than 44, and a smaller position than 13? |
SELECT SUM(points) FROM table_name_12 WHERE goals_conceded < 51 AND position > 1 AND draws = 7 AND loses > 5 | CREATE TABLE table_name_12 (points INTEGER, loses VARCHAR, draws VARCHAR, goals_conceded VARCHAR, position VARCHAR) | What is the sum of the points with less goals conceded than 51, larger than position 1, has a draw of 7, and more losses than 5? |
SELECT surface FROM table_name_45 WHERE score = "6–1, 3–0 ret." | CREATE TABLE table_name_45 (surface VARCHAR, score VARCHAR) | Which has a Score of 6–1, 3–0 ret.? |
SELECT surface FROM table_name_79 WHERE date = "23 january 2011" | CREATE TABLE table_name_79 (surface VARCHAR, date VARCHAR) | Which Surface is on 23 january 2011? |
SELECT date FROM table_name_46 WHERE surface = "hard" AND tournament = "wrexham , great britain" | CREATE TABLE table_name_46 (date VARCHAR, surface VARCHAR, tournament VARCHAR) | When has a Surface of hard, a Tournament of wrexham , great britain? |
SELECT surface FROM table_name_96 WHERE opponent_in_the_final = "stéphane robert" | CREATE TABLE table_name_96 (surface VARCHAR, opponent_in_the_final VARCHAR) | Which Surface has an Opponent in the final of stéphane robert? |
SELECT surface FROM table_name_68 WHERE score = "6–4, 0–6, 6–2" | CREATE TABLE table_name_68 (surface VARCHAR, score VARCHAR) | What kind of Surface has a Score of 6–4, 0–6, 6–2? |
SELECT call_sign FROM table_name_60 WHERE branding = "cbc radio one" | CREATE TABLE table_name_60 (call_sign VARCHAR, branding VARCHAR) | Which Call sign has a Branding of cbc radio one? |
SELECT frequency FROM table_name_67 WHERE format = "country / news / sports" | CREATE TABLE table_name_67 (frequency VARCHAR, format VARCHAR) | WHich Frequency has a Format of country / news / sports? |
SELECT format FROM table_name_98 WHERE frequency = "100.5 fm" | CREATE TABLE table_name_98 (format VARCHAR, frequency VARCHAR) | Which Format has a Frequency of 100.5 fm? |
SELECT frequency FROM table_name_26 WHERE branding = "country 600" | CREATE TABLE table_name_26 (frequency VARCHAR, branding VARCHAR) | Which Frequency has a Branding of country 600? |
SELECT format FROM table_name_30 WHERE frequency = "99.3 fm" | CREATE TABLE table_name_30 (format VARCHAR, frequency VARCHAR) | WHich format has a Frequency of 99.3 fm? |
SELECT school_year FROM table_name_61 WHERE class_aAAA = dickinson | CREATE TABLE table_name_61 (school_year VARCHAR, class_aAAA VARCHAR, dickinson VARCHAR) | What School Year has a Class AAAA of Dickinson? |
SELECT class_aA FROM table_name_88 WHERE class_a = "anton" AND class_aAA = burnet | CREATE TABLE table_name_88 (class_aA VARCHAR, class_a VARCHAR, class_aAA VARCHAR, burnet VARCHAR) | If the Class A is Anton and Class AAA is Burnet, what is Class AA? |
SELECT class_aAAAA FROM table_name_65 WHERE class_aAA = atlanta AND class_aA = weimar | CREATE TABLE table_name_65 (class_aAAAA VARCHAR, class_aAA VARCHAR, atlanta VARCHAR, class_aA VARCHAR, weimar VARCHAR) | Where Class AAA is Atlanta and Class AA is Weimar, what is Class AAAAA? |
SELECT result FROM table_name_55 WHERE week = 11 | CREATE TABLE table_name_55 (result VARCHAR, week VARCHAR) | What was the result of the game on week 11? |
SELECT COUNT(attendance) FROM table_name_61 WHERE game_site = "rich stadium" AND opponent = "miami dolphins" AND week > 2 | CREATE TABLE table_name_61 (attendance VARCHAR, week VARCHAR, game_site VARCHAR, opponent VARCHAR) | After week 2, how many people attended the game at Rich Stadium against the Miami Dolphins? |
SELECT attendance FROM table_name_86 WHERE opponent = "san francisco 49ers" | CREATE TABLE table_name_86 (attendance VARCHAR, opponent VARCHAR) | What is the attendance when the opponent is the San Francisco 49ers? |
SELECT result FROM table_name_43 WHERE week > 6 AND opponent = "buffalo bills" | CREATE TABLE table_name_43 (result VARCHAR, week VARCHAR, opponent VARCHAR) | What is the result when the week is greater than 6 and the Buffalo Bills are the opponent? |
SELECT result FROM table_name_7 WHERE attendance = "54,814" | CREATE TABLE table_name_7 (result VARCHAR, attendance VARCHAR) | What is the result when the attendance is 54,814? |
SELECT COUNT(week) FROM table_name_35 WHERE opponent = "new york jets" | CREATE TABLE table_name_35 (week VARCHAR, opponent VARCHAR) | What is the total number of weeks when the New York Jets are the opponent? |
SELECT result FROM table_name_38 WHERE attendance = "56,906" | CREATE TABLE table_name_38 (result VARCHAR, attendance VARCHAR) | What is the result of the game when the attendance is 56,906? |
SELECT index FROM table_name_54 WHERE song = "会呼吸的痛" | CREATE TABLE table_name_54 (index VARCHAR, song VARCHAR) | What is Song's 会呼吸的痛 Index? |
SELECT song FROM table_name_58 WHERE index = "f6" | CREATE TABLE table_name_58 (song VARCHAR, index VARCHAR) | What Song's Index is F6? |
SELECT Group AS song FROM table_name_60 WHERE name = "shine 王幸儿" | CREATE TABLE table_name_60 (Group VARCHAR, name VARCHAR) | What Group Song of Shine 王幸儿? |
SELECT score FROM table_name_78 WHERE song = "我等的人会是谁" | CREATE TABLE table_name_78 (score VARCHAR, song VARCHAR) | What is the Score of 我等的人会是谁? |
SELECT name FROM table_name_1 WHERE index = "f3" | CREATE TABLE table_name_1 (name VARCHAR, index VARCHAR) | What is the Name of Index F3? |
SELECT record FROM table_name_89 WHERE february = 10 | CREATE TABLE table_name_89 (record VARCHAR, february VARCHAR) | What is the record after the game on Feb 10? |
SELECT MIN(february) FROM table_name_90 WHERE opponent = "boston bruins" | CREATE TABLE table_name_90 (february INTEGER, opponent VARCHAR) | What is the earliest day that had a game against the Boston Bruins? |
SELECT SUM(solidat__) AS °c_ FROM table_name_15 WHERE purpose = "display type, heavy duty jobs" AND hardness___brinell__ < 33 | CREATE TABLE table_name_15 (solidat__ INTEGER, purpose VARCHAR, hardness___brinell__ VARCHAR) | What is the sum of Solidat (c) that's purpose is display type, heavy duty jobs, and a hardness (brinell) is smaller than 33? |
SELECT SUM(solidat__) AS °c_ FROM table_name_46 WHERE sn_sb___percentage_ = "13/17" AND liquidat__°c_ > 283 | CREATE TABLE table_name_46 (solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__°c_ VARCHAR) | When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)? |
SELECT COUNT(liquidat__) AS °c_ FROM table_name_94 WHERE purpose = "dual (machine & hand composition)" | CREATE TABLE table_name_94 (liquidat__ VARCHAR, purpose VARCHAR) | How many Liquidat (c) have a purpose of dual (machine & hand composition)? |
SELECT record FROM table_name_84 WHERE week = 10 | CREATE TABLE table_name_84 (record VARCHAR, week VARCHAR) | What was the record for the Chargers on Week 10? |
SELECT result FROM table_name_16 WHERE week = 4 | CREATE TABLE table_name_16 (result VARCHAR, week VARCHAR) | What was the result of the game on week 4? |
SELECT COUNT(week) FROM table_name_57 WHERE date = "september 17, 2000" | CREATE TABLE table_name_57 (week VARCHAR, date VARCHAR) | How many weeks did a game happen on September 17, 2000? |
SELECT result FROM table_name_17 WHERE week < 16 AND opponent = "san francisco 49ers" | CREATE TABLE table_name_17 (result VARCHAR, week VARCHAR, opponent VARCHAR) | What was the result of the game against San Francisco 49ers before week 16? |
SELECT semi_finalists FROM table_name_3 WHERE runner_up = "lisa raymond" | CREATE TABLE table_name_3 (semi_finalists VARCHAR, runner_up VARCHAR) | Who were semi-finalists in the event with a runner-up of Lisa Raymond? |
SELECT song FROM table_name_1 WHERE weeks_on_top = 2 AND artist = "david essex" | CREATE TABLE table_name_1 (song VARCHAR, weeks_on_top VARCHAR, artist VARCHAR) | Which song by David Essex spent 2 weeks on top of the charts? |
SELECT volume AS :issue FROM table_name_96 WHERE weeks_on_top < 2 AND artist = "george mccrae" | CREATE TABLE table_name_96 (volume VARCHAR, weeks_on_top VARCHAR, artist VARCHAR) | What is the Volume:Issue number of the George McCrae song that spent less than 2 weeks on top of the charts? |
SELECT venue FROM table_name_76 WHERE closed = "1990s" | CREATE TABLE table_name_76 (venue VARCHAR, closed VARCHAR) | Which venues closed in the 1990s? |
SELECT location FROM table_name_5 WHERE reason = "replaced" | CREATE TABLE table_name_5 (location VARCHAR, reason VARCHAR) | Which venues were closed because they were replaced? |
SELECT venue FROM table_name_86 WHERE closed = "1996" | CREATE TABLE table_name_86 (venue VARCHAR, closed VARCHAR) | Which venue closed in 1996? |
SELECT reason FROM table_name_59 WHERE closed = "1990s" | CREATE TABLE table_name_59 (reason VARCHAR, closed VARCHAR) | What were the reasons that venues closed in the 1990s? |
SELECT reason FROM table_name_95 WHERE venue = "belk gymnasium" | CREATE TABLE table_name_95 (reason VARCHAR, venue VARCHAR) | Why did the Belk Gymnasium close? |
SELECT score FROM table_name_24 WHERE home_team = "townsville crocodiles" | CREATE TABLE table_name_24 (score VARCHAR, home_team VARCHAR) | Can you tell me the Score that has the Home team of townsville crocodiles? |
SELECT venue FROM table_name_98 WHERE away_team = "south dragons" | CREATE TABLE table_name_98 (venue VARCHAR, away_team VARCHAR) | Can you tell me the Venue that has the Away team of south dragons? |
SELECT MIN(crowd) FROM table_name_24 WHERE away_team = "melbourne tigers" | CREATE TABLE table_name_24 (crowd INTEGER, away_team VARCHAR) | Can you tell me the lowest Crowd that has the Away team of melbourne tigers? |
SELECT away_team FROM table_name_17 WHERE home_team = "south dragons" AND score = "94-81" | CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR, score VARCHAR) | Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81? |
SELECT position FROM table_name_45 WHERE round > 3 AND pick__number = 238 | CREATE TABLE table_name_45 (position VARCHAR, round VARCHAR, pick__number VARCHAR) | Which position has a pick # of 238 and a round above 3? |
SELECT player FROM table_name_20 WHERE college = "vanderbilt" | CREATE TABLE table_name_20 (player VARCHAR, college VARCHAR) | Which player went to Vanderbilt? |
SELECT COUNT(grid) FROM table_name_72 WHERE time_retired = "+4 laps" | CREATE TABLE table_name_72 (grid VARCHAR, time_retired VARCHAR) | How many grids had a Time/Retired of +4 laps? |
SELECT COUNT(laps) FROM table_name_3 WHERE constructor = "toyota" AND time_retired = "+13.409" | CREATE TABLE table_name_3 (laps VARCHAR, constructor VARCHAR, time_retired VARCHAR) | How many laps had a constructor of toyota and a Time/Retired of +13.409? |
SELECT constructor FROM table_name_28 WHERE laps > 54 AND time_retired = "+1 lap" AND grid = 20 | CREATE TABLE table_name_28 (constructor VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR) | What was the constructor when the laps were larger than 54, and the time/retired was +1 lap on a grid of 20? |
SELECT SUM(grid) FROM table_name_35 WHERE constructor = "renault" AND laps < 4 | CREATE TABLE table_name_35 (grid INTEGER, constructor VARCHAR, laps VARCHAR) | How many grids had a constructor of renault and less than 4 laps? |
SELECT census_ranking FROM table_name_95 WHERE area_km_2 = 57.06 | CREATE TABLE table_name_95 (census_ranking VARCHAR, area_km_2 VARCHAR) | Which census ranking is 57.06 km big? |
SELECT status FROM table_name_20 WHERE area_km_2 < 75.35 AND official_name = "sussex" | CREATE TABLE table_name_20 (status VARCHAR, area_km_2 VARCHAR, official_name VARCHAR) | Which status is 75.35 km2 and is named sussex? |
SELECT distance FROM table_name_21 WHERE winner_or_2nd = "waterline" | CREATE TABLE table_name_21 (distance VARCHAR, winner_or_2nd VARCHAR) | What was the distance for the winner or 2nd Waterline? |
SELECT result FROM table_name_30 WHERE distance = "10f" AND winner_or_2nd = "lampra" | CREATE TABLE table_name_30 (result VARCHAR, distance VARCHAR, winner_or_2nd VARCHAR) | What is the result for the distance of 10f, and a winner or 2nd of Lampra? |
SELECT 1987 FROM table_name_15 WHERE 1986 = "1r" | CREATE TABLE table_name_15 (Id VARCHAR) | What is 1987, when 1986 is "1R"? |
SELECT 1986 FROM table_name_99 WHERE 1978 = "a" AND 1979 = "a" AND 1980 = "1r" | CREATE TABLE table_name_99 (Id VARCHAR) | What is 1986, when 1978 is "A", when 1979 is "A", and when 1980 is "1R"? |
SELECT 1984 FROM table_name_94 WHERE 1979 = "1r" | CREATE TABLE table_name_94 (Id VARCHAR) | What is 1984, when 1979 is "1R"? |
SELECT 1982 FROM table_name_64 WHERE 1978 = "a" AND 1985 = "4r" AND 1991 = "1r" | CREATE TABLE table_name_64 (Id VARCHAR) | What is 1982, when 1978 is "A", when 1985 is "4R", and when 1991 is "1R"? |
SELECT 1989 FROM table_name_37 WHERE 1982 = "sf" | CREATE TABLE table_name_37 (Id VARCHAR) | What is 1989, when 1982 is "SF"? |
SELECT 1992 FROM table_name_29 WHERE 1990 = "grand slams" | CREATE TABLE table_name_29 (Id VARCHAR) | What is 1992, when 1990 is "Grand Slams"? |
SELECT attendance FROM table_name_48 WHERE home_team = "shrewsbury town" | CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR) | What is the attendance date of the game home team Shrewsbury Town played? |
SELECT score FROM table_name_66 WHERE home_team = "bolton wanderers" | CREATE TABLE table_name_66 (score VARCHAR, home_team VARCHAR) | What is the final score of the game home team Bolton Wanderers played? |
SELECT round FROM table_name_39 WHERE opponent = "freiburg" | CREATE TABLE table_name_39 (round VARCHAR, opponent VARCHAR) | Which round has an opponent of Freiburg? |
SELECT home FROM table_name_44 WHERE opponent = "slovan liberec" | CREATE TABLE table_name_44 (home VARCHAR, opponent VARCHAR) | Who was the home when the opponent was slovan liberec? |
SELECT MAX(game) FROM table_name_56 WHERE january > 18 AND decision = "valiquette" | CREATE TABLE table_name_56 (game INTEGER, january VARCHAR, decision VARCHAR) | Which Game has a January larger than 18, and a Decision of valiquette? |
SELECT opponent FROM table_name_37 WHERE game < 43 AND record = "23-14-3" | CREATE TABLE table_name_37 (opponent VARCHAR, game VARCHAR, record VARCHAR) | Who has a Game smaller than 43, and a Record of 23-14-3? |
SELECT qual_2 FROM table_name_45 WHERE best = "59.266" | CREATE TABLE table_name_45 (qual_2 VARCHAR, best VARCHAR) | What is the time for qual 2 that has the best time of 59.266? |
SELECT name FROM table_name_42 WHERE team = "forsythe racing" AND best = "1:00.099" | CREATE TABLE table_name_42 (name VARCHAR, team VARCHAR, best VARCHAR) | Who is the driver for the Forsythe Racing team that has the best time of 1:00.099? |
SELECT best FROM table_name_99 WHERE name = "justin wilson" | CREATE TABLE table_name_99 (best VARCHAR, name VARCHAR) | Justin Wilson has what has his best time? |
SELECT qual_1 FROM table_name_15 WHERE team = "rusport" AND best = "59.654" | CREATE TABLE table_name_15 (qual_1 VARCHAR, team VARCHAR, best VARCHAR) | Team Rusport has the best of 59.654 and what qual 1? |
SELECT qual_1 FROM table_name_32 WHERE team = "newman/haas racing" AND name = "sébastien bourdais" | CREATE TABLE table_name_32 (qual_1 VARCHAR, team VARCHAR, name VARCHAR) | Sébastien Bourdais of the team Newman/Haas Racing has what qual 1? |
SELECT qual_1 FROM table_name_89 WHERE name = "alex tagliani" | CREATE TABLE table_name_89 (qual_1 VARCHAR, name VARCHAR) | What is Alex Tagliani's qual 1? |
SELECT AVG(bask) FROM table_name_17 WHERE soft = "18" AND total > 35 | CREATE TABLE table_name_17 (bask INTEGER, soft VARCHAR, total VARCHAR) | Which Bask has Soft of 18, and a Total larger than 35? |
SELECT volleyball FROM table_name_52 WHERE golf = "2" AND indoor_track = "3" | CREATE TABLE table_name_52 (volleyball VARCHAR, golf VARCHAR, indoor_track VARCHAR) | Which Volleyball has a Golf of 2, and an Indoor track of 3? |
SELECT MIN(bask) FROM table_name_73 WHERE indoor_track = "0" AND swimming = "5" | CREATE TABLE table_name_73 (bask INTEGER, indoor_track VARCHAR, swimming VARCHAR) | Which Bask has an Indoor track of 0, and a Swimming of 5? |
SELECT swimming FROM table_name_96 WHERE total > 35 AND volleyball = "1" | CREATE TABLE table_name_96 (swimming VARCHAR, total VARCHAR, volleyball VARCHAR) | Which Swimming has a Total larger than 35, and a Volleyball of 1? |
SELECT date FROM table_name_40 WHERE location = "scotiabank place" AND points < 20 AND game > 16 AND opponent = "montreal canadiens" | CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR, game VARCHAR, location VARCHAR, points VARCHAR) | Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens? |
SELECT COUNT(game) FROM table_name_2 WHERE points < 15 AND date = "november 15" AND attendance > 13 OFFSET 722 | CREATE TABLE table_name_2 (game VARCHAR, attendance VARCHAR, points VARCHAR, date VARCHAR) | Total games for smaller than 15 points, date of november 15, and larger that 13,722 in attendance? |
SELECT result FROM table_name_11 WHERE date = "september 24, 1995" | CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR) | What was the results on September 24, 1995? |
SELECT result FROM table_name_20 WHERE opponent = "philadelphia eagles" | CREATE TABLE table_name_20 (result VARCHAR, opponent VARCHAR) | What was the results against the Philadelphia Eagles? |
SELECT date FROM table_name_82 WHERE attendance = "68,463" | CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR) | What is the date with 68,463 in attendance? |
SELECT attendance FROM table_name_25 WHERE week = 15 | CREATE TABLE table_name_25 (attendance VARCHAR, week VARCHAR) | What was the attendance for week 15? |
SELECT name FROM table_name_47 WHERE transfer_window = "winter" | CREATE TABLE table_name_47 (name VARCHAR, transfer_window VARCHAR) | What is the name when winter is the transfer window? |
SELECT transfer_fee FROM table_name_9 WHERE transfer_window = "summer" AND type = "transfer" AND country = "hun" | CREATE TABLE table_name_9 (transfer_fee VARCHAR, country VARCHAR, transfer_window VARCHAR, type VARCHAR) | What is the transfer fee when summer is the transfer window, the type is transfer and the country is Hun? |
SELECT type FROM table_name_40 WHERE moving_from = "rangers" | CREATE TABLE table_name_40 (type VARCHAR, moving_from VARCHAR) | What is the type when Rangers are the moving from? |
SELECT type FROM table_name_21 WHERE name = "mccormack" | CREATE TABLE table_name_21 (type VARCHAR, name VARCHAR) | What is the type when McCormack is the name? |
SELECT type FROM table_name_49 WHERE transfer_fee = "£120,000" | CREATE TABLE table_name_49 (type VARCHAR, transfer_fee VARCHAR) | What is the type when £120,000 is the transfer fee? |
SELECT date FROM table_name_67 WHERE away_team = "aston villa" | CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR) | What date is aston villa away? |
SELECT date FROM table_name_44 WHERE tie_no = "5" | CREATE TABLE table_name_44 (date VARCHAR, tie_no VARCHAR) | what date did tie number 5 occur? |
SELECT tie_no FROM table_name_59 WHERE away_team = "bolton wanderers" | CREATE TABLE table_name_59 (tie_no VARCHAR, away_team VARCHAR) | Which tie number has Bolton Wanderers as away? |
SELECT round FROM table_name_4 WHERE circuit = "portland international raceway" | CREATE TABLE table_name_4 (round VARCHAR, circuit VARCHAR) | What round was the circuit portland international raceway? |
SELECT date FROM table_name_28 WHERE circuit = "portland international raceway" | CREATE TABLE table_name_28 (date VARCHAR, circuit VARCHAR) | When was the circuit portland international raceway? |
SELECT round FROM table_name_81 WHERE city_location = "toronto, ontario" | CREATE TABLE table_name_81 (round VARCHAR, city_location VARCHAR) | Which round had a city/location of Toronto, Ontario? |
SELECT city_location FROM table_name_93 WHERE round < 11 AND circuit = "streets of denver" | CREATE TABLE table_name_93 (city_location VARCHAR, round VARCHAR, circuit VARCHAR) | For which location was the round smaller than 11 and the circuit streets of denver? |
SELECT date FROM table_name_2 WHERE city_location = "cleveland, ohio" AND round = 6 | CREATE TABLE table_name_2 (date VARCHAR, city_location VARCHAR, round VARCHAR) | What day was the location Cleveland, Ohio in Round 6? |
SELECT SUM(attendance) FROM table_name_39 WHERE opponent = "at los angeles rams" | CREATE TABLE table_name_39 (attendance INTEGER, opponent VARCHAR) | What is the sum of attendance for the games played at Los Angeles Rams? |
Subsets and Splits