answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT market_rank_ & _city_of_license__market FROM table_22329326_1 WHERE station = "KABC-TV"
What market rank and city had the station KABC-TV?
CREATE TABLE table_22329326_1 (market_rank_ VARCHAR, _city_of_license__market VARCHAR, station VARCHAR)
SELECT constructor FROM table_name_53 WHERE driver = "albino buticchi"
Who was Albino Buticchi's constructor?
CREATE TABLE table_name_53 (constructor VARCHAR, driver VARCHAR)
SELECT march_27_29 FROM table_25355501_2 WHERE june_10_11 = "127"
march 27-29 where june 10-11 is 127?
CREATE TABLE table_25355501_2 (march_27_29 VARCHAR, june_10_11 VARCHAR)
SELECT MIN(points) FROM table_name_3 WHERE year > 1974 AND entrant = "walter wolf racing"
What's the least amount of points that Walter Wolf Racing had after 1974?
CREATE TABLE table_name_3 (points INTEGER, year VARCHAR, entrant VARCHAR)
SELECT date FROM table_name_30 WHERE home = "st. louis"
what is the date when the home is st. louis?
CREATE TABLE table_name_30 (date VARCHAR, home VARCHAR)
SELECT location FROM table_name_96 WHERE competition = "europe/africa zone, group i, round robin" AND result = "win" AND year < 1998
What location did the team win before 1998 in the europe/africa zone, group i, round robin?
CREATE TABLE table_name_96 (location VARCHAR, year VARCHAR, competition VARCHAR, result VARCHAR)
SELECT COUNT(date_of_birth) FROM table_22344463_2 WHERE name = "Timo Higgins"
If the name is Timo Higgins, what is the total date of birth amount?
CREATE TABLE table_22344463_2 (date_of_birth VARCHAR, name VARCHAR)
SELECT points_classification FROM table_name_54 WHERE stage = "15"
Which points classification was used in stage 15?
CREATE TABLE table_name_54 (points_classification VARCHAR, stage VARCHAR)
SELECT position FROM table_name_22 WHERE goals_against > 32 AND points > 30
Which Position has Goals against larger than 32, and points larger than 30?
CREATE TABLE table_name_22 (position VARCHAR, goals_against VARCHAR, points VARCHAR)
SELECT home_captain FROM table_name_7 WHERE date = "23,24,25,26 july 1992"
What is the name of the Home Captain for 23,24,25,26 july 1992?
CREATE TABLE table_name_7 (home_captain VARCHAR, date VARCHAR)
SELECT erin_and_jake FROM table_2311410_5 WHERE week = 4
Name the erin and jake for week 4
CREATE TABLE table_2311410_5 (erin_and_jake VARCHAR, week VARCHAR)
SELECT time FROM table_name_15 WHERE rider = "jules croft"
What time has jules croft as the rider?
CREATE TABLE table_name_15 (time VARCHAR, rider VARCHAR)
SELECT opponents_conference FROM table_26240481_1 WHERE result = "L, 62-10"
Which opponents conference has the result L, 62-10?
CREATE TABLE table_26240481_1 (opponents_conference VARCHAR, result VARCHAR)
SELECT number FROM table_name_37 WHERE bb_ + hbp = 39 AND year = "1985"
The year of 1985 which has a BB +HBP of 39 has what Number listed?
CREATE TABLE table_name_37 (number VARCHAR, year VARCHAR, bb_ VARCHAR, hbp VARCHAR)
SELECT prod_code FROM table_27622417_1 WHERE no_in_series = 87
which is the production code when the number of the episode in series is 87?
CREATE TABLE table_27622417_1 (prod_code VARCHAR, no_in_series VARCHAR)
SELECT episode FROM table_2140071_10 WHERE coach = "Maritza Reveron"
Name the episode with maritza reveron
CREATE TABLE table_2140071_10 (episode VARCHAR, coach VARCHAR)
SELECT winning_driver FROM table_name_30 WHERE winning_team = "penske racing" AND pole_position = "rick mears"
Who is the winning driver of Penske Racing, and what was Rick Mears' pole position?
CREATE TABLE table_name_30 (winning_driver VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT roll FROM table_name_62 WHERE decile = 4 AND name = "te puke intermediate"
What is the roll number of Te Puke Intermediate, which has a decile of 4?
CREATE TABLE table_name_62 (roll VARCHAR, decile VARCHAR, name VARCHAR)
SELECT date_of_issue FROM table_name_43 WHERE design = "john belisle, kosta tsetsekas"
What date was the John Belisle, Kosta Tsetsekas stamp issued?
CREATE TABLE table_name_43 (date_of_issue VARCHAR, design VARCHAR)
SELECT margin_of_victory FROM table_name_21 WHERE date = "oct 5, 1997"
What is the Margin of victory on oct 5, 1997?
CREATE TABLE table_name_21 (margin_of_victory VARCHAR, date VARCHAR)
SELECT time_retired FROM table_name_2 WHERE grid > 16 AND driver = "nelson philippe"
When Nelson Philippe drove with a grid larger than 16, what was the timre/retired?
CREATE TABLE table_name_2 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets)
Find the average number of followers for the users who do not have any tweet.
CREATE TABLE user_profiles (followers INTEGER, UID VARCHAR); CREATE TABLE tweets (followers INTEGER, UID VARCHAR)
SELECT runner_up FROM table_1139835_9 WHERE score = "9.12 (66) – 5.6 (36)"
Who are all the runner ups when the score is 9.12 (66) – 5.6 (36)?
CREATE TABLE table_1139835_9 (runner_up VARCHAR, score VARCHAR)
SELECT SUM(wins) FROM table_name_13 WHERE year = 1989 AND points > 110
How many wins did the team, which had more than 110 points, have in 1989?
CREATE TABLE table_name_13 (wins INTEGER, year VARCHAR, points VARCHAR)
SELECT skip FROM table_name_83 WHERE third = "alasdair guthrie"
Who is the Skip when Alasdair Guthrie is the third?
CREATE TABLE table_name_83 (skip VARCHAR, third VARCHAR)
SELECT replaced_by FROM table_name_49 WHERE manner_of_departure = "end of contract" AND date_of_appointment = "dec. 16, 2008"
What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008?
CREATE TABLE table_name_49 (replaced_by VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed
List the ids of all distinct orders ordered by placed date.
CREATE TABLE orders (order_id VARCHAR, date_order_placed VARCHAR)
SELECT college FROM table_2508633_9 WHERE nfl_team = "New England Patriots" AND position = "Tight end"
What college did the tight end draft pick for New England Patriots come from?
CREATE TABLE table_2508633_9 (college VARCHAR, nfl_team VARCHAR, position VARCHAR)
SELECT date FROM table_name_82 WHERE catalog = "mhcl-20004"
What date is the MHCL-20004 Catalog?
CREATE TABLE table_name_82 (date VARCHAR, catalog VARCHAR)
SELECT nationality FROM table_name_10 WHERE round < 5 AND player = "bruce affleck"
Can you tell me the Nationality that has the Round smaller than 5, and the Player of bruce affleck?
CREATE TABLE table_name_10 (nationality VARCHAR, round VARCHAR, player VARCHAR)
SELECT original_artist FROM table_21501565_1 WHERE order__number = "7" AND theme = "Motown"
With order number 7 and the theme is Motown, who were the original artists?
CREATE TABLE table_21501565_1 (original_artist VARCHAR, order__number VARCHAR, theme VARCHAR)
SELECT MIN(lane) FROM table_name_47 WHERE semi = 49.19
Which lane did the athlete swim in who had a semi-final time of 49.19?
CREATE TABLE table_name_47 (lane INTEGER, semi VARCHAR)
SELECT time FROM table_name_95 WHERE name = "derek graham"
What was Derek Graham's time?
CREATE TABLE table_name_95 (time VARCHAR, name VARCHAR)
SELECT player FROM table_name_77 WHERE hometown = "queens, ny"
Which player is from Queens, NY?
CREATE TABLE table_name_77 (player VARCHAR, hometown VARCHAR)
SELECT COUNT(league) AS Cup FROM table_name_8 WHERE play_offs > 2 AND name = "mitch cook category:articles with hcards"
What's the total number of League Cup with a Play-off larger than 2, and a Name of Mitch Cook Category:Articles with hCards?
CREATE TABLE table_name_8 (league VARCHAR, play_offs VARCHAR, name VARCHAR)
SELECT AVG(points) FROM table_name_97 WHERE nation = "wales" AND pts_game > 5
what is the average points when the nation is wales and the pts/game is more than 5?
CREATE TABLE table_name_97 (points INTEGER, nation VARCHAR, pts_game VARCHAR)
SELECT home_team AS score FROM table_name_24 WHERE away_team = "collingwood"
What was the home team score for the game played against Collingwood?
CREATE TABLE table_name_24 (home_team VARCHAR, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_93 WHERE home_team = "north melbourne"
What was total size of the crowd at a home game for north melbourne?
CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR)
SELECT COUNT(laps) FROM table_name_24 WHERE grid = 19
What is the total laps for grid 19?
CREATE TABLE table_name_24 (laps VARCHAR, grid VARCHAR)
SELECT winning_score FROM table_name_42 WHERE date = "aug 26, 1973"
Which Winning score has a Date of aug 26, 1973?
CREATE TABLE table_name_42 (winning_score VARCHAR, date VARCHAR)
SELECT date FROM table_1140103_6 WHERE circuit = "Solitudering"
What date has a solitudering circuit
CREATE TABLE table_1140103_6 (date VARCHAR, circuit VARCHAR)
SELECT away_team FROM table_name_91 WHERE date = "10 february 1951" AND home_team = "manchester united"
Who was the away team when Manchester United played at home on 10 February 1951?
CREATE TABLE table_name_91 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT MAX(league_goals) FROM table_29701419_2 WHERE total_goals = 179
What is the league goals when the total goals is 179?
CREATE TABLE table_29701419_2 (league_goals INTEGER, total_goals VARCHAR)
SELECT season FROM table_name_79 WHERE skip = "eve muirhead" AND third = "jackie lockhart (e/o) kelly wood (w)"
Which Season has a Skip of Eve Muirhead with a thirs of Jackie Lockhart (e/o) Kelly Wood (w)?
CREATE TABLE table_name_79 (season VARCHAR, skip VARCHAR, third VARCHAR)
SELECT written_by FROM table_24961421_1 WHERE us_viewers__millions_ = "12.15"
Who wrote the episode that had 12.15 million viewers?
CREATE TABLE table_24961421_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT AVG(attendance) FROM table_name_61 WHERE week = 2
What was the average attendance in week 2?
CREATE TABLE table_name_61 (attendance INTEGER, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_62 WHERE date = "november 1, 1942"
What was the attendance on November 1, 1942?
CREATE TABLE table_name_62 (attendance VARCHAR, date VARCHAR)
SELECT mascot FROM table_name_53 WHERE ihsaa_class = "aaa" AND location = "russiaville"
Which Mascot has an IHSAA Class of aaa, and a Location of russiaville?
CREATE TABLE table_name_53 (mascot VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
SELECT pos FROM table_name_33 WHERE player = "nigel de jong"
What is Pos., when Player is "Nigel De Jong"?
CREATE TABLE table_name_33 (pos VARCHAR, player VARCHAR)
SELECT guest_s_ FROM table_29135051_2 WHERE ratings = "1.64m"
Name the guest for 1.64m ratings
CREATE TABLE table_29135051_2 (guest_s_ VARCHAR, ratings VARCHAR)
SELECT MAX(rank) FROM table_name_54 WHERE bronze = 0 AND silver > 1 AND gold > 0
Name the most rank with bronze of 0 and silver more than 1 and gold more than 0
CREATE TABLE table_name_54 (rank INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT streak FROM table_name_65 WHERE date = "december 30"
What is the Streak on December 30?
CREATE TABLE table_name_65 (streak VARCHAR, date VARCHAR)
SELECT constructor FROM table_name_72 WHERE winning_driver = "jo siffert"
Which Constructor has the Winning Driver, Jo Siffert?
CREATE TABLE table_name_72 (constructor VARCHAR, winning_driver VARCHAR)
SELECT T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_code = T2.Budget_Type_code WHERE T2.budget_type_Description = "Government"
Show ids for all documents with budget types described as 'Government'.
CREATE TABLE Documents_with_expenses (document_id VARCHAR, Budget_Type_code VARCHAR); CREATE TABLE Ref_Budget_Codes (Budget_Type_code VARCHAR, budget_type_Description VARCHAR)
SELECT SUM(played) FROM table_name_50 WHERE points > 71 AND losses < 8
What is the number of played games a club with more than 71 points and less than 8 losses has?
CREATE TABLE table_name_50 (played INTEGER, points VARCHAR, losses VARCHAR)
SELECT home_team AS score FROM table_name_78 WHERE home_team = "essendon"
What did the home team of essendon score?
CREATE TABLE table_name_78 (home_team VARCHAR)
SELECT nationality FROM table_1473672_6 WHERE player = "Derek Black"
What country did Derek Black come from?
CREATE TABLE table_1473672_6 (nationality VARCHAR, player VARCHAR)
SELECT masculine_an_stems FROM table_name_49 WHERE feminine_ō_stems = "siangar" AND masculine_u_stems = "sunar"
What is the masculine an form for the word with a feminine ö ending of siangar and a masculine u ending of sunar?
CREATE TABLE table_name_49 (masculine_an_stems VARCHAR, feminine_ō_stems VARCHAR, masculine_u_stems VARCHAR)
SELECT MIN(pick__number) FROM table_10812938_5 WHERE cfl_team = "Toronto Argonauts"
What's the pick number of the player from Toronto Argonauts?
CREATE TABLE table_10812938_5 (pick__number INTEGER, cfl_team VARCHAR)
SELECT COUNT(team) FROM table_27755784_8 WHERE high_points = "David Lee (31)"
How many teams have hight points listed as David Lee (31)?
CREATE TABLE table_27755784_8 (team VARCHAR, high_points VARCHAR)
SELECT score FROM table_name_59 WHERE away_team = "watford"
What is the score when watford was the away team?
CREATE TABLE table_name_59 (score VARCHAR, away_team VARCHAR)
SELECT school FROM table_name_35 WHERE college = "michigan"
What is the school of the player from the College of Michigan?
CREATE TABLE table_name_35 (school VARCHAR, college VARCHAR)
SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = "Marc Lieb Richard Lietz"
What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team?
CREATE TABLE table_24865763_2 (rnd INTEGER, gt2_winning_team VARCHAR)
SELECT surface FROM table_name_98 WHERE date = "31 may 2010"
The game played 31 May 2010 was played on what surface?
CREATE TABLE table_name_98 (surface VARCHAR, date VARCHAR)
SELECT MIN(overall) FROM table_10361230_1 WHERE player_name = "Bruce Cerone"
What is Bruce Cerone overall?
CREATE TABLE table_10361230_1 (overall INTEGER, player_name VARCHAR)
SELECT mens_doubles FROM table_12171145_1 WHERE womens_doubles = "Anastasia Chervyakova Romina Gabdullina"
Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina?
CREATE TABLE table_12171145_1 (mens_doubles VARCHAR, womens_doubles VARCHAR)
SELECT started FROM table_12608427_8 WHERE name = "de Vries"
What date did De Vries start?
CREATE TABLE table_12608427_8 (started VARCHAR, name VARCHAR)
SELECT main_artillery FROM table_23614702_2 WHERE tons___lton__ = "1,051"
What is the primary artillery for the 1,051 ships?
CREATE TABLE table_23614702_2 (main_artillery VARCHAR, tons___lton__ VARCHAR)
SELECT name FROM table_name_42 WHERE moving_from = "treviso" AND type = "loan return"
Who is moving from Treviso with a loan return?
CREATE TABLE table_name_42 (name VARCHAR, moving_from VARCHAR, type VARCHAR)
SELECT losing_bonus FROM table_name_21 WHERE club = "crumlin rfc"
What's the losing bonus of Crumlin RFC?
CREATE TABLE table_name_21 (losing_bonus VARCHAR, club VARCHAR)
SELECT AVG(Gross_in_dollar) FROM film
What is the average ticket sales gross in dollars of films?
CREATE TABLE film (Gross_in_dollar INTEGER)
SELECT cross_country FROM table_name_35 WHERE soccer = "ashland" AND volleyball = "wooster" AND school_year = "2006-07"
What is Cross Country, when Soccer is Ashland, when Volleyball is Wooster, and when School Year is 2006-07?
CREATE TABLE table_name_35 (cross_country VARCHAR, school_year VARCHAR, soccer VARCHAR, volleyball VARCHAR)
SELECT defending_forces FROM table_name_22 WHERE population = "650"
What defending forces have a population of 650?
CREATE TABLE table_name_22 (defending_forces VARCHAR, population VARCHAR)
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = "Asia" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1
Which language is the most popular on the Asian continent?
CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
SELECT record FROM table_15607589_2 WHERE opponent = "New York Giants"
Name the record for new york giants
CREATE TABLE table_15607589_2 (record VARCHAR, opponent VARCHAR)
SELECT game FROM table_27539535_4 WHERE november = 21
What is every game on November 21?
CREATE TABLE table_27539535_4 (game VARCHAR, november VARCHAR)
SELECT date FROM table_name_21 WHERE week = 9
What date has 9 as the week?
CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR)
SELECT score FROM table_name_99 WHERE venue = "thessaloniki (without participation)"
Venue of thessaloniki (without participation) had what score?
CREATE TABLE table_name_99 (score VARCHAR, venue VARCHAR)
SELECT AVG(rank) FROM table_name_21 WHERE title = "bronco billy"
What is the rank of Bronco Billy?
CREATE TABLE table_name_21 (rank INTEGER, title VARCHAR)
SELECT AVG(rank) FROM table_name_23 WHERE total < 1
Which rank has a total smaller than 1?
CREATE TABLE table_name_23 (rank INTEGER, total INTEGER)
SELECT opponent FROM table_name_45 WHERE loss = "wells (6-2)"
Which Opponent has a lost of wells (6-2)?
CREATE TABLE table_name_45 (opponent VARCHAR, loss VARCHAR)
SELECT AVG(position) FROM table_name_88 WHERE drawn < 0
What was the average Position for which the amount Drawn was less than 0?
CREATE TABLE table_name_88 (position INTEGER, drawn INTEGER)
SELECT text FROM tweets ORDER BY createdate
List the text of all tweets in the order of date.
CREATE TABLE tweets (text VARCHAR, createdate VARCHAR)
SELECT AVG(laps) FROM table_name_54 WHERE grid = 16
What is the average number of laps with 16 grids?
CREATE TABLE table_name_54 (laps INTEGER, grid VARCHAR)
SELECT MAX(prod_code) FROM table_27610775_1 WHERE directed_by = "Sean McNamara"
What is the maximum production code of the episode directed by Sean McNamara?
CREATE TABLE table_27610775_1 (prod_code INTEGER, directed_by VARCHAR)
SELECT directed_by FROM table_25341765_1 WHERE us_viewers__million_ = "5.92"
Who directed the episode that had 5.92 million viewers?
CREATE TABLE table_25341765_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT type_of_game FROM table_name_17 WHERE results¹ = "0:0"
What type of game had a 0:0 result?
CREATE TABLE table_name_17 (type_of_game VARCHAR, results¹ VARCHAR)
SELECT prize FROM table_name_11 WHERE event = "ept sanremo"
What is the Prize, when the Event is Ept Sanremo?
CREATE TABLE table_name_11 (prize VARCHAR, event VARCHAR)
SELECT MAX(crowd) FROM table_name_8 WHERE away_team = "richmond"
When richmond played away, what was the largest number of people who watched?
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
SELECT chassis FROM table_name_92 WHERE engine = "brm v8"
What chassis did the BRM V8 engine have?
CREATE TABLE table_name_92 (chassis VARCHAR, engine VARCHAR)
SELECT MAX(overall_rank) FROM table_name_37 WHERE lane < 8 AND time < 27.16
Tell me the highest overall rank for lane less than 8 and time less than 27.16
CREATE TABLE table_name_37 (overall_rank INTEGER, lane VARCHAR, time VARCHAR)
SELECT COUNT(record) FROM table_17190012_7 WHERE score = "W 121–119 (OT)"
how many records were made on the game that ended with score w 121–119 (ot)
CREATE TABLE table_17190012_7 (record VARCHAR, score VARCHAR)
SELECT round FROM table_name_94 WHERE pick > 68 AND player = "joe patton"
What round was Joe Patton selected with a pick over 68?
CREATE TABLE table_name_94 (round VARCHAR, pick VARCHAR, player VARCHAR)
SELECT COUNT(tonioli) FROM table_1014319_1 WHERE goodman = "10"
How many songs received a 10 from Goodman and were rated by Tonioli?
CREATE TABLE table_1014319_1 (tonioli VARCHAR, goodman VARCHAR)
SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = "k230ap"
Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?
CREATE TABLE table_name_52 (frequency_mhz INTEGER, erp_w VARCHAR, call_sign VARCHAR)
SELECT loss FROM table_name_24 WHERE record = "22-24"
What's the Loss for the game that had a 22-24 record?
CREATE TABLE table_name_24 (loss VARCHAR, record VARCHAR)
SELECT SUM(average) FROM table_name_26 WHERE state = "hawaii" AND interview > 9.636
What is the sum of the average of Hawaii, with an interviewer larger than 9.636?
CREATE TABLE table_name_26 (average INTEGER, state VARCHAR, interview VARCHAR)
SELECT torque FROM table_name_27 WHERE model = "320td (diesel)"
What is the Torque of the Model 320td (diesel)?
CREATE TABLE table_name_27 (torque VARCHAR, model VARCHAR)
SELECT time FROM table_name_72 WHERE heat = 1 AND lane = 2
Can you tell me the Time that has the Heat of 1, and the Lane of 2?
CREATE TABLE table_name_72 (time VARCHAR, heat VARCHAR, lane VARCHAR)
SELECT Citizenship FROM singer WHERE Birth_Year < 1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year > 1955
Show the citizenship shared by singers with birth year before 1945 and after 1955.
CREATE TABLE singer (Citizenship VARCHAR, Birth_Year INTEGER)