answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT gold FROM table_name_50 WHERE bronze = "chinese taipei"
What country won gold in the year(s) that Chinese Taipei won bronze?
CREATE TABLE table_name_50 (gold VARCHAR, bronze VARCHAR)
SELECT attendance FROM table_name_56 WHERE location = "yankee stadium (i)" AND time = "3:00"
yankee stadium (i), and a Time of 3:00 has what attendance for this location?
CREATE TABLE table_name_56 (attendance VARCHAR, location VARCHAR, time VARCHAR)
SELECT year FROM table_20774360_2 WHERE standing = "9th"
Name the year for standing 9th
CREATE TABLE table_20774360_2 (year VARCHAR, standing VARCHAR)
SELECT callsign FROM table_17487395_1 WHERE frequency = "90.3MHz"
What is the call sign of the station with the frequency of 90.3mhz
CREATE TABLE table_17487395_1 (callsign VARCHAR, frequency VARCHAR)
SELECT event_2_truck_pull FROM table_24302700_6 WHERE event_4_fingals_fingers = "1 (5 in 33.84s)"
What is the score in the 2 truck pull of the player who got 1 (5 in 33.84s) in the 4 fingals fingers?
CREATE TABLE table_24302700_6 (event_2_truck_pull VARCHAR, event_4_fingals_fingers VARCHAR)
SELECT venue FROM table_name_59 WHERE away_team = "essendon"
In what venue was the hosted away team Essendon?
CREATE TABLE table_name_59 (venue VARCHAR, away_team VARCHAR)
SELECT COUNT(week) FROM table_name_12 WHERE attendance < 22 OFFSET 333
What Week had an Attendance smaller than 22,333?
CREATE TABLE table_name_12 (week VARCHAR, attendance INTEGER)
SELECT MIN(overall) FROM table_name_85 WHERE round = 6
What is the number that is the lowest overall for Round 6?
CREATE TABLE table_name_85 (overall INTEGER, round VARCHAR)
SELECT SUM(laps) FROM table_name_5 WHERE grid = 2
What is the total of laps with grid of 2
CREATE TABLE table_name_5 (laps INTEGER, grid VARCHAR)
SELECT MIN(year) FROM table_23259077_1 WHERE opponent_in_the_final = "Clark Graebner"
On what year did Newcombe first face Clark Graebner in a final match?
CREATE TABLE table_23259077_1 (year INTEGER, opponent_in_the_final VARCHAR)
SELECT AVG(2012) FROM table_name_19 WHERE 2013 < 8 AND 2011 = 7
What is the average number of participants in 2012 when there were less than 8 in 2013 and 7 in 2011?
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT COUNT(camera) FROM table_2583036_1 WHERE exposures = 53
how many times was the exposures 53?
CREATE TABLE table_2583036_1 (camera VARCHAR, exposures VARCHAR)
SELECT video FROM table_name_53 WHERE psip_short_name = "rt"
Which Video has a PSIP Short Name of rt?
CREATE TABLE table_name_53 (video VARCHAR, psip_short_name VARCHAR)
SELECT year FROM table_1939214_1 WHERE league = "USL PDL" AND regular_season = "2nd, Northeast"
In what year did the team compete in the 2nd, Northeast season of the USL PDL League?
CREATE TABLE table_1939214_1 (year VARCHAR, league VARCHAR, regular_season VARCHAR)
SELECT MIN(enrolment) FROM table_name_67 WHERE founded > 1995
What is the low enrolment for schools founded after 1995?
CREATE TABLE table_name_67 (enrolment INTEGER, founded INTEGER)
SELECT MAX(grid) FROM table_name_18 WHERE laps > 24
How many grids correspond to more than 24 laps?
CREATE TABLE table_name_18 (grid INTEGER, laps INTEGER)
SELECT artist FROM table_14977252_2 WHERE draw = 2
Name the artist of 2 draw
CREATE TABLE table_14977252_2 (artist VARCHAR, draw VARCHAR)
SELECT nation FROM table_name_13 WHERE total = 6
What is the nation for 6 total?
CREATE TABLE table_name_13 (nation VARCHAR, total VARCHAR)
SELECT payment_date FROM payments WHERE amount_paid > 300 OR payment_type_code = 'Check'
What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'
CREATE TABLE payments (payment_date VARCHAR, amount_paid VARCHAR, payment_type_code VARCHAR)
SELECT COUNT(points) FROM table_26454128_9 WHERE distance__metres_ = "41.05"
What is the total number of times points were listed when the distance was 41.05 metres?
CREATE TABLE table_26454128_9 (points VARCHAR, distance__metres_ VARCHAR)
SELECT venue FROM table_name_75 WHERE competition = "2009 gulf cup of nations"
What was the Venue of the 2009 Gulf Cup of Nations?
CREATE TABLE table_name_75 (venue VARCHAR, competition VARCHAR)
SELECT build_date FROM table_name_61 WHERE prr_class = "brs24"
What is the build date of the model with a PRR Class of brs24?
CREATE TABLE table_name_61 (build_date VARCHAR, prr_class VARCHAR)
SELECT competition FROM table_name_6 WHERE 2010 = "dnp"
Name the competition of 2010 of dnp
CREATE TABLE table_name_6 (competition VARCHAR)
SELECT dob FROM table_name_25 WHERE throws = "r" AND position = "c" AND first = "torey"
Which DOB has Throws of r, and a Position of c, and a First of torey?
CREATE TABLE table_name_25 (dob VARCHAR, first VARCHAR, throws VARCHAR, position VARCHAR)
SELECT COUNT(grid) FROM table_name_14 WHERE rider = "james toseland"
Tell me the total number of grid for rider of james toseland
CREATE TABLE table_name_14 (grid VARCHAR, rider VARCHAR)
SELECT successor FROM table_1652224_5 WHERE district = "Ohio 15th"
who was the successor for district ohio 15th?
CREATE TABLE table_1652224_5 (successor VARCHAR, district VARCHAR)
SELECT away_team FROM table_name_74 WHERE home_team = "sheffield united"
What is sheffield united's away team?
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
SELECT miles__km_ FROM table_22648285_1 WHERE race_time = "2:47:11"
How many miles were driven in the race where the winner finished in 2:47:11?
CREATE TABLE table_22648285_1 (miles__km_ VARCHAR, race_time VARCHAR)
SELECT MIN(pick) FROM table_name_3 WHERE team = "san diego chargers"
What is the lowest number pick from san diego chargers?
CREATE TABLE table_name_3 (pick INTEGER, team VARCHAR)
SELECT date__ddmmyyyy_ FROM table_229917_2 WHERE tail_number = "RA-85282"
When did the airplane with tail number RA-85282 crash?
CREATE TABLE table_229917_2 (date__ddmmyyyy_ VARCHAR, tail_number VARCHAR)
SELECT COUNT(week) FROM table_name_93 WHERE opponent = "minnesota vikings" AND attendance < 68 OFFSET 431
For the 1967 Cleveland Browns season what is the total number of times they played the Minnesota Vikings and had an atttendance smaller than 68,431?
CREATE TABLE table_name_93 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(place) FROM table_26427332_17 WHERE contestant = "Jacqueline Kohl"
How many entries are in the ranking for jacqueline kohl?
CREATE TABLE table_26427332_17 (place VARCHAR, contestant VARCHAR)
SELECT college FROM table_10812938_3 WHERE cfl_team = "Edmonton Eskimos (via Calgary)"
What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?
CREATE TABLE table_10812938_3 (college VARCHAR, cfl_team VARCHAR)
SELECT MIN(pick) FROM table_2840500_2 WHERE position = "Centre" AND nationality = "Czech Republic"
What is the minimum pick of a centre from the Czech Republic?
CREATE TABLE table_2840500_2 (pick INTEGER, position VARCHAR, nationality VARCHAR)
SELECT rose FROM table_name_60 WHERE productions = "1975 broadway revival"
Who was rose in the 1975 Broadway Revival?
CREATE TABLE table_name_60 (rose VARCHAR, productions VARCHAR)
SELECT country FROM table_name_80 WHERE player = "ernie els"
What country was Ernie Els from?
CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR)
SELECT record FROM table_name_38 WHERE time = "2:43"
The match that lasted 2:43 has what record?
CREATE TABLE table_name_38 (record VARCHAR, time VARCHAR)
SELECT meas_num FROM table_256286_19 WHERE _percentage_yes = "58.29%"
What numbered measure had a 58.29% yes%?
CREATE TABLE table_256286_19 (meas_num VARCHAR, _percentage_yes VARCHAR)
SELECT score FROM table_name_6 WHERE loss = "smith (2-4)"
The game with a loss of smith (2-4) ended with what score?
CREATE TABLE table_name_6 (score VARCHAR, loss VARCHAR)
SELECT MAX(rank) FROM table_23248420_1 WHERE population = 142900
When 142900 is the population what is the highest rank?
CREATE TABLE table_23248420_1 (rank INTEGER, population VARCHAR)
SELECT driver FROM table_21977704_1 WHERE engine = "Talbot L6"
Name the driver for talbot l6
CREATE TABLE table_21977704_1 (driver VARCHAR, engine VARCHAR)
SELECT COUNT(laps) FROM table_name_35 WHERE driver = "chuck stevenson" AND grid < 11
How many laps did Chuck Stevenson have with a grid of less than 11?
CREATE TABLE table_name_35 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT home FROM table_name_51 WHERE decision = "price" AND visitor = "new jersey devils"
What is the home team of the game with a price decision and the new jersey devils as the visitor team?
CREATE TABLE table_name_51 (home VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT year FROM table_name_30 WHERE event = "spanish grand prix" AND driver = "emerson fittipaldi"
What year was the Spanish Grand Prix where Emerson Fittipaldi drove?
CREATE TABLE table_name_30 (year VARCHAR, event VARCHAR, driver VARCHAR)
SELECT MAX(overall) FROM table_name_26 WHERE name = "daimon shelton" AND round > 6
Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?
CREATE TABLE table_name_26 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT candidates FROM table_2668336_19 WHERE incumbent = "William Wilson"
Who were the candidates in the election where william wilson was the incumbent?
CREATE TABLE table_2668336_19 (candidates VARCHAR, incumbent VARCHAR)
SELECT MIN(water__sqmi_) FROM table_name_2 WHERE land___sqmi__ > 34.864 AND township = "pierce" AND geo_id > 3800362460
What is the smallest amount of water having landmass over 34.864 sqmi, in Pierce township, with a GEO ID over 3800362460?
CREATE TABLE table_name_2 (water__sqmi_ INTEGER, geo_id VARCHAR, land___sqmi__ VARCHAR, township VARCHAR)
SELECT country FROM table_name_46 WHERE to_par = "–5"
What is the Country of the Player with a To par of –5?
CREATE TABLE table_name_46 (country VARCHAR, to_par VARCHAR)
SELECT first_elected FROM table_name_7 WHERE member = "h.b. higgins"
When was H.B. Higgins first elected?
CREATE TABLE table_name_7 (first_elected VARCHAR, member VARCHAR)
SELECT SUM(population_1961) FROM table_name_22 WHERE administrative_county = "west sussex" AND population_1891 < 120 OFFSET 952
What is the Population 1961 of West Sussex with a Population of 120,952 or less?
CREATE TABLE table_name_22 (population_1961 INTEGER, administrative_county VARCHAR, population_1891 VARCHAR)
SELECT series FROM table_name_58 WHERE f_laps = "4"
Which series has 4 f/laps?
CREATE TABLE table_name_58 (series VARCHAR, f_laps VARCHAR)
SELECT AVG(attendance) FROM table_name_54 WHERE round = "final"
What is the average Attendance for the final round?
CREATE TABLE table_name_54 (attendance INTEGER, round VARCHAR)
SELECT manufacturer FROM table_name_24 WHERE year_withdrawn > 1932
Who manufactured the vehicle withdrawn after 1932?
CREATE TABLE table_name_24 (manufacturer VARCHAR, year_withdrawn INTEGER)
SELECT high_points FROM table_27700530_15 WHERE date = "April 22"
Who had the most points and how many did they have on April 22?
CREATE TABLE table_27700530_15 (high_points VARCHAR, date VARCHAR)
SELECT MIN(week) FROM table_name_93 WHERE result = "l 13–10" AND date = "november 30, 1975" AND attendance > 44 OFFSET 982
What is the lowest Week when the result was l 13–10, November 30, 1975, with more than 44,982 people in attendance?
CREATE TABLE table_name_93 (week INTEGER, attendance VARCHAR, result VARCHAR, date VARCHAR)
SELECT MIN(no_in_series) FROM table_18335117_5 WHERE no_overall = 38
Name the number in series for number 38
CREATE TABLE table_18335117_5 (no_in_series INTEGER, no_overall VARCHAR)
SELECT opponent FROM table_name_58 WHERE time = "4:17"
Who was the opponent in the match that lasted 4:17?
CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = "No. 20 Oryx Dyson Racing"
Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing?
CREATE TABLE table_27743641_2 (lmp2_winning_driver VARCHAR, lmp1_winning_team VARCHAR)
SELECT grid FROM table_name_96 WHERE manufacturer = "ducati" AND laps < 22
What grid is Ducati with fewer than 22 laps?
CREATE TABLE table_name_96 (grid VARCHAR, manufacturer VARCHAR, laps VARCHAR)
SELECT player FROM table_name_52 WHERE score = 69 - 70 - 68 - 73 = 280
What player has 69-70-68-73=280 as the score?
CREATE TABLE table_name_52 (player VARCHAR, score VARCHAR)
SELECT game FROM table_name_65 WHERE record = "6-12-8"
What game has a 6-12-8 record?
CREATE TABLE table_name_65 (game VARCHAR, record VARCHAR)
SELECT song_title FROM table_13804825_2 WHERE artist = "Billy Vaughn"
what is the nme of the song performed by billy vaughn?
CREATE TABLE table_13804825_2 (song_title VARCHAR, artist VARCHAR)
SELECT player FROM table_name_45 WHERE to_par = "–4" AND score = 74 - 70 - 68 = 212
What is the Player that has a To standard of –4, and a Score of 74-70-68=212?
CREATE TABLE table_name_45 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT support_category FROM table_name_67 WHERE round = 9
Which Support Category had a Round score of 9?
CREATE TABLE table_name_67 (support_category VARCHAR, round VARCHAR)
SELECT away FROM table_name_98 WHERE time = "10:00"
What away game had a time of 10:00?
CREATE TABLE table_name_98 (away VARCHAR, time VARCHAR)
SELECT points AS defending FROM table_24431264_17 WHERE player = "Caroline Wozniacki"
List the total number of defense points for caroline wozniacki.
CREATE TABLE table_24431264_17 (points VARCHAR, player VARCHAR)
SELECT score FROM table_name_10 WHERE home_team = "orient"
What's the score when Orient was home?
CREATE TABLE table_name_10 (score VARCHAR, home_team VARCHAR)
SELECT coinage_metal FROM table_26336060_19 WHERE location = "Fribourg" AND denomination = "00005 5 francs"
What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?
CREATE TABLE table_26336060_19 (coinage_metal VARCHAR, location VARCHAR, denomination VARCHAR)
SELECT champion FROM table_name_46 WHERE location = "snellville, ga" AND year = "2006"
Who was the Champion in Snellville, GA in 2006?
CREATE TABLE table_name_46 (champion VARCHAR, location VARCHAR, year VARCHAR)
SELECT word FROM table_name_55 WHERE pronunciation_b = "*sɨks"
Name the word with pronunciation b of *sɨks
CREATE TABLE table_name_55 (word VARCHAR, pronunciation_b VARCHAR)
SELECT original_us_tour_cast FROM table_name_75 WHERE original_broadway_cast = "kevin chamberlin"
What was the original US Tour cast when the original broadway was Kevin Chamberlin?
CREATE TABLE table_name_75 (original_us_tour_cast VARCHAR, original_broadway_cast VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE home_team = "st kilda"
If the Home team was st kilda, what was the score of the Away team they played?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26"
What are the ids of the problems which are reported after 1978-06-26?
CREATE TABLE problems (problem_id VARCHAR, date_problem_reported INTEGER)
SELECT AVG(age) FROM Dogs
What is the average age of all the dogs?
CREATE TABLE Dogs (age INTEGER)
SELECT mult FROM table_name_3 WHERE socket = "fcbga1088" AND voltage = "1v" AND part_number_s_ = "nu80579ez600cnu80579ez600ct"
Socket of fcbga1088, and a Voltage of 1v, and a Part number(s) of nu80579ez600cnu80579ez600ct is what mult?
CREATE TABLE table_name_3 (mult VARCHAR, part_number_s_ VARCHAR, socket VARCHAR, voltage VARCHAR)
SELECT MAX(ends_won) FROM table_name_4 WHERE ends_lost = 47 AND shot__percentage < 73
What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73?
CREATE TABLE table_name_4 (ends_won INTEGER, ends_lost VARCHAR, shot__percentage VARCHAR)
SELECT MIN(laps) FROM table_name_35 WHERE time_retired = "accident"
What is the low lap total that has a Time or Retired of accident?
CREATE TABLE table_name_35 (laps INTEGER, time_retired VARCHAR)
SELECT COUNT(episode) FROM table_15739098_1 WHERE story = "Alan Nourse"
Name the number of episodes for alan nourse
CREATE TABLE table_15739098_1 (episode VARCHAR, story VARCHAR)
SELECT COUNT(date) FROM table_23184448_3 WHERE location = "Cedar Falls, Iowa"
On how many different dates did the team play a game in Cedar Falls, Iowa?
CREATE TABLE table_23184448_3 (date VARCHAR, location VARCHAR)
SELECT webkit_version FROM table_24257833_4 WHERE minor_version = "3.1.2"
What is the webkit version when the minor version was 3.1.2.?
CREATE TABLE table_24257833_4 (webkit_version VARCHAR, minor_version VARCHAR)
SELECT venue FROM table_name_25 WHERE away_team = "melbourne"
What is the venue when melbourne is the away team?
CREATE TABLE table_name_25 (venue VARCHAR, away_team VARCHAR)
SELECT 2013 FROM table_name_9 WHERE 2011 = "1r"
Name the 2013 for 2011 of 1r
CREATE TABLE table_name_9 (Id VARCHAR)
SELECT brigade FROM table_name_7 WHERE name = "al-bira"
What is the brigade when Al-Bira is the name?
CREATE TABLE table_name_7 (brigade VARCHAR, name VARCHAR)
SELECT test_taker FROM table_10749367_3 WHERE challenge = "Night Driving"
Who had the challenge of night driving?
CREATE TABLE table_10749367_3 (test_taker VARCHAR, challenge VARCHAR)
SELECT COUNT(to_par) FROM table_name_42 WHERE country = "united states" AND money___$__ = 90
How much To par has a Country of united states, and a Money ($) of 90?
CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, money___$__ VARCHAR)
SELECT grid FROM table_name_54 WHERE laps = 78 AND driver = "ronnie bremer"
What grid has 78 laps, and Ronnie Bremer as driver?
CREATE TABLE table_name_54 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT drawn FROM table_13741576_4 WHERE club = "Llandaff RFC"
Name the drawn for llandaff rfc
CREATE TABLE table_13741576_4 (drawn VARCHAR, club VARCHAR)
SELECT COUNT(rank) FROM table_name_18 WHERE total < 5 AND bronze < 0
What is the total rank where the total is less than 5, and bronze is less than 0?
CREATE TABLE table_name_18 (rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT competition FROM table_name_88 WHERE score = "4-0"
Which competition has 4-0 as the score?
CREATE TABLE table_name_88 (competition VARCHAR, score VARCHAR)
SELECT rapid FROM table_name_91 WHERE distance__km_ < 14.2 AND station = "kōmyōji"
Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji?
CREATE TABLE table_name_91 (rapid VARCHAR, distance__km_ VARCHAR, station VARCHAR)
SELECT MIN(mintage) FROM table_name_9 WHERE artist = "royal canadian mint engravers" AND issue_price = "$10,199.95" AND year > 2009
What is the lowest Mintage for the Artist Royal Canadian Mint Engravers, in the Year 2009, with an Issue Price of $10,199.95?
CREATE TABLE table_name_9 (mintage INTEGER, year VARCHAR, artist VARCHAR, issue_price VARCHAR)
SELECT nomination FROM table_10236830_4 WHERE director = "Srdjan Dragojevic"
Srdjan Dragojevic worked on a film which earned what nomination?
CREATE TABLE table_10236830_4 (nomination VARCHAR, director VARCHAR)
SELECT COUNT(ties) FROM table_name_3 WHERE win__percentage > 0 AND tenure = "2001-2011" AND lost > 16
I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16
CREATE TABLE table_name_3 (ties VARCHAR, lost VARCHAR, win__percentage VARCHAR, tenure VARCHAR)
SELECT AVG(attendance) FROM table_name_85 WHERE opponent = "dunfermline athletic"
Can you tell me the average Attendance rhat has the Opponent of dunfermline athletic?
CREATE TABLE table_name_85 (attendance INTEGER, opponent VARCHAR)
SELECT COUNT(DISTINCT u_id) FROM review
How many different users wrote some reviews?
CREATE TABLE review (u_id VARCHAR)
SELECT name FROM table_name_6 WHERE heat > 4 AND nationality = "germany" AND lane = 7
Who has more than 4 heat for Germany and 7 lanes?
CREATE TABLE table_name_6 (name VARCHAR, lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT episode AS Summary FROM table_2140071_12 WHERE coach = "Torae Carr"
Name the episode summary for torae carr
CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR)
SELECT MIN(rank) FROM table_name_76 WHERE gross = "$26,010,864"
What was the film that grossed $26,010,864 ranked?
CREATE TABLE table_name_76 (rank INTEGER, gross VARCHAR)
SELECT date FROM table_name_94 WHERE venue = "adelaide oval"
When has a Venue of Adelaide Oval?
CREATE TABLE table_name_94 (date VARCHAR, venue VARCHAR)
SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 21
What season had a downhill of 35 and overall greater than 21?
CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR)