question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the car number for Jeff Simmons on the Rahal Letterman team?
CREATE TABLE table_name_46 (car_no VARCHAR, team VARCHAR, driver VARCHAR)
SELECT car_no FROM table_name_46 WHERE team = "rahal letterman" AND driver = "jeff simmons"
What episode has a manual motorcycle transmissions section D?
CREATE TABLE table_name_20 (episode INTEGER, segment_d VARCHAR)
SELECT SUM(episode) FROM table_name_20 WHERE segment_d = "manual motorcycle transmissions"
How many totals have a Bronze smaller than 3, a Nation of zimbabwe, and a Silver smaller than 6?
CREATE TABLE table_name_98 (total VARCHAR, silver VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT COUNT(total) FROM table_name_98 WHERE bronze < 3 AND nation = "zimbabwe" AND silver < 6
When 12 is the season number how many series numbers are there?
CREATE TABLE table_25649467_2 (series__number VARCHAR, season__number VARCHAR)
SELECT COUNT(series__number) FROM table_25649467_2 WHERE season__number = 12
During which Season did the may 11, 2002 event take place?
CREATE TABLE table_name_90 (season VARCHAR, date VARCHAR)
SELECT season FROM table_name_90 WHERE date = "may 11, 2002"
What is the maximum lost with points 1 more than 58 and 66 goals against?
CREATE TABLE table_name_9 (lost INTEGER, points_1 VARCHAR, goals_against VARCHAR)
SELECT MAX(lost) FROM table_name_9 WHERE points_1 > 58 AND goals_against = 66
What number corresponds to Presidet Yves Krattinger of the Socialist party?
CREATE TABLE table_name_14 (number VARCHAR, party VARCHAR, président VARCHAR)
SELECT number FROM table_name_14 WHERE party = "socialist party" AND président = "yves krattinger"
Who is the high rebounds for game 64?
CREATE TABLE table_23281862_9 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_23281862_9 WHERE game = 64
What tournament had an opponent of Els Callens Nancy Feber?
CREATE TABLE table_name_95 (tournament VARCHAR, opponents_in_the_final VARCHAR)
SELECT tournament FROM table_name_95 WHERE opponents_in_the_final = "els callens nancy feber"
Which airport's ICAO is rpvi?
CREATE TABLE table_name_61 (airport VARCHAR, icao VARCHAR)
SELECT airport FROM table_name_61 WHERE icao = "rpvi"
Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?
CREATE TABLE table_name_13 (draw INTEGER, points VARCHAR, goals_conceded VARCHAR)
SELECT MAX(draw) FROM table_name_13 WHERE points = "22" AND goals_conceded < 26
What's the most league cup apps for Jimmy Lawson having 0 league cup goals?
CREATE TABLE table_name_74 (league_cup_apps INTEGER, league_cup_goals VARCHAR, name VARCHAR)
SELECT MAX(league_cup_apps) FROM table_name_74 WHERE league_cup_goals = 0 AND name = "jimmy lawson"
What numbered game did they play chicago?
CREATE TABLE table_27755603_11 (game VARCHAR, team VARCHAR)
SELECT game FROM table_27755603_11 WHERE team = "Chicago"
What is BP's lowest sales?
CREATE TABLE table_name_73 (sales__billion_ INTEGER, company VARCHAR)
SELECT MIN(sales__billion_) AS $_ FROM table_name_73 WHERE company = "bp"
What is the earliest episode of the series that is set in Boston, Massachusetts?
CREATE TABLE table_name_80 (total INTEGER, location VARCHAR)
SELECT MIN(total) FROM table_name_80 WHERE location = "boston, massachusetts"
Who was the class AAAA when class AAAAA was Weslaco in 1994-95
CREATE TABLE table_14747043_1 (class_aAAA VARCHAR, class_aAAAA VARCHAR, Weslaco VARCHAR, school_year VARCHAR)
SELECT class_aAAA FROM table_14747043_1 WHERE class_aAAAA = Weslaco AND school_year = "1994-95"
Who is the opponent of the game with a game number less than 5 with a 2-0-0 record?
CREATE TABLE table_name_51 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_51 WHERE game < 5 AND record = "2-0-0"
How many laps were there for a grid of 13?
CREATE TABLE table_name_35 (laps VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_35 WHERE grid = 13
Which player was pick number 150?
CREATE TABLE table_16376436_1 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_16376436_1 WHERE pick__number = 150
how many schools or teams had jalen rose
CREATE TABLE table_10015132_16 (school_club_team VARCHAR, player VARCHAR)
SELECT COUNT(school_club_team) FROM table_10015132_16 WHERE player = "Jalen Rose"
Name the rectifier for Det/Pre-amp of x and # tubes of 4
CREATE TABLE table_name_69 (rectifier VARCHAR, det_pre_amp VARCHAR, _number_tubes VARCHAR)
SELECT rectifier FROM table_name_69 WHERE det_pre_amp = "x" AND _number_tubes = "4"
Who is Austin Dillon's primary sponsor(s)?
CREATE TABLE table_name_55 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR)
SELECT primary_sponsor_s_ FROM table_name_55 WHERE driver_s_ = "austin dillon"
What is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5?
CREATE TABLE table_name_59 (erp_w INTEGER, call_sign VARCHAR, frequency_mhz VARCHAR)
SELECT AVG(erp_w) FROM table_name_59 WHERE call_sign = "k248bj" AND frequency_mhz > 97.5
How many games were played when the record was 26-21?
CREATE TABLE table_13619135_6 (game VARCHAR, record VARCHAR)
SELECT COUNT(game) FROM table_13619135_6 WHERE record = "26-21"
What's the score for 1992, with the result of a loss?
CREATE TABLE table_name_65 (score VARCHAR, year VARCHAR, result VARCHAR)
SELECT score FROM table_name_65 WHERE year = 1992 AND result = "loss"
What is the date when the document "Marry CV" was stored?
CREATE TABLE All_documents (date_stored VARCHAR, Document_name VARCHAR)
SELECT date_stored FROM All_documents WHERE Document_name = "Marry CV"
What is every media type for the World genre?
CREATE TABLE table_23829490_1 (media_type VARCHAR, genre VARCHAR)
SELECT media_type FROM table_23829490_1 WHERE genre = "World"
What is the district with the candidates edwin gray (dr)?
CREATE TABLE table_2668393_18 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)"
What is the top score for tsuneyuki nakajima?
CREATE TABLE table_name_80 (score INTEGER, player VARCHAR)
SELECT MAX(score) FROM table_name_80 WHERE player = "tsuneyuki nakajima"
What is the number for the french open 1974?
CREATE TABLE table_197638_7 (_number INTEGER, french_open VARCHAR)
SELECT MAX(_number) FROM table_197638_7 WHERE french_open = 1974
How many runs are there when the highest score is 228*?
CREATE TABLE table_28846752_4 (runs INTEGER, highest_score VARCHAR)
SELECT MIN(runs) FROM table_28846752_4 WHERE highest_score = "228*"
What is the lowest place of the team who conceded 36 goals and lost more than 6 times?
CREATE TABLE table_name_41 (place INTEGER, goals_conceded VARCHAR, lost VARCHAR)
SELECT MIN(place) FROM table_name_41 WHERE goals_conceded = 36 AND lost > 6
What is the height in feet of player number 24?
CREATE TABLE table_name_70 (height_in_ft VARCHAR, no_s_ VARCHAR)
SELECT height_in_ft FROM table_name_70 WHERE no_s_ = "24"
What was the outcome in 1975?
CREATE TABLE table_name_25 (outcome VARCHAR, year VARCHAR)
SELECT outcome FROM table_name_25 WHERE year = 1975
Show the detail of vehicle with id 1.
CREATE TABLE Vehicles (vehicle_details VARCHAR, vehicle_id VARCHAR)
SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1
What is the earliest episode aired on 8 June 2008?
CREATE TABLE table_name_97 (episode_number INTEGER, air_date VARCHAR)
SELECT MIN(episode_number) FROM table_name_97 WHERE air_date = "8 june 2008"
What selection was the springfield olympics (nejhl)?
CREATE TABLE table_2850912_12 (pick__number INTEGER, college_junior_club_team VARCHAR)
SELECT MAX(pick__number) FROM table_2850912_12 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)"
Which Driver won the Circuit of Rio de Janeiro?
CREATE TABLE table_name_13 (winning_driver VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_name_13 WHERE circuit = "rio de janeiro"
What story title was included in Issue #8?
CREATE TABLE table_name_47 (story VARCHAR, issue VARCHAR)
SELECT story FROM table_name_47 WHERE issue = "#8"
Name the points for top tens being 24 and ownder david pearson
CREATE TABLE table_27786562_1 (points__margin_ VARCHAR, top_tens VARCHAR, owner VARCHAR)
SELECT points__margin_ FROM table_27786562_1 WHERE top_tens = 24 AND owner = "David Pearson"
How many times is the original artist Alicia keys?
CREATE TABLE table_26250145_1 (result VARCHAR, original_artist VARCHAR)
SELECT COUNT(result) FROM table_26250145_1 WHERE original_artist = "Alicia Keys"
What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone?
CREATE TABLE table_name_79 (days VARCHAR, party VARCHAR, constituency VARCHAR)
SELECT days FROM table_name_79 WHERE party = "ulster unionist" AND constituency = "fermanagh and south tyrone"
What is the nature of the incident that's a bomb attack?
CREATE TABLE table_name_69 (nature_of_incident VARCHAR, circumstances VARCHAR)
SELECT nature_of_incident FROM table_name_69 WHERE circumstances = "bomb attack"
What district does Harlan Hagen represent?
CREATE TABLE table_1342013_5 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342013_5 WHERE incumbent = "Harlan Hagen"
What is the NHL team of dave murphy?
CREATE TABLE table_name_29 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_name_29 WHERE player = "dave murphy"
Tell me the team for victorian football league
CREATE TABLE table_name_48 (team VARCHAR, competition VARCHAR)
SELECT team FROM table_name_48 WHERE competition = "victorian football league"
What is the number of employees from each city?
CREATE TABLE employee (city VARCHAR)
SELECT COUNT(*), city FROM employee GROUP BY city
What is melbourne's home team score?
CREATE TABLE table_name_48 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_48 WHERE home_team = "melbourne"
What is the average 2002 value for Sunflower, which had a 2010 value less than 5587 and a 2007 value greater than 546?
CREATE TABLE table_name_31 (production_year VARCHAR)
SELECT AVG(2002) FROM table_name_31 WHERE 2010 < 5587 AND production_year = "sunflower" AND 2007 > 546
What is the gender of Congresswoman Jaime Herrera Beutler's baby?
CREATE TABLE table_name_66 (baby_gender VARCHAR, congresswoman VARCHAR)
SELECT baby_gender FROM table_name_66 WHERE congresswoman = "jaime herrera beutler"
How many seasons have points totals of N/A?
CREATE TABLE table_26222468_1 (season VARCHAR, points VARCHAR)
SELECT COUNT(season) FROM table_26222468_1 WHERE points = "N/A"
What is the team set at junction oval?
CREATE TABLE table_name_68 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_68 WHERE venue = "junction oval"
What's the nationality of Henry Carr having a time of 20.3y?
CREATE TABLE table_name_82 (nationality VARCHAR, athlete VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_82 WHERE athlete = "henry carr" AND time = "20.3y"
How much Body Width/mm has a Body Length/mm of 18.4, and Pins of 40?
CREATE TABLE table_name_50 (body_width_mm VARCHAR, body_length_mm VARCHAR, pins VARCHAR)
SELECT COUNT(body_width_mm) FROM table_name_50 WHERE body_length_mm = 18.4 AND pins = "40"
What is the smallest number of "goals for" out of the clubs where there were 18 wins and fewer than 38 "goals against"?
CREATE TABLE table_name_85 (goals_for INTEGER, wins VARCHAR, goals_against VARCHAR)
SELECT MIN(goals_for) FROM table_name_85 WHERE wins = 18 AND goals_against < 38
What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions?
CREATE TABLE table_name_97 (rank INTEGER, sales__billion_$_ VARCHAR, profits__billion_$_ VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE sales__billion_$_ > 146.56 AND profits__billion_$_ = 11.68
Which substrate has an OMIM of 176000?
CREATE TABLE table_name_47 (substrate VARCHAR, omim VARCHAR)
SELECT substrate FROM table_name_47 WHERE omim = 176000
What are the rounds for champion New Zealand (130 points)?
CREATE TABLE table_name_1 (rounds INTEGER, champion VARCHAR)
SELECT AVG(rounds) FROM table_name_1 WHERE champion = "new zealand (130 points)"
Who was the winner with a mountain stage type on 22 May?
CREATE TABLE table_name_81 (winner VARCHAR, type VARCHAR, date VARCHAR)
SELECT winner FROM table_name_81 WHERE type = "mountain stage" AND date = "22 may"
How much Capacity has a Vehicle of 2003 holden commodore ute?
CREATE TABLE table_name_97 (capacity VARCHAR, vehicle VARCHAR)
SELECT COUNT(capacity) FROM table_name_97 WHERE vehicle = "2003 holden commodore ute"
What club had 523 points against?
CREATE TABLE table_13741576_6 (club VARCHAR, points_against VARCHAR)
SELECT club FROM table_13741576_6 WHERE points_against = "523"
Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?
CREATE TABLE table_name_92 (name VARCHAR, maglia_rosa VARCHAR, young_rider VARCHAR, country VARCHAR, giro_wins VARCHAR)
SELECT name FROM table_name_92 WHERE country = "italy" AND giro_wins = 0 AND young_rider = 0 AND maglia_rosa < 3
What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?
CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2–6, 0–6"
What is the latest in March when the record of 35–16–6–3?
CREATE TABLE table_name_34 (march INTEGER, record VARCHAR)
SELECT MAX(march) FROM table_name_34 WHERE record = "35–16–6–3"
What country is ranked #2?
CREATE TABLE table_name_68 (country VARCHAR, rank VARCHAR)
SELECT country FROM table_name_68 WHERE rank = 2
What is the id of the most recent order?
CREATE TABLE orders (order_id VARCHAR, date_order_placed VARCHAR)
SELECT order_id FROM orders ORDER BY date_order_placed DESC LIMIT 1
Which major has between 2 and 30 number of students? List major and the number of students.
CREATE TABLE Student (Major VARCHAR)
SELECT Major, COUNT(*) FROM Student GROUP BY Major HAVING COUNT(Major) BETWEEN 2 AND 30
What player is picked 302 in round 11?
CREATE TABLE table_name_27 (player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT player FROM table_name_27 WHERE round = 11 AND pick = 302
Damani Ralph is associated with which lowest pick #?
CREATE TABLE table_name_39 (pick__number INTEGER, player VARCHAR)
SELECT MIN(pick__number) FROM table_name_39 WHERE player = "damani ralph"
Who is the away captain for Kingsmead?
CREATE TABLE table_name_81 (away_captain VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_81 WHERE venue = "kingsmead"
What shows for set 2 when Set 1 is 29–27?
CREATE TABLE table_name_61 (set_2 VARCHAR, set_1 VARCHAR)
SELECT set_2 FROM table_name_61 WHERE set_1 = "29–27"
How many districts had republican Bob Goodlatte as a candidate?
CREATE TABLE table_17503169_1 (district VARCHAR, republican VARCHAR)
SELECT COUNT(district) FROM table_17503169_1 WHERE republican = "Bob Goodlatte"
Show the team that have at least two technicians.
CREATE TABLE technician (Team VARCHAR)
SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 2
What tournament had a 1 point margin of victory?
CREATE TABLE table_name_12 (tournament VARCHAR, margin_of_victory VARCHAR)
SELECT tournament FROM table_name_12 WHERE margin_of_victory = "1 point"
What is the dollar amount of ebit when the net profit is 120.6?
CREATE TABLE table_18077713_1 (ebit__us_$m_ VARCHAR, net_profit__us_$m_ VARCHAR)
SELECT ebit__us_$m_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "120.6"
What titles were released in 2006?
CREATE TABLE table_173475_1 (title VARCHAR, release VARCHAR)
SELECT title FROM table_173475_1 WHERE release = 2006
What is the To par and holds the t8 place of the United States player Tiger Woods?
CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_62 WHERE country = "united states" AND place = "t8" AND player = "tiger woods"
What is the To par has the presence of Vijay Singh?
CREATE TABLE table_name_67 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_67 WHERE player = "vijay singh"
what is the properties of potassium when lithium is h a l o g e n s and sodium is bromine?
CREATE TABLE table_name_76 (potassium VARCHAR, lithium VARCHAR, sodium VARCHAR)
SELECT potassium FROM table_name_76 WHERE lithium = "h a l o g e n s" AND sodium = "bromine"
What is the lowest position with points 1 of 27 2 and fewer than 9 drawn?
CREATE TABLE table_name_74 (position INTEGER, points_1 VARCHAR, drawn VARCHAR)
SELECT MIN(position) FROM table_name_74 WHERE points_1 = "27 2" AND drawn < 9
How many times during the season were the seahawks 8-6?
CREATE TABLE table_13259019_2 (result VARCHAR, record VARCHAR)
SELECT COUNT(result) FROM table_13259019_2 WHERE record = "8-6"
How many outputs are there for solid state, battery operated for portable use listed in notes?
CREATE TABLE table_25276250_3 (outputs VARCHAR, notes VARCHAR)
SELECT COUNT(outputs) FROM table_25276250_3 WHERE notes = "Solid state, battery operated for portable use"
What's the record when the attendance was 28,531?
CREATE TABLE table_name_62 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_62 WHERE attendance = "28,531"
What is the frequency of the tmm500dbo22gq order part number?
CREATE TABLE table_name_17 (frequency VARCHAR, order_part_number VARCHAR)
SELECT frequency FROM table_name_17 WHERE order_part_number = "tmm500dbo22gq"
Which positions were in Toronto in 2004?
CREATE TABLE table_10015132_2 (position VARCHAR, years_in_toronto VARCHAR)
SELECT position FROM table_10015132_2 WHERE years_in_toronto = "2004"
What is the average quantity that has 1104 as the number(s)?
CREATE TABLE table_name_40 (quantity INTEGER, number_s_ VARCHAR)
SELECT AVG(quantity) FROM table_name_40 WHERE number_s_ = "1104"
What is the greatest lost where played is less than 9?
CREATE TABLE table_name_51 (lost INTEGER, played INTEGER)
SELECT MAX(lost) FROM table_name_51 WHERE played < 9
Which Drawn has a Played of 20, and a Club of rhigos rfc?
CREATE TABLE table_name_78 (drawn VARCHAR, played VARCHAR, club VARCHAR)
SELECT drawn FROM table_name_78 WHERE played = "20" AND club = "rhigos rfc"
For club Swansea Uplands RFC, what is the amount of tries against?
CREATE TABLE table_17675675_2 (tries_against VARCHAR, club VARCHAR)
SELECT tries_against FROM table_17675675_2 WHERE club = "Swansea Uplands RFC"
When has a Source of surveyusa and a Obama of 54%?
CREATE TABLE table_name_8 (date VARCHAR, source VARCHAR, obama VARCHAR)
SELECT date FROM table_name_8 WHERE source = "surveyusa" AND obama = "54%"
For a segment D of pasta, what is the segment B?
CREATE TABLE table_name_93 (segment_b VARCHAR, segment_d VARCHAR)
SELECT segment_b FROM table_name_93 WHERE segment_d = "pasta"
When 90.7 fm is the frequency who is the licensee?
CREATE TABLE table_1949746_1 (licensee VARCHAR, frequency VARCHAR)
SELECT licensee FROM table_1949746_1 WHERE frequency = "90.7 FM"
how many times was the catalog number cal01 / 0091037137319?
CREATE TABLE table_27303975_3 (copyright_information VARCHAR, catalog_number VARCHAR)
SELECT COUNT(copyright_information) FROM table_27303975_3 WHERE catalog_number = "CAL01 / 0091037137319"
What is the release date for Ben 10: Alien Force Volume 9 on DVD?
CREATE TABLE table_name_22 (release_date VARCHAR, dvd_title VARCHAR)
SELECT release_date FROM table_name_22 WHERE dvd_title = "ben 10: alien force volume 9"
How many losses have jake sharp as the name, with a long less than 30?
CREATE TABLE table_name_81 (loss VARCHAR, name VARCHAR, long VARCHAR)
SELECT COUNT(loss) FROM table_name_81 WHERE name = "jake sharp" AND long < 30
Which Pos has a Car # of 33?
CREATE TABLE table_name_72 (pos INTEGER, car__number VARCHAR)
SELECT SUM(pos) FROM table_name_72 WHERE car__number = 33
What was the year elected in District 15?
CREATE TABLE table_name_56 (elected VARCHAR, district VARCHAR)
SELECT elected FROM table_name_56 WHERE district = 15
What was the Record on the Date May 8?
CREATE TABLE table_name_15 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_15 WHERE date = "may 8"
Find the names of the artists who are from UK and have produced English songs.
CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, languages VARCHAR); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, languages VARCHAR)
SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english"
Which sport was in the 1992 Barcelona games?
CREATE TABLE table_name_92 (sport VARCHAR, games VARCHAR)
SELECT sport FROM table_name_92 WHERE games = "1992 barcelona"