question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the IATA for San Francisco airport?
CREATE TABLE table_name_88 (iata VARCHAR, airport VARCHAR)
SELECT iata FROM table_name_88 WHERE airport = "san francisco airport"
Which Surface has a score of 7-5, 5-7, 6-3?
CREATE TABLE table_name_16 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_16 WHERE score = "7-5, 5-7, 6-3"
What is California State University, Hayward's new conference for Western Collegiate Lacrosse?
CREATE TABLE table_14976504_2 (new_conference VARCHAR, institution VARCHAR)
SELECT new_conference FROM table_14976504_2 WHERE institution = "California State University, Hayward"
What are the total number of Domestic Passengers of airports that contain the word "London".
CREATE TABLE airport (Domestic_Passengers INTEGER, Airport_Name VARCHAR)
SELECT SUM(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%"
Who was the lead when Jamie Meikle was the skip?
CREATE TABLE table_name_11 (lead VARCHAR, skip VARCHAR)
SELECT lead FROM table_name_11 WHERE skip = "jamie meikle"
What's the service number of the Pune Duronto train that departures at 21:35?
CREATE TABLE table_23477312_1 (service VARCHAR, train_name VARCHAR, departure VARCHAR)
SELECT service FROM table_23477312_1 WHERE train_name = "Pune Duronto" AND departure = "21:35"
Name the batting style for heath streak
CREATE TABLE table_name_57 (batting_style VARCHAR, player VARCHAR)
SELECT batting_style FROM table_name_57 WHERE player = "heath streak"
What date had a versus of source: cricinfo.com?
CREATE TABLE table_name_93 (date VARCHAR, versus VARCHAR)
SELECT date FROM table_name_93 WHERE versus = "source: cricinfo.com"
What is the total number of top-25 that has a top-10 smaller than 4 with 0 cuts?
CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR, cuts_made VARCHAR)
SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 < 4 AND cuts_made > 0
What Player is in Place 1?
CREATE TABLE table_name_27 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_27 WHERE place = "1"
Which CFL team did the player from British Columbia get drafted to
CREATE TABLE table_16441561_5 (cfl_team VARCHAR, college VARCHAR)
SELECT cfl_team FROM table_16441561_5 WHERE college = "British Columbia"
what team scored 5–5–1–1?
CREATE TABLE table_name_71 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_71 WHERE record = "5–5–1–1"
WHAT IS THE PLACE WITH A SCORE OF 67-70=137?
CREATE TABLE table_name_61 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_61 WHERE score = 67 - 70 = 137
Who won the $109 no limit hold'em w/rebuys [turbo]?
CREATE TABLE table_22050544_3 (winner VARCHAR, event VARCHAR)
SELECT winner FROM table_22050544_3 WHERE event = "$109 No Limit Hold'em w/rebuys [Turbo]"
What was Fredrik Jacobson's score?
CREATE TABLE table_name_88 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_88 WHERE player = "fredrik jacobson"
How many players born in USA are right-handed batters? That is, have the batter value 'R'.
CREATE TABLE player (birth_country VARCHAR, bats VARCHAR)
SELECT COUNT(*) FROM player WHERE birth_country = 'USA' AND bats = 'R'
What is the away team's score when footscray is the away team?
CREATE TABLE table_name_74 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_74 WHERE away_team = "footscray"
How many executions in persona have a number with known sentences of 2 (1543–1544)?
CREATE TABLE table_name_92 (executions_in_persona VARCHAR, number_of_autos_da_fΓ©_with_known_sentences VARCHAR)
SELECT executions_in_persona FROM table_name_92 WHERE number_of_autos_da_fΓ©_with_known_sentences = "2 (1543–1544)"
What was the attendance of the game that had a loss of Wolf (3-4)?
CREATE TABLE table_name_84 (attendance VARCHAR, loss VARCHAR)
SELECT attendance FROM table_name_84 WHERE loss = "wolf (3-4)"
Name the replaced by when outgoing manager is kent nielsen
CREATE TABLE table_17039232_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT replaced_by FROM table_17039232_3 WHERE outgoing_manager = "Kent Nielsen"
What is Expected End Date, when Target/Approach is Notes?
CREATE TABLE table_name_3 (expected_end_date VARCHAR, target_approach VARCHAR)
SELECT expected_end_date FROM table_name_3 WHERE target_approach = "notes"
How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2?
CREATE TABLE table_12834315_8 (barrel_length VARCHAR, rear_sight VARCHAR, barrel_profile VARCHAR)
SELECT barrel_length FROM table_12834315_8 WHERE rear_sight = "Weaver" AND barrel_profile = "A2"
How many tries for are there when 11 were won?
CREATE TABLE table_17625749_3 (tries_for VARCHAR, won VARCHAR)
SELECT tries_for FROM table_17625749_3 WHERE won = "11"
What was the result on week 6?
CREATE TABLE table_name_42 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_42 WHERE week = 6
What is Time, when Composer(s) is "Kyriakos Papadopoulos"?
CREATE TABLE table_name_32 (time VARCHAR, composer_s_ VARCHAR)
SELECT time FROM table_name_32 WHERE composer_s_ = "kyriakos papadopoulos"
What is Place, when Player is "John Cook"?
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_49 WHERE player = "john cook"
How many seasons in Tamil occur when the season in Sanskrit is Grishma?
CREATE TABLE table_1740431_3 (season_in_tamil VARCHAR, season_in_sanskrit VARCHAR)
SELECT COUNT(season_in_tamil) FROM table_1740431_3 WHERE season_in_sanskrit = "Grishma"
What was the competition on 13 November 2005?
CREATE TABLE table_name_6 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_6 WHERE date = "13 november 2005"
Which Played is the highest one that has a Lost smaller than 1, and a Difference of 6, and an Against larger than 2?
CREATE TABLE table_name_66 (played INTEGER, against VARCHAR, lost VARCHAR, difference VARCHAR)
SELECT MAX(played) FROM table_name_66 WHERE lost < 1 AND difference = "6" AND against > 2
what is the weekly rank for living when the air date is october 6, 2008?
CREATE TABLE table_name_96 (weekly_rank_for_living VARCHAR, air_date VARCHAR)
SELECT weekly_rank_for_living FROM table_name_96 WHERE air_date = "october 6, 2008"
What year shows as Runner-up of england (24 pts)?
CREATE TABLE table_name_6 (year VARCHAR, runner_up VARCHAR)
SELECT year FROM table_name_6 WHERE runner_up = "england (24 pts)"
What is the hometown of the players for de la salle high school
CREATE TABLE table_11677691_12 (hometown VARCHAR, school VARCHAR)
SELECT hometown FROM table_11677691_12 WHERE school = "De La Salle High school"
What is every candidate for the Cardiff Central constituency?
CREATE TABLE table_25818630_1 (candidate VARCHAR, constituency VARCHAR)
SELECT candidate FROM table_25818630_1 WHERE constituency = "Cardiff Central"
What club has 36 points?
CREATE TABLE table_13758945_1 (club VARCHAR, points VARCHAR)
SELECT club FROM table_13758945_1 WHERE points = "36"
Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.
CREATE TABLE visitor (name VARCHAR, Level_of_membership INTEGER, age VARCHAR)
SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC
Find the top 3 products which have the largest number of problems?
CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3
How many years did caroline lubrez win?
CREATE TABLE table_name_19 (year INTEGER, winner VARCHAR)
SELECT SUM(year) FROM table_name_19 WHERE winner = "caroline lubrez"
What racing club team made supercopa 1996?
CREATE TABLE table_name_14 (supercopa_1996 VARCHAR, team VARCHAR)
SELECT supercopa_1996 FROM table_name_14 WHERE team = "racing club"
Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?
CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR, series VARCHAR)
SELECT team FROM table_name_29 WHERE location_attendance = "staples center 18,997" AND series = "1–0"
What is Venue, when Against is less than 30, and when Opposing Team is New South Wales?
CREATE TABLE table_name_14 (venue VARCHAR, against VARCHAR, opposing_team VARCHAR)
SELECT venue FROM table_name_14 WHERE against < 30 AND opposing_team = "new south wales"
What is the per capita income for Fayette County?
CREATE TABLE table_1447085_1 (per_capita_income VARCHAR, county VARCHAR)
SELECT per_capita_income FROM table_1447085_1 WHERE county = "Fayette county"
Shawn Michaels entered the elimination chamber in what position?
CREATE TABLE table_name_86 (entered INTEGER, wrestler VARCHAR)
SELECT SUM(entered) FROM table_name_86 WHERE wrestler = "shawn michaels"
What district was Harold Earthman the incumbent in?
CREATE TABLE table_1342233_42 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342233_42 WHERE incumbent = "Harold Earthman"
What is the sum of the pick from texas a&i college with a round greater than 1?
CREATE TABLE table_name_3 (pick INTEGER, college VARCHAR, round VARCHAR)
SELECT SUM(pick) FROM table_name_3 WHERE college = "texas a&i" AND round > 1
What is the role in an original play, comedy in 1938?
CREATE TABLE table_name_77 (role VARCHAR, format_genre VARCHAR, year VARCHAR)
SELECT role FROM table_name_77 WHERE format_genre = "original play, comedy" AND year = 1938
What date did the T328 that entered service on 18 June 1956 re-enter service?
CREATE TABLE table_name_22 (re_entered_service__p_ VARCHAR, entered_service__t_ VARCHAR, pre_conversion VARCHAR)
SELECT re_entered_service__p_ FROM table_name_22 WHERE entered_service__t_ = "18 june 1956" AND pre_conversion = "t328"
Which Frequency MHz has a Call sign of k210dv?
CREATE TABLE table_name_35 (frequency_mhz INTEGER, call_sign VARCHAR)
SELECT MAX(frequency_mhz) FROM table_name_35 WHERE call_sign = "k210dv"
What is Set 2, when Date is May 31?
CREATE TABLE table_name_67 (set_2 VARCHAR, date VARCHAR)
SELECT set_2 FROM table_name_67 WHERE date = "may 31"
What was the score when the match was in the country of Scotland?
CREATE TABLE table_name_58 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_58 WHERE country = "scotland"
How many people live in ι“…ε±±εŽΏ?
CREATE TABLE table_1300525_1 (population INTEGER, simplified VARCHAR)
SELECT MAX(population) FROM table_1300525_1 WHERE simplified = "ι“…ε±±εŽΏ"
What is the Alpha 3 code for the area also known as FO?
CREATE TABLE table_222771_1 (alpha_3_code VARCHAR, alpha_2_code VARCHAR)
SELECT alpha_3_code FROM table_222771_1 WHERE alpha_2_code = "FO"
What is the earliest term limit for the senator who resides in Coshocton?
CREATE TABLE table_26129220_2 (term_limited INTEGER, residence VARCHAR)
SELECT MIN(term_limited) FROM table_26129220_2 WHERE residence = "Coshocton"
What was the result of the game held at the As-Salt venue?
CREATE TABLE table_name_28 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_28 WHERE venue = "as-salt"
What character does German voice actor Dirk Fenselau play?
CREATE TABLE table_name_63 (character VARCHAR, german_voice_actor VARCHAR)
SELECT character FROM table_name_63 WHERE german_voice_actor = "dirk fenselau"
What is the 2004 value with 2r in 1994?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 2004 FROM table_name_60 WHERE 1994 = "2r"
What was the attendance in week 6?
CREATE TABLE table_name_13 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_13 WHERE week = 6
What district is ruben hinojosa from?
CREATE TABLE table_1341453_45 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341453_45 WHERE incumbent = "Ruben Hinojosa"
What is the opening date of the musical at the adelphi theatre?
CREATE TABLE table_name_6 (opening_date VARCHAR, classification VARCHAR, theatre VARCHAR)
SELECT opening_date FROM table_name_6 WHERE classification = "musical" AND theatre = "adelphi theatre"
What is the To par of the Player from New Zealand who had a Score of 75-70=145?
CREATE TABLE table_name_51 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_51 WHERE score = 75 - 70 = 145 AND country = "new zealand"
What is the sum for every value of Decile in Clendon?
CREATE TABLE table_name_88 (decile INTEGER, suburb VARCHAR)
SELECT SUM(decile) FROM table_name_88 WHERE suburb = "clendon"
Name the most times contested for montgomeryshire
CREATE TABLE table_24329520_4 (times_contested INTEGER, county VARCHAR)
SELECT MAX(times_contested) FROM table_24329520_4 WHERE county = "Montgomeryshire"
What country is Bob Tway from?
CREATE TABLE table_name_93 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_93 WHERE player = "bob tway"
Who is the visitor when the record is 2-1?
CREATE TABLE table_name_95 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_95 WHERE record = "2-1"
Who was drafted by the calgary stampeders?
CREATE TABLE table_24540893_6 (player VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_24540893_6 WHERE cfl_team = "Calgary Stampeders"
What was the finish for the golfer with a total of 285?
CREATE TABLE table_name_4 (finish VARCHAR, total VARCHAR)
SELECT finish FROM table_name_4 WHERE total = 285
What is the type of the Leeds United source, winter transfer window and moving from Northampton town?
CREATE TABLE table_name_65 (type VARCHAR, moving_from VARCHAR, source VARCHAR, transfer_window VARCHAR)
SELECT type FROM table_name_65 WHERE source = "leeds united" AND transfer_window = "winter" AND moving_from = "northampton town"
What are the maximum and minimum share of performances whose type is not "Live final".
CREATE TABLE performance (SHARE INTEGER, TYPE VARCHAR)
SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> "Live final"
What contestant is 173 cm tall?
CREATE TABLE table_20754016_2 (contestant VARCHAR, height__cm_ VARCHAR)
SELECT contestant FROM table_20754016_2 WHERE height__cm_ = 173
What nationality has a pick greater than 129?
CREATE TABLE table_name_38 (nationality VARCHAR, pick INTEGER)
SELECT nationality FROM table_name_38 WHERE pick > 129
Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name.
CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR, StagePosition VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Der Kapitan" AND T1.StagePosition = "back"
Where is the headquarter located for the Annapolis Valley Regional School Board?
CREATE TABLE table_21514460_1 (headquarters VARCHAR, school_district VARCHAR)
SELECT headquarters FROM table_21514460_1 WHERE school_district = "Annapolis Valley Regional School Board"
When Giovanni Gaetano Orsini was the elector who was the elevator?
CREATE TABLE table_name_63 (elevator VARCHAR, elector VARCHAR)
SELECT elevator FROM table_name_63 WHERE elector = "giovanni gaetano orsini"
How many years was Pontiac the manufacturer for Joe Gibbs Racing?
CREATE TABLE table_2268216_1 (year VARCHAR, team VARCHAR, manufacturer VARCHAR)
SELECT COUNT(year) FROM table_2268216_1 WHERE team = "Joe Gibbs Racing" AND manufacturer = "Pontiac"
what day was the game in argentina
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_92 WHERE opponent = "argentina"
what is the year when the title is jotei?
CREATE TABLE table_name_38 (year INTEGER, title VARCHAR)
SELECT SUM(year) FROM table_name_38 WHERE title = "jotei"
What date did series number 32 premiere?
CREATE TABLE table_2667438_5 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT original_air_date FROM table_2667438_5 WHERE no_in_series = 32
What is the Surface of the match with a Score in the final of 5–7, 6–7 (2–7)?
CREATE TABLE table_name_86 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT surface FROM table_name_86 WHERE score_in_the_final = "5–7, 6–7 (2–7)"
Name the route number for rincon valley
CREATE TABLE table_25692955_1 (route_number VARCHAR, south_west_terminal VARCHAR)
SELECT route_number FROM table_25692955_1 WHERE south_west_terminal = "Rincon Valley"
What is the UK broadcast date of the episode with Ben Okri as the presenter?
CREATE TABLE table_name_87 (uk_broadcast_date VARCHAR, presenter VARCHAR)
SELECT uk_broadcast_date FROM table_name_87 WHERE presenter = "ben okri"
How many league cups have yeovil town as the club, with a league less than 16?
CREATE TABLE table_name_88 (league VARCHAR, club VARCHAR)
SELECT COUNT(league) AS Cup FROM table_name_88 WHERE club = "yeovil town" AND league < 16
Name the label with catalog of mhcl-20005
CREATE TABLE table_name_88 (label VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_88 WHERE catalog = "mhcl-20005"
Name the least wins for 6 points
CREATE TABLE table_name_69 (wins INTEGER, points VARCHAR)
SELECT MIN(wins) FROM table_name_69 WHERE points = 6
What was the home team with the away team of rushden & diamonds?
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_73 WHERE away_team = "rushden & diamonds"
What is the 2012 season in Esiliiga more than 4, and more than 0 titles?
CREATE TABLE table_name_87 (seasons_in_esiliiga VARCHAR, titles VARCHAR)
SELECT 2012 FROM table_name_87 WHERE seasons_in_esiliiga > 4 AND titles > 0
what is writtenand directed by shannon flynn?
CREATE TABLE table_24018430_3 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_24018430_3 WHERE directed_by = "Shannon Flynn"
Which Score has a To par larger than 17, and a Player of mike brady?
CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_7 WHERE to_par > 17 AND player = "mike brady"
What's the website for the yamagata international documentary film festival?
CREATE TABLE table_name_27 (website VARCHAR, name VARCHAR)
SELECT website FROM table_name_27 WHERE name = "yamagata international documentary film festival"
Which American Labor candidate ran against Democratic candidate Robert F. Wagner?
CREATE TABLE table_name_51 (american_labor_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT american_labor_ticket FROM table_name_51 WHERE democratic_ticket = "robert f. wagner"
When did the home team of Richmond play?
CREATE TABLE table_name_89 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_89 WHERE home_team = "richmond"
How many different winners both participated in the WTA Championships and were left handed?
CREATE TABLE matches (winner_name VARCHAR, tourney_name VARCHAR, winner_hand VARCHAR)
SELECT COUNT(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'
Which engine has daimler benz ag as an entrant?
CREATE TABLE table_name_7 (engine VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_7 WHERE entrant = "daimler benz ag"
Find the first name and age of the students who are playing both Football and Lacrosse.
CREATE TABLE Student (fname VARCHAR, age VARCHAR, StuID VARCHAR, SportName VARCHAR); CREATE TABLE Sportsinfo (fname VARCHAR, age VARCHAR, StuID VARCHAR, SportName VARCHAR)
SELECT fname, age FROM Student WHERE StuID IN (SELECT StuID FROM Sportsinfo WHERE SportName = "Football" INTERSECT SELECT StuID FROM Sportsinfo WHERE SportName = "Lacrosse")
Which mongolian has the province of municipality?
CREATE TABLE table_name_79 (mongolian VARCHAR, province VARCHAR)
SELECT mongolian FROM table_name_79 WHERE province = "municipality"
Who was the opponent on September 26, 2009?
CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_28 WHERE date = "september 26, 2009"
What is the average number of wins for Runcorn Highfield with more than 0 draws?
CREATE TABLE table_name_55 (wins INTEGER, team VARCHAR, draws VARCHAR)
SELECT AVG(wins) FROM table_name_55 WHERE team = "runcorn highfield" AND draws > 0
What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?
CREATE TABLE table_name_18 (cuts_made INTEGER, events VARCHAR, top_25 VARCHAR)
SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2
Which Rank has a Runner -up smaller than 0?
CREATE TABLE table_name_31 (rank INTEGER, runner__up INTEGER)
SELECT MAX(rank) FROM table_name_31 WHERE runner__up < 0
What was the 3rd Party in the Election of 1922?
CREATE TABLE table_name_35 (election VARCHAR)
SELECT 3 AS rd_party FROM table_name_35 WHERE election = "1922"
What round did Matt Clark play?
CREATE TABLE table_name_94 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_94 WHERE player = "matt clark"
What's the blood type of the member from the vision factory agency?
CREATE TABLE table_name_52 (blood_type VARCHAR, agency VARCHAR)
SELECT blood_type FROM table_name_52 WHERE agency = "vision factory"