question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the class of the co-driver emanuele pirro jj lehto?
CREATE TABLE table_name_58 (class VARCHAR, co_drivers VARCHAR)
SELECT class FROM table_name_58 WHERE co_drivers = "emanuele pirro jj lehto"
Name the mountains classification for team columbia
CREATE TABLE table_19115414_4 (mountains_classification VARCHAR, team_classification VARCHAR)
SELECT mountains_classification FROM table_19115414_4 WHERE team_classification = "Team Columbia"
Which Station has hagerstown?
CREATE TABLE table_name_28 (station VARCHAR, city_of_license VARCHAR)
SELECT station FROM table_name_28 WHERE city_of_license = "hagerstown"
How many are the Race 2 points when Race 1 was 12?
CREATE TABLE table_23293785_3 (race_2_pts_ VARCHAR, race_1_pts_ VARCHAR)
SELECT race_2_pts_ FROM table_23293785_3 WHERE race_1_pts_ = 12
What is the end date for Maaroufi?
CREATE TABLE table_name_59 (ends VARCHAR, name VARCHAR)
SELECT ends FROM table_name_59 WHERE name = "maaroufi"
Who is week 3 if week 1 is Amanda Batt?
CREATE TABLE table_name_47 (week_3 VARCHAR, week_1 VARCHAR)
SELECT week_3 FROM table_name_47 WHERE week_1 = "amanda batt"
What country has a Transfer fee of —, and a Transfer window of summer, and the Status of loaned out, and a Name of gonzález?
CREATE TABLE table_name_39 (country VARCHAR, name VARCHAR, status VARCHAR, transfer_fee VARCHAR, transfer_window VARCHAR)
SELECT country FROM table_name_39 WHERE transfer_fee = "—" AND transfer_window = "summer" AND status = "loaned out" AND name = "gonzález"
What is the abbreviation of Airline "JetBlue Airways"?
CREATE TABLE AIRLINES (Abbreviation VARCHAR, Airline VARCHAR)
SELECT Abbreviation FROM AIRLINES WHERE Airline = "JetBlue Airways"
What record has @ detroit as the opponent?
CREATE TABLE table_name_61 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_61 WHERE opponent = "@ detroit"
What is the total number of capacity for the venue of the club, pirin?
CREATE TABLE table_name_30 (capacity VARCHAR, club VARCHAR)
SELECT COUNT(capacity) FROM table_name_30 WHERE club = "pirin"
Which type entered service in 1976/1997 and is located in Brazil?
CREATE TABLE table_name_87 (type VARCHAR, location VARCHAR, entered_service VARCHAR)
SELECT type FROM table_name_87 WHERE location = "brazil" AND entered_service = "1976/1997"
What is every missile type with a code and location of M-20 Harbor Drive?
CREATE TABLE table_22282917_26 (missile_type VARCHAR, code_ VARCHAR, _location VARCHAR)
SELECT missile_type FROM table_22282917_26 WHERE code_ & _location = "M-20 Harbor Drive"
What is the highest value for race?
CREATE TABLE table_15852257_1 (races INTEGER)
SELECT MAX(races) FROM table_15852257_1
List all schools and their nicknames in the order of founded year.
CREATE TABLE university (school VARCHAR, nickname VARCHAR, founded VARCHAR)
SELECT school, nickname FROM university ORDER BY founded
How many seats became avaliable in Massachusetts 3rd district?
CREATE TABLE table_224840_4 (vacator VARCHAR, district VARCHAR)
SELECT COUNT(vacator) FROM table_224840_4 WHERE district = "Massachusetts 3rd"
Band of am, and a Frequency of 0 846 has what purpose?
CREATE TABLE table_name_18 (purpose VARCHAR, band VARCHAR, frequency VARCHAR)
SELECT purpose FROM table_name_18 WHERE band = "am" AND frequency = "0 846"
What is the try bonus that has llangefni rfc as the club?
CREATE TABLE table_name_22 (try_bonus VARCHAR, club VARCHAR)
SELECT try_bonus FROM table_name_22 WHERE club = "llangefni rfc"
What was the score that made the record 47-49?
CREATE TABLE table_name_22 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_22 WHERE record = "47-49"
Tell me the record for kazuhiro nakamura
CREATE TABLE table_name_25 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_25 WHERE opponent = "kazuhiro nakamura"
Show the most common nationality for journalists.
CREATE TABLE journalist (Nationality VARCHAR)
SELECT Nationality FROM journalist GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Which region 1 has 12 Episodes and a Region 2 of 18 August 2008?
CREATE TABLE table_name_83 (region_1 VARCHAR, no_of_episodes VARCHAR, region_2 VARCHAR)
SELECT region_1 FROM table_name_83 WHERE no_of_episodes = 12 AND region_2 = "18 august 2008"
What is the Yam amount when the Maze/Corn amount is 1355?
CREATE TABLE table_name_80 (yam_ VARCHAR, y_ VARCHAR, maize___corn_ VARCHAR, a_ VARCHAR)
SELECT yam_[y_] FROM table_name_80 WHERE maize___corn_[a_] = "1355"
What is the pick number for Danny Green in a round less than 2?
CREATE TABLE table_name_21 (pick VARCHAR, player VARCHAR, round VARCHAR)
SELECT COUNT(pick) FROM table_name_21 WHERE player = "danny green" AND round < 2
What is the number of jews asarb where the metro area is philadelphia?
CREATE TABLE table_1131183_2 (number_of_jews__asarb_ VARCHAR, metro_area VARCHAR)
SELECT number_of_jews__asarb_ FROM table_1131183_2 WHERE metro_area = "Philadelphia"
When 1522 is the tonnes of co2 saved what is the year?
CREATE TABLE table_29538735_1 (year VARCHAR, tonnes_of_co2_saved VARCHAR)
SELECT year FROM table_29538735_1 WHERE tonnes_of_co2_saved = 1522
What date has ny islanders as the visitor?
CREATE TABLE table_name_66 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_66 WHERE visitor = "ny islanders"
WHAT WAS THE FINISH NUMBER WITH A START SMALLER THAN 20 IN 1969?
CREATE TABLE table_name_6 (finish VARCHAR, start VARCHAR, year VARCHAR)
SELECT COUNT(finish) FROM table_name_6 WHERE start < 20 AND year = 1969
Name the australian marquee for alessandro del piero
CREATE TABLE table_1301373_7 (australian_marquee VARCHAR, international_marquee VARCHAR)
SELECT australian_marquee FROM table_1301373_7 WHERE international_marquee = "Alessandro Del Piero"
WHAT TEAM CLASSIFIED IN THE STAGE WHERE BRADLEY WIGGINS WON THE POINTS CLASSIFICATION ?
CREATE TABLE table_11667521_17 (team_classification VARCHAR, points_classification VARCHAR)
SELECT team_classification FROM table_11667521_17 WHERE points_classification = "Bradley Wiggins"
Name the attendance for atlanta braves opponent for september 9
CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_26 WHERE opponent = "atlanta braves" AND date = "september 9"
What Pitch is located at Isle of Man?
CREATE TABLE table_name_97 (pitch VARCHAR, location VARCHAR)
SELECT pitch FROM table_name_97 WHERE location = "isle of man"
What is the total time for one south broad?
CREATE TABLE table_name_79 (year INTEGER, name VARCHAR)
SELECT SUM(year) FROM table_name_79 WHERE name = "one south broad"
What was the decision on November 26?
CREATE TABLE table_name_18 (decision VARCHAR, date VARCHAR)
SELECT decision FROM table_name_18 WHERE date = "november 26"
What's the D 48 √ when the D 40 √ is D 37?
CREATE TABLE table_name_97 (d_48_√ VARCHAR, d_40_√ VARCHAR)
SELECT d_48_√ FROM table_name_97 WHERE d_40_√ = "d 37"
Which home team played against Geelong?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_39 WHERE away_team = "geelong"
What is the number of laps for Grid 3?
CREATE TABLE table_name_36 (laps VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_36 WHERE grid = "3"
How many votes in Brooklyn were won by the candidate who won 321 votes in Manhattan?
CREATE TABLE table_1108394_47 (brooklyn VARCHAR, manhattan VARCHAR)
SELECT brooklyn FROM table_1108394_47 WHERE manhattan = "321"
What is the sum of launches with Long March 3 and 0 failures?
CREATE TABLE table_name_4 (launches INTEGER, rocket VARCHAR, failures VARCHAR)
SELECT SUM(launches) FROM table_name_4 WHERE rocket = "long march 3" AND failures > 0
Name the fat for protein being 4 and calories 80
CREATE TABLE table_2493389_1 (fat__g_ VARCHAR, protein__g_ VARCHAR, calories__1_tbsp__ VARCHAR)
SELECT fat__g_ FROM table_2493389_1 WHERE protein__g_ = "4" AND calories__1_tbsp__ = 80
What date shows corrado barazzutti's partner?
CREATE TABLE table_name_99 (date VARCHAR, partner VARCHAR)
SELECT date FROM table_name_99 WHERE partner = "corrado barazzutti"
Which Croatia has a Friendly of world cup 2006 qualifier, and a 149 of 152?
CREATE TABLE table_name_53 (croatia VARCHAR, friendly VARCHAR)
SELECT croatia FROM table_name_53 WHERE friendly = "world cup 2006 qualifier" AND 149 = 152
Name the october when november is buffy tyler
CREATE TABLE table_name_17 (october VARCHAR, november VARCHAR)
SELECT october FROM table_name_17 WHERE november = "buffy tyler"
What is largest total number that was written by Sheri Elwood?
CREATE TABLE table_27155243_4 (total__number INTEGER, written_by VARCHAR)
SELECT MAX(total__number) FROM table_27155243_4 WHERE written_by = "Sheri Elwood"
Which player is T3?
CREATE TABLE table_name_70 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_70 WHERE place = "t3"
When the match lasted 2:16 how was it decided?
CREATE TABLE table_name_12 (method VARCHAR, time VARCHAR)
SELECT method FROM table_name_12 WHERE time = "2:16"
What was McCain's percentage when Obama had 64.39% of the vote?
CREATE TABLE table_20722805_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR)
SELECT mccain_percentage FROM table_20722805_1 WHERE obama_percentage = "64.39%"
What is the stage reached for venue edmonton green?
CREATE TABLE table_name_23 (stage_reached VARCHAR, venue VARCHAR)
SELECT stage_reached FROM table_name_23 WHERE venue = "edmonton green"
When is Part 6, when Part 4 is on March 2, 2008?
CREATE TABLE table_name_89 (part_6 VARCHAR, part_4 VARCHAR)
SELECT part_6 FROM table_name_89 WHERE part_4 = "march 2, 2008"
How many items appear in the average column when the totals were 105-161?
CREATE TABLE table_28628309_6 (average VARCHAR, totals VARCHAR)
SELECT COUNT(average) FROM table_28628309_6 WHERE totals = "105-161"
What is the date that the winner driver is Stirling Moss in the race named vi grand prix de caen?
CREATE TABLE table_name_91 (date VARCHAR, winning_driver VARCHAR, race_name VARCHAR)
SELECT date FROM table_name_91 WHERE winning_driver = "stirling moss" AND race_name = "vi grand prix de caen"
Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.
CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR)
SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Sales Person" EXCEPT SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code ...
What is the code name of the person born in Liverpool?
CREATE TABLE table_name_94 (code_name VARCHAR, birthplace VARCHAR)
SELECT code_name FROM table_name_94 WHERE birthplace = "liverpool"
What place was Dave Stockton when he had a to par of +1?
CREATE TABLE table_name_10 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT place FROM table_name_10 WHERE to_par = "+1" AND player = "dave stockton"
Tell me the ethnic group for jewish of 0.47%
CREATE TABLE table_name_77 (ethnic_group VARCHAR, jewish VARCHAR)
SELECT ethnic_group FROM table_name_77 WHERE jewish = "0.47%"
What is the Place when Fuzzy Zoeller plated in the United States?
CREATE TABLE table_name_78 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_78 WHERE country = "united states" AND player = "fuzzy zoeller"
Which Office has a Party of rep, and a Representative of brian bosma?
CREATE TABLE table_name_9 (office VARCHAR, party VARCHAR, representative VARCHAR)
SELECT office FROM table_name_9 WHERE party = "rep" AND representative = "brian bosma"
What team did the Flames play against when 526 people attended the game?
CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_11 WHERE attendance = 526
What is the fastest lap for Belgian Grand Prix?
CREATE TABLE table_name_16 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT fastest_lap FROM table_name_16 WHERE grand_prix = "belgian grand prix"
What home team plays at Princes Park?
CREATE TABLE table_name_62 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_62 WHERE venue = "princes park"
Hawthorn played as an Away team in which venue?
CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_56 WHERE away_team = "hawthorn"
Who was the opponent in UFC 19?
CREATE TABLE table_name_93 (opponent VARCHAR, event VARCHAR)
SELECT opponent FROM table_name_93 WHERE event = "ufc 19"
What is every surface against Sweden?
CREATE TABLE table_24074130_5 (surface VARCHAR, against VARCHAR)
SELECT surface FROM table_24074130_5 WHERE against = "Sweden"
What is the district for carl vinson?
CREATE TABLE table_1341930_11 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341930_11 WHERE incumbent = "Carl Vinson"
Who was the constructor of car 22?
CREATE TABLE table_15491596_1 (constructor VARCHAR, no VARCHAR)
SELECT constructor FROM table_15491596_1 WHERE no = 22
Name the date of appointment for ascoli
CREATE TABLE table_17275810_7 (date_of_appointment VARCHAR, team VARCHAR)
SELECT date_of_appointment FROM table_17275810_7 WHERE team = "Ascoli"
What is the record which shows Kickoff as kickoff?
CREATE TABLE table_name_75 (record VARCHAR)
SELECT record FROM table_name_75 WHERE "kickoff" = "kickoff"
When did the length of 60 minutes air?
CREATE TABLE table_name_46 (airdate VARCHAR, length VARCHAR)
SELECT airdate FROM table_name_46 WHERE length = "60 minutes"
What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle?
CREATE TABLE table_name_20 (cospar_id_satcat_№ VARCHAR, launch_vehicle VARCHAR)
SELECT cospar_id_satcat_№ FROM table_name_20 WHERE launch_vehicle = "titan iv(401)a"
What track name had Terry Tamm as the soloist?
CREATE TABLE table_28715942_3 (track VARCHAR, soloist_s_ VARCHAR)
SELECT track FROM table_28715942_3 WHERE soloist_s_ = "Terry Tamm"
What is the highest average a contestant from Iowa with a swimsuit smaller than 9.267 has?
CREATE TABLE table_name_14 (average INTEGER, state VARCHAR, swimsuit VARCHAR)
SELECT MAX(average) FROM table_name_14 WHERE state = "iowa" AND swimsuit < 9.267
What is the name of the MySpace Band with an Original Airdate of 19 february 2008?
CREATE TABLE table_name_38 (myspace_band VARCHAR, original_airdate VARCHAR)
SELECT myspace_band FROM table_name_38 WHERE original_airdate = "19 february 2008"
What was the location and attendance of the game when High Assists were Andre Miller (7)?
CREATE TABLE table_17323042_11 (location_attendance VARCHAR, high_assists VARCHAR)
SELECT location_attendance FROM table_17323042_11 WHERE high_assists = "Andre Miller (7)"
Name the most attendance
CREATE TABLE table_16227492_1 (attendance INTEGER)
SELECT MAX(attendance) FROM table_16227492_1
How many rushing yards are listed when the passing yards are 244?
CREATE TABLE table_28697228_4 (rushing_yards VARCHAR, passing_yards VARCHAR)
SELECT rushing_yards FROM table_28697228_4 WHERE passing_yards = 244
How many numbers are ending in 1 year?
CREATE TABLE table_13770460_3 (COUnT VARCHAR, ends VARCHAR)
SELECT COUnT AS n FROM table_13770460_3 WHERE ends = "1 year"
What was the number of season number entries that had US Viewers of 12.30 million?
CREATE TABLE table_21781578_2 (season_no VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(season_no) FROM table_21781578_2 WHERE us_viewers__millions_ = "12.30"
What is the round number for the venue of Stade de la Méditerranée?
CREATE TABLE table_21311525_1 (round VARCHAR, venue VARCHAR)
SELECT round FROM table_21311525_1 WHERE venue = "Stade de la Méditerranée"
What date was the game when the liberty had a record of 12-9?
CREATE TABLE table_name_63 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_63 WHERE record = "12-9"
If unknown is larger than 1.0, what is the maximum two year amount?
CREATE TABLE table_174266_6 (two_years INTEGER, unknown INTEGER)
SELECT MAX(two_years) FROM table_174266_6 WHERE unknown > 1.0
What is the lowest value for innings?
CREATE TABLE table_2985664_8 (innings INTEGER)
SELECT MIN(innings) FROM table_2985664_8
What's the average number of Laps, that had a start of 25, with a Qual of 138.063?
CREATE TABLE table_name_21 (laps INTEGER, start VARCHAR, qual VARCHAR)
SELECT AVG(laps) FROM table_name_21 WHERE start = "25" AND qual = "138.063"
What's the Suited Match with a 2.99% House Edge?
CREATE TABLE table_name_44 (suited_match VARCHAR, house_edge VARCHAR)
SELECT suited_match FROM table_name_44 WHERE house_edge = "2.99%"
What is the largest crowd for a Home team of carlton?
CREATE TABLE table_name_96 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_96 WHERE home_team = "carlton"
What is the IATA for Korla Airport.
CREATE TABLE table_name_33 (iata VARCHAR, airport VARCHAR)
SELECT iata FROM table_name_33 WHERE airport = "korla airport"
Which Opponent is on april 28?
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_19 WHERE date = "april 28"
Municipality of tampere involves which party?
CREATE TABLE table_name_1 (party VARCHAR, municipality VARCHAR)
SELECT party FROM table_name_1 WHERE municipality = "tampere"
when was otar iosseliani's film selected
CREATE TABLE table_18069789_1 (year_ VARCHAR, e_ VARCHAR, director VARCHAR)
SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE director = "Otar Iosseliani"
What are the ids and names of the battles that led to more than 10 people killed in total.
CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)
SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10
What is the Date of vacancy for Tommy McLean?
CREATE TABLE table_name_80 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_vacancy FROM table_name_80 WHERE outgoing_manager = "tommy mclean"
When was the private/baptist school founded?
CREATE TABLE table_261941_1 (founded VARCHAR, type VARCHAR)
SELECT founded FROM table_261941_1 WHERE type = "Private/Baptist"
Which College has a Position of ol, and a Pick # smaller than 32?
CREATE TABLE table_name_64 (college VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT college FROM table_name_64 WHERE position = "ol" AND pick__number < 32
What is the margin of victory of the gna/glendale federal classic?
CREATE TABLE table_name_8 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_name_8 WHERE tournament = "gna/glendale federal classic"
What is the average number of pieces for boards that started in 1941 and were released after 2001?
CREATE TABLE table_name_14 (pieces INTEGER, start VARCHAR, release VARCHAR)
SELECT AVG(pieces) FROM table_name_14 WHERE start = "1941" AND release > 2001
What Event is at the Time 1:16?
CREATE TABLE table_name_70 (event VARCHAR, time VARCHAR)
SELECT event FROM table_name_70 WHERE time = "1:16"
What is the Laker's record when they played against Kansas City Kings?
CREATE TABLE table_name_84 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_84 WHERE opponent = "kansas city kings"
Tell me the constructor for grid of 17
CREATE TABLE table_name_9 (constructor VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_9 WHERE grid = 17
Which Player has a Money ($) of 137, and a Score of 73-70-73-74=290?
CREATE TABLE table_name_11 (player VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT player FROM table_name_11 WHERE money___$__ = 137 AND score = 73 - 70 - 73 - 74 = 290
Who is every incumbent when Kentucky 2 is the district?
CREATE TABLE table_2668352_5 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_2668352_5 WHERE district = "Kentucky 2"
Which Year has a Venue of bydgoszcz, poland, and an Event of junior team?
CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR, event VARCHAR)
SELECT AVG(year) FROM table_name_75 WHERE venue = "bydgoszcz, poland" AND event = "junior team"
What is the date of the episode written by Michael Poryes?
CREATE TABLE table_12030612_3 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_12030612_3 WHERE written_by = "Michael Poryes"