answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT tournament FROM table_name_81 WHERE opponent_in_the_final = "marielle bruens"
Which tournament has marielle bruens for the opponent in the final?
CREATE TABLE table_name_81 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT season FROM table_name_70 WHERE overall = "77"
What year's Season had an Overall of 77?
CREATE TABLE table_name_70 (season VARCHAR, overall VARCHAR)
SELECT mountains_classification FROM table_name_60 WHERE winner = "mario cipollini" AND general_classification = "pavel tonkov"
What is the mountain classification of Mario Cipollini, who has a general classification of Pavel tonkov?
CREATE TABLE table_name_60 (mountains_classification VARCHAR, winner VARCHAR, general_classification VARCHAR)
SELECT written_by FROM table_18274425_1 WHERE production_code = "3T7573"
Who were the authors of episode having production code 3t7573?
CREATE TABLE table_18274425_1 (written_by VARCHAR, production_code VARCHAR)
SELECT haydon FROM table_11447995_2 WHERE larter = "11" AND libweshya = "4"
What is Haydon when Larter is 11 and Libweshya is 4?
CREATE TABLE table_11447995_2 (haydon VARCHAR, larter VARCHAR, libweshya VARCHAR)
SELECT venue FROM table_name_38 WHERE status = "five nations" AND against = 0
What is the venue for the Status of Five Nations and 0 againts?
CREATE TABLE table_name_38 (venue VARCHAR, status VARCHAR, against VARCHAR)
SELECT SUM(gain) FROM table_name_75 WHERE name = "kass, rob" AND avg_g < 1.9
Can you tell me the sum of Gain that has the Name of kass, rob, and the Avg/g smaller than 1.9?
CREATE TABLE table_name_75 (gain INTEGER, name VARCHAR, avg_g VARCHAR)
SELECT race FROM table_name_88 WHERE time = "17:11.572"
Who holds the time of 17:11.572?
CREATE TABLE table_name_88 (race VARCHAR, time VARCHAR)
SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises"
Who are the members of the club named "Hopkins Student Enterprises"? Show the last name.
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
SELECT overall_record FROM table_2771237_1 WHERE average_attendance = 16720
What was the overall record in the season where average attendance was 16720?
CREATE TABLE table_2771237_1 (overall_record VARCHAR, average_attendance VARCHAR)
SELECT score FROM table_name_8 WHERE date = "may 12, 2008"
What was the score on May 12, 2008?
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT name FROM races WHERE TIME > "12:00:00" OR TIME < "09:00:00"
What are the names of races held after 12:00:00 or before 09:00:00?
CREATE TABLE races (name VARCHAR, TIME VARCHAR)
SELECT driver FROM table_name_66 WHERE laps = 53
Who drove 53 laps?
CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR)
SELECT MIN(joined_mac) FROM table_261906_2 WHERE nickname = "Eagles"
What year did the the school with the nickname eagles join the mac?
CREATE TABLE table_261906_2 (joined_mac INTEGER, nickname VARCHAR)
SELECT location FROM table_name_22 WHERE frequency = "1197khz"
What's the location of the 1197khz frequency?
CREATE TABLE table_name_22 (location VARCHAR, frequency VARCHAR)
SELECT opponent FROM table_name_64 WHERE time = "20:00 gmt" AND ground = "camp nou"
Who is the Opponent playing at 20:00 GMT at Camp Nou?
CREATE TABLE table_name_64 (opponent VARCHAR, time VARCHAR, ground VARCHAR)
SELECT points FROM table_name_21 WHERE chassis = "march 751"
Name the points with chassis of march 751
CREATE TABLE table_name_21 (points VARCHAR, chassis VARCHAR)
SELECT nfl_team FROM table_2508633_9 WHERE college = "Jackson State"
What NFL team picked a player from Jackson State?
CREATE TABLE table_2508633_9 (nfl_team VARCHAR, college VARCHAR)
SELECT winning_score FROM table_name_90 WHERE margin_of_victory = "6 strokes"
For the tournament ending with a margin of victory of 6 strokes, what was the winning score?
CREATE TABLE table_name_90 (winning_score VARCHAR, margin_of_victory VARCHAR)
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10
List title of albums have the number of tracks greater than 10.
CREATE TABLE tracks (album_id VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR)
SELECT writer FROM table_10470082_6 WHERE _number = 3
Who wrote Episode #3?
CREATE TABLE table_10470082_6 (writer VARCHAR, _number VARCHAR)
SELECT score FROM table_name_5 WHERE date = "september 9"
What was the score of the game played on September 9?
CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR)
SELECT year_s__won FROM table_name_25 WHERE player = "tom lehman"
What years did Tom Lehman win?
CREATE TABLE table_name_25 (year_s__won VARCHAR, player VARCHAR)
SELECT birthdate FROM table_name_39 WHERE name = "robert esche"
What is the birthdate of Robert Esche?
CREATE TABLE table_name_39 (birthdate VARCHAR, name VARCHAR)
SELECT COUNT(texture___gt__s_) FROM table_26860595_2 WHERE tdp__watts__gpu_only = "18"
How many texture (gt/s) the card has if the tdp (watts) GPU only is 18?
CREATE TABLE table_26860595_2 (texture___gt__s_ VARCHAR, tdp__watts__gpu_only VARCHAR)
SELECT year_location FROM table_28138035_4 WHERE womens_singles = "Haruna Fukuoka"
Name the year location for haruna fukuoka
CREATE TABLE table_28138035_4 (year_location VARCHAR, womens_singles VARCHAR)
SELECT d_41 FROM table_name_45 WHERE d_43 = "r 18"
Name the D 41 which has a D 43 of r 18
CREATE TABLE table_name_45 (d_41 VARCHAR, d_43 VARCHAR)
SELECT date FROM table_name_21 WHERE label = "hydra head records" AND format = "cd"
What is the date for Hydra Head Records with a CD format?
CREATE TABLE table_name_21 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT COUNT(draws) FROM table_name_76 WHERE against = 1465 AND byes < 2
What is the total number of draws when there are 1465 against matches and less than 2 byes?
CREATE TABLE table_name_76 (draws VARCHAR, against VARCHAR, byes VARCHAR)
SELECT nominating_festival FROM table_name_72 WHERE country = "united kingdom"
Which nominating festival did United Kingdom enter?
CREATE TABLE table_name_72 (nominating_festival VARCHAR, country VARCHAR)
SELECT SUM(league) AS Cup FROM table_name_7 WHERE total < 1 AND league < 0
What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0?
CREATE TABLE table_name_7 (league INTEGER, total VARCHAR)
SELECT electorate FROM table_name_6 WHERE state = "vic" AND party = "labor" AND member = "david charles"
Which Electorate is from vic, a labor party, and is David Charles a member of?
CREATE TABLE table_name_6 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_98 WHERE preliminary = 8.721 AND average > 8.781
What is the swimsuit number when the preliminary is 8.721, and the average is more than 8.781?
CREATE TABLE table_name_98 (swimsuit VARCHAR, preliminary VARCHAR, average VARCHAR)
SELECT pashto FROM table_name_76 WHERE malayalam = "വ്യാഴം vyazham"
What is the Pashto word for the Malayalam word വ്യാഴം vyazham?
CREATE TABLE table_name_76 (pashto VARCHAR, malayalam VARCHAR)
SELECT ship FROM table_name_39 WHERE nationality = "syria" AND date = "26 june 1943" AND tonnage = 80
What is Ship, when Nationality is "Syria", and when Date is "26 June 1943", and when Tonnage is "80"?
CREATE TABLE table_name_39 (ship VARCHAR, tonnage VARCHAR, nationality VARCHAR, date VARCHAR)
SELECT team FROM table_name_77 WHERE qual_1 = "1:17.481"
What is the name of the team with a qual 1 time of 1:17.481?
CREATE TABLE table_name_77 (team VARCHAR, qual_1 VARCHAR)
SELECT position FROM table_26996293_2 WHERE player = "Jim Henshall"
player is jim henshall what are all the position
CREATE TABLE table_26996293_2 (position VARCHAR, player VARCHAR)
SELECT mccain__percentage FROM table_20278716_2 WHERE county = "Burlington"
What percentage of voters choise McCain in Burlington?
CREATE TABLE table_20278716_2 (mccain__percentage VARCHAR, county VARCHAR)
SELECT tournament_venue__city_ FROM table_28365816_2 WHERE conference = "Missouri Valley conference"
What tournament venue is listed during the Missouri Valley Conference?
CREATE TABLE table_28365816_2 (tournament_venue__city_ VARCHAR, conference VARCHAR)
SELECT AVG(year) FROM table_name_8 WHERE runners_up = "australia" AND venue = "victoria golf club"
What is the average Year when Australia was the runner-up at victoria golf club?
CREATE TABLE table_name_8 (year INTEGER, runners_up VARCHAR, venue VARCHAR)
SELECT COUNT(draws) FROM table_name_28 WHERE against = 797 AND wins > 10
When against is 797 and wins is more than 10, what is the sum of draws?
CREATE TABLE table_name_28 (draws VARCHAR, against VARCHAR, wins VARCHAR)
SELECT AVG(laps) FROM table_name_80 WHERE rider = "max biaggi"
What is the average number of laps for max biaggi
CREATE TABLE table_name_80 (laps INTEGER, rider VARCHAR)
SELECT 250 AS cc_winner FROM table_15299235_1 WHERE round = 9
in round 9 who was the 250cc winner?
CREATE TABLE table_15299235_1 (round VARCHAR)
SELECT week FROM table_name_66 WHERE opponent = "detroit lions"
On what Week was the Detroit Lions the Opponent?
CREATE TABLE table_name_66 (week VARCHAR, opponent VARCHAR)
SELECT game_site FROM table_24786958_2 WHERE date = "Sunday, May 27"
Where was the game played that was on Sunday, May 27?
CREATE TABLE table_24786958_2 (game_site VARCHAR, date VARCHAR)
SELECT dance FROM table_name_55 WHERE year = 2004
In 2004, what is the Dance?
CREATE TABLE table_name_55 (dance VARCHAR, year VARCHAR)
SELECT position FROM table_22344463_2 WHERE height = "181cm"
If the height is 181cm, what was the position?
CREATE TABLE table_22344463_2 (position VARCHAR, height VARCHAR)
SELECT SUM(year) FROM table_name_7 WHERE title = "metroid prime hunters 5"
What year was Metroid Prime Hunters 5 released?
CREATE TABLE table_name_7 (year INTEGER, title VARCHAR)
SELECT distance FROM table_name_46 WHERE time = "men's speed skating"
Which Distance has a Time of men's speed skating?
CREATE TABLE table_name_46 (distance VARCHAR, time VARCHAR)
SELECT super_b_capacity_reached_[_citation_needed_] FROM table_12791809_1 WHERE number_of_truck_loads_north = 7735
When was the Super B capacity reached when the number of truck loads north was 7735?
CREATE TABLE table_12791809_1 (super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR, number_of_truck_loads_north VARCHAR)
SELECT city FROM table_name_97 WHERE year = 1889
What city was in 1889?
CREATE TABLE table_name_97 (city VARCHAR, year VARCHAR)
SELECT district FROM table_1341577_43 WHERE candidates = "Jim Cooper (D) Unopposed"
In what district would you find the candidates listed as jim cooper (d) unopposed?
CREATE TABLE table_1341577_43 (district VARCHAR, candidates VARCHAR)
SELECT MAX(laps) FROM table_name_35 WHERE time_retired = "differential" AND grid > 2
what is the most laps with the time/retired is differential and the grid is more than 2?
CREATE TABLE table_name_35 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT opponent_in_the_final FROM table_name_91 WHERE tournament = "kuwait"
Who was the opponent during the tournament in Kuwait?
CREATE TABLE table_name_91 (opponent_in_the_final VARCHAR, tournament VARCHAR)
SELECT team FROM table_name_67 WHERE rate = "94.1"
What team has a 94.1 rating?
CREATE TABLE table_name_67 (team VARCHAR, rate VARCHAR)
SELECT score FROM table_name_84 WHERE tie_no = "replay" AND away_team = "watford"
What was the score of the replay game when watford was the away team?
CREATE TABLE table_name_84 (score VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT nationality FROM table_name_3 WHERE heat < 9 AND time = "1:01.87"
What is the nationality with less than 9 heat, and a time of 1:01.87?
CREATE TABLE table_name_3 (nationality VARCHAR, heat VARCHAR, time VARCHAR)
SELECT COUNT(series_number) FROM table_name_24 WHERE original_air_date < 1999 AND number_of_episodes > 7 AND dvd_region_1_release_date = "16 april 2013"
How many series originally aired before 1999 with more than 7 episodes and a DVD Region 1 release date of 16 april 2013?
CREATE TABLE table_name_24 (series_number VARCHAR, dvd_region_1_release_date VARCHAR, original_air_date VARCHAR, number_of_episodes VARCHAR)
SELECT MAX(total) FROM table_name_27 WHERE player = "bernhard langer"
Bernhard Langer maximum total was what?
CREATE TABLE table_name_27 (total INTEGER, player VARCHAR)
SELECT bronze FROM table_name_67 WHERE silver = "iceland"
When Iceland gets the Silver, who gets the Bronze?
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR)
SELECT SUM(points) FROM table_name_83 WHERE chassis = "mp4-17d" AND year < 2003
What is the number of points for the vehicle with a mp4-17d chassis earlier than 2003?
CREATE TABLE table_name_83 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT record FROM table_name_49 WHERE points < 40 AND game > 25 AND score = "2–0"
Which Record has Points smaller than 40, and a Game larger than 25, and a Score of 2–0?
CREATE TABLE table_name_49 (record VARCHAR, score VARCHAR, points VARCHAR, game VARCHAR)
SELECT 2 AS nd_leg FROM table_name_92 WHERE team_2 = "teram"
What is the 2nd leg in match with team 2 of Teram?
CREATE TABLE table_name_92 (team_2 VARCHAR)
SELECT COUNT(draws) FROM table_name_7 WHERE losses > 11 AND wins < 4 AND golden_rivers = "wakool"
What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?
CREATE TABLE table_name_7 (draws VARCHAR, golden_rivers VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT venue FROM table_name_99 WHERE club = "west bromwich albion"
Which Venue has a Club of west bromwich albion?
CREATE TABLE table_name_99 (venue VARCHAR, club VARCHAR)
SELECT record FROM table_name_18 WHERE date = "january 31"
Which Record has a Date of january 31?
CREATE TABLE table_name_18 (record VARCHAR, date VARCHAR)
SELECT date_successor_seated FROM table_2417345_4 WHERE district = "Ohio 10th"
When were the successor/s seated for Ohio 10th?
CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT motogp_winner FROM table_27948565_1 WHERE date = "6 May"
Name the motogp winner for 6 may
CREATE TABLE table_27948565_1 (motogp_winner VARCHAR, date VARCHAR)
SELECT 1993 FROM table_name_18 WHERE 1994 = "2r" AND 1995 = "1r"
What 1993 has 2r as a 1994, and 1r as a 1995?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30
Show countries where a singer above age 40 and a singer below 30 are from.
CREATE TABLE singer (country VARCHAR, age INTEGER)
SELECT name FROM table_name_79 WHERE built_by_hm_dockyard = "pembroke" AND laid_down = "may 1825"
What name has pembroke as the built by hm dockyard, and may 1825 as the laid down?
CREATE TABLE table_name_79 (name VARCHAR, built_by_hm_dockyard VARCHAR, laid_down VARCHAR)
SELECT upstream FROM table_name_1 WHERE price = "65 chf"
What is the upstream with the price 65 chf?
CREATE TABLE table_name_1 (upstream VARCHAR, price VARCHAR)
SELECT COUNT(*) FROM journalist
How many journalists are there?
CREATE TABLE journalist (Id VARCHAR)
SELECT home_team FROM table_name_56 WHERE away_team = "melbourne"
Which home team competed against the away team of Melbourne?
CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(points) FROM table_25730209_2 WHERE player = "Donald Green"
How many points did Donald Green score?
CREATE TABLE table_25730209_2 (points VARCHAR, player VARCHAR)
SELECT COUNT(year) FROM table_19309079_2 WHERE qatari_male = 97
How many years were there 97 qatari male births?
CREATE TABLE table_19309079_2 (year VARCHAR, qatari_male VARCHAR)
SELECT 2011 FROM table_name_73 WHERE position = "male sports rep"
Who held the Male Sports Rep position in 2011?
CREATE TABLE table_name_73 (position VARCHAR)
SELECT school FROM table_name_28 WHERE mascot = "raiders"
Which School's Mascot is Raiders?
CREATE TABLE table_name_28 (school VARCHAR, mascot VARCHAR)
SELECT district FROM table_1341423_21 WHERE incumbent = "Joe Moakley"
Which district is Joe Moakley?
CREATE TABLE table_1341423_21 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(viewers__m_) FROM table_name_12 WHERE rating = 6.4 AND share > 11
what is the total viewers (m) when the rating is 6.4 and the share is more than 11?
CREATE TABLE table_name_12 (viewers__m_ VARCHAR, rating VARCHAR, share VARCHAR)
SELECT MIN(no) FROM table_28578594_1 WHERE driver = "Nello Pagani"
Name the least number for nello pagani
CREATE TABLE table_28578594_1 (no INTEGER, driver VARCHAR)
SELECT invoice_number FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.
CREATE TABLE invoices (invoice_number VARCHAR, invoice_date VARCHAR)
SELECT AVG(average) FROM table_name_33 WHERE start_value = 9.9 AND total = 9.612
What is the average for the gymnast with a 9.9 start value and a total of 9.612?
CREATE TABLE table_name_33 (average INTEGER, start_value VARCHAR, total VARCHAR)
SELECT Lifespan FROM representative WHERE State = "New York" OR State = "Indiana"
What are the life spans of representatives from New York state or Indiana state?
CREATE TABLE representative (Lifespan VARCHAR, State VARCHAR)
SELECT MIN(game) FROM table_name_48 WHERE record = "32-12-3"
What is the lowest game for a record of 32-12-3?
CREATE TABLE table_name_48 (game INTEGER, record VARCHAR)
SELECT vote_to_save FROM table_name_3 WHERE eviction_no < 14 AND vote_to_evict = "5.42%"
Which Vote to Save has an Eviction # smaller than 14, and a Vote to Evict of 5.42%?
CREATE TABLE table_name_3 (vote_to_save VARCHAR, eviction_no VARCHAR, vote_to_evict VARCHAR)
SELECT hs_principal FROM table_name_81 WHERE year = "1973-1974"
Who is the h.s. principal during 1973-1974?
CREATE TABLE table_name_81 (hs_principal VARCHAR, year VARCHAR)
SELECT title FROM table_24222929_2 WHERE directed_by = "John Terlesky"
Name the title that was directed by john terlesky
CREATE TABLE table_24222929_2 (title VARCHAR, directed_by VARCHAR)
SELECT school_year FROM table_name_61 WHERE class_aAAA = dickinson
What School Year has a Class AAAA of Dickinson?
CREATE TABLE table_name_61 (school_year VARCHAR, class_aAAA VARCHAR, dickinson VARCHAR)
SELECT reason_for_change FROM table_225102_4 WHERE district = "Pennsylvania 13th"
Name the reason for change pennsylvania 13th
CREATE TABLE table_225102_4 (reason_for_change VARCHAR, district VARCHAR)
SELECT round_of_32 FROM table_27294107_11 WHERE athlete = "Fatih Keleş"
What is the round of 32 for fatih keleş?
CREATE TABLE table_27294107_11 (round_of_32 VARCHAR, athlete VARCHAR)
SELECT tries_against FROM table_name_69 WHERE points_against = "520"
How many tries against were there with 520 points against?
CREATE TABLE table_name_69 (tries_against VARCHAR, points_against VARCHAR)
SELECT date FROM table_name_35 WHERE opponent = "giants" AND attendance > 24 OFFSET 100
When did the Rockies play the Giants with an attendance over 24,100?
CREATE TABLE table_name_35 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT wheel_arrangement___whyte_notation__ FROM table_1057316_1 WHERE disposition = "Riverdale, Georgia"
What is the wheel arrangement for the train in Riverdale, Georgia?
CREATE TABLE table_1057316_1 (wheel_arrangement___whyte_notation__ VARCHAR, disposition VARCHAR)
SELECT winner FROM table_name_44 WHERE date = "june 2, 2007"
Who is the Winner on June 2, 2007?
CREATE TABLE table_name_44 (winner VARCHAR, date VARCHAR)
SELECT laps FROM table_name_80 WHERE grid = "21"
How many laps were there in grid 21?
CREATE TABLE table_name_80 (laps VARCHAR, grid VARCHAR)
SELECT stark FROM table_name_58 WHERE state = "upper austria"
What percent did STARK get in upper austria?
CREATE TABLE table_name_58 (stark VARCHAR, state VARCHAR)
SELECT team_2 FROM table_name_16 WHERE team_1 = "lokomotiva"
What team 2 has lokomotiva as team 1?
CREATE TABLE table_name_16 (team_2 VARCHAR, team_1 VARCHAR)
SELECT COUNT(placings) FROM table_name_92 WHERE nation = "east germany"
What was the placing of the nation of East Germany?
CREATE TABLE table_name_92 (placings VARCHAR, nation VARCHAR)
SELECT AVG(year) FROM table_name_88 WHERE bronze = "valentin novikov"
WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV?
CREATE TABLE table_name_88 (year INTEGER, bronze VARCHAR)