question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
With Laps greater than 78, what is the lowest Grid?
CREATE TABLE table_name_30 (grid INTEGER, laps INTEGER)
SELECT MIN(grid) FROM table_name_30 WHERE laps > 78
What Payload to GTO has CCBs larger than 1, and a Payload to LEO of 29,400kg?
CREATE TABLE table_name_95 (payload_to_gto VARCHAR, ccbs VARCHAR, payload_to_leo VARCHAR)
SELECT payload_to_gto FROM table_name_95 WHERE ccbs > 1 AND payload_to_leo = "29,400kg"
When did Richmond play an away game against Collingwood?
CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_36 WHERE away_team = "richmond"
Which system is named mess?
CREATE TABLE table_name_80 (system VARCHAR, name VARCHAR)
SELECT system FROM table_name_80 WHERE name = "mess"
What region has a 2002 date, and a Catalog dos 195?
CREATE TABLE table_name_70 (region VARCHAR, date VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_70 WHERE date = "2002" AND catalog = "dos 195"
In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?
CREATE TABLE table_name_50 (tyre VARCHAR, pole_position VARCHAR, race VARCHAR)
SELECT tyre FROM table_name_50 WHERE pole_position = "jacky ickx" AND race = "canadian grand prix"
With a draw greater than 11 and the place smaller than 4 what was the televote?
CREATE TABLE table_name_96 (televote VARCHAR, draw VARCHAR, place VARCHAR)
SELECT televote FROM table_name_96 WHERE draw > 11 AND place < 4
What was the airing date when the number of episodes was larger than 20 and had the genre of costume action?
CREATE TABLE table_name_73 (airing_date VARCHAR, number_of_episodes VARCHAR, genre VARCHAR)
SELECT airing_date FROM table_name_73 WHERE number_of_episodes > 20 AND genre = "costume action"
What is the most wins associated with under 4 events with 0 top-5s?
CREATE TABLE table_name_38 (wins INTEGER, top_5 VARCHAR, events VARCHAR)
SELECT MAX(wins) FROM table_name_38 WHERE top_5 > 0 AND events < 4
What type of state was Lu, when Yi was the ruler from the royal house of Ji?
CREATE TABLE table_name_39 (type VARCHAR, state VARCHAR, royal_house VARCHAR, name VARCHAR)
SELECT type FROM table_name_39 WHERE royal_house = "ji" AND name = "yi" AND state = "lu"
Find the states where have some college students in tryout and their decisions are yes.
CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)
SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'
what are all the playoffs for regular season is 1st, atlantic division
CREATE TABLE table_1046170_5 (playoffs VARCHAR, regular_season VARCHAR)
SELECT playoffs FROM table_1046170_5 WHERE regular_season = "1st, Atlantic division"
Who was the director that worked with Dana Dorian as the writer?
CREATE TABLE table_name_44 (director_s_ VARCHAR, writer_s_ VARCHAR)
SELECT director_s_ FROM table_name_44 WHERE writer_s_ = "dana dorian"
Name the air date for jay j. demopoulos
CREATE TABLE table_24466855_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_24466855_1 WHERE written_by = "Jay J. Demopoulos"
Which Opponent has a Date of november 21, 1999?
CREATE TABLE table_name_9 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_9 WHERE date = "november 21, 1999"
What is the earliest year with a label-Nr of st-43?
CREATE TABLE table_name_37 (year INTEGER, label VARCHAR, Nr VARCHAR, st VARCHAR)
SELECT MIN(year) FROM table_name_37 WHERE label - Nr = st - 43
What is Record, when Method is "Technical Submission (Rear Naked Choke)"?
CREATE TABLE table_name_4 (record VARCHAR, method VARCHAR)
SELECT record FROM table_name_4 WHERE method = "technical submission (rear naked choke)"
What is the team of the player from ohio state?
CREATE TABLE table_name_93 (team VARCHAR, college VARCHAR)
SELECT team FROM table_name_93 WHERE college = "ohio state"
What's the title of the audio book with story number 91?
CREATE TABLE table_20174050_1 (title VARCHAR, story__number VARCHAR)
SELECT title FROM table_20174050_1 WHERE story__number = 91
What is the status of joe gibbs racing?
CREATE TABLE table_12001616_4 (status VARCHAR, entrant VARCHAR)
SELECT status FROM table_12001616_4 WHERE entrant = "Joe Gibbs Racing"
What number episode had a rating of 4.7?
CREATE TABLE table_23730973_5 (no INTEGER, rating VARCHAR)
SELECT MIN(no) FROM table_23730973_5 WHERE rating = "4.7"
Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.
CREATE TABLE employees (job_id VARCHAR, hire_date INTEGER)
SELECT job_id, hire_date FROM employees WHERE hire_date BETWEEN '2007-11-05' AND '2009-07-05'
Which episode in year 2003 that have Gary Murphy and Neil Thompson?
CREATE TABLE table_name_10 (episode VARCHAR, nominee_s_ VARCHAR, year VARCHAR)
SELECT episode FROM table_name_10 WHERE nominee_s_ = "gary murphy and neil thompson" AND year = 2003
Name the ss winning car for road atlanta and #35 quantum engineering #35 honda crx-si
CREATE TABLE table_27965906_2 (ss_winning_car VARCHAR, circuit VARCHAR, b_winning_car VARCHAR)
SELECT ss_winning_car FROM table_27965906_2 WHERE circuit = "Road Atlanta" AND b_winning_car = "#35 Quantum Engineering #35 Honda CRX-Si"
What signal quality does the KCAL-DT channel have?
CREATE TABLE table_name_96 (signal_quality VARCHAR, station_call_letters VARCHAR)
SELECT signal_quality FROM table_name_96 WHERE station_call_letters = "kcal-dt"
When 1995 is the year what is the open cup?
CREATE TABLE table_1986692_1 (open_cup VARCHAR, year VARCHAR)
SELECT open_cup FROM table_1986692_1 WHERE year = "1995"
What is the average number of silver medals for countries with 0 gold and rank under 3?
CREATE TABLE table_name_73 (silver INTEGER, gold VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_73 WHERE gold = 0 AND rank < 3
How many matches were drawn associated with a percentage of 7.14% and more than 12 losses?
CREATE TABLE table_name_57 (drawn VARCHAR, percentage VARCHAR, lost VARCHAR)
SELECT COUNT(drawn) FROM table_name_57 WHERE percentage = "7.14%" AND lost > 12
What is the episode summary for episode 5?
CREATE TABLE table_2140071_13 (episode VARCHAR)
SELECT episode AS Summary FROM table_2140071_13 WHERE episode = 5
Which Goal Difference has 28 Points, and a Club of cd cartagena, more than 15 losses?
CREATE TABLE table_name_77 (goal_difference INTEGER, losses VARCHAR, points VARCHAR, club VARCHAR)
SELECT MAX(goal_difference) FROM table_name_77 WHERE points = 28 AND club = "cd cartagena" AND losses > 15
Which Opponent has a Score of 92-111?
CREATE TABLE table_name_44 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_44 WHERE score = "92-111"
Points larger than 6, and a Results of 522:443 had what lowest matches?
CREATE TABLE table_name_44 (matches INTEGER, points VARCHAR, results VARCHAR)
SELECT MIN(matches) FROM table_name_44 WHERE points > 6 AND results = "522:443"
What years did number 54 play for the jazz
CREATE TABLE table_11545282_4 (years_for_jazz VARCHAR, no VARCHAR)
SELECT years_for_jazz FROM table_11545282_4 WHERE no = 54
What position was played at the World Athletics Final Competition in a year more recent than 2008?
CREATE TABLE table_name_62 (position VARCHAR, competition VARCHAR, year VARCHAR)
SELECT position FROM table_name_62 WHERE competition = "world athletics final" AND year > 2008
What are the speeds of the longest roller coaster?
CREATE TABLE roller_coaster (Speed VARCHAR, LENGTH VARCHAR)
SELECT Speed FROM roller_coaster ORDER BY LENGTH DESC LIMIT 1
What is Number Of Episodes, when Actor is "Jessica Napier"
CREATE TABLE table_name_90 (number_of_episodes VARCHAR, actor VARCHAR)
SELECT number_of_episodes FROM table_name_90 WHERE actor = "jessica napier"
What place is the team that completed 6 races?
CREATE TABLE table_10748727_1 (position VARCHAR, races VARCHAR)
SELECT position FROM table_10748727_1 WHERE races = 6
What is the name of the opponent that has a record of 66-69?
CREATE TABLE table_name_46 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_46 WHERE record = "66-69"
What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, spoiled_ballots VARCHAR)
SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE spoiled_ballots = 5683
What lowest Bodyweight has a Snatch smaller than 55?
CREATE TABLE table_name_84 (bodyweight INTEGER, snatch INTEGER)
SELECT MIN(bodyweight) FROM table_name_84 WHERE snatch < 55
Who is the home team when Sheffield United is the away team?
CREATE TABLE table_name_38 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_38 WHERE away_team = "sheffield united"
How many points did she have with team bultaco, ranked 6th?
CREATE TABLE table_name_40 (points INTEGER, team VARCHAR, rank VARCHAR)
SELECT SUM(points) FROM table_name_40 WHERE team = "bultaco" AND rank = "6th"
Tell me the launch pad for 25 december 2010 10:34
CREATE TABLE table_name_16 (launch_pad VARCHAR, launch_date_time__utc_ VARCHAR)
SELECT launch_pad FROM table_name_16 WHERE launch_date_time__utc_ = "25 december 2010 10:34"
What is the average Week, when Result is l 37–34?
CREATE TABLE table_name_80 (week INTEGER, result VARCHAR)
SELECT AVG(week) FROM table_name_80 WHERE result = "l 37–34"
The successor for the Massachusetts 20th district was seated on what date?
CREATE TABLE table_225098_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT date_successor_seated FROM table_225098_4 WHERE district = "Massachusetts 20th"
What was the smallest crowd when Footscray played at home?
CREATE TABLE table_name_95 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_95 WHERE home_team = "footscray"
Who had the high point total on october 20?
CREATE TABLE table_27700530_5 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_27700530_5 WHERE date = "October 20"
Which Elector is hungarian?
CREATE TABLE table_name_68 (elector VARCHAR, nationality VARCHAR)
SELECT elector FROM table_name_68 WHERE nationality = "hungarian"
What position does Maryland have a player for Round 3?
CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR, round VARCHAR)
SELECT position FROM table_name_81 WHERE school_club_team = "maryland" AND round = 3
Which orchestra has a recording year of 1951?
CREATE TABLE table_222198_1 (orchestra VARCHAR, year_of_recording VARCHAR)
SELECT orchestra FROM table_222198_1 WHERE year_of_recording = 1951
On what date did Dick Johnson with at Calder?
CREATE TABLE table_name_10 (date VARCHAR, winner VARCHAR, race_title VARCHAR)
SELECT date FROM table_name_10 WHERE winner = "dick johnson" AND race_title = "calder"
What player was born in 1976 and is smaller than 2.03?
CREATE TABLE table_name_42 (player VARCHAR, height VARCHAR, year_born VARCHAR)
SELECT player FROM table_name_42 WHERE height < 2.03 AND year_born = 1976
What is the Club of the Player with a Date of Birth of 1977-02-03?
CREATE TABLE table_name_61 (club VARCHAR, date_of_birth VARCHAR)
SELECT club FROM table_name_61 WHERE date_of_birth = "1977-02-03"
Which title has a production number of 627?
CREATE TABLE table_name_21 (title VARCHAR, production_number VARCHAR)
SELECT title FROM table_name_21 WHERE production_number = "627"
When was the game at the boulevard that ended with an 8-8 score?
CREATE TABLE table_name_72 (date VARCHAR, venue VARCHAR, score VARCHAR)
SELECT date FROM table_name_72 WHERE venue = "the boulevard" AND score = "8-8"
Which Score has an Away team of middlesbrough?
CREATE TABLE table_name_98 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_98 WHERE away_team = "middlesbrough"
What is the average number of silvers for nations with over 1 bronze medal?
CREATE TABLE table_name_62 (silver INTEGER, bronze INTEGER)
SELECT AVG(silver) FROM table_name_62 WHERE bronze > 1
What is the date of the circuit gilles villeneuve?
CREATE TABLE table_1137707_2 (date VARCHAR, location VARCHAR)
SELECT date FROM table_1137707_2 WHERE location = "Circuit Gilles Villeneuve"
Which Score has Points of 64, and a Game of 49?
CREATE TABLE table_name_5 (score VARCHAR, points VARCHAR, game VARCHAR)
SELECT score FROM table_name_5 WHERE points = 64 AND game = 49
What did United States place when the player was Raymond Floyd?
CREATE TABLE table_name_84 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_84 WHERE country = "united states" AND player = "raymond floyd"
What's the largest number of Gold medals won when bronze won are 2 and total won are over 7 by Hungary?
CREATE TABLE table_name_13 (gold INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT MAX(gold) FROM table_name_13 WHERE bronze = 2 AND nation = "hungary" AND total > 7
Which Partner has a Score of 6–7, 7–6, 6–7?
CREATE TABLE table_name_79 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_79 WHERE score = "6–7, 7–6, 6–7"
What's the score of Game 2?
CREATE TABLE table_name_73 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_73 WHERE game = 2
What is the name of Rhode Island College's softball stadium?
CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR)
SELECT softball_stadium FROM table_1974545_3 WHERE school = "Rhode Island College"
What was the grid placement for the Maserati that completed 14 laps?
CREATE TABLE table_name_40 (grid VARCHAR, constructor VARCHAR, laps VARCHAR)
SELECT grid FROM table_name_40 WHERE constructor = "maserati" AND laps = 14
2001 of 2–4 was in which tournament?
CREATE TABLE table_name_2 (tournament VARCHAR)
SELECT tournament FROM table_name_2 WHERE 2001 = "2–4"
Which Round has a College of stanford?
CREATE TABLE table_name_31 (round VARCHAR, college VARCHAR)
SELECT round FROM table_name_31 WHERE college = "stanford"
Which Number of households has Per capita income of $21,571, and a Population smaller than 9,783?
CREATE TABLE table_name_61 (number_of_households INTEGER, per_capita_income VARCHAR, population VARCHAR)
SELECT AVG(number_of_households) FROM table_name_61 WHERE per_capita_income = "$21,571" AND population < 9 OFFSET 783
The match played July 8, 2007 had what outcome?
CREATE TABLE table_name_54 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_54 WHERE date = "july 8, 2007"
Who as the home team for game on 5 october 2011?
CREATE TABLE table_24949975_1 (home_team VARCHAR, date VARCHAR)
SELECT home_team FROM table_24949975_1 WHERE date = "5 October 2011"
Which Date has a Record of 6-9?
CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_86 WHERE record = "6-9"
Which country is Dyer from?
CREATE TABLE table_name_14 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_14 WHERE name = "dyer"
Tell me the highest point with lost point being 33 and league point less than 52
CREATE TABLE table_name_98 (point INTEGER, lost_point VARCHAR, league_point VARCHAR)
SELECT MAX(point) FROM table_name_98 WHERE lost_point = 33 AND league_point < 52
Who did the High Assists when Kevin Durant (28) took the High Points?
CREATE TABLE table_17355628_7 (high_assists VARCHAR, high_points VARCHAR)
SELECT high_assists FROM table_17355628_7 WHERE high_points = "Kevin Durant (28)"
How many laps for denny hulme with under 4 on the grid?
CREATE TABLE table_name_13 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_13 WHERE driver = "denny hulme" AND grid < 4
How many top 10s when he had under 1 top 5s?
CREATE TABLE table_name_61 (top_10 INTEGER, top_5 INTEGER)
SELECT SUM(top_10) FROM table_name_61 WHERE top_5 < 1
After December 19, what is the Game number with a Record of 21–4–7?
CREATE TABLE table_name_17 (game VARCHAR, record VARCHAR, december VARCHAR)
SELECT COUNT(game) FROM table_name_17 WHERE record = "21–4–7" AND december > 19
Which Position has a Round larger than 7, and a Name of wayne asberry?
CREATE TABLE table_name_92 (position VARCHAR, round VARCHAR, name VARCHAR)
SELECT position FROM table_name_92 WHERE round > 7 AND name = "wayne asberry"
What is the Player that has a To standard of –7?
CREATE TABLE table_name_47 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_47 WHERE to_par = "–7"
What is the average number of hosts for parties?
CREATE TABLE party (Number_of_hosts INTEGER)
SELECT AVG(Number_of_hosts) FROM party
Tell me the NHL team for mike gaffney
CREATE TABLE table_name_53 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_name_53 WHERE player = "mike gaffney"
Which Rank is the lowest one that has Points larger than 52, and a Year larger than 1970?
CREATE TABLE table_name_9 (rank INTEGER, points VARCHAR, year VARCHAR)
SELECT MIN(rank) FROM table_name_9 WHERE points > 52 AND year > 1970
What is the name of a partner that played on a hard surface on 18 April 2011?
CREATE TABLE table_name_23 (partner VARCHAR, surface VARCHAR, date VARCHAR)
SELECT partner FROM table_name_23 WHERE surface = "hard" AND date = "18 april 2011"
Who constructed pedro diniz's car?
CREATE TABLE table_name_30 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_30 WHERE driver = "pedro diniz"
Which driver has fewer than 2 points, larger grid that 4 and is on American Spirit Team Johansson?
CREATE TABLE table_name_32 (driver VARCHAR, team VARCHAR, points VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_32 WHERE points < 2 AND grid > 4 AND team = "american spirit team johansson"
Which player has a PBA team of Red Bull Thunder?
CREATE TABLE table_name_5 (player VARCHAR, pba_team VARCHAR)
SELECT player FROM table_name_5 WHERE pba_team = "red bull thunder"
What is the decile for Westminster Christian School with a state integrated authority?
CREATE TABLE table_name_55 (decile VARCHAR, authority VARCHAR, name VARCHAR)
SELECT decile FROM table_name_55 WHERE authority = "state integrated" AND name = "westminster christian school"
Which Tournament has a score of 2–6 6–4 [10–8]?
CREATE TABLE table_name_9 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_9 WHERE score = "2–6 6–4 [10–8]"
When against is more than 1244 with less than 8 losses, what is the average of wins?
CREATE TABLE table_name_82 (wins INTEGER, against VARCHAR, losses VARCHAR)
SELECT AVG(wins) FROM table_name_82 WHERE against > 1244 AND losses < 8
Which Competition has a Year larger than 1990 in seville , spain?
CREATE TABLE table_name_5 (competition VARCHAR, year VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_5 WHERE year > 1990 AND venue = "seville , spain"
Which opponent has a Date of july 27?
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_24 WHERE date = "july 27"
What is Year is Walt Disney Pictures Imagemovers Digital?
CREATE TABLE table_name_59 (year INTEGER, studio_s_ VARCHAR)
SELECT SUM(year) FROM table_name_59 WHERE studio_s_ = "walt disney pictures imagemovers digital"
How many students have cat allergies?
CREATE TABLE Has_allergy (Allergy VARCHAR)
SELECT COUNT(*) FROM Has_allergy WHERE Allergy = "Cat"
how many areas were in the election in 1912
CREATE TABLE table_1342379_10 (district VARCHAR, first_elected VARCHAR)
SELECT COUNT(district) FROM table_1342379_10 WHERE first_elected = 1912
How many years was the operating profit (s$m) 717.1?
CREATE TABLE table_161591_2 (profit_before_taxation__s VARCHAR, operating_profit__s$m_ VARCHAR)
SELECT COUNT(profit_before_taxation__s) AS $m_ FROM table_161591_2 WHERE operating_profit__s$m_ = "717.1"
What is the name of the airport with IATA code DAC?
CREATE TABLE table_name_10 (airport VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_10 WHERE iata = "dac"
What is the call sign when the frequency is less than 95.5 MHz, and a ERP W is higher than 10?
CREATE TABLE table_name_16 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT call_sign FROM table_name_16 WHERE frequency_mhz < 95.5 AND erp_w > 10
Who used Ford v8 and Jordan 191 after 1990 and got 8 points?
CREATE TABLE table_name_50 (entrant VARCHAR, chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT entrant FROM table_name_50 WHERE year > 1990 AND engine = "ford v8" AND points = 8 AND chassis = "jordan 191"
How many points did North Melbourne score?
CREATE TABLE table_name_12 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_12 WHERE home_team = "north melbourne"
What is the number of matches for the player in rank 8?
CREATE TABLE table_name_44 (matches INTEGER, rank VARCHAR)
SELECT MAX(matches) FROM table_name_44 WHERE rank = 8