answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT year_s__won FROM table_name_5 WHERE to_par = "+2" AND finish = "t22"
What year (s) won was +2 the To par, and t22 the finish?
CREATE TABLE table_name_5 (year_s__won VARCHAR, to_par VARCHAR, finish VARCHAR)
SELECT date FROM table_name_78 WHERE venue = "kardinia park"
When was there a game at Kardinia Park?
CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR)
SELECT founded FROM table_2076490_1 WHERE enrollment__2005_ = "963"
What year is the founding year, for the school that had an enrollment in 2005 of 963?
CREATE TABLE table_2076490_1 (founded VARCHAR, enrollment__2005_ VARCHAR)
SELECT nation FROM table_19730892_1 WHERE name = "Jeff Barker"
Name the nation where jeff barker is from
CREATE TABLE table_19730892_1 (nation VARCHAR, name VARCHAR)
SELECT year FROM table_name_43 WHERE theme = "year of the pig"
What year was the year of the pig theme?
CREATE TABLE table_name_43 (year VARCHAR, theme VARCHAR)
SELECT points_for FROM table_name_62 WHERE points_against = "272"
What is the value of the item "Points" when the value of the item "Points against" is 272?
CREATE TABLE table_name_62 (points_for VARCHAR, points_against VARCHAR)
SELECT district FROM table_19753079_8 WHERE incumbent = "George Miller"
What district did George Miller belong to?
CREATE TABLE table_19753079_8 (district VARCHAR, incumbent VARCHAR)
SELECT MAX(laps) AS Led FROM table_name_26 WHERE grid < 4 AND fin_pos = 15
What is the highest Laps Led with a grid of less than 4 and a finishing position of 15?
CREATE TABLE table_name_26 (laps INTEGER, grid VARCHAR, fin_pos VARCHAR)
SELECT MAX(november) FROM table_name_55 WHERE opponent = "@ pittsburgh pirates" AND game > 3
What is the latest November date with an Opponent of @ Pittsburgh Pirates and the game is more than 3?
CREATE TABLE table_name_55 (november INTEGER, opponent VARCHAR, game VARCHAR)
SELECT away_team FROM table_name_34 WHERE home_team = "st kilda"
What was the away team when the home was st kilda?
CREATE TABLE table_name_34 (away_team VARCHAR, home_team VARCHAR)
SELECT team FROM table_name_69 WHERE location_attendance = "madison square garden unknown" AND high_points = "alonzo mourning (24)"
What is Team, when Location Attendance is "Madison Square Garden Unknown", and when High Points is "Alonzo Mourning (24)"?
CREATE TABLE table_name_69 (team VARCHAR, location_attendance VARCHAR, high_points VARCHAR)
SELECT away_team AS score FROM table_16388545_1 WHERE ground = "Telstra Stadium"
What was the away team's score of at the game of telstra stadium?
CREATE TABLE table_16388545_1 (away_team VARCHAR, ground VARCHAR)
SELECT winner FROM table_name_50 WHERE tournament = "majorca"
Name the winner for majorca
CREATE TABLE table_name_50 (winner VARCHAR, tournament VARCHAR)
SELECT flight FROM table_name_28 WHERE aircraft = "avro rj-100"
Which flight had the aircraft avro rj-100?
CREATE TABLE table_name_28 (flight VARCHAR, aircraft VARCHAR)
SELECT stadium FROM table_name_99 WHERE team = "san diego chargers"
What is the stadium of the san diego chargers?
CREATE TABLE table_name_99 (stadium VARCHAR, team VARCHAR)
SELECT semi_finalists FROM table_name_81 WHERE runner_up = "alexia dechaume-balleret sandrine testud"
Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up?
CREATE TABLE table_name_81 (semi_finalists VARCHAR, runner_up VARCHAR)
SELECT player FROM table_name_20 WHERE round > 2 AND position = "(d)"
What player has a round larger than 2, and position of (d)?
CREATE TABLE table_name_20 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT notes FROM table_name_69 WHERE event = "400 m" AND year < 2004 AND position = "12th (h)"
What was the notes of the 400 m event before 2004 with a position of 12th (h)?
CREATE TABLE table_name_69 (notes VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)
SELECT MAX(point_finishes__non_podium_) FROM table_2822193_1 WHERE series = "V8Supercar"
What's the most amount of point finishes for v8supercar?
CREATE TABLE table_2822193_1 (point_finishes__non_podium_ INTEGER, series VARCHAR)
SELECT original_airdate FROM table_26866519_1 WHERE season__number = 20
What are the original air date(s) for season episode 20?
CREATE TABLE table_26866519_1 (original_airdate VARCHAR, season__number VARCHAR)
SELECT episode FROM table_name_19 WHERE year = 2009 AND show = "dexter"
What is the Episode number of Ernest Dickerson in 2009 when the show was dexter?
CREATE TABLE table_name_19 (episode VARCHAR, year VARCHAR, show VARCHAR)
SELECT AVG(draw) FROM table_name_63 WHERE points < 68 AND artist = "loudest whisper" AND place > 9
What is the Draw number of the song by Artist of "Loudest Whisper" with 68 or less Points with a place of 9 or larger?
CREATE TABLE table_name_63 (draw INTEGER, place VARCHAR, points VARCHAR, artist VARCHAR)
SELECT team FROM table_name_19 WHERE completions = "42"
What was the team Vanderberg belonged to when there was 42 completions?
CREATE TABLE table_name_19 (team VARCHAR, completions VARCHAR)
SELECT MIN(losses) FROM table_14997324_5 WHERE team = "12 de Octubre"
How many losses did 12 de Octubre have ?
CREATE TABLE table_14997324_5 (losses INTEGER, team VARCHAR)
SELECT first_elected FROM table_1341930_24 WHERE incumbent = "John Bell Williams"
In what year was John Bell Williams first elected?
CREATE TABLE table_1341930_24 (first_elected VARCHAR, incumbent VARCHAR)
SELECT opponent FROM table_name_98 WHERE result = "0-3"
Which Opponent has a Result of 0-3?
CREATE TABLE table_name_98 (opponent VARCHAR, result VARCHAR)
SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn'
Which events id does not have any participant with detail 'Kenyatta Kuhn'?
CREATE TABLE Participants (Participant_ID VARCHAR); CREATE TABLE EVENTS (event_id VARCHAR, Participant_Details VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR, Participant_ID VARCHAR)
SELECT ba___running_bear FROM table_2603017_2 WHERE ab___angry_boar = "OS - Ox Soldier"
what is ba - running bear where ab - angry boar is os - ox soldier?
CREATE TABLE table_2603017_2 (ba___running_bear VARCHAR, ab___angry_boar VARCHAR)
SELECT version FROM table_27329061_2 WHERE codename = "Ada"
What is the version when the codename is ada?
CREATE TABLE table_27329061_2 (version VARCHAR, codename VARCHAR)
SELECT red_list FROM table_name_22 WHERE order = "artiodactyla" AND family = "cervidae" AND species_authority = "odocoileus virginianus zimmermann, 1780"
What red list is in the artiodactyla order and the cervidae family with a Species Authority of odocoileus virginianus zimmermann, 1780?
CREATE TABLE table_name_22 (red_list VARCHAR, species_authority VARCHAR, order VARCHAR, family VARCHAR)
SELECT date FROM table_name_3 WHERE result = "2–2" AND venue = "h"
Which Date has a Result of 2–2, and a Venue of H?
CREATE TABLE table_name_3 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT loss FROM table_name_60 WHERE date = "april 15"
what team lost on april 15
CREATE TABLE table_name_60 (loss VARCHAR, date VARCHAR)
SELECT year FROM table_name_53 WHERE position = "guard" AND name = "mario chalmers"
What year is guard Mario Chalmers?
CREATE TABLE table_name_53 (year VARCHAR, position VARCHAR, name VARCHAR)
SELECT date FROM table_name_26 WHERE home_team = "geelong"
When is the Geelong game?
CREATE TABLE table_name_26 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(capacity) FROM table_name_93 WHERE leagues = "b national - basketball"
What is the capacity for b national - basketball?
CREATE TABLE table_name_93 (capacity VARCHAR, leagues VARCHAR)
SELECT score FROM table_name_18 WHERE january > 21 AND points = 63
Which Score has a January larger than 21, and Points of 63?
CREATE TABLE table_name_18 (score VARCHAR, january VARCHAR, points VARCHAR)
SELECT date FROM table_name_76 WHERE runner_s__up = "ian poulter"
What date did Ian poulter become runner up?
CREATE TABLE table_name_76 (date VARCHAR, runner_s__up VARCHAR)
SELECT AVG(round) FROM table_name_79 WHERE position = "s" AND college = "mississippi" AND overall < 214
What is the average round of the s position player from the college of Mississippi and has an overall less than 214?
CREATE TABLE table_name_79 (round INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR)
SELECT school FROM table_11677100_3 WHERE player = "Kerry Wood"
What school does Kerry Wood play for?
CREATE TABLE table_11677100_3 (school VARCHAR, player VARCHAR)
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452
When was the order placed whose shipment tracking number is 3452? Give me the date.
CREATE TABLE shipments (order_id VARCHAR, shipment_tracking_number VARCHAR); CREATE TABLE orders (date_order_placed VARCHAR, order_id VARCHAR)
SELECT example FROM table_name_36 WHERE realization = "[ɐ]"
Name the example when the realization is [ɐ]
CREATE TABLE table_name_36 (example VARCHAR, realization VARCHAR)
SELECT score FROM table_name_72 WHERE record = "43-13"
What was the score when the Spurs' record was 43-13?
CREATE TABLE table_name_72 (score VARCHAR, record VARCHAR)
SELECT assets__billion_$_ FROM table_1682026_2 WHERE headquarters = "Brazil"
What are the assets for company who's headquarters are located in Brazil?
CREATE TABLE table_1682026_2 (assets__billion_$_ VARCHAR, headquarters VARCHAR)
SELECT athlete FROM table_name_30 WHERE rank < 17 AND total = "119"
Who had a rank under 17 with a total of 119?
CREATE TABLE table_name_30 (athlete VARCHAR, rank VARCHAR, total VARCHAR)
SELECT away_team AS score FROM table_name_3 WHERE away_team = "collingwood"
When collingwood played as the away team what did they score?
CREATE TABLE table_name_3 (away_team VARCHAR)
SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country HAVING COUNT(*) >= 2
What are the countries that have at least two perpetrators?
CREATE TABLE perpetrator (Country VARCHAR)
SELECT away_team AS score FROM table_name_33 WHERE home_team = "footscray"
During footscray's home match, who was the away team?
CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)
SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city_of_license = "portales, new mexico"
What is average frequency MHZ when is in portales, new mexico?
CREATE TABLE table_name_13 (frequency_mhz INTEGER, city_of_license VARCHAR)
SELECT location FROM table_name_83 WHERE time = "4:13.48"
Which Location has a Time of 4:13.48?
CREATE TABLE table_name_83 (location VARCHAR, time VARCHAR)
SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs"
List the names, color descriptions and product descriptions of products with category "Herbs".
CREATE TABLE Ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_name VARCHAR, product_description VARCHAR, color_code VARCHAR)
SELECT COUNT(total_points) FROM table_name_48 WHERE rank > 9 AND ppg_avg > 13.4
How many point totals are there that rank higher than 9 and have a PPG avg higher than 13.4?
CREATE TABLE table_name_48 (total_points VARCHAR, rank VARCHAR, ppg_avg VARCHAR)
SELECT AVG(silver) FROM table_name_66 WHERE total > 20
what is the average silver when the total is more than 20?
CREATE TABLE table_name_66 (silver INTEGER, total INTEGER)
SELECT COUNT(location) FROM table_11934032_1 WHERE station_number = "C03"
what is the total number of location where station number is c03
CREATE TABLE table_11934032_1 (location VARCHAR, station_number VARCHAR)
SELECT time FROM table_name_85 WHERE country = "belgium"
What time does Belgium have?
CREATE TABLE table_name_85 (time VARCHAR, country VARCHAR)
SELECT power FROM table_name_90 WHERE class = "a" AND identifier = "cboc-fm"
What is the power that belongs to Class A with an Identifier of CBOC-FM?
CREATE TABLE table_name_90 (power VARCHAR, class VARCHAR, identifier VARCHAR)
SELECT to_par FROM table_name_18 WHERE place = "t5" AND country = "united states"
What is To Par, when Place is "T5", and when Country is "United States"?
CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT primary_payload_s_ FROM table_14118521_1 WHERE launch_date = "July 8, 1994"
what's the primary payload(s) with launch date being july 8, 1994
CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, launch_date VARCHAR)
SELECT score_in_the_final FROM table_name_31 WHERE outcome = "winner" AND date = "3 august 2013"
Which Score in the final has an Outcome of winner, and a Date of 3 august 2013?
CREATE TABLE table_name_31 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT semifinalists FROM table_name_82 WHERE tournament = "hamburg"
WHO WAS THE SEMIFINALISTS FOR THE HAMBURG TOURNAMENT?
CREATE TABLE table_name_82 (semifinalists VARCHAR, tournament VARCHAR)
SELECT 2012 FROM table_name_51 WHERE 2009 = "1r" AND 2007 = "2r"
What is the value for 2012 when the value for 2009 is 1R and the vale for 2007 is 2R?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT score FROM table_name_44 WHERE date = "november 15, 2011"
What is the score of the match on November 15, 2011?
CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR)
SELECT place FROM table_name_46 WHERE to_par = "+3" AND score = 74 - 73 = 147
What is the Place when the To par was +3 and Score was 74-73=147?
CREATE TABLE table_name_46 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT tries_against FROM table_12828723_4 WHERE won = "14"
What is the tries against when the won is 14?
CREATE TABLE table_12828723_4 (tries_against VARCHAR, won VARCHAR)
SELECT MIN(1965) FROM table_name_38 WHERE 1962 = 0.35000000000000003 AND 1967 < 0.53
Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT socket FROM table_16729930_18 WHERE frequency = "1.3 GHz"
What is the socket for microprocessors with a frequency of 1.3 ghz?
CREATE TABLE table_16729930_18 (socket VARCHAR, frequency VARCHAR)
SELECT MAX(rank) FROM table_name_85 WHERE country = "palestinian territories"
Which highest rank belongs to the palestinian territories?
CREATE TABLE table_name_85 (rank INTEGER, country VARCHAR)
SELECT club FROM table_name_75 WHERE points_against = "556"
Which of the clubs had 556 points against?
CREATE TABLE table_name_75 (club VARCHAR, points_against VARCHAR)
SELECT TYPE, COUNT(*), SUM(enrollment) FROM institution GROUP BY TYPE
Show institution types, along with the number of institutions and total enrollment for each type.
CREATE TABLE institution (TYPE VARCHAR, enrollment INTEGER)
SELECT name FROM table_name_61 WHERE position = "g" AND team = "petron blaze boosters" AND year_retired = "2000"
Who was the player in Position G on the Petron Blaze Boosters and retired in 2000?
CREATE TABLE table_name_61 (name VARCHAR, year_retired VARCHAR, position VARCHAR, team VARCHAR)
SELECT label FROM table_name_94 WHERE format = "compact disc" AND region = "united kingdom"
What label is formatted as compact disc and has United Kingdom as its region?
CREATE TABLE table_name_94 (label VARCHAR, format VARCHAR, region VARCHAR)
SELECT result FROM table_name_38 WHERE week < 8 AND record = "2–3–2"
What was the result of the game with a record of 2–3–2 before week 8?
CREATE TABLE table_name_38 (result VARCHAR, week VARCHAR, record VARCHAR)
SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12
What is the lowest attendance for December 14, 1958 after week 12?
CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT height FROM table_name_80 WHERE home_town = "las vegas, nv"
What is the height of the player from Las Vegas, NV?
CREATE TABLE table_name_80 (height VARCHAR, home_town VARCHAR)
SELECT player FROM table_name_10 WHERE total > 285 AND to_par = "+14"
Which player has a total bigger than 285 and a to par of +14?
CREATE TABLE table_name_10 (player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT vehicle FROM table_20549371_3 WHERE epa_rated_highway_fuel_economy = "109 mpg-e"
What vehicle has an epa highway fuel economy of 109 mpg-e?
CREATE TABLE table_20549371_3 (vehicle VARCHAR, epa_rated_highway_fuel_economy VARCHAR)
SELECT record FROM table_27734286_6 WHERE game = 29
List records for game 29.
CREATE TABLE table_27734286_6 (record VARCHAR, game VARCHAR)
SELECT hosts FROM table_name_88 WHERE host_city = "bangkok" AND theme = "codehunters"
Who are the hosts from the event with a theme of codehunters and the host city of Bangkok?
CREATE TABLE table_name_88 (hosts VARCHAR, host_city VARCHAR, theme VARCHAR)
SELECT tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4–6, 3–6"
What Tournament has an Outcome of runner-up, and a Score of 4–6, 3–6?
CREATE TABLE table_name_41 (tournament VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT mon_22_aug FROM table_30058355_3 WHERE wed_24_aug = "22' 50.05 99.141mph"
What is every entry on Monday August 22 when the entry for Wednesday August 24 is 22' 50.05 99.141mph?
CREATE TABLE table_30058355_3 (mon_22_aug VARCHAR, wed_24_aug VARCHAR)
SELECT etymology FROM table_name_58 WHERE rank = 12
What Etymology ranked 12?
CREATE TABLE table_name_58 (etymology VARCHAR, rank VARCHAR)
SELECT venue FROM table_name_13 WHERE date = "october 16, 1996"
What was the venue on October 16, 1996?
CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR)
SELECT 1 AS st_leg FROM table_name_78 WHERE team_2 = "11 oktomvri"
What 1st leg has 11 oktomvri as team 2?
CREATE TABLE table_name_78 (team_2 VARCHAR)
SELECT pole_position FROM table_12161822_5 WHERE grand_prix = "Italian grand_prix"
who is the the pole position with grand prix being italian grand prix
CREATE TABLE table_12161822_5 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT elevator FROM table_name_21 WHERE elector = "giacomo colonna"
Who was the Elevator of Giacomo Colonna?
CREATE TABLE table_name_21 (elevator VARCHAR, elector VARCHAR)
SELECT record FROM table_name_59 WHERE round = "3" AND event = "afc: brazil 1"
What was his record at the AFC: Brazil 1 event that went 3 rounds?
CREATE TABLE table_name_59 (record VARCHAR, round VARCHAR, event VARCHAR)
SELECT MAX(series__number) FROM table_28019988_2 WHERE production_code = "BDF101"
What series number is the episode with production code bdf101?
CREATE TABLE table_28019988_2 (series__number INTEGER, production_code VARCHAR)
SELECT MAX(apps) FROM table_name_58 WHERE goals > 5
What is the highest Apps, when Goals are greater than 5?
CREATE TABLE table_name_58 (apps INTEGER, goals INTEGER)
SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20
Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?
CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR); CREATE TABLE driverstandings (driverid VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)
SELECT MIN(attendance) FROM table_name_68 WHERE home = "pittsburgh"
What was the lowest attendance at a game when Pittsburgh was the home team?
CREATE TABLE table_name_68 (attendance INTEGER, home VARCHAR)
SELECT time FROM table_name_30 WHERE record = "3-3"
What is the Time of the match with a Record of 3-3?
CREATE TABLE table_name_30 (time VARCHAR, record VARCHAR)
SELECT percentage_yield FROM table_222448_1 WHERE dpmo = "3.4"
What is the percentage yield for a DPMO of 3.4?
CREATE TABLE table_222448_1 (percentage_yield VARCHAR, dpmo VARCHAR)
SELECT result FROM table_name_98 WHERE method = "tko (low kicks)"
What is the result of the fight that had a tko (low kicks)?
CREATE TABLE table_name_98 (result VARCHAR, method VARCHAR)
SELECT orthodoxy FROM table_26173063_2 WHERE × = "wehdat"
What is orthodoxy when x is wehdat?
CREATE TABLE table_26173063_2 (orthodoxy VARCHAR, × VARCHAR)
SELECT date FROM table_name_73 WHERE injured = "21"
On what Date did the massacre result with 21 Injured?
CREATE TABLE table_name_73 (date VARCHAR, injured VARCHAR)
SELECT MIN(area__km²_) FROM table_name_55 WHERE population__2010_ = 7 OFFSET 616
Where is the lowest area with a population of 7,616?
CREATE TABLE table_name_55 (area__km²_ INTEGER, population__2010_ VARCHAR)
SELECT MAX(total) FROM table_name_83 WHERE silver > 1 AND nation = "russia" AND bronze > 6
What is the highest total medals of russia, which has more than 1 silver and more than 6 bronze medals?
CREATE TABLE table_name_83 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT composer_s_ FROM table_name_96 WHERE arranger_s_ = "banana boat" AND length = "4:25"
Who is/are the Composer(s), when the Arranger(s) is Banana Boat, and when the Length is 4:25?
CREATE TABLE table_name_96 (composer_s_ VARCHAR, arranger_s_ VARCHAR, length VARCHAR)
SELECT MIN(draws) FROM table_name_81 WHERE byes > 2
What is the lowest number of draws with more than 2 byes?
CREATE TABLE table_name_81 (draws INTEGER, byes INTEGER)
SELECT to_par FROM table_name_86 WHERE place = "t9" AND score = 72 - 67 = 139
What is the to par of the player with a t9 place and a score of 72-67=139?
CREATE TABLE table_name_86 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT class FROM table_name_57 WHERE weight = 203
Which Class has a Weight of 203?
CREATE TABLE table_name_57 (class VARCHAR, weight VARCHAR)