answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT week FROM table_name_66 WHERE finalist = "carlos moyá (5)"
What is the Week, when the Finalist is Carlos Moyá (5)?
CREATE TABLE table_name_66 (week VARCHAR, finalist VARCHAR)
SELECT left_office FROM table_name_20 WHERE minister = "mirko tremaglia"
Tell me the left office for mirko tremaglia
CREATE TABLE table_name_20 (left_office VARCHAR, minister VARCHAR)
SELECT material_collected FROM table_name_75 WHERE isbn = "978-1401209674"
What's the Material collected for the 978-1401209674 ISBN?
CREATE TABLE table_name_75 (material_collected VARCHAR, isbn VARCHAR)
SELECT rounds FROM table_name_20 WHERE chassis = "sf01"
Which round has a car with a chassis of sf01?
CREATE TABLE table_name_20 (rounds VARCHAR, chassis VARCHAR)
SELECT object_type FROM table_name_58 WHERE declination___j2000__ = "°03′32″"
What Object Type has a °03′32″ Declination (J2000)?
CREATE TABLE table_name_58 (object_type VARCHAR, declination___j2000__ VARCHAR)
SELECT time FROM table_name_76 WHERE country = "ukraine"
What time did the team from Ukraine have?
CREATE TABLE table_name_76 (time VARCHAR, country VARCHAR)
SELECT team FROM table_2241101_1 WHERE average_speed__mph_ = "107.063"
What team had average speed of 107.063 mph?
CREATE TABLE table_2241101_1 (team VARCHAR, average_speed__mph_ VARCHAR)
SELECT sail_number FROM table_25595107_2 WHERE loa__metres_ = "13.68"
What is the number of the sail with an overall length of 13.68?
CREATE TABLE table_25595107_2 (sail_number VARCHAR, loa__metres_ VARCHAR)
SELECT time FROM table_name_76 WHERE rank = 6
What is the time of the rider ranked 6?
CREATE TABLE table_name_76 (time VARCHAR, rank VARCHAR)
SELECT MAX(position) FROM table_15331868_1 WHERE against = 28
What the highest position when there is 28 against?
CREATE TABLE table_15331868_1 (position INTEGER, against VARCHAR)
SELECT date FROM table_name_67 WHERE opponent = "portland trail blazers"
What date was the opponent the Portland Trail Blazers?
CREATE TABLE table_name_67 (date VARCHAR, opponent VARCHAR)
SELECT MIN(round) FROM table_20872722_1
What is the round?
CREATE TABLE table_20872722_1 (round INTEGER)
SELECT COUNT(replaced_by) FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit"
How many have been replaced where the appointment date is 10 December 2007 and the manner of departure is quit?
CREATE TABLE table_11713303_2 (replaced_by VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)
SELECT smith FROM table_name_62 WHERE ashmolean = 16
What is the smith with a 16 ashmolean?
CREATE TABLE table_name_62 (smith VARCHAR, ashmolean VARCHAR)
SELECT MIN(game) FROM table_18894744_5 WHERE record = "8-3"
Name the least game for 8-3
CREATE TABLE table_18894744_5 (game INTEGER, record VARCHAR)
SELECT tie_no FROM table_name_19 WHERE home_team = "stoke city" AND date = "9 february 1946"
What was the Tie no when then home team was Stoke City for the game played on 9 February 1946?
CREATE TABLE table_name_19 (tie_no VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT eliminated AS by FROM table_name_42 WHERE entered < 2
Which Eliminated has an Entered smaller than 2?
CREATE TABLE table_name_42 (eliminated VARCHAR, entered INTEGER)
SELECT outcome FROM table_name_90 WHERE tournament = "chiang mai , thailand"
What is Outcome, when Tournament is "Chiang Mai , Thailand"?
CREATE TABLE table_name_90 (outcome VARCHAR, tournament VARCHAR)
SELECT COUNT(episode) FROM table_17641206_6 WHERE written_by = "David Cantor"
Name the total number of episodes written by david cantor
CREATE TABLE table_17641206_6 (episode VARCHAR, written_by VARCHAR)
SELECT region_1__can_ FROM table_240936_2 WHERE region_1__us_ = "January 16, 2007"
What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?
CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_1__us_ VARCHAR)
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1
What is the name of the entrepreneur with the greatest weight?
CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Weight VARCHAR); CREATE TABLE entrepreneur (People_ID VARCHAR)
SELECT winner FROM table_name_19 WHERE year = 2003
Who won in 2003?
CREATE TABLE table_name_19 (winner VARCHAR, year VARCHAR)
SELECT player FROM table_name_86 WHERE score = 72 - 70 - 66 = 208
What Player's Score is 72-70-66=208?
CREATE TABLE table_name_86 (player VARCHAR, score VARCHAR)
SELECT name FROM table_1912276_2 WHERE __750m = "46.436"
If -750m is 46.436, what is the name of the cyclist?
CREATE TABLE table_1912276_2 (name VARCHAR, __750m VARCHAR)
SELECT SUM(cultural_and_educational_panel) FROM table_name_23 WHERE labour_panel < 7 AND agricultural_panel < 1
What is the sum of all from the Cultural and Educational Panel with less than 7 from the Labour Panel and less than 1 from the Agricultural Panel?
CREATE TABLE table_name_23 (cultural_and_educational_panel INTEGER, labour_panel VARCHAR, agricultural_panel VARCHAR)
SELECT COUNT(rank) FROM table_1059743_2 WHERE points = "796.7"
How many countries got 796.7 points?
CREATE TABLE table_1059743_2 (rank VARCHAR, points VARCHAR)
SELECT score FROM table_name_84 WHERE player = "greg norman"
What is the score for Greg Norman
CREATE TABLE table_name_84 (score VARCHAR, player VARCHAR)
SELECT SUM(size_km²) FROM table_name_52 WHERE density_hab_km = 8 OFFSET 321
what is the size km² when the density hab/km is 8,321?
CREATE TABLE table_name_52 (size_km² INTEGER, density_hab_km VARCHAR)
SELECT time_retired FROM table_name_86 WHERE laps = 75 AND driver = "pedro de la rosa"
Which time/retired had 75 laps and Pedro de la Rosa as a driver?
CREATE TABLE table_name_86 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT COUNT(crowd) FROM table_name_54 WHERE home_team = "st kilda"
What was the crowd size when st kilda played home?
CREATE TABLE table_name_54 (crowd VARCHAR, home_team VARCHAR)
SELECT name FROM table_name_45 WHERE party = "minister for community safety and legal affairs"
What is the name of the minister from the party of minister for community safety and legal affairs?
CREATE TABLE table_name_45 (name VARCHAR, party VARCHAR)
SELECT result FROM table_name_49 WHERE competition = "friendly" AND date = "23 january 2010"
What is the result of the friendly competition on 23 January 2010?
CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT name, grade FROM Highschooler
Show the names and grades of each high schooler.
CREATE TABLE Highschooler (name VARCHAR, grade VARCHAR)
SELECT position FROM table_name_93 WHERE wins = "1" AND season = "2009"
What was his position in 2009 with 1 win?
CREATE TABLE table_name_93 (position VARCHAR, wins VARCHAR, season VARCHAR)
SELECT position FROM table_17246160_1 WHERE team = "Josef Kaufmann Racing"
What was the position for the Josef Kaufmann Racing team?
CREATE TABLE table_17246160_1 (position VARCHAR, team VARCHAR)
SELECT average FROM table_28798161_3 WHERE bbi = "4/39"
if the bbi is 4/39 what is the average
CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR)
SELECT model FROM table_name_60 WHERE fleet_series = "s410-s434"
Which model with a fleet series of s410-s434?
CREATE TABLE table_name_60 (model VARCHAR, fleet_series VARCHAR)
SELECT COUNT(record) FROM table_16864968_8 WHERE date = "March 27, 2009"
How many records were made on March 27, 2009?
CREATE TABLE table_16864968_8 (record VARCHAR, date VARCHAR)
SELECT Nationality FROM ship GROUP BY Nationality HAVING COUNT(*) > 2
List the nations that have more than two ships.
CREATE TABLE ship (Nationality VARCHAR)
SELECT studio_analyst_s_ FROM table_2724704_5 WHERE network_s_ = "ESPN" AND sideline_reporter_s_ = "Erin Andrews and Tom Rinaldi"
Name the studio analysts for espn with erin andrews and tom rinaldi
CREATE TABLE table_2724704_5 (studio_analyst_s_ VARCHAR, network_s_ VARCHAR, sideline_reporter_s_ VARCHAR)
SELECT COUNT(DISTINCT Party) FROM representative
How many distinct parties are there for representatives?
CREATE TABLE representative (Party VARCHAR)
SELECT COUNT(attendance) FROM table_name_40 WHERE opponent = "athletics" AND record = "9-12"
How many people attended the game against athletics with the record of 9-12?
CREATE TABLE table_name_40 (attendance VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT name FROM table_189598_7 WHERE land_area__km²_ = "14.85"
When 14.85 kilometers squared is the land area what is the name?
CREATE TABLE table_189598_7 (name VARCHAR, land_area__km²_ VARCHAR)
SELECT examples FROM table_1058787_1 WHERE existential_question_[_not_in_citation_given_] = "Can I Love?"
Which examples ask the existential question "Can I Love?"
CREATE TABLE table_1058787_1 (examples VARCHAR, existential_question_ VARCHAR, _not_in_citation_given_ VARCHAR)
SELECT team FROM table_10556257_1 WHERE season = "1911-12"
What is the team for season 1911-12?
CREATE TABLE table_10556257_1 (team VARCHAR, season VARCHAR)
SELECT station_type FROM table_28794440_1 WHERE location = "Cebu"
What types of stations are located in Cebu?
CREATE TABLE table_28794440_1 (station_type VARCHAR, location VARCHAR)
SELECT COUNT(assists) FROM table_23184448_4 WHERE minutes = 321
Name the number of assists for 321 minutes
CREATE TABLE table_23184448_4 (assists VARCHAR, minutes VARCHAR)
SELECT position FROM table_name_3 WHERE player = "jj gagiano"
What position for jj gagiano?
CREATE TABLE table_name_3 (position VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_5 WHERE opponents = 16
Who is the opponent with 16 points?
CREATE TABLE table_name_5 (opponent VARCHAR, opponents VARCHAR)
SELECT president FROM table_name_57 WHERE c_span_2009 = "21"
Who is the president when c-span 2009 is 21?
CREATE TABLE table_name_57 (president VARCHAR, c_span_2009 VARCHAR)
SELECT course_name FROM courses ORDER BY course_name
List the names of courses in alphabetical order?
CREATE TABLE courses (course_name VARCHAR)
SELECT high_assists FROM table_17323042_11 WHERE game = 1
Who was the High Assist in game 1?
CREATE TABLE table_17323042_11 (high_assists VARCHAR, game VARCHAR)
SELECT type FROM table_name_25 WHERE characters = "廣丙"
What type has the characters 廣丙?
CREATE TABLE table_name_25 (type VARCHAR, characters VARCHAR)
SELECT outcome FROM table_name_98 WHERE opponent = "rik de voest"
What was the outcome for Rik de Voest as opponent?
CREATE TABLE table_name_98 (outcome VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_56 WHERE player = "fuzzy zoeller"
What is Fuzzy Zoeller's Score?
CREATE TABLE table_name_56 (score VARCHAR, player VARCHAR)
SELECT home FROM table_name_89 WHERE record = "2-0"
What is the home team of the game with a 2-0 record?
CREATE TABLE table_name_89 (home VARCHAR, record VARCHAR)
SELECT team FROM table_1963459_2 WHERE manufacturer = "Toyota"
What teams drive cars manufactured by Toyota?
CREATE TABLE table_1963459_2 (team VARCHAR, manufacturer VARCHAR)
SELECT att_cmp_int FROM table_name_72 WHERE effic = 117.4
What is the Att-Cmp-Int for the player with a efficiency of 117.4?
CREATE TABLE table_name_72 (att_cmp_int VARCHAR, effic VARCHAR)
SELECT incumbent FROM table_name_47 WHERE district = "massachusetts 8"
Which Incumbent has a District of massachusetts 8?
CREATE TABLE table_name_47 (incumbent VARCHAR, district VARCHAR)
SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93"
How many series had viewers totaling 23.93 million?
CREATE TABLE table_18217753_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MIN(rank) FROM table_name_64 WHERE constituency = "strathkelvin and bearsden"
Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden?
CREATE TABLE table_name_64 (rank INTEGER, constituency VARCHAR)
SELECT MIN(enrollment) FROM table_20190834_1 WHERE team_name = "Cyclones"
What is the minimum enrollment of the cyclones?
CREATE TABLE table_20190834_1 (enrollment INTEGER, team_name VARCHAR)
SELECT part_number_s_ FROM table_23028629_2 WHERE model_number = "Core i5-670"
What is every part number with model number core i5-670?
CREATE TABLE table_23028629_2 (part_number_s_ VARCHAR, model_number VARCHAR)
SELECT score FROM table_name_79 WHERE place = "t9" AND player = "jerry barber"
How much did Jerry Barber score to come in at T9?
CREATE TABLE table_name_79 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT MAX(nepalis_admitted) FROM table_name_67 WHERE bangladeshis_admitted < 1 OFFSET 896
What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted?
CREATE TABLE table_name_67 (nepalis_admitted INTEGER, bangladeshis_admitted INTEGER)
SELECT exit FROM table_name_57 WHERE kilometer_no__rizal_park_basis_ = "164"
What is the exit at kilometer (Rizal Park-basis) 164?
CREATE TABLE table_name_57 (exit VARCHAR, kilometer_no__rizal_park_basis_ VARCHAR)
SELECT date FROM table_22822559_8 WHERE record = "23-47"
What date was the Piston's record at 23-47?
CREATE TABLE table_22822559_8 (date VARCHAR, record VARCHAR)
SELECT COUNT(track) FROM table_name_75 WHERE recorded = "1964-01-08"
How many tracks were Recorded 1964-01-08?
CREATE TABLE table_name_75 (track VARCHAR, recorded VARCHAR)
SELECT MIN(production_code) FROM table_23097214_1 WHERE series__number = 153
What is the production code for Episode 153 in the series?
CREATE TABLE table_23097214_1 (production_code INTEGER, series__number VARCHAR)
SELECT city FROM table_name_63 WHERE country = "mayotte"
What city is in the country of Mayotte?
CREATE TABLE table_name_63 (city VARCHAR, country VARCHAR)
SELECT AVG(week) FROM table_name_67 WHERE date = "december 8, 1991"
Which Week has a Date of december 8, 1991?
CREATE TABLE table_name_67 (week INTEGER, date VARCHAR)
SELECT opponent FROM table_20745685_1 WHERE date = "February 28, 1991"
Who was the opponent on February 28, 1991
CREATE TABLE table_20745685_1 (opponent VARCHAR, date VARCHAR)
SELECT MAX(first_elected) FROM table_1341522_13 WHERE district = "Georgia5"
What's Georgia5's first elected year?
CREATE TABLE table_1341522_13 (first_elected INTEGER, district VARCHAR)
SELECT set_3 FROM table_name_46 WHERE time = "15:04"
What is the score for set 3 with a time at 15:04?
CREATE TABLE table_name_46 (set_3 VARCHAR, time VARCHAR)
SELECT college FROM table_name_78 WHERE team = "chicago stags" AND position = "g"
What college has the Chicago stags and position is G?
CREATE TABLE table_name_78 (college VARCHAR, team VARCHAR, position VARCHAR)
SELECT COUNT(crowd) FROM table_name_44 WHERE away_team = "fitzroy"
How many people attended the game where Fitzroy was the away team?
CREATE TABLE table_name_44 (crowd VARCHAR, away_team VARCHAR)
SELECT gp FROM table_15128839_22 WHERE ff = 0 AND qbh = 1
Name the gp for ff being 0 and qbh being 1
CREATE TABLE table_15128839_22 (gp VARCHAR, ff VARCHAR, qbh VARCHAR)
SELECT bowl_game FROM table_16046689_29 WHERE city = "Tempe, Arizona"
What is the name of the bowl game that was played in Tempe, Arizona?
CREATE TABLE table_16046689_29 (bowl_game VARCHAR, city VARCHAR)
SELECT party FROM table_1342338_3 WHERE district = "Alabama 1"
What kind of party is the district in Alabama 1?
CREATE TABLE table_1342338_3 (party VARCHAR, district VARCHAR)
SELECT location FROM table_name_83 WHERE tail_number = "zs-spf"
In what location was the tail number ZS-SPF?
CREATE TABLE table_name_83 (location VARCHAR, tail_number VARCHAR)
SELECT partially_deleted FROM table_name_96 WHERE name = "bunker hill mining & metallurgical"
What is the partially deleted result for Bunker Hill Mining & Metallurgical?
CREATE TABLE table_name_96 (partially_deleted VARCHAR, name VARCHAR)
SELECT nationality² FROM table_24565004_22 WHERE name = "Pierre Vermeulen"
What country is Pierre Vermeulen from?
CREATE TABLE table_24565004_22 (nationality² VARCHAR, name VARCHAR)
SELECT MIN(pick__number) FROM table_2508633_2 WHERE nfl_team = "Denver Broncos"
Name the least pick number for the denver broncos
CREATE TABLE table_2508633_2 (pick__number INTEGER, nfl_team VARCHAR)
SELECT d_43_√ FROM table_name_64 WHERE d_49_√ = "d 49 √"
What is the D 43 √ with a D 49 √ with d 49 √?
CREATE TABLE table_name_64 (d_43_√ VARCHAR, d_49_√ VARCHAR)
SELECT AVG(rank) FROM table_name_84 WHERE floors = 24
What is the average rank for a building with 24 floors?
CREATE TABLE table_name_84 (rank INTEGER, floors VARCHAR)
SELECT MIN(population_per_km²__2009_) FROM table_name_21 WHERE province = "solomon islands" AND area__km²_ < 28 OFFSET 400
What is the lowest Population per km² (2009) that has a Solomon Islands province, with an Area (km²) smaller than 28,400?
CREATE TABLE table_name_21 (population_per_km²__2009_ INTEGER, province VARCHAR, area__km²_ VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_44 WHERE nationality = "united states" AND round < 12
What league is from the United States and a round smaller than 12.
CREATE TABLE table_name_44 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR)
SELECT title FROM table_19517621_4 WHERE written_by = "Vanessa Bates"
What is the title of the episode written by Vanessa Bates?
CREATE TABLE table_19517621_4 (title VARCHAR, written_by VARCHAR)
SELECT division FROM table_name_26 WHERE wins = "76"
Which MLB division has a win record of 76?
CREATE TABLE table_name_26 (division VARCHAR, wins VARCHAR)
SELECT opponent FROM table_21063459_1 WHERE record = "3-1, #16"
Who did the team play against when a record of 3-1, #16 was achieved?
CREATE TABLE table_21063459_1 (opponent VARCHAR, record VARCHAR)
SELECT MAX(avg) FROM table_name_41 WHERE player = "buck pierce" AND fumbles < 2
What was Buck Pierce's highest average when there were less than 2 fumbles?
CREATE TABLE table_name_41 (avg INTEGER, player VARCHAR, fumbles VARCHAR)
SELECT country FROM table_1520559_1 WHERE margin_of_victory = "9 strokes"
Which countries won by 9 strokes?
CREATE TABLE table_1520559_1 (country VARCHAR, margin_of_victory VARCHAR)
SELECT position FROM table_11677691_10 WHERE hometown = "Paramus, New Jersey"
What position belonged to the player from Paramus, New Jersey?
CREATE TABLE table_11677691_10 (position VARCHAR, hometown VARCHAR)
SELECT date FROM table_name_83 WHERE surface = "hard" AND tournament = "usa f5, brownsville"
Name the date with a hard surface and tournament of usa f5, brownsville
CREATE TABLE table_name_83 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT to_par FROM table_name_11 WHERE score = 71 - 74 - 68 = 213
For which to par was the score 71-74-68=213?
CREATE TABLE table_name_11 (to_par VARCHAR, score VARCHAR)
SELECT week FROM table_11406866_2 WHERE attendance = "77,098"
what's the week where attendance is 77,098
CREATE TABLE table_11406866_2 (week VARCHAR, attendance VARCHAR)
SELECT couple FROM table_26375386_20 WHERE vote_percentage = "5.8%"
what couple had a vote percentage of 5.8%?
CREATE TABLE table_26375386_20 (couple VARCHAR, vote_percentage VARCHAR)
SELECT home_team AS score FROM table_name_52 WHERE home_team = "st kilda"
What is the home team score for St Kilda?
CREATE TABLE table_name_52 (home_team VARCHAR)
SELECT home_team FROM table_name_66 WHERE away_team = "hawthorn"
Who is the home team when hawthorn is the away side?
CREATE TABLE table_name_66 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(uni_number) FROM table_name_31 WHERE bats = "s" AND position = "utl"
How many Uni numbers have Bats of s, and a Position of utl?
CREATE TABLE table_name_31 (uni_number VARCHAR, bats VARCHAR, position VARCHAR)