answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT winner FROM table_name_12 WHERE location = "iowa"
Which winner had a location of Iowa?
CREATE TABLE table_name_12 (winner VARCHAR, location VARCHAR)
SELECT office FROM table_name_28 WHERE conservative_ticket = "kieran o'doherty"
Which office has kieran o'doherty as the conservative ticket?
CREATE TABLE table_name_28 (office VARCHAR, conservative_ticket VARCHAR)
SELECT gender FROM TEACHERS WHERE last_name = "Medhurst"
What is the gender of the teacher with last name "Medhurst"?
CREATE TABLE TEACHERS (gender VARCHAR, last_name VARCHAR)
SELECT final_score FROM table_name_40 WHERE opponent = "atlético choloma"
What was the final score when the opponent was Atlético Choloma?
CREATE TABLE table_name_40 (final_score VARCHAR, opponent VARCHAR)
SELECT 2013 FROM table_name_8 WHERE 2010 = "q2"
What was the result in 2013 in the tournament whose 2010 result was q2?
CREATE TABLE table_name_8 (Id VARCHAR)
SELECT driver FROM table_name_86 WHERE time_retired = "+1.027"
What Driver has a +1.027 Time/Retired?
CREATE TABLE table_name_86 (driver VARCHAR, time_retired VARCHAR)
SELECT time FROM table_name_62 WHERE group = "g2" AND race = "hobartville stakes"
What was the time for the G2 group at the Hobartville Stakes?
CREATE TABLE table_name_62 (time VARCHAR, group VARCHAR, race VARCHAR)
SELECT plaid_cymru FROM table_name_77 WHERE polling_organisation_client = "yougov/itv wales" AND date_s__conducted = "4 may 2011"
I want the plaid cymru for Polling organisation/client of yougov/itv wales for 4 may 2011
CREATE TABLE table_name_77 (plaid_cymru VARCHAR, polling_organisation_client VARCHAR, date_s__conducted VARCHAR)
SELECT home_captain FROM table_name_14 WHERE venue = "the oval"
Name the Home captain for venue of the oval
CREATE TABLE table_name_14 (home_captain VARCHAR, venue VARCHAR)
SELECT record FROM table_name_22 WHERE attendance = "21,191"
What was the Record at the game that had an attendance of 21,191?
CREATE TABLE table_name_22 (record VARCHAR, attendance VARCHAR)
SELECT COUNT(roleplay) FROM table_17827271_1 WHERE flatspin = "Tracy Taylor"
How many RolePlay actors played the same role as FlatSpin's Tracy Taylor?
CREATE TABLE table_17827271_1 (roleplay VARCHAR, flatspin VARCHAR)
SELECT MAX(episode_number) FROM table_1590967_2 WHERE air_date = "6 January 2006"
Name the most episode numbers of 6 january 2006
CREATE TABLE table_1590967_2 (episode_number INTEGER, air_date VARCHAR)
SELECT player FROM table_28846752_9 WHERE economy = "6.14"
Who is the player when the economy is 6.14?
CREATE TABLE table_28846752_9 (player VARCHAR, economy VARCHAR)
SELECT MIN(season) FROM table_name_52 WHERE races = "6" AND series = "all-japan gt championship" AND wins = "2"
What is the smallest season with 6 races, 2 wins, and a Series of all-japan gt championship>
CREATE TABLE table_name_52 (season INTEGER, wins VARCHAR, races VARCHAR, series VARCHAR)
SELECT score FROM table_name_26 WHERE partnering = "alexander waske" AND opponents_in_the_final = "rafael nadal bartolomé salvá-vidal"
What is Score, when Partnering is "Alexander Waske", and when Opponents In The Final is "Rafael Nadal Bartolomé Salvá-Vidal"?
CREATE TABLE table_name_26 (score VARCHAR, partnering VARCHAR, opponents_in_the_final VARCHAR)
SELECT COUNT(game) FROM table_name_38 WHERE score = "2–6" AND points > 62
How many Games have a Score of 2–6, and Points larger than 62?
CREATE TABLE table_name_38 (game VARCHAR, score VARCHAR, points VARCHAR)
SELECT venue FROM table_name_13 WHERE home_team = "south melbourne"
Where was South Melbourne played?
CREATE TABLE table_name_13 (venue VARCHAR, home_team VARCHAR)
SELECT pens FROM table_name_80 WHERE player = "siaosi atiola"
How many pens does Siaosi Atiola have?
CREATE TABLE table_name_80 (pens VARCHAR, player VARCHAR)
SELECT weeks_3_4 FROM table_name_11 WHERE name = "zach"
what week had a player named zach
CREATE TABLE table_name_11 (weeks_3_4 VARCHAR, name VARCHAR)
SELECT year FROM table_name_51 WHERE venue = "landshut"
What year was the venue Landshut?
CREATE TABLE table_name_51 (year VARCHAR, venue VARCHAR)
SELECT high_rebounds FROM table_name_14 WHERE location_attendance = "time warner cable arena 10,848"
What is High Rebounds, when Location Attendance is "Time Warner Cable Arena 10,848"?
CREATE TABLE table_name_14 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT target_city__market FROM table_2709_4 WHERE call_sign = "KLRJ"
What is the market for KLRJ?
CREATE TABLE table_2709_4 (target_city__market VARCHAR, call_sign VARCHAR)
SELECT week FROM table_name_63 WHERE date = "december 4, 1960"
Which Week had a Date of december 4, 1960?
CREATE TABLE table_name_63 (week VARCHAR, date VARCHAR)
SELECT AirportCode, AirportName FROM AIRPORTS WHERE city = "Anthony"
List the airport code and name in the city of Anthony.
CREATE TABLE AIRPORTS (AirportCode VARCHAR, AirportName VARCHAR, city VARCHAR)
SELECT MIN(bronze) FROM table_name_71 WHERE gold = 2 AND total > 6
What is the lowest number of bronze medals for nations with over 6 total and 2 golds?
CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, total VARCHAR)
SELECT season FROM table_name_21 WHERE pos = "1st" AND pld = "33" AND pts = "58"
What season had 1st position, 33 pld, and 58 points?
CREATE TABLE table_name_21 (season VARCHAR, pts VARCHAR, pos VARCHAR, pld VARCHAR)
SELECT competition FROM table_name_79 WHERE draws = 2
Which competition had 2 draws?
CREATE TABLE table_name_79 (competition VARCHAR, draws VARCHAR)
SELECT method FROM table_name_98 WHERE round = 1 AND time = "0:28"
Which Method has a Round of 1, and a Time of 0:28?
CREATE TABLE table_name_98 (method VARCHAR, round VARCHAR, time VARCHAR)
SELECT iata FROM table_name_33 WHERE airport = "korla airport"
What is the IATA for Korla Airport.
CREATE TABLE table_name_33 (iata VARCHAR, airport VARCHAR)
SELECT term_start FROM table_name_61 WHERE name = "ismail qemali bej"
When did Ismail Qemali Bej's term start?
CREATE TABLE table_name_61 (term_start VARCHAR, name VARCHAR)
SELECT Giant AS slalom FROM table_name_94 WHERE super_g = "37"
What is the giant slalom with a 37 super g?
CREATE TABLE table_name_94 (Giant VARCHAR, super_g VARCHAR)
SELECT official_itv1_rating FROM table_name_96 WHERE episode = "auditions 4"
What is the Official ITV1 rating for auditions 4?
CREATE TABLE table_name_96 (official_itv1_rating VARCHAR, episode VARCHAR)
SELECT T4.crs_description, T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'
What are the description and credit of the course which the student whose last name is Smithson took?
CREATE TABLE student (stu_num VARCHAR, stu_lname VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_credit VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR)
SELECT nominated_work_title FROM table_name_52 WHERE result = "won" AND organisation = "star awards" AND award = "top 10 most popular female artiste" AND year > 2007
what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?
CREATE TABLE table_name_52 (nominated_work_title VARCHAR, year VARCHAR, award VARCHAR, result VARCHAR, organisation VARCHAR)
SELECT losing_bonus FROM table_12792876_4 WHERE tries_for = "27"
Name the losing bonus for 27
CREATE TABLE table_12792876_4 (losing_bonus VARCHAR, tries_for VARCHAR)
SELECT nba_draft FROM table_name_61 WHERE school = "dunbar high school"
What is the NBA draft result of the player from Dunbar High School?
CREATE TABLE table_name_61 (nba_draft VARCHAR, school VARCHAR)
SELECT monarch FROM table_name_60 WHERE status = "succession unclear 1100-1103"
Which Monarch has succession unclear 1100-1103 as his Status?
CREATE TABLE table_name_60 (monarch VARCHAR, status VARCHAR)
SELECT MAX(drawn) FROM table_name_50 WHERE position = 12
What is the highest number drawn when the position was 12?
CREATE TABLE table_name_50 (drawn INTEGER, position VARCHAR)
SELECT filename_extension FROM table_name_26 WHERE word_wrap_support = "yes" AND open_standard = "no" AND interactivity_support = "yes"
Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes?
CREATE TABLE table_name_26 (filename_extension VARCHAR, interactivity_support VARCHAR, word_wrap_support VARCHAR, open_standard VARCHAR)
SELECT conv FROM table_name_49 WHERE pens = "0" AND player = "severo koroduadua waqanibau"
How many conversions did Severo Koroduadua Waqanibau have when he has 0 pens?
CREATE TABLE table_name_49 (conv VARCHAR, pens VARCHAR, player VARCHAR)
SELECT attendance FROM table_name_48 WHERE home_team = "shrewsbury town"
What is the attendance date of the game home team Shrewsbury Town played?
CREATE TABLE table_name_48 (attendance VARCHAR, home_team VARCHAR)
SELECT railway_number_s_ FROM table_name_68 WHERE class = "t 4 ii"
What is the railway number of t 4 ii class?
CREATE TABLE table_name_68 (railway_number_s_ VARCHAR, class VARCHAR)
SELECT visitor FROM table_name_14 WHERE home = "pittsburgh penguins" AND time = "7:00 pm" AND record = "0-2-2"
Who was the visitor at the pittsburgh penguins at 7:00 pm that had a record of 0-2-2?
CREATE TABLE table_name_14 (visitor VARCHAR, record VARCHAR, home VARCHAR, time VARCHAR)
SELECT MIN(w) FROM table_16922657_2
What is the minimum Wins a team has?
CREATE TABLE table_16922657_2 (w INTEGER)
SELECT narrated_by FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping"
Name the narraed by for beluga shipping
CREATE TABLE table_26168687_5 (narrated_by VARCHAR, vessel_operator VARCHAR)
SELECT MIN(figures) FROM table_name_24 WHERE free = 556
What is the lowest figure score when the free is 556?
CREATE TABLE table_name_24 (figures INTEGER, free 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 record FROM table_name_11 WHERE location = "boston garden" AND date = "wed. dec. 5"
What was their record on Wed. Dec. 5, when they played in Boston Garden?
CREATE TABLE table_name_11 (record VARCHAR, location VARCHAR, date 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 d_41_√ FROM table_name_17 WHERE d_44_o = "r 13"
Name the D 41 √ with D 44 O of r 13
CREATE TABLE table_name_17 (d_41_√ VARCHAR, d_44_o VARCHAR)
SELECT opponent FROM table_name_60 WHERE date = "april 27"
Name the opponent on april 27
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR)
SELECT AVG(quantity) FROM table_name_85 WHERE drg_number_s_ = "99 011"
What is average quantity, when DRG number is 99 011?
CREATE TABLE table_name_85 (quantity INTEGER, drg_number_s_ VARCHAR)
SELECT opponent FROM table_name_1 WHERE time = "1:26"
Which opponent had a time of 1:26?
CREATE TABLE table_name_1 (opponent VARCHAR, time VARCHAR)
SELECT surface FROM table_name_45 WHERE date < 1979 AND opponent_in_the_final = "bill scanlon"
What is Surface, when Date is less than 1979, and when Opponent in the Final is "Bill Scanlon"?
CREATE TABLE table_name_45 (surface VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR)
SELECT player FROM table_name_54 WHERE round < 2
Which player has fewer than 2 rounds?
CREATE TABLE table_name_54 (player VARCHAR, round INTEGER)
SELECT outcome FROM table_name_73 WHERE year = 1973 AND surface = "clay"
What was the result in 1973 when the surface was clay?
CREATE TABLE table_name_73 (outcome VARCHAR, year VARCHAR, surface VARCHAR)
SELECT ihsaa_class FROM table_name_98 WHERE school = "crown point"
What is the IHSAA class for Crown Point?
CREATE TABLE table_name_98 (ihsaa_class VARCHAR, school VARCHAR)
SELECT replaced_by FROM table_name_66 WHERE outgoing_manager = "ünal karaman"
What is Replaced By, when Outgoing Manager is "Ünal Karaman"?
CREATE TABLE table_name_66 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT surface FROM table_name_65 WHERE score = "6–4, 6–2"
Which Surface has a Score of 6–4, 6–2?
CREATE TABLE table_name_65 (surface VARCHAR, score VARCHAR)
SELECT 2006 FROM table_name_27 WHERE 2005 = "grand slam tournaments"
What 2006 has grand slam tournaments of 2005?
CREATE TABLE table_name_27 (Id VARCHAR)
SELECT visitor FROM table_name_95 WHERE record = "2-1"
Who is the visitor when the record is 2-1?
CREATE TABLE table_name_95 (visitor VARCHAR, record VARCHAR)
SELECT MIN(points_for) FROM table_26200568_16 WHERE club = "Toronto Downtown Dingos"
How many points did the Toronto Downtown Dingos score?
CREATE TABLE table_26200568_16 (points_for INTEGER, club VARCHAR)
SELECT type FROM table_1184344_1 WHERE name = "Sussex"
What was the type of sussex?
CREATE TABLE table_1184344_1 (type VARCHAR, name VARCHAR)
SELECT MAX(international_mail) FROM table_name_45 WHERE change = "+0,2%" AND domestic_mail < 0
What is the international mail with the highest number that has a change of +0,2% and less than 0 domestic mail?
CREATE TABLE table_name_45 (international_mail INTEGER, change VARCHAR, domestic_mail VARCHAR)
SELECT MIN(pick) FROM table_1013129_1 WHERE player = "Brett Lindros"
What is the smallest pick for the player, brett lindros?
CREATE TABLE table_1013129_1 (pick INTEGER, player VARCHAR)
SELECT flight_up FROM table_245800_2 WHERE launch_date = "23 July 1980 18:33:03"
What station was sent on flight up and was launched on 23 July 1980 18:33:03?
CREATE TABLE table_245800_2 (flight_up VARCHAR, launch_date VARCHAR)
SELECT result FROM table_name_53 WHERE date = "november 1, 1992"
What is the result on November 1, 1992?
CREATE TABLE table_name_53 (result VARCHAR, date VARCHAR)
SELECT division FROM table_1427998_1 WHERE year = 2006
What is the division for the year 2006?
CREATE TABLE table_1427998_1 (division VARCHAR, year VARCHAR)
SELECT hometown FROM table_name_31 WHERE height = "6-0"
What is the hometown of the player which has a height of 6-0?
CREATE TABLE table_name_31 (hometown VARCHAR, height VARCHAR)
SELECT power_hp__kw_ FROM table_name_60 WHERE first_year > 1965 AND distribution = "international" AND engine = "v6 biturbo" AND model = "425"
What is Power HP (kW), when First Year is greater than 1965, when Distribution is "International", when Engine is V6 Biturbo, and when Model is "425"?
CREATE TABLE table_name_60 (power_hp__kw_ VARCHAR, model VARCHAR, engine VARCHAR, first_year VARCHAR, distribution VARCHAR)
SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1
Who are the customers that had more than 1 policy? List the customer details and id.
CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (Customer_id VARCHAR)
SELECT theme FROM table_name_72 WHERE issue_price = "$508.95"
What was the theme when the issue price was $508.95?
CREATE TABLE table_name_72 (theme VARCHAR, issue_price VARCHAR)
SELECT club FROM table_18143210_2 WHERE top_division_titles = 10
What was the club that won 10 top division titles?
CREATE TABLE table_18143210_2 (club VARCHAR, top_division_titles VARCHAR)
SELECT production_code FROM table_2221374_3 WHERE no_in_season = 3
What is the production code for episode 3 of the season?
CREATE TABLE table_2221374_3 (production_code VARCHAR, no_in_season VARCHAR)
SELECT home_team AS score FROM table_name_25 WHERE ground = "ghantoot racing and polo club"
What is the home team score of the Ghantoot Racing and Polo Club Ground?
CREATE TABLE table_name_25 (home_team VARCHAR, ground VARCHAR)
SELECT opponent FROM table_name_98 WHERE date = "may 25, 2007"
What is the opponent on May 25, 2007?
CREATE TABLE table_name_98 (opponent VARCHAR, date VARCHAR)
SELECT date FROM table_name_91 WHERE outcome = "runner up" AND opponent = "lu jiaxiang"
What is Date, when Outcome is "Runner Up", and when Opponent is "Lu Jiaxiang"?
CREATE TABLE table_name_91 (date VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT MAX(week) FROM table_name_91 WHERE date = "november 18, 1951"
What was the latest week that had a game on November 18, 1951?
CREATE TABLE table_name_91 (week INTEGER, date VARCHAR)
SELECT loss FROM table_name_68 WHERE record = "54-39"
Which loss has a Record of 54-39?
CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR)
SELECT COUNT(district) FROM table_25030512_24 WHERE first_elected = "1998"
Name the total number of districts for first elected being 1998
CREATE TABLE table_25030512_24 (district VARCHAR, first_elected VARCHAR)
SELECT COUNT(grid) FROM table_name_65 WHERE driver = "mika häkkinen" AND laps > 45
What is the number of the grid for mika häkkinen and more than 45 laps?
CREATE TABLE table_name_65 (grid VARCHAR, driver VARCHAR, laps VARCHAR)
SELECT city_of_license FROM table_name_67 WHERE erp_w = "2,000"
What City of license has a ERP W of 2,000?
CREATE TABLE table_name_67 (city_of_license VARCHAR, erp_w VARCHAR)
SELECT SUM(starts) FROM table_name_54 WHERE avg_finish > 43
How many starts for an average finish greater than 43?
CREATE TABLE table_name_54 (starts INTEGER, avg_finish INTEGER)
SELECT date_became_customer FROM Customers WHERE first_name = "Carole" AND last_name = "Bernhard"
When did customer with first name as Carole and last name as Bernhard became a customer?
CREATE TABLE Customers (date_became_customer VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT score FROM table_name_49 WHERE place = "t10" AND country = "argentina"
What Argentina country is in t10 place?
CREATE TABLE table_name_49 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT album FROM table_name_87 WHERE label = "msb 801"
Which Album has a Label of msb 801?
CREATE TABLE table_name_87 (album VARCHAR, label VARCHAR)
SELECT MAX(laps) FROM table_name_17 WHERE qual = "165.229"
How many laps resulted from a Qual of 165.229?
CREATE TABLE table_name_17 (laps INTEGER, qual VARCHAR)
SELECT authors FROM table_name_73 WHERE location = "mexico"
Which author is located in Mexico?
CREATE TABLE table_name_73 (authors VARCHAR, location VARCHAR)
SELECT pronunciation_spelled_free FROM table_name_8 WHERE pronunciation_spelled_checked = "ʏ"
What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ʏ"?
CREATE TABLE table_name_8 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)
SELECT date FROM table_2446333_2 WHERE circuit = "Eastern Creek Raceway"
Name the date for eastern creek raceway
CREATE TABLE table_2446333_2 (date VARCHAR, circuit VARCHAR)
SELECT COUNT(april_2013_cum_rank) FROM table_24307126_3 WHERE rank_2012 = 225
Name the number of rank for april 2013 for 2012 ran kbeing 225
CREATE TABLE table_24307126_3 (april_2013_cum_rank VARCHAR, rank_2012 VARCHAR)
SELECT COUNT(*), T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode
Find the number of rooms for different block code?
CREATE TABLE room (blockfloor VARCHAR, blockcode VARCHAR); CREATE TABLE BLOCK (blockcode VARCHAR, blockfloor VARCHAR)
SELECT date FROM table_12186237_1 WHERE grand_prix = "German grand_prix"
What is the date of the German Grand Prix?
CREATE TABLE table_12186237_1 (date VARCHAR, grand_prix VARCHAR)
SELECT 1 AS st_place_team FROM table_name_84 WHERE year > 1956
What team was in 1st plate in a year later than 1956?
CREATE TABLE table_name_84 (year INTEGER)
SELECT COUNT(losses) FROM table_name_13 WHERE position > 8 AND goals_for > 34 AND points = 25 AND draws < 5
What is the total number of Losses, when Position is greater than 8, when Goals For is greater than 34, when Points is "25", and when Draws is less than 5?
CREATE TABLE table_name_13 (losses VARCHAR, draws VARCHAR, points VARCHAR, position VARCHAR, goals_for VARCHAR)
SELECT lost FROM table_name_72 WHERE drawn = "1" AND points_for = "515"
what is the amount lost when there is 1 draw and 515 points?
CREATE TABLE table_name_72 (lost VARCHAR, drawn VARCHAR, points_for VARCHAR)
SELECT MIN(round) FROM table_name_99 WHERE player = "chris burkett"
What is the lowest round of player chris burkett?
CREATE TABLE table_name_99 (round INTEGER, player VARCHAR)
SELECT original_toronto_cast FROM table_19529639_3 WHERE first_national_tour_cast = "Constantine Maroulis"
What member of the original Toronto cast played the character played by Constantine Maroulis in the first national tour cast?
CREATE TABLE table_19529639_3 (original_toronto_cast VARCHAR, first_national_tour_cast VARCHAR)
SELECT date FROM table_name_23 WHERE attendance = "20,874"
What was the date of the game with an attendance of 20,874 fans?
CREATE TABLE table_name_23 (date VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_73 WHERE date = "october 17, 1965"
What is the result of the game on October 17, 1965?
CREATE TABLE table_name_73 (result VARCHAR, date VARCHAR)