answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT flno FROM Flight WHERE distance > 2000
Show flight number for all flights with more than 2000 distance.
CREATE TABLE Flight (flno VARCHAR, distance INTEGER)
SELECT date_made FROM table_name_9 WHERE type = "0-4-2"
What is the date of creation for the locomotive having a type of 0-4-2
CREATE TABLE table_name_9 (date_made VARCHAR, type VARCHAR)
SELECT MIN(episodes) FROM table_name_35 WHERE actor = "anabel barnston"
What is the lowest number of episodes for anabel barnston?
CREATE TABLE table_name_35 (episodes INTEGER, actor VARCHAR)
SELECT position FROM table_2840500_4 WHERE player = "Antti-Jussi Niemi"
What position does Antti-Jussi Niemi play?
CREATE TABLE table_2840500_4 (position VARCHAR, player VARCHAR)
SELECT SUM(year) FROM table_name_49 WHERE entrant = "connaught engineering" AND points < 0
Name the sum of year for connaught engineering and points less than 0
CREATE TABLE table_name_49 (year INTEGER, entrant VARCHAR, points VARCHAR)
SELECT MIN(points) FROM table_name_87 WHERE engine = "climax v8" AND year = 1966
What is the smallest number of points with an Engine of climax v8, and a Year of 1966?
CREATE TABLE table_name_87 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT COUNT(bronze) FROM table_name_34 WHERE gold < 2 AND nation = "uganda" AND total > 2
What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals?
CREATE TABLE table_name_34 (bronze VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT acl_qualification FROM table_name_11 WHERE finals_qualification = "dnq" AND minor_ladder_position = "5th"
What's the ACL qualification when the minor ladder position is 5th and the finals qualifications were DNQ?
CREATE TABLE table_name_11 (acl_qualification VARCHAR, finals_qualification VARCHAR, minor_ladder_position VARCHAR)
SELECT composer FROM table_28005100_1 WHERE title = "Te3rafy"
Who was the composer of te3rafy?
CREATE TABLE table_28005100_1 (composer VARCHAR, title VARCHAR)
SELECT time_of_airing_on_channel_4 FROM table_name_74 WHERE episode_number > 106 AND title = "marry me a little"
What time did Channel 4 air an episode number larger than 106 with the title of Marry Me A Little?
CREATE TABLE table_name_74 (time_of_airing_on_channel_4 VARCHAR, episode_number VARCHAR, title VARCHAR)
SELECT result FROM table_name_38 WHERE year = 2012
What result in the table is from the year 2012?
CREATE TABLE table_name_38 (result VARCHAR, year VARCHAR)
SELECT date FROM table_name_69 WHERE surface = "hard" AND partner = "tom mercer"
What day did he play on hard with tom mercer?
CREATE TABLE table_name_69 (date VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT away FROM table_name_88 WHERE ground = "humber college lakeshore"
What is the Away with a Ground that is humber college lakeshore?
CREATE TABLE table_name_88 (away VARCHAR, ground VARCHAR)
SELECT partially_deleted FROM table_name_47 WHERE construction_completed = "–" AND name = "st. maries creosote"
What is the partially deleted result for a completed construction of m– in St. Maries Creosote?
CREATE TABLE table_name_47 (partially_deleted VARCHAR, construction_completed VARCHAR, name VARCHAR)
SELECT home_team FROM table_name_80 WHERE crowd > 24 OFFSET 520
Who was the home team at the game that had a crowd of over 24,520?
CREATE TABLE table_name_80 (home_team VARCHAR, crowd INTEGER)
SELECT replaced_by FROM table_27225944_3 WHERE team = "Slaven Belupo"
Name the replaced by for slaven belupo
CREATE TABLE table_27225944_3 (replaced_by VARCHAR, team VARCHAR)
SELECT team FROM table_27268238_5 WHERE economy = "5.73"
What is the team when the economy is 5.73?
CREATE TABLE table_27268238_5 (team VARCHAR, economy VARCHAR)
SELECT date_of_appointment FROM table_10592536_8 WHERE date_of_vacancy = "21 December 2007"
What is the date of appointment when the date of vacancy is 21 december 2007?
CREATE TABLE table_10592536_8 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT event_2 FROM table_17257687_1 WHERE event_1 = "Atlasphere"
What was event 2 when event 1 was Atlasphere?
CREATE TABLE table_17257687_1 (event_2 VARCHAR, event_1 VARCHAR)
SELECT seating FROM table_name_6 WHERE notes = "in service" AND introduced = 2008
How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service?
CREATE TABLE table_name_6 (seating VARCHAR, notes VARCHAR, introduced VARCHAR)
SELECT MIN(total_apps) FROM table_22538587_3 WHERE player = "Jaime"
Name the least total apps for jaime
CREATE TABLE table_22538587_3 (total_apps INTEGER, player VARCHAR)
SELECT player FROM table_name_74 WHERE position = "forward" AND school_club_team = "southern methodist"
What Utah Jazz Forward played for Southern Methodist?
CREATE TABLE table_name_74 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT SUM(season) FROM table_name_46 WHERE average_attendance_league = 2.456
How many season have an average attendance league of 2.456?
CREATE TABLE table_name_46 (season INTEGER, average_attendance_league VARCHAR)
SELECT MIN(not_outs) FROM table_name_8 WHERE average < 31.25 AND matches < 13 AND runs < 327
What is the lowest Not Outs with an average lower than 31.25, fewer than 13 matches, and fewer than 327 runs?
CREATE TABLE table_name_8 (not_outs INTEGER, runs VARCHAR, average VARCHAR, matches VARCHAR)
SELECT english FROM table_name_42 WHERE sanskrit = "samādhi"
Which English has a Sanskrit of samādhi?
CREATE TABLE table_name_42 (english VARCHAR, sanskrit VARCHAR)
SELECT SUM(year) FROM table_name_37 WHERE local_host_s_ = "sai"
What is the sum of year with the local host Sai?
CREATE TABLE table_name_37 (year INTEGER, local_host_s_ VARCHAR)
SELECT SUM(played) FROM table_name_18 WHERE first_game < 2005
What is the number of games played in the season before 2005?
CREATE TABLE table_name_18 (played INTEGER, first_game INTEGER)
SELECT _number___county FROM table_name_13 WHERE ihsaa_class = "aaa" AND enrollment > 611 AND mascot = "dragons"
what is the #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot?
CREATE TABLE table_name_13 (_number___county VARCHAR, mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT 2005 FROM table_name_29 WHERE 2002 = "a" AND 2010 = "3r"
What is the 2005 figure when 2002 is A and 2010 is 3R?
CREATE TABLE table_name_29 (Id VARCHAR)
SELECT COUNT(wins) FROM table_name_73 WHERE rank > 2 AND player = "mike hill"
What was the total number of wins with player Mike Hill with a rank bigger than 2?
CREATE TABLE table_name_73 (wins VARCHAR, rank VARCHAR, player VARCHAR)
SELECT AVG(labour_panel) FROM table_name_46 WHERE industrial_and_commercial_panel = 9 AND university_of_dublin < 3
Which Labour Panel has an Industrial and Commercial Panel of 9, and a University of Dublin smaller than 3?
CREATE TABLE table_name_46 (labour_panel INTEGER, industrial_and_commercial_panel VARCHAR, university_of_dublin VARCHAR)
SELECT play_by_play FROM table_name_38 WHERE studio_host = "john ryder" AND year = "2007-08"
Studio host of john ryder, and a Year of 2007-08 had what play by play?
CREATE TABLE table_name_38 (play_by_play VARCHAR, studio_host VARCHAR, year VARCHAR)
SELECT college FROM table_name_90 WHERE round > 4 AND overall < 237 AND name = "ted cottrell"
Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name?
CREATE TABLE table_name_90 (college VARCHAR, name VARCHAR, round VARCHAR, overall VARCHAR)
SELECT result FROM table_name_30 WHERE score = "2-2"
With a score of 2-2, what was the Result?
CREATE TABLE table_name_30 (result VARCHAR, score VARCHAR)
SELECT MAX(stage) FROM table_29332810_14 WHERE aggressive_rider = "Thomas De Gendt"
Thomas de Gendt performed on what stage as aggressive rider?
CREATE TABLE table_29332810_14 (stage INTEGER, aggressive_rider VARCHAR)
SELECT athlete FROM table_name_55 WHERE punishment = "six month suspension from iihf"
Which athlete had a six month suspension from IIHF?
CREATE TABLE table_name_55 (athlete VARCHAR, punishment VARCHAR)
SELECT crew_chief FROM table_name_12 WHERE owner_s_ = "jack roush" AND driver_s_ = "greg biffle"
What crew chief has an owner name Jack Roush and driver Greg Biffle?
CREATE TABLE table_name_12 (crew_chief VARCHAR, owner_s_ VARCHAR, driver_s_ VARCHAR)
SELECT no_10 FROM table_name_94 WHERE no_8 = "jackson" AND no_9 = "jayden"
Name the No. 10 which has a No. 8 of jackson, and a No. 9 of jayden?
CREATE TABLE table_name_94 (no_10 VARCHAR, no_8 VARCHAR, no_9 VARCHAR)
SELECT performer_1 FROM table_name_91 WHERE performer_2 = "compilation 2"
Performer 2 of compilation 2 is what performer 1?
CREATE TABLE table_name_91 (performer_1 VARCHAR, performer_2 VARCHAR)
SELECT pixels FROM table_1701371_2 WHERE hardware_colours = 8
How many pixels would be found in a hardware colour of 8?
CREATE TABLE table_1701371_2 (pixels VARCHAR, hardware_colours VARCHAR)
SELECT frequency FROM table_21716139_1 WHERE train_no = "12671/12672"
What is the frequency of trains numbered 12671/12672?
CREATE TABLE table_21716139_1 (frequency VARCHAR, train_no VARCHAR)
SELECT date FROM table_name_52 WHERE opposing_team = "western province"
What was the date of the match against western province?
CREATE TABLE table_name_52 (date VARCHAR, opposing_team VARCHAR)
SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = "Mark Webber"
When id the episode broadcast with Mark Webber as Jamie and John's guest?
CREATE TABLE table_29141354_4 (first_broadcast VARCHAR, jamie_and_johns_guest VARCHAR)
SELECT MIN(series__number) FROM table_20704243_3 WHERE directed_by = "Mark Roskin"
What series was directed by Mark Roskin?
CREATE TABLE table_20704243_3 (series__number INTEGER, directed_by VARCHAR)
SELECT 2 AS nd_leg FROM table_name_78 WHERE team_1 = "comunicaciones"
What is the 2nd leg of the Comunicaciones team?
CREATE TABLE table_name_78 (team_1 VARCHAR)
SELECT primary_conference FROM table_16383772_1 WHERE school = "St. Bonaventure University"
Name the primary conference for st. bonaventure university
CREATE TABLE table_16383772_1 (primary_conference VARCHAR, school VARCHAR)
SELECT replaced_by FROM table_name_58 WHERE position_in_table = "5th"
Who replaced when the position in table is 5th?
CREATE TABLE table_name_58 (replaced_by VARCHAR, position_in_table VARCHAR)
SELECT lost FROM table_12828723_3 WHERE try_bonus = "5" AND points_for = "390"
what's the loss with try bonus being 5 and points for being 390
CREATE TABLE table_12828723_3 (lost VARCHAR, try_bonus VARCHAR, points_for VARCHAR)
SELECT english_word FROM table_28136_15 WHERE ukrainian = "Дякую (diakuju)"
How do you say the ukrainian word дякую (diakuju) in English?
CREATE TABLE table_28136_15 (english_word VARCHAR, ukrainian VARCHAR)
SELECT date FROM table_name_60 WHERE countries_surveyed < 122 AND _percentage_rank = "47"
Date for less than 122 countries and a 47% rank?
CREATE TABLE table_name_60 (date VARCHAR, countries_surveyed VARCHAR, _percentage_rank VARCHAR)
SELECT place FROM table_name_65 WHERE performance = "60.73m"
What is the place when the performance is 60.73m?
CREATE TABLE table_name_65 (place VARCHAR, performance VARCHAR)
SELECT round FROM table_name_33 WHERE opponents = "ajax"
What is the round with ajax opponents
CREATE TABLE table_name_33 (round VARCHAR, opponents VARCHAR)
SELECT school_club_team FROM table_name_93 WHERE player = "michael stewart"
What is Michael Stewart's school or club team?
CREATE TABLE table_name_93 (school_club_team VARCHAR, player VARCHAR)
SELECT candidates FROM table_1341690_35 WHERE first_elected = 1966
Who were the candidates in the districts that was first elected in 1966?
CREATE TABLE table_1341690_35 (candidates VARCHAR, first_elected VARCHAR)
SELECT result FROM table_name_21 WHERE record = "5-1"
What was the result of the game when the record was 5-1?
CREATE TABLE table_name_21 (result VARCHAR, record VARCHAR)
SELECT COUNT(international_tourist_arrivals__2012_) FROM table_14752049_6 WHERE rank = 1
When the 1 is the rank what is the overall amount of international tourist arrivals in 2012?
CREATE TABLE table_14752049_6 (international_tourist_arrivals__2012_ VARCHAR, rank VARCHAR)
SELECT tyre FROM table_name_71 WHERE circuit = "zandvoort"
What tyre was used in the Zandvoort circuit?
CREATE TABLE table_name_71 (tyre VARCHAR, circuit VARCHAR)
SELECT AVG(laps) FROM table_name_48 WHERE grid = 9
What is the average number of laps when the grid number is 9?
CREATE TABLE table_name_48 (laps INTEGER, grid VARCHAR)
SELECT champion FROM table_29295463_9 WHERE runner_up = "Marty Davis"
Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up?
CREATE TABLE table_29295463_9 (champion VARCHAR, runner_up VARCHAR)
SELECT muzzle_velocity FROM table_name_60 WHERE muzzle_energy = "351ft•lbf (476 j)"
What is the muzzle velocity for the muzzle energy 351ft•lbf (476 j)?
CREATE TABLE table_name_60 (muzzle_velocity VARCHAR, muzzle_energy VARCHAR)
SELECT village FROM table_13981938_1 WHERE wine_style = "Red wine" AND vineyard_surface__2010_ = "hectares (acres)"
what's the village with wine style being red wine and vineyard surface (2010) being hectares (acres)
CREATE TABLE table_13981938_1 (village VARCHAR, wine_style VARCHAR, vineyard_surface__2010_ VARCHAR)
SELECT record FROM table_name_59 WHERE game = 58
What was the record when they played game 58?
CREATE TABLE table_name_59 (record VARCHAR, game VARCHAR)
SELECT host_city FROM table_2331549_1 WHERE host_school = "École de technologie supérieure"
What was the host city in years where the host school was école de technologie supérieure?
CREATE TABLE table_2331549_1 (host_city VARCHAR, host_school VARCHAR)
SELECT position FROM table_name_93 WHERE player = "hedo türkoğlu"
What position does Hedo Türkoğlu play?
CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR)
SELECT MIN(capacity) FROM table_16384648_2 WHERE team_nickname = "Flyers"
For the flyers, what's the minimum capacity?
CREATE TABLE table_16384648_2 (capacity INTEGER, team_nickname VARCHAR)
SELECT record FROM table_name_4 WHERE team = "utah jazz"
What is the record for the Utah Jazz?
CREATE TABLE table_name_4 (record VARCHAR, team VARCHAR)
SELECT SUM(murder) FROM table_name_44 WHERE year > 2011
How many total murders happened after 2011?
CREATE TABLE table_name_44 (murder INTEGER, year INTEGER)
SELECT w_l FROM table_23563375_11 WHERE result = "2–6, 5–7, 7–6 (11–9) , 1–6"
What were the w/l when the final score was 2–6, 5–7, 7–6 (11–9) , 1–6?
CREATE TABLE table_23563375_11 (w_l VARCHAR, result VARCHAR)
SELECT SUM(attendance) FROM table_name_49 WHERE game_site = "miami orange bowl"
How many people attended the game at the miami orange bowl?
CREATE TABLE table_name_49 (attendance INTEGER, game_site VARCHAR)
SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Viadana"
What was the aggregate score for the match won by Viadana?
CREATE TABLE table_28068063_2 (aggregate_score VARCHAR, winners VARCHAR)
SELECT analog_channel FROM table_name_3 WHERE digital_channel = "32"
Digital channel of 32 belongs to what analog channel?
CREATE TABLE table_name_3 (analog_channel VARCHAR, digital_channel VARCHAR)
SELECT surface FROM table_name_71 WHERE opponents = "sebastián decoud santiago giraldo"
Opponents of sebastián decoud santiago giraldo had what surface?
CREATE TABLE table_name_71 (surface VARCHAR, opponents VARCHAR)
SELECT gamecenter FROM table_name_17 WHERE attendance = "65,212"
Name the gamecenter that has attendance of 65,212
CREATE TABLE table_name_17 (gamecenter VARCHAR, attendance VARCHAR)
SELECT player FROM table_name_19 WHERE total = 160
Which player has a total of 160?
CREATE TABLE table_name_19 (player VARCHAR, total VARCHAR)
SELECT position FROM table_name_75 WHERE years_with_spurs = "2009-2012"
WHAT POSITION HAD SPURS IN 2009-2012?
CREATE TABLE table_name_75 (position VARCHAR, years_with_spurs VARCHAR)
SELECT years_active FROM table_name_1 WHERE caps > 11 AND country = "new zealand"
What were the years active of the player from New Zealand with more than 11 caps?
CREATE TABLE table_name_1 (years_active VARCHAR, caps VARCHAR, country VARCHAR)
SELECT COUNT(sample_size) FROM table_name_59 WHERE poll_source = "rasmussen reports" AND margin_of_error > 4.5
What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5?
CREATE TABLE table_name_59 (sample_size VARCHAR, poll_source VARCHAR, margin_of_error VARCHAR)
SELECT circuit FROM table_name_35 WHERE winning_driver = "innes ireland" AND race_name = "i lombank trophy"
What circuit did Innes Ireland win at for the I lombank trophy?
CREATE TABLE table_name_35 (circuit VARCHAR, winning_driver VARCHAR, race_name VARCHAR)
SELECT text FROM table_16162581_1 WHERE simplified_characters = "心猿意马"
Name the text for 心猿意马
CREATE TABLE table_16162581_1 (text VARCHAR, simplified_characters VARCHAR)
SELECT width FROM table_name_88 WHERE number_of_vehicles > 15 AND type_designation = "k5000"
Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?
CREATE TABLE table_name_88 (width VARCHAR, number_of_vehicles VARCHAR, type_designation VARCHAR)
SELECT SUM(silver) FROM table_name_71 WHERE gold = 2 AND nation = "puerto rico" AND total < 12
Which Silver has a Gold of 2, and a Nation of puerto rico, and a Total smaller than 12?
CREATE TABLE table_name_71 (silver INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT fcc_info FROM table_name_17 WHERE call_sign = "w279at"
Name the FCC info for call sign of w279at
CREATE TABLE table_name_17 (fcc_info VARCHAR, call_sign VARCHAR)
SELECT home_captain FROM table_name_81 WHERE venue = "waca ground"
What is the Home Captain which has Waca Ground as a Venue
CREATE TABLE table_name_81 (home_captain VARCHAR, venue VARCHAR)
SELECT sport FROM table_name_64 WHERE league = "nll"
The nll participate in what sport?
CREATE TABLE table_name_64 (sport VARCHAR, league VARCHAR)
SELECT T2.Visit_Date, T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = "Vincent"
What are the visit date and details of the visitor whose detail is 'Vincent'?
CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE VISITS (Visit_Date VARCHAR, Visit_Details VARCHAR, Tourist_ID VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_7 WHERE round > 4 AND position = "lw" AND player = "mark miller"
What is the college/junior/club team (league) of lw position player mark miller, from a round greater than 4?
CREATE TABLE table_name_7 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR)
SELECT driver FROM table_name_18 WHERE year = "1955"
What is the name of the driver in 1955?
CREATE TABLE table_name_18 (driver VARCHAR, year VARCHAR)
SELECT second_year FROM table_12148147_2 WHERE first_year = "Pag-unawa"
What is the second year class following pag-unawa?
CREATE TABLE table_12148147_2 (second_year VARCHAR, first_year VARCHAR)
SELECT circuit FROM table_name_94 WHERE date = "4 june"
what is the circuit when the date is 4 june?
CREATE TABLE table_name_94 (circuit VARCHAR, date VARCHAR)
SELECT wins FROM table_name_40 WHERE podiums = "0" AND series = "masters of formula 3"
Which Wins has Podiums of 0, and a Series of masters of formula 3?
CREATE TABLE table_name_40 (wins VARCHAR, podiums VARCHAR, series VARCHAR)
SELECT best_finish FROM table_29504351_2 WHERE player = "Carl Paulson"
What is the best finish record for Carl Paulson?
CREATE TABLE table_29504351_2 (best_finish VARCHAR, player VARCHAR)
SELECT new_entries_this_round FROM table_name_82 WHERE clubs = "48 → 32"
when there were 48 → 32 clubs?
CREATE TABLE table_name_82 (new_entries_this_round VARCHAR, clubs VARCHAR)
SELECT league FROM table_name_51 WHERE playoffs = "national semi-finals"
Which league's playoffs was national semi-finals?
CREATE TABLE table_name_51 (league VARCHAR, playoffs VARCHAR)
SELECT rank FROM table_name_76 WHERE gatchaman = "jinpei"
What is the rank of the gatchaman of Jinpei?
CREATE TABLE table_name_76 (rank VARCHAR, gatchaman VARCHAR)
SELECT host FROM table_1597866_3 WHERE first_premiere = "August 3, 2007"
Name the host when first premiere is august 3, 2007
CREATE TABLE table_1597866_3 (host VARCHAR, first_premiere VARCHAR)
SELECT length__ft_ FROM table_name_67 WHERE manufacturer = "nfi" AND model = "d40lf" AND order_year = "2008"
What is the Length (ft.) for a 2008 nfi d40lf?
CREATE TABLE table_name_67 (length__ft_ VARCHAR, order_year VARCHAR, manufacturer VARCHAR, model VARCHAR)
SELECT method FROM table_name_76 WHERE res = "loss" AND time = "5:00"
What is the method where there is a loss with time 5:00?
CREATE TABLE table_name_76 (method VARCHAR, res VARCHAR, time VARCHAR)
SELECT SUM(round) FROM table_name_68 WHERE college = "north carolina" AND overall > 124
what is the round when the college is north carolina and the overall is more than 124?
CREATE TABLE table_name_68 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT rank FROM table_name_25 WHERE silver > 1 AND gold > 1 AND bronze > 4
Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?
CREATE TABLE table_name_25 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT position FROM table_name_31 WHERE cfl_team = "toronto"
Can you tell me the Position that has the CFL Team of toronto?
CREATE TABLE table_name_31 (position VARCHAR, cfl_team VARCHAR)