question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which flight had the aircraft avro rj-100?
CREATE TABLE table_name_28 (flight VARCHAR, aircraft VARCHAR)
SELECT flight FROM table_name_28 WHERE aircraft = "avro rj-100"
Find names and times of trains that run through stations for the local authority Chiltern.
CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR)
SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern"
What are the notes when the time was 7:42.92 and the rank is more than 1?
CREATE TABLE table_name_65 (notes VARCHAR, rank VARCHAR, time VARCHAR)
SELECT notes FROM table_name_65 WHERE rank > 1 AND time = "7:42.92"
What year was Otto Passman (d) unopposed first elected?
CREATE TABLE table_1341690_18 (first_elected INTEGER, candidates VARCHAR)
SELECT MAX(first_elected) FROM table_1341690_18 WHERE candidates = "Otto Passman (D) Unopposed"
What is No. 10, when No. 1 is Noah, and when No. 9 is Carter?
CREATE TABLE table_name_45 (no_10 VARCHAR, no_1 VARCHAR, no_9 VARCHAR)
SELECT no_10 FROM table_name_45 WHERE no_1 = "noah" AND no_9 = "carter"
Which opponent has a loss of wells (1-3)?
CREATE TABLE table_name_95 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_95 WHERE loss = "wells (1-3)"
What date did Adriano Buzaid have the pole position?
CREATE TABLE table_21373283_3 (date VARCHAR, pole_position VARCHAR)
SELECT date FROM table_21373283_3 WHERE pole_position = "Adriano Buzaid"
What was the score in the 1st leg when Stade d'Abidjan was Team 2?
CREATE TABLE table_name_34 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "stade d'abidjan"
Who had the lowest Best time that also had a Qual 2 of 49.887?
CREATE TABLE table_name_13 (best INTEGER, qual_2 VARCHAR)
SELECT MIN(best) FROM table_name_13 WHERE qual_2 = "49.887"
What country does miguel ángel jiménez player for and has a score of 69?
CREATE TABLE table_name_50 (country VARCHAR, score VARCHAR, player VARCHAR)
SELECT country FROM table_name_50 WHERE score = 69 AND player = "miguel ángel jiménez"
When has an Opposing Team of mid-districts?
CREATE TABLE table_name_72 (date VARCHAR, opposing_team VARCHAR)
SELECT date FROM table_name_72 WHERE opposing_team = "mid-districts"
What is the lowest number of losses for Nottingham City with fewer than 0 wins?
CREATE TABLE table_name_28 (losses INTEGER, team VARCHAR, wins VARCHAR)
SELECT MIN(losses) FROM table_name_28 WHERE team = "nottingham city" AND wins < 0
which athlete played against Queensland?
CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR)
SELECT player FROM table_name_17 WHERE opponent = "queensland"
What average Year has Losses 4, and Wins less than 18, and Draws greater than 1?
CREATE TABLE table_name_24 (year INTEGER, draws VARCHAR, loses VARCHAR, wins VARCHAR)
SELECT AVG(year) FROM table_name_24 WHERE loses = 4 AND wins < 18 AND draws > 1
How much was solidv4 when pacbio is $300 usd?
CREATE TABLE table_127511_1 (solidv4 VARCHAR, pacbio VARCHAR)
SELECT solidv4 FROM table_127511_1 WHERE pacbio = "$300 USD"
What is the lowest round of the player from UCLA?
CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR)
SELECT MIN(round) FROM table_name_87 WHERE school_club_team = "ucla"
Name the venue for 27th position
CREATE TABLE table_name_1 (venue VARCHAR, position VARCHAR)
SELECT venue FROM table_name_1 WHERE position = "27th"
What tournament was at the 2007 Olympic Games?
CREATE TABLE table_name_91 (tournament VARCHAR)
SELECT tournament FROM table_name_91 WHERE 2007 = "olympic games"
Which projects have no outcome? List the project details.
CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)
SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_outcomes)
On what Date is West Ham United the Home team?
CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_35 WHERE home_team = "west ham united"
When 25 are willing to take risks, what is the experts view?
CREATE TABLE table_1855342_5 (experts_view INTEGER, willing_to_take_risks VARCHAR)
SELECT MIN(experts_view) FROM table_1855342_5 WHERE willing_to_take_risks = 25
Which stage had tabriz petrochemical team in the team classification?
CREATE TABLE table_name_68 (stage VARCHAR, team_classification VARCHAR)
SELECT stage FROM table_name_68 WHERE team_classification = "tabriz petrochemical team"
What was the airdate of the episode with a UK viewership of 6.02 million?
CREATE TABLE table_29063233_1 (original_air_date VARCHAR, uk_viewers__million_ VARCHAR)
SELECT original_air_date FROM table_29063233_1 WHERE uk_viewers__million_ = "6.02"
In which country is the city of Netanya?
CREATE TABLE table_14937957_1 (country VARCHAR, city VARCHAR)
SELECT country FROM table_14937957_1 WHERE city = "Netanya"
What is the record when the loss was to Alex Hunter in round 1?
CREATE TABLE table_name_75 (record VARCHAR, opponent VARCHAR, round VARCHAR, res VARCHAR)
SELECT record FROM table_name_75 WHERE round = "1" AND res = "loss" AND opponent = "alex hunter"
Peterson Gym is in what city?
CREATE TABLE table_name_60 (city VARCHAR, venue VARCHAR)
SELECT city FROM table_name_60 WHERE venue = "peterson gym"
What is Name, when Team is New York Knicks, and when WSU Year(s) is 1965-68?
CREATE TABLE table_name_8 (name VARCHAR, team VARCHAR, wsu_year_s_ VARCHAR)
SELECT name FROM table_name_8 WHERE team = "new york knicks" AND wsu_year_s_ = "1965-68"
When was the attendance less than 44,851 during the first 4 weeks of the season?
CREATE TABLE table_name_90 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_90 WHERE week < 4 AND attendance = "44,851"
What's the total wins of a team with more than 2 byes?
CREATE TABLE table_name_11 (wins VARCHAR, byes INTEGER)
SELECT COUNT(wins) FROM table_name_11 WHERE byes > 2
Name the area for District of córdoba
CREATE TABLE table_name_64 (area_province VARCHAR, district VARCHAR)
SELECT area_province FROM table_name_64 WHERE district = "córdoba"
what is the score when the surface is carpet (i) outcome is winner and the championship is rotterdam, netherlands?
CREATE TABLE table_name_43 (score VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT score FROM table_name_43 WHERE surface = "carpet (i)" AND outcome = "winner" AND championship = "rotterdam, netherlands"
Who is the opponent when the team is Cork?
CREATE TABLE table_name_32 (opposition VARCHAR, team VARCHAR)
SELECT opposition FROM table_name_32 WHERE team = "cork"
Name the candidates for texas 1
CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341690_43 WHERE district = "Texas 1"
Which Sydney's Melbourne was no, when Auckland was yes?
CREATE TABLE table_name_94 (sydney VARCHAR, melbourne VARCHAR, auckland VARCHAR)
SELECT sydney FROM table_name_94 WHERE melbourne = "no" AND auckland = "yes"
What school is located in Huntsville, Texas?
CREATE TABLE table_28243691_2 (institution VARCHAR, location VARCHAR)
SELECT institution FROM table_28243691_2 WHERE location = "Huntsville, Texas"
What is the Station Code of the Destination Station Departure?
CREATE TABLE table_name_37 (station_code VARCHAR, departure VARCHAR)
SELECT station_code FROM table_name_37 WHERE departure = "destination station"
What was the Score on November 10, 2007?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_76 WHERE date = "november 10, 2007"
Which date has a Week smaller than 14, and an Opponent of san francisco 49ers?
CREATE TABLE table_name_92 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_92 WHERE week < 14 AND opponent = "san francisco 49ers"
Who wrote episode number 149 in the series?
CREATE TABLE table_25277363_2 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_25277363_2 WHERE no_in_series = 149
What is the catalog number of Venus Demilo's A-side?
CREATE TABLE table_name_30 (catalog_number VARCHAR, a_side VARCHAR)
SELECT catalog_number FROM table_name_30 WHERE a_side = "venus demilo"
What is every value for Russian when value for Bulgarian is пес, куче?
CREATE TABLE table_25008327_8 (russian VARCHAR, bulgarian VARCHAR)
SELECT russian FROM table_25008327_8 WHERE bulgarian = "пес, куче"
Which Date has a Location/Attendance of verizon center 7,587?
CREATE TABLE table_name_66 (date VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_name_66 WHERE location_attendance = "verizon center 7,587"
What was the song choice when the theme was free choice and Adeleye made it through to bootcamp?
CREATE TABLE table_name_26 (song_choice VARCHAR, theme VARCHAR, result VARCHAR)
SELECT song_choice FROM table_name_26 WHERE theme = "free choice" AND result = "through to bootcamp"
What is Score, when Attendance is "76", and when Home Team is "Meir Ka"?
CREATE TABLE table_name_84 (score VARCHAR, attendance VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_84 WHERE attendance = "76" AND home_team = "meir ka"
Which Gold has a Silver of 7, and a Bronze smaller than 7?
CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT MIN(gold) FROM table_name_24 WHERE silver = 7 AND bronze < 7
Which country had a score of 72-67=139?
CREATE TABLE table_name_32 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_32 WHERE score = 72 - 67 = 139
When did the episode with production code 410 air?
CREATE TABLE table_11630008_6 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_11630008_6 WHERE production_code = 410
Tell me the lowest week for attendance of 60,894
CREATE TABLE table_name_37 (week INTEGER, attendance VARCHAR)
SELECT MIN(week) FROM table_name_37 WHERE attendance = "60,894"
Which launch date involved the Driade?
CREATE TABLE table_13537940_1 (launched VARCHAR, name VARCHAR)
SELECT launched FROM table_13537940_1 WHERE name = "Driade"
Who was Albino Buticchi's constructor?
CREATE TABLE table_name_53 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_53 WHERE driver = "albino buticchi"
What is the highest attendance a result of W 30-7?
CREATE TABLE table_name_57 (attendance INTEGER, result VARCHAR)
SELECT MAX(attendance) FROM table_name_57 WHERE result = "w 30-7"
What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0?
CREATE TABLE table_name_84 (her_age INTEGER, _number_of_children VARCHAR, his_age VARCHAR, name VARCHAR)
SELECT SUM(her_age) FROM table_name_84 WHERE his_age < 33 AND name = "diontha walker" AND _number_of_children < 0
Which parts have more than 2 faults? Show the part name and id.
CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR)
SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING COUNT(*) > 2
What is the Hanja for the sakju province?
CREATE TABLE table_name_78 (hanja VARCHAR, province VARCHAR)
SELECT hanja FROM table_name_78 WHERE province = "sakju"
Name the money for pádraig harrington
CREATE TABLE table_name_56 (money___£__ VARCHAR, player VARCHAR)
SELECT money___£__ FROM table_name_56 WHERE player = "pádraig harrington"
Which To par has a Score larger than 68?
CREATE TABLE table_name_42 (to_par VARCHAR, score INTEGER)
SELECT to_par FROM table_name_42 WHERE score > 68
What was the venue on 14 november 1998?
CREATE TABLE table_name_82 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_82 WHERE date = "14 november 1998"
What was the highest grid for a time/retired of +19.1 secs?
CREATE TABLE table_name_50 (grid INTEGER, time_retired VARCHAR)
SELECT MAX(grid) FROM table_name_50 WHERE time_retired = "+19.1 secs"
What frequency is the xfm station, which is part of the talk music genre?
CREATE TABLE table_name_71 (frequency VARCHAR, genre VARCHAR, station VARCHAR)
SELECT frequency FROM table_name_71 WHERE genre = "talk music" AND station = "xfm"
What is the 2011 when the 2010 is 8–4?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT 2011 FROM table_name_56 WHERE 2010 = "8–4"
What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?
CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR)
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55
What is the length for a diesel engine with numbers of tbd (13 buses)?
CREATE TABLE table_name_92 (length VARCHAR, engine_type VARCHAR, numbers VARCHAR)
SELECT length FROM table_name_92 WHERE engine_type = "diesel" AND numbers = "tbd (13 buses)"
Who was the home team that the Clippers played?
CREATE TABLE table_name_64 (home VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_64 WHERE visitor = "clippers"
How many different jockeys ran on 17 Feb 2007?
CREATE TABLE table_14981555_3 (jockey VARCHAR, date VARCHAR)
SELECT COUNT(jockey) FROM table_14981555_3 WHERE date = "17 Feb 2007"
What diagram built in 1962 has a lot number smaller than 30702?
CREATE TABLE table_name_4 (diagram INTEGER, built VARCHAR, lot_no VARCHAR)
SELECT MIN(diagram) FROM table_name_4 WHERE built = "1962" AND lot_no < 30702
Name the least games played for 6 points
CREATE TABLE table_27816332_2 (games_played INTEGER, total_points VARCHAR)
SELECT MIN(games_played) FROM table_27816332_2 WHERE total_points = 6
Which Format has a Frequency of 100.5 fm?
CREATE TABLE table_name_98 (format VARCHAR, frequency VARCHAR)
SELECT format FROM table_name_98 WHERE frequency = "100.5 fm"
What place was Mark Carnevale in?
CREATE TABLE table_name_32 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_32 WHERE player = "mark carnevale"
What is Score Points, when Event is "WC Rio De Janeiro", and when Rank Points is "10"?
CREATE TABLE table_name_12 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)
SELECT score_points FROM table_name_12 WHERE event = "wc rio de janeiro" AND rank_points = "10"
Which Date has a Record of 3-4?
CREATE TABLE table_name_54 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_54 WHERE record = "3-4"
Which position was played by the player wearing jersey number 40?
CREATE TABLE table_name_23 (position VARCHAR, jersey_number_s_ VARCHAR)
SELECT position FROM table_name_23 WHERE jersey_number_s_ = 40
what is the diameter (km) of the feature of latitude 23.0s
CREATE TABLE table_16799784_7 (diameter__km_ VARCHAR, latitude VARCHAR)
SELECT diameter__km_ FROM table_16799784_7 WHERE latitude = "23.0S"
How many different numbers of total dances are there for the couple ranked at number 6?
CREATE TABLE table_20424140_3 (number_of_dances VARCHAR, place VARCHAR)
SELECT COUNT(number_of_dances) FROM table_20424140_3 WHERE place = 6
what had a score of 70-71-68-72=281?
CREATE TABLE table_name_88 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_88 WHERE score = 70 - 71 - 68 - 72 = 281
What is the largest number Lost to david nalbandian with a Win Rate of 20%?
CREATE TABLE table_name_91 (lost INTEGER, win__percentage VARCHAR, opponent VARCHAR)
SELECT MAX(lost) FROM table_name_91 WHERE win__percentage = "20%" AND opponent = "david nalbandian"
Which opponent had a time of 1:26?
CREATE TABLE table_name_1 (opponent VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_1 WHERE time = "1:26"
What is the 1938 that has N/A for 1948?
CREATE TABLE table_name_49 (Id VARCHAR)
SELECT 1938 FROM table_name_49 WHERE 1948 = "n/a"
Name the entrant for year more than 1991 and chassis of lotus 109
CREATE TABLE table_name_92 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT entrant FROM table_name_92 WHERE year > 1991 AND chassis = "lotus 109"
Which Team 2 had a Team 1of joe public?
CREATE TABLE table_name_52 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_52 WHERE team_1 = "joe public"
What is the 3'utr sequence with a variant id of acd'6a 3?
CREATE TABLE table_14332822_1 (variant_id VARCHAR)
SELECT 3 AS ’utr_sequence FROM table_14332822_1 WHERE variant_id = "ACD'6A 3"
What was the result when the method was submission (kimura)?
CREATE TABLE table_name_72 (res VARCHAR, method VARCHAR)
SELECT res FROM table_name_72 WHERE method = "submission (kimura)"
What is the win percentage when there's more than 16 totals and less than 7 losses?
CREATE TABLE table_name_98 (_percentage_win VARCHAR, total VARCHAR, losses VARCHAR)
SELECT _percentage_win FROM table_name_98 WHERE total > 16 AND losses < 7
Name the goals with since less than 2007 and App(GS/Sub) of 97 (69/28)
CREATE TABLE table_name_57 (goals VARCHAR, since VARCHAR, app_gs_sub_ VARCHAR)
SELECT goals FROM table_name_57 WHERE since < 2007 AND app_gs_sub_ = "97 (69/28)"
Which Vote to Evict has a Vote to Save of 21.22%?
CREATE TABLE table_name_27 (vote_to_evict VARCHAR, vote_to_save VARCHAR)
SELECT vote_to_evict FROM table_name_27 WHERE vote_to_save = "21.22%"
What engine has the Mercedes AMG Petronas f1 team, and 93 points?
CREATE TABLE table_name_1 (engine VARCHAR, entrant VARCHAR, points VARCHAR)
SELECT engine FROM table_name_1 WHERE entrant = "mercedes amg petronas f1 team" AND points = "93"
Name the height of demond greene
CREATE TABLE table_23670057_6 (height__f_ VARCHAR, player VARCHAR)
SELECT height__f_ FROM table_23670057_6 WHERE player = "Demond Greene"
What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2?
CREATE TABLE table_name_97 (roll INTEGER, decile VARCHAR, authority VARCHAR, name VARCHAR)
SELECT MIN(roll) FROM table_name_97 WHERE authority = "state" AND name = "newfield park school" AND decile < 2
What is the team of Essendon's score in the game where they were the home team?
CREATE TABLE table_name_92 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_92 WHERE home_team = "essendon"
Who had the highest assists when the nuggets record was 2-4?
CREATE TABLE table_name_64 (high_assists VARCHAR, record VARCHAR)
SELECT high_assists FROM table_name_64 WHERE record = "2-4"
Name the density for 古田縣
CREATE TABLE table_2013618_1 (density VARCHAR, traditional VARCHAR)
SELECT density FROM table_2013618_1 WHERE traditional = "古田縣"
What is the length when the expected start of revenue is more than 2017?
CREATE TABLE table_name_62 (length VARCHAR, expected_start_of_revenue_services INTEGER)
SELECT length FROM table_name_62 WHERE expected_start_of_revenue_services > 2017
2013 of 4–4 is involved in what 2006?
CREATE TABLE table_name_59 (Id VARCHAR)
SELECT 2006 FROM table_name_59 WHERE 2013 = "4–4"
What is the lowest number of people attending the game where Colorado was the home team?
CREATE TABLE table_name_67 (attendance INTEGER, home VARCHAR)
SELECT MIN(attendance) FROM table_name_67 WHERE home = "colorado"
How many did alco -schenectady preserve of class b-3?
CREATE TABLE table_name_68 (quantity_preserved VARCHAR, manufacturer VARCHAR, class VARCHAR)
SELECT quantity_preserved FROM table_name_68 WHERE manufacturer = "alco -schenectady" AND class = "b-3"
how many college with player being rich voltzke
CREATE TABLE table_14655985_1 (college VARCHAR, player VARCHAR)
SELECT COUNT(college) FROM table_14655985_1 WHERE player = "Rich Voltzke"
who had all the high rebounds when high assists is by dwyane wade (9)
CREATE TABLE table_13762472_4 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT high_rebounds FROM table_13762472_4 WHERE high_assists = "Dwyane Wade (9)"
List all budget type codes and descriptions.
CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR)
SELECT budget_type_code, budget_type_description FROM Ref_budget_codes
What is the season number for Series #23, the Runway Job?
CREATE TABLE table_20704243_3 (season__number VARCHAR, series__number VARCHAR)
SELECT season__number FROM table_20704243_3 WHERE series__number = 23
What is the production code that had 24.8 million u.s. viewers?
CREATE TABLE table_27713890_1 (production_code INTEGER, us_viewers__millions_ VARCHAR)
SELECT MAX(production_code) FROM table_27713890_1 WHERE us_viewers__millions_ = "24.8"
When did the term end for the person who started their term on 28 November 1912?
CREATE TABLE table_name_89 (term_end VARCHAR, term_start VARCHAR)
SELECT term_end FROM table_name_89 WHERE term_start = "28 november 1912"