answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(laps) FROM table_name_5 WHERE time = "+31.982"
What is the largest lap number when the time was +31.982?
CREATE TABLE table_name_5 (laps INTEGER, time VARCHAR)
SELECT run_time FROM table_name_66 WHERE podcast_date = "september 4, 2005"
What is the run time of the episode that aired on September 4, 2005?
CREATE TABLE table_name_66 (run_time VARCHAR, podcast_date VARCHAR)
SELECT acquired FROM table_name_1 WHERE player = "tom norton"
Who acquired tom norton?
CREATE TABLE table_name_1 (acquired VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_91 WHERE location = "boston garden" AND game > 1 AND score = "115-105"
What is Opponent, when Location is "Boston Garden", when Game is greater than 1, and when Score is "115-105"?
CREATE TABLE table_name_91 (opponent VARCHAR, score VARCHAR, location VARCHAR, game VARCHAR)
SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "1:48.179"
What are the notes for the person ranked larger than 2, and a time of 1:48.179?
CREATE TABLE table_name_48 (notes VARCHAR, rank VARCHAR, time VARCHAR)
SELECT team FROM table_name_79 WHERE average = 1.035
Team with average of 1.035?
CREATE TABLE table_name_79 (team VARCHAR, average VARCHAR)
SELECT release_date FROM table_name_43 WHERE vendor = "eclipse foundation"
What is the release date for Eclipse Foundation?
CREATE TABLE table_name_43 (release_date VARCHAR, vendor VARCHAR)
SELECT year__ceremony_ FROM table_name_81 WHERE original_title = "el tinte de la fama"
What year has a original title of "el tinte de la fama"?
CREATE TABLE table_name_81 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT statistic FROM table_name_79 WHERE opponent = "ssc-r"
When the opposing team was SSC-R what was the statistic?
CREATE TABLE table_name_79 (statistic VARCHAR, opponent VARCHAR)
SELECT prize_money FROM table_name_60 WHERE round = "second round qualifying"
What is the prize money for the second round qualifying that is listed?
CREATE TABLE table_name_60 (prize_money VARCHAR, round VARCHAR)
SELECT college FROM table_name_3 WHERE position = "quarterback"
What college was the quarterback from?
CREATE TABLE table_name_3 (college VARCHAR, position VARCHAR)
SELECT winning_team FROM table_name_9 WHERE pole_position = "mario andretti"
What team does mario andretti play pole position for?
CREATE TABLE table_name_9 (winning_team VARCHAR, pole_position VARCHAR)
SELECT second FROM table_name_64 WHERE first = "western australia"
What is SECOND, when FIRST is Western Australia?
CREATE TABLE table_name_64 (second VARCHAR, first VARCHAR)
SELECT league_position FROM table_name_31 WHERE result_f___a = "2 – 0" AND opponents = "queens park rangers"
What League position has a Result F – A of 2 – 0, and Opponents of queens park rangers?
CREATE TABLE table_name_31 (league_position VARCHAR, result_f___a VARCHAR, opponents VARCHAR)
SELECT score FROM table_name_70 WHERE opponent_in_the_final = "martin spottl"
What is the Score of the Tournament with Opponent in the final of Martin Spottl?
CREATE TABLE table_name_70 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_23248940_6 WHERE date = "November 10"
What is every score when date is November 10?
CREATE TABLE table_23248940_6 (score VARCHAR, date VARCHAR)
SELECT artist FROM table_name_11 WHERE televotes__points_ = "2153 (5)"
Who is the artist with 2153 (5) televotes (points)?
CREATE TABLE table_name_11 (artist VARCHAR, televotes__points_ VARCHAR)
SELECT oklahoma FROM table_name_94 WHERE nevada = "clinton" AND colorado = "clinton"
What's the value for oklahoma when nevada and colorado are clinton?
CREATE TABLE table_name_94 (oklahoma VARCHAR, nevada VARCHAR, colorado VARCHAR)
SELECT 1993 FROM table_name_15 WHERE 1996 = "atp masters series"
What is the 1993 value of the 1996 atp masters series?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT MIN(rank) FROM table_name_79 WHERE year > 2009 AND accolade = "125 best albums of the past 25 years"
What was the lowest rank after 2009 with an accolade of 125 best albums of the past 25 years?
CREATE TABLE table_name_79 (rank INTEGER, year VARCHAR, accolade VARCHAR)
SELECT year__ceremony_ FROM table_18123274_1 WHERE result = "Not Nominated" AND director = "Alberto Aruelo"
Name the year for not nominated for alberto aruelo
CREATE TABLE table_18123274_1 (year__ceremony_ VARCHAR, result VARCHAR, director VARCHAR)
SELECT race_name FROM table_name_4 WHERE circuit = "goodwood"
Which Race Name has Goodwood in the Curcuit?
CREATE TABLE table_name_4 (race_name VARCHAR, circuit VARCHAR)
SELECT in_malayalam FROM table_name_61 WHERE saka_era = "kartika–agrahayana"
WHAT IS THE IN MALAYALAM WITH kartika–agrahayana?
CREATE TABLE table_name_61 (in_malayalam VARCHAR, saka_era VARCHAR)
SELECT year_opened FROM table_name_57 WHERE coaster_name = "le monstre"
Which year opened has le monstre coaster?
CREATE TABLE table_name_57 (year_opened VARCHAR, coaster_name VARCHAR)
SELECT name FROM table_name_58 WHERE opponent = "pohang steelers"
Which opponent plays against the Pohang Steelers?
CREATE TABLE table_name_58 (name VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_42 WHERE place = "t4" AND score = 66 - 73 = 139
Which country had a t4 place and scored 66-73=139?
CREATE TABLE table_name_42 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT result FROM table_1346118_5 WHERE candidates = "John A. Elston (R) 88.4% Luella Twining (S) 11.6%"
What was the net seat gain in the race john a. elston (r) 88.4% luella twining (s) 11.6%?
CREATE TABLE table_1346118_5 (result VARCHAR, candidates VARCHAR)
SELECT agg FROM table_name_47 WHERE team_2 = "partizan"
When Partizan is Team 2, what is the Agg?
CREATE TABLE table_name_47 (agg VARCHAR, team_2 VARCHAR)
SELECT result FROM table_name_7 WHERE venue = "away" AND game > 6
What is the result of the game with a game number greater than 6 and an away venue?
CREATE TABLE table_name_7 (result VARCHAR, venue VARCHAR, game VARCHAR)
SELECT marcin_dołęga___pol__ FROM table_name_76 WHERE world_record = "olympic record" AND snatch = "total"
What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?
CREATE TABLE table_name_76 (marcin_dołęga___pol__ VARCHAR, world_record VARCHAR, snatch VARCHAR)
SELECT MIN(drawn) FROM table_name_83 WHERE games < 7
What is the lowest drawn that has games less than 7?
CREATE TABLE table_name_83 (drawn INTEGER, games INTEGER)
SELECT rank__week_ FROM table_name_77 WHERE share > 7 AND rating / SHARE(18 - 49) = 2.3 / 7
What is the weekly rank for the episode with a share over 7 and a rating/share of 2.3/7?
CREATE TABLE table_name_77 (rank__week_ VARCHAR, share VARCHAR, rating VARCHAR)
SELECT decision FROM table_name_41 WHERE visitor = "philadelphia"
Who recorded the decision when philadelphia was away?
CREATE TABLE table_name_41 (decision VARCHAR, visitor VARCHAR)
SELECT AVG(laps) FROM table_name_80 WHERE year = 2007
Which Laps has a Year of 2007?
CREATE TABLE table_name_80 (laps INTEGER, year VARCHAR)
SELECT T3.dept_name, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T1.emp_lname = 'Heffington'
What is department name and office for the professor whose last name is Heffington?
CREATE TABLE employee (emp_num VARCHAR, emp_lname VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)
SELECT country FROM table_name_54 WHERE place = "t10" AND player = "len mattiace"
Which country has is Len Mattiace in T10 place?
CREATE TABLE table_name_54 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT result FROM table_name_89 WHERE week > 14 AND opponent = "dallas cowboys"
Where week is greater than 14 and Opponent is Dallas Cowboys, what is the result?
CREATE TABLE table_name_89 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT year__ceremony_ FROM table_name_98 WHERE original_title = "ničiji sin"
What is the year of the ceremony with the original title ničiji sin?
CREATE TABLE table_name_98 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT run_4 FROM table_name_22 WHERE final = "8:16.28"
Which Run 4 has a Final of 8:16.28?
CREATE TABLE table_name_22 (run_4 VARCHAR, final VARCHAR)
SELECT COUNT(class_aA) FROM table_14601528_2 WHERE class_aAA = Bridgeport AND school_year = "1999-2000"
Name the number of class aa for bridgeport and 1999-2000
CREATE TABLE table_14601528_2 (class_aA VARCHAR, class_aAA VARCHAR, Bridgeport VARCHAR, school_year VARCHAR)
SELECT MIN(total_attendance) FROM table_28884858_2 WHERE team = "New York Giants"
What was the total attendance of the New York Giants?
CREATE TABLE table_28884858_2 (total_attendance INTEGER, team VARCHAR)
SELECT location_attendance FROM table_27723228_8 WHERE record = "16–11"
Where was the game played when the record was 16–11?
CREATE TABLE table_27723228_8 (location_attendance VARCHAR, record VARCHAR)
SELECT SUM(laps) FROM table_name_21 WHERE time_retired = "+13 laps" AND grid > 18
Tell me the sum of laps with a time/retired of +13 laps with grid more than 18
CREATE TABLE table_name_21 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT high_points FROM table_17311812_8 WHERE date = "February 11"
What is the high amount of points on February 11?
CREATE TABLE table_17311812_8 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(original_airdate) FROM table_20124413_1 WHERE prod_code = "1.17"
When 1.17 is the production code how many air dates are there?
CREATE TABLE table_20124413_1 (original_airdate VARCHAR, prod_code VARCHAR)
SELECT MIN(react) FROM table_name_61 WHERE mark = "46.26 sb" AND lane > 6
What is the lowest React, when Mark is 46.26 sb, and when Lane is greater than 6?
CREATE TABLE table_name_61 (react INTEGER, mark VARCHAR, lane VARCHAR)
SELECT hanzi FROM table_name_92 WHERE regional_population_2010_ = "4,591,972"
Which Hanzi has a Regional Population of 4,591,972 in 2010?
CREATE TABLE table_name_92 (hanzi VARCHAR, regional_population_2010_ VARCHAR)
SELECT _percentage_of_all_immigrants_2007 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2008 = "1.7%"
What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008?
CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2008 VARCHAR)
SELECT districts FROM table_name_36 WHERE province = "piura"
Which district is in the province of Piura?
CREATE TABLE table_name_36 (districts VARCHAR, province VARCHAR)
SELECT centerfold_model FROM table_name_81 WHERE cover_model = "irina voronina"
Which Centerfold model has a Cover model of irina voronina?
CREATE TABLE table_name_81 (centerfold_model VARCHAR, cover_model VARCHAR)
SELECT hometown FROM table_name_79 WHERE games_started = "4"
Games started of 4 is in what hometown?
CREATE TABLE table_name_79 (hometown VARCHAR, games_started VARCHAR)
SELECT airport FROM table_name_68 WHERE icao = "bgbw"
What airport has an ICAP of BGBW?
CREATE TABLE table_name_68 (airport VARCHAR, icao VARCHAR)
SELECT date FROM table_name_16 WHERE label = "alfa records" AND format = "cd" AND catalog = "alca-9201"
What is the date of the label Alfa records, a CD format, and an alca-9201 catalog?
CREATE TABLE table_name_16 (date VARCHAR, catalog VARCHAR, label VARCHAR, format VARCHAR)
SELECT MIN(year) FROM table_name_27 WHERE position = "rb" AND college = "louisiana state"
Which lowest year has a Position of rb, and a College of louisiana state?
CREATE TABLE table_name_27 (year INTEGER, position VARCHAR, college VARCHAR)
SELECT AVG(against) FROM table_name_78 WHERE team = "estudantes paulista" AND position < 4
Team Estudantes Paulista with a position less than 4 has what average against?
CREATE TABLE table_name_78 (against INTEGER, team VARCHAR, position VARCHAR)
SELECT MAX(rank) FROM table_name_5 WHERE population > 93 OFFSET 378
Name the most rank for population more than 93,378
CREATE TABLE table_name_5 (rank INTEGER, population INTEGER)
SELECT COUNT(founded) FROM table_26218124_1 WHERE city = "Belo Horizonte"
How many clubs were founded in belo horizonte?
CREATE TABLE table_26218124_1 (founded VARCHAR, city VARCHAR)
SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:39.07"
What is the highest rank with the notes of sa/b, and a time of 6:39.07?
CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)
SELECT no_in_season FROM table_19995378_1 WHERE us_viewers__millions_ = "10.11"
What is the season number of the episode seen by 10.11 million people in the US?
CREATE TABLE table_19995378_1 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT home_team FROM table_name_39 WHERE away_team = "geelong"
Which home team played against Geelong?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(size___s_base_pair__) FROM table_140968_1 WHERE molecular_weight_kda = "102"
How many base pairs are there if the molecular weight is 102?
CREATE TABLE table_140968_1 (size___s_base_pair__ VARCHAR, molecular_weight_kda VARCHAR)
SELECT COUNT(daves_team) FROM table_23292220_4 WHERE first_broadcast = "27 October 2006"
How many daves team entries are there on 27 october 2006?
CREATE TABLE table_23292220_4 (daves_team VARCHAR, first_broadcast VARCHAR)
SELECT player FROM table_name_56 WHERE conf = "pac-10" AND pos = "g"
Which player had a conference of PAC-10 and position of G?
CREATE TABLE table_name_56 (player VARCHAR, conf VARCHAR, pos VARCHAR)
SELECT COUNT(air_date) FROM table_1893276_2 WHERE eliminated = "Morgan"
How many air dates were there when Morgan was eliminated?
CREATE TABLE table_1893276_2 (air_date VARCHAR, eliminated VARCHAR)
SELECT round_3 FROM table_name_39 WHERE round_4 = "50"
Round 3 with a round 4 of 50?
CREATE TABLE table_name_39 (round_3 VARCHAR, round_4 VARCHAR)
SELECT batting_partners FROM table_1670921_2 WHERE season = "2004"
What batting partners were the most successful in 2004?
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, season VARCHAR)
SELECT roman FROM table_name_79 WHERE sound__allophone_ = "[[[|k]]]"
What is the Roman entry for the allophone of [[[|k]]]?
CREATE TABLE table_name_79 (roman VARCHAR, sound__allophone_ VARCHAR)
SELECT winner FROM table_28853064_15 WHERE mountains_classification = "Jaime Vergara" AND team_classification = "Col es Pasion Café De Colombia 472"
Who was the winner if the Mountains Classification award was given to Jaime Vergara and the Team Classification award is given to Col es Pasion Café De Colombia 472?
CREATE TABLE table_28853064_15 (winner VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR)
SELECT AVG(year) FROM table_name_23 WHERE record = "33-33"
Tell me the average year with a record of 33-33
CREATE TABLE table_name_23 (year INTEGER, record VARCHAR)
SELECT MIN(games_played) FROM table_18018214_3
How many games did each team played?
CREATE TABLE table_18018214_3 (games_played INTEGER)
SELECT COUNT(production_code) FROM table_25548213_1 WHERE directed_by = "Linda Mendoza"
List the number of episodes directed by linda mendoza.
CREATE TABLE table_25548213_1 (production_code VARCHAR, directed_by VARCHAR)
SELECT winnings FROM table_25146455_1 WHERE driver = "Jeff Burton"
How much did Jeff Burton win?
CREATE TABLE table_25146455_1 (winnings VARCHAR, driver VARCHAR)
SELECT result FROM table_name_62 WHERE interim_head_coach = "gary darnell"
What was the result under interim head coach, Gary Darnell?
CREATE TABLE table_name_62 (result VARCHAR, interim_head_coach VARCHAR)
SELECT MAX(overall) FROM table_name_62 WHERE position = "guard" AND college = "rice"
What is the College of Rice's highest overall for the guard position?
CREATE TABLE table_name_62 (overall INTEGER, position VARCHAR, college VARCHAR)
SELECT COUNT(l_apps) FROM table_19018191_5 WHERE total_g = 8
Name the number of apps for total g is 8
CREATE TABLE table_19018191_5 (l_apps VARCHAR, total_g VARCHAR)
SELECT MAX(ties) FROM table_name_72 WHERE losses < 8
What is the highest value for Ties, when Losses is less than 8?
CREATE TABLE table_name_72 (ties INTEGER, losses INTEGER)
SELECT report FROM table_name_6 WHERE venue = "townsville entertainment centre"
Which report is for Townsville Entertainment Centre?
CREATE TABLE table_name_6 (report VARCHAR, venue VARCHAR)
SELECT away_captain FROM table_name_43 WHERE result = "eng by 1 wkt"
Who was the away captain with a result of Eng by 1 wkt?
CREATE TABLE table_name_43 (away_captain VARCHAR, result VARCHAR)
SELECT laps FROM table_name_37 WHERE time_retired = "+ 1:39.591"
How many laps are associated with a time of + 1:39.591?
CREATE TABLE table_name_37 (laps VARCHAR, time_retired VARCHAR)
SELECT result FROM table_name_11 WHERE goal = 4
What was result of goal 4?
CREATE TABLE table_name_11 (result VARCHAR, goal VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE venue = "princes park"
What was the score of the away team at princes park?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT reg_season FROM table_name_7 WHERE record = "16-12"
What regular season had a record of 16-12?
CREATE TABLE table_name_7 (reg_season VARCHAR, record VARCHAR)
SELECT MAX(rank) FROM table_name_95 WHERE taijiquan > 9.64 AND total > 19.69
What is the highest rank of the athlete with a Taijiquan higher than 9.64 and a total more than 19.69?
CREATE TABLE table_name_95 (rank INTEGER, taijiquan VARCHAR, total VARCHAR)
SELECT head_coach FROM table_name_75 WHERE shirt_sponsor = "finke"
Who is the head coach for the team that has finke as the shirt sponsor?
CREATE TABLE table_name_75 (head_coach VARCHAR, shirt_sponsor VARCHAR)
SELECT MAX(total) FROM table_name_58 WHERE bronze = 0 AND nation = "hungary"
what is the total when bronze is 0 and the nation is hungary?
CREATE TABLE table_name_58 (total INTEGER, bronze VARCHAR, nation VARCHAR)
SELECT network FROM table_name_66 WHERE play_by_play = "marv albert" AND year < 1994
What is the network with the play-by-play Marv Albert before 1994?
CREATE TABLE table_name_66 (network VARCHAR, play_by_play VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_9 WHERE loss = "travers (0–2)"
What was the opponent at the game that had a loss of Travers (0–2)?
CREATE TABLE table_name_9 (opponent VARCHAR, loss VARCHAR)
SELECT country FROM table_name_6 WHERE name = "spence"
Which country has Spence in the name section?
CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR)
SELECT high_assists FROM table_name_38 WHERE team = "oklahoma city"
What is High Assists, when Team is "Oklahoma City"?
CREATE TABLE table_name_38 (high_assists VARCHAR, team VARCHAR)
SELECT COUNT(socket) FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-2xx7M"
How many sockets are listed that have a brand name of "Core i3-2xx7m"?
CREATE TABLE table_24538587_11 (socket VARCHAR, brand_name__list_ VARCHAR)
SELECT date FROM table_name_45 WHERE home_team = "hawthorn"
On what date was Hawthorn the home team?
CREATE TABLE table_name_45 (date VARCHAR, home_team VARCHAR)
SELECT circuit FROM table_name_83 WHERE fastest_lap = "alberto ascari josé froilán gonzález"
What was the circuit for alberto ascari josé froilán gonzález?
CREATE TABLE table_name_83 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT Major FROM STUDENT GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1
Which major has the most students?
CREATE TABLE STUDENT (Major VARCHAR, major VARCHAR)
SELECT date FROM table_name_53 WHERE away_team = "essendon"
When did essendon play away?
CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR)
SELECT introductory_phrase FROM table_14835674_1 WHERE guest = "Neil Shubin"
What was the inroductory phase for the episode with neil shubin as a guest?
CREATE TABLE table_14835674_1 (introductory_phrase VARCHAR, guest VARCHAR)
SELECT COUNT(position) FROM table_11677691_11 WHERE player = "Greg Bryant"
How many positions does Greg Bryant play?
CREATE TABLE table_11677691_11 (position VARCHAR, player VARCHAR)
SELECT spouse FROM table_name_71 WHERE name = "margaret of brabant"
Who was Margaret of Brabant's spouse?
CREATE TABLE table_name_71 (spouse VARCHAR, name VARCHAR)
SELECT AVG(game) FROM table_name_27 WHERE score = "89-91"
What game has a score of 89-91?
CREATE TABLE table_name_27 (game INTEGER, score VARCHAR)
SELECT MIN(population__1991_) FROM table_2562572_7 WHERE cyrillic_name = "Панчево"
What is the population (1991) when cyrillic name is панчево?
CREATE TABLE table_2562572_7 (population__1991_ INTEGER, cyrillic_name VARCHAR)
SELECT d_50 FROM table_name_84 WHERE d_41 = "d 41"
What is the D 50 when the D 41 is d 41?
CREATE TABLE table_name_84 (d_50 VARCHAR, d_41 VARCHAR)