answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT venue FROM table_name_61 WHERE score = "8-2"
What is the venue when the score was 8-2?
CREATE TABLE table_name_61 (venue VARCHAR, score VARCHAR)
SELECT COUNT(*) FROM participants AS T1 JOIN Participants_in_Events AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE T1.participant_details LIKE '%Dr.%'
How many events had participants whose details had the substring 'Dr.'
CREATE TABLE participants (Participant_ID VARCHAR, participant_details VARCHAR); CREATE TABLE Participants_in_Events (Participant_ID VARCHAR)
SELECT COUNT(position) FROM table_10705060_1 WHERE season = "2009"
how many positions in 2009?
CREATE TABLE table_10705060_1 (position VARCHAR, season VARCHAR)
SELECT game_site FROM table_name_53 WHERE kickoff_[a_] = "1:00" AND attendance = "63,251"
Which game site Kickoff [a] of 1:00, and an Attendance of 63,251?
CREATE TABLE table_name_53 (game_site VARCHAR, attendance VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT COUNT(assists) FROM table_24807406_1 WHERE minutes = 1
What is the assists total number if the minutes is 1?
CREATE TABLE table_24807406_1 (assists VARCHAR, minutes VARCHAR)
SELECT pick FROM table_name_3 WHERE position = "defensive end"
Which pick played the Defensive End position?
CREATE TABLE table_name_3 (pick VARCHAR, position VARCHAR)
SELECT overall_record FROM table_name_42 WHERE week < 16 AND divisional_record = "(1-0)" AND away_team = "miami"
Can you tell me the Overall Record that has the Week smaller than 16, and the Divisional Record of (1-0), and the Away Team of miami?
CREATE TABLE table_name_42 (overall_record VARCHAR, away_team VARCHAR, week VARCHAR, divisional_record VARCHAR)
SELECT COUNT(round) FROM table_name_8 WHERE college = "florida state"
What is the sum of all the rounds when a Florida State player was drafted?
CREATE TABLE table_name_8 (round VARCHAR, college VARCHAR)
SELECT rank FROM table_name_71 WHERE year < 2000 AND bike = "bsl"
Which rank took place prior to 2000 when the bike was bsl?
CREATE TABLE table_name_71 (rank VARCHAR, year VARCHAR, bike VARCHAR)
SELECT COUNT(location_attendance) FROM table_23286158_10 WHERE high_assists = "Brandon Roy (6)" AND game = 78
When 78 is the game and brandon roy (6) has the highest amount of assists how many locations/attendances are there?
CREATE TABLE table_23286158_10 (location_attendance VARCHAR, high_assists VARCHAR, game VARCHAR)
SELECT division FROM table_name_97 WHERE regular_season = "5th, northeast"
What division was the regular season 5th, Northeast?
CREATE TABLE table_name_97 (division VARCHAR, regular_season VARCHAR)
SELECT date FROM table_name_9 WHERE loss = "johnson (4-12)"
When the Loss is Johnson (4-12), what is the date?
CREATE TABLE table_name_9 (date VARCHAR, loss VARCHAR)
SELECT COUNT(gold) FROM table_name_32 WHERE silver > 1 AND nation = "vietnam" AND bronze < 3
How many golds have a silver greater than 1, vietnam as the nation, with a bronze less than 3?
CREATE TABLE table_name_32 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT longitude FROM table_18600760_3 WHERE latitude = "48.075823"
What was the longitude of the township with a latitude of 48.075823?
CREATE TABLE table_18600760_3 (longitude VARCHAR, latitude VARCHAR)
SELECT MIN(time) FROM table_name_35 WHERE react > 0.183 AND athlete = "david neville"
What is the shortest Time for David Neville when his React time was greater than 0.183?
CREATE TABLE table_name_35 (time INTEGER, react VARCHAR, athlete VARCHAR)
SELECT MAX(season__number) FROM table_19632728_1
What was the highest season number?
CREATE TABLE table_19632728_1 (season__number INTEGER)
SELECT original_air_date FROM table_11404452_1 WHERE director = "Jamie Babbit"
What is the original air date of the Jamie Babbit directed episode?
CREATE TABLE table_11404452_1 (original_air_date VARCHAR, director VARCHAR)
SELECT method FROM table_name_99 WHERE record = "16–7"
Which Method has a Record of 16–7?
CREATE TABLE table_name_99 (method VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_78 WHERE date = "2004-06-26" AND result = "loss"
who is the opponent on 2004-06-26 with the result of loss?
CREATE TABLE table_name_78 (opponent VARCHAR, date VARCHAR, result VARCHAR)
SELECT MAX(year) FROM table_name_90 WHERE points > 0
Name the highest year with points more than 0
CREATE TABLE table_name_90 (year INTEGER, points INTEGER)
SELECT moving_to FROM table_name_18 WHERE date_to = "30 june 2009" AND pos = "mf"
Where did the player in Pos mf, move to until 30 june 2009 ?
CREATE TABLE table_name_18 (moving_to VARCHAR, date_to VARCHAR, pos VARCHAR)
SELECT director FROM table_name_72 WHERE notes = "prizzi's honor"
Who had notes of Prizzi's Honor?
CREATE TABLE table_name_72 (director VARCHAR, notes VARCHAR)
SELECT college FROM table_name_23 WHERE pick = 213
What is the college pick for 213?
CREATE TABLE table_name_23 (college VARCHAR, pick VARCHAR)
SELECT rocket FROM table_name_30 WHERE block = "block i/ii hybrid"
What rocket has a block i/ii hybrid?
CREATE TABLE table_name_30 (rocket VARCHAR, block VARCHAR)
SELECT track FROM table_name_80 WHERE pole_winner = "frank kimmel" AND event_name = "pennsylvania 200"
At which track was Frank Kimmel the Pole Winner of the Pennsylvania 200?
CREATE TABLE table_name_80 (track VARCHAR, pole_winner VARCHAR, event_name VARCHAR)
SELECT SUM(round) FROM table_name_32 WHERE name = "marcus howard"
What is the round for marcus howard?
CREATE TABLE table_name_32 (round INTEGER, name VARCHAR)
SELECT charting FROM table_name_96 WHERE blogs = "no" AND discussion = "no"
WHAT CHARTING HAS NO BLOGS OR DISCUSSION?
CREATE TABLE table_name_96 (charting VARCHAR, blogs VARCHAR, discussion VARCHAR)
SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31
Name the lowest 2008 for guizhou when 2005 is less than 31
CREATE TABLE table_name_45 (year VARCHAR)
SELECT finish FROM table_name_70 WHERE total > 286 AND to_par = "+4" AND player = "bob tway"
What was the finish with a total larger than 286, a to par of +4 and Bob Tway played?
CREATE TABLE table_name_70 (finish VARCHAR, player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate_change___percentage_ = "+40.4"
What is the rate limit when the desired rate change (%) is +40.4?
CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, desired_rate_change___percentage_ VARCHAR)
SELECT no_in_season FROM table_27491610_2 WHERE us_viewers__millions_ = "10.18"
What number in season had 10.18 million US viewers?
CREATE TABLE table_27491610_2 (no_in_season VARCHAR, us_viewers__millions_ VARCHAR)
SELECT date FROM table_name_68 WHERE loss = "ponson (4–3)"
What date was the loss of ponson (4–3)?
CREATE TABLE table_name_68 (date VARCHAR, loss VARCHAR)
SELECT MIN(revenue__) AS $m_ FROM table_name_95 WHERE rank = 14
What is the lowest revenue for the rank of 14?
CREATE TABLE table_name_95 (revenue__ INTEGER, rank VARCHAR)
SELECT SUM(europe) FROM table_name_72 WHERE others = 0 AND league < 328 AND position = "mf"
What is the sum of the Europe totals for players with other appearances of 0, league appearances under 328, and a position of MF?
CREATE TABLE table_name_72 (europe INTEGER, position VARCHAR, others VARCHAR, league VARCHAR)
SELECT purpose FROM table_name_43 WHERE freq_currently = "4rph"
What is the Purpose of the Callsign with a Freq currently of 4rph?
CREATE TABLE table_name_43 (purpose VARCHAR, freq_currently VARCHAR)
SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin"
What are all the title directed by reginald hudlin
CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)
SELECT MIN(_number_of_total_votes) FROM table_123462_2
What was the lowest # of total votes?
CREATE TABLE table_123462_2 (_number_of_total_votes INTEGER)
SELECT AVG(silver) FROM table_name_28 WHERE rank = 12 AND bronze < 2
What is the average silver medals a team ranked 12 with less than 2 bronze has?
CREATE TABLE table_name_28 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MAX(rounds) FROM table_1266602_2 WHERE crew_chief = "Donnie Wingo"
What is the largest number of rounds for the team that hired Donnie Wingo as crew chief?
CREATE TABLE table_1266602_2 (rounds INTEGER, crew_chief VARCHAR)
SELECT opponent FROM table_name_53 WHERE score = "6–4, 6–7 (2–7) , 7–5"
Who was the opponent when the score was 6–4, 6–7 (2–7) , 7–5?
CREATE TABLE table_name_53 (opponent VARCHAR, score VARCHAR)
SELECT score FROM table_name_81 WHERE opponent = "@ san antonio" AND date = "june 20"
What is the Score of the game @ San Antonio on June 20?
CREATE TABLE table_name_81 (score VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT round FROM table_24853015_1 WHERE class_d_winner = "Roy Salvadori" AND class_b_winner = "Alan Hutcheson"
In which round did Roy Salvadori won Class D and Alan Hutcheson won Class B?
CREATE TABLE table_24853015_1 (round VARCHAR, class_d_winner VARCHAR, class_b_winner VARCHAR)
SELECT 250 AS cc_winner FROM table_15299235_1 WHERE grand_prix = "Spanish grand_prix"
Who won the spanish grand prix?
CREATE TABLE table_15299235_1 (grand_prix VARCHAR)
SELECT opponent_in_the_final FROM table_name_29 WHERE score = "6–3, 3–6, 6–8"
Which Opponent in the final has a Score of 6–3, 3–6, 6–8?
CREATE TABLE table_name_29 (opponent_in_the_final VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_19 WHERE date = "9 november 1991"
Name the opponent for 9 november 1991
CREATE TABLE table_name_19 (opponent VARCHAR, date VARCHAR)
SELECT MAX(asts) FROM table_name_38 WHERE pos = "f/c" AND rebs < 13
What is the highest number of assists for players that are f/c and have under 13 rebounds?
CREATE TABLE table_name_38 (asts INTEGER, pos VARCHAR, rebs VARCHAR)
SELECT home_team AS score FROM table_name_73 WHERE away_team = "south melbourne"
What was the home teams score while playing the away team of south melbourne?
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
SELECT riding FROM table_12407546_1 WHERE athlete__noc_ = "Eduardo Salas"
What's Eduardo Salas' riding score?
CREATE TABLE table_12407546_1 (riding VARCHAR, athlete__noc_ VARCHAR)
SELECT margin_of_victory FROM table_name_28 WHERE date = "apr 8, 1979"
What was the margin of victory on Apr 8, 1979?
CREATE TABLE table_name_28 (margin_of_victory VARCHAR, date VARCHAR)
SELECT airport FROM table_name_95 WHERE city = "milan" AND iata = "lin"
for milan and the iata of lin what is the airport?
CREATE TABLE table_name_95 (airport VARCHAR, city VARCHAR, iata VARCHAR)
SELECT COUNT(won) FROM table_13564702_3 WHERE tries_for = "92"
Name total number of won for tries for 92
CREATE TABLE table_13564702_3 (won VARCHAR, tries_for VARCHAR)
SELECT constructor FROM table_name_28 WHERE laps = 45 AND qual < 142.29 AND driver = "chuck weyant"
Which constructor has Chuck Weyant as a driver, 45 laps, and a qual of less than 142.29?
CREATE TABLE table_name_28 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, qual VARCHAR)
SELECT MIN(game) FROM table_27734577_13 WHERE high_assists = "Josh Smith (4)"
What is the game number where josh smith (4) had the high assists?
CREATE TABLE table_27734577_13 (game INTEGER, high_assists VARCHAR)
SELECT AVG(rank) FROM table_name_35 WHERE ast_avg < 2.9
What is the average rank for players with less than 2.9 Assists per game?
CREATE TABLE table_name_35 (rank INTEGER, ast_avg INTEGER)
SELECT location FROM table_name_1 WHERE year = "1994" AND country = "yemen"
What is the location for Yemen in 1994?
CREATE TABLE table_name_1 (location VARCHAR, year VARCHAR, country VARCHAR)
SELECT artist FROM table_name_67 WHERE label = "reunion" AND credit = "guitar" AND album = "christmas"
Who was the artist for the album, Christmas under the reunion label with the guitar?
CREATE TABLE table_name_67 (artist VARCHAR, album VARCHAR, label VARCHAR, credit VARCHAR)
SELECT AVG(goals_for) FROM table_name_79 WHERE played > 10
How many goals when more than 10 games played?
CREATE TABLE table_name_79 (goals_for INTEGER, played INTEGER)
SELECT district FROM table_1341672_14 WHERE incumbent = "Tim Lee Hall"
Name the district for tim lee hall
CREATE TABLE table_1341672_14 (district VARCHAR, incumbent VARCHAR)
SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = "Solveig"
Find all the stage positions of the musicians with first name "Solveig"
CREATE TABLE Band (id VARCHAR); CREATE TABLE Performance (stageposition VARCHAR, bandmate VARCHAR)
SELECT nickname_s_ FROM table_18304058_2 WHERE enrollment__2013_14_ = 436
What is the nickname of the team whose 2013/2014 enrollment is 436?
CREATE TABLE table_18304058_2 (nickname_s_ VARCHAR, enrollment__2013_14_ VARCHAR)
SELECT COUNT(apogee__km_) FROM table_name_74 WHERE alt_name = "ops-8285" AND mass__kg_ > 1500
How many Apogee sis Ops-8285 with more than 1500 kg?
CREATE TABLE table_name_74 (apogee__km_ VARCHAR, alt_name VARCHAR, mass__kg_ VARCHAR)
SELECT hanja FROM table_name_78 WHERE province = "sakju"
What is the Hanja for the sakju province?
CREATE TABLE table_name_78 (hanja VARCHAR, province VARCHAR)
SELECT written_by FROM table_name_68 WHERE series__number = 99
Who wrote series number 99?
CREATE TABLE table_name_68 (written_by VARCHAR, series__number VARCHAR)
SELECT date FROM table_name_49 WHERE opponent = "brother elephants" AND save = "||4,117"
What is the date of the match with Brother Elephants as the opponent and a save of ||4,117?
CREATE TABLE table_name_49 (date VARCHAR, opponent VARCHAR, save VARCHAR)
SELECT college FROM table_name_47 WHERE school = "episcopal academy"
What college picked someone from The Episcopal Academy?
CREATE TABLE table_name_47 (college VARCHAR, school VARCHAR)
SELECT height FROM table_name_71 WHERE player = "larry hughes"
What is the height of the player, Larry Hughes?
CREATE TABLE table_name_71 (height VARCHAR, player VARCHAR)
SELECT position FROM table_name_31 WHERE name = "alexander wronski"
What is Alexander Wronski's Position?
CREATE TABLE table_name_31 (position VARCHAR, name VARCHAR)
SELECT quotient FROM table_name_10 WHERE votes = "27,391"
Votes of 27,391 has which quotient?
CREATE TABLE table_name_10 (quotient VARCHAR, votes VARCHAR)
SELECT MAX(final_four_mvp) FROM table_26130295_3 WHERE first_team = 1
what would be final four mvp maximum when first team is 1
CREATE TABLE table_26130295_3 (final_four_mvp INTEGER, first_team VARCHAR)
SELECT lites_2_race_two_winning_team FROM table_26638600_3 WHERE lites_1_race_two_winning_team = "#11 Performance Tech"
Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team?
CREATE TABLE table_26638600_3 (lites_2_race_two_winning_team VARCHAR, lites_1_race_two_winning_team VARCHAR)
SELECT position FROM table_22056184_1 WHERE podiums = 9
Which position has 9 podiums?
CREATE TABLE table_22056184_1 (position VARCHAR, podiums VARCHAR)
SELECT drawn FROM table_name_94 WHERE played = "22" AND points_against = "453" AND losing_bonus = "5"
For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?
CREATE TABLE table_name_94 (drawn VARCHAR, losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT timeslot FROM table_19188562_2 WHERE rating__adults_18_49_ = "0.6"
What time slot had an adult rating of 0.6?
CREATE TABLE table_19188562_2 (timeslot VARCHAR, rating__adults_18_49_ VARCHAR)
SELECT COUNT(score) FROM table_22165661_3 WHERE championship_game_opponent = "Miami University"
How many scores are there when the championship game opponent is Miami University?
CREATE TABLE table_22165661_3 (score VARCHAR, championship_game_opponent VARCHAR)
SELECT away_team FROM table_name_85 WHERE venue = "corio oval"
Who is the away side at corio oval?
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)
SELECT MAX(ep_no) FROM table_1467951_4
What is the highest number of episodes?
CREATE TABLE table_1467951_4 (ep_no INTEGER)
SELECT license FROM table_19495707_1 WHERE application = "E-on Vue"
Name the license for e-on vue
CREATE TABLE table_19495707_1 (license VARCHAR, application VARCHAR)
SELECT MIN(money_list_rank) FROM table_24330912_1
What is the lowest overall money list rank?
CREATE TABLE table_24330912_1 (money_list_rank INTEGER)
SELECT away_team FROM table_name_38 WHERE venue = "junction oval"
Which away team is from junction oval?
CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR)
SELECT presentation_of_credentials FROM table_name_62 WHERE name = "robert g. miner"
When did Robert G. Miner present his credentials?
CREATE TABLE table_name_62 (presentation_of_credentials VARCHAR, name VARCHAR)
SELECT crowd FROM table_name_8 WHERE away_team = "collingwood"
How many spectators watched when the away team was Collingwood?
CREATE TABLE table_name_8 (crowd VARCHAR, away_team VARCHAR)
SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING COUNT(*) > 2
Which months have more than 2 happy hours?
CREATE TABLE happy_hour (MONTH VARCHAR)
SELECT MAX(production_code) FROM table_27988281_1 WHERE written_by = "Jeff Filgo"
What is the production code of the episode written by Jeff Filgo?
CREATE TABLE table_27988281_1 (production_code INTEGER, written_by VARCHAR)
SELECT COUNT(final_score) FROM table_24776075_2 WHERE date = "Sunday, May 12"
How many final score datas are there on Sunday, May 12?
CREATE TABLE table_24776075_2 (final_score VARCHAR, date VARCHAR)
SELECT stadium FROM table_25129482_1 WHERE location = "Kuopio"
What is the stadium in Kuopio?
CREATE TABLE table_25129482_1 (stadium VARCHAR, location VARCHAR)
SELECT location_attendance FROM table_27539272_7 WHERE game = 41
What was the location and attendance for game 41?
CREATE TABLE table_27539272_7 (location_attendance VARCHAR, game VARCHAR)
SELECT school FROM table_name_28 WHERE player = "samardo samuels"
What school did samardo samuels go to?
CREATE TABLE table_name_28 (school VARCHAR, player VARCHAR)
SELECT story_by FROM table_13755296_1 WHERE directed_by = "Dan Attias"
Who wrote the sorry of the episode directed by Dan Attias?
CREATE TABLE table_13755296_1 (story_by VARCHAR, directed_by VARCHAR)
SELECT champion FROM table_name_43 WHERE attendance = "70,000"
Who was the champion when the attendance was 70,000?
CREATE TABLE table_name_43 (champion VARCHAR, attendance VARCHAR)
SELECT first_name, country_code FROM players ORDER BY birth_date LIMIT 1
Find the first name and country code of the oldest player.
CREATE TABLE players (first_name VARCHAR, country_code VARCHAR, birth_date VARCHAR)
SELECT airport FROM table_name_68 WHERE country = "tunisia" AND icao = "dtaa"
what is the airport for the country tunisia with the icao dtaa?
CREATE TABLE table_name_68 (airport VARCHAR, country VARCHAR, icao VARCHAR)
SELECT MIN(lane) FROM table_name_50 WHERE time > 20.75 AND react < 0.166
What is the lowest lane in which an athlete got a time larger than 20.75 and a react smaller than 0.166?
CREATE TABLE table_name_50 (lane INTEGER, time VARCHAR, react VARCHAR)
SELECT iucn FROM table_name_96 WHERE est = 1998 AND reserve = "gales point"
What is the IUCN for the gales point reserve when the Est. is 1998?
CREATE TABLE table_name_96 (iucn VARCHAR, est VARCHAR, reserve VARCHAR)
SELECT school_colors FROM table_name_48 WHERE founded = 1969 AND institution = "barton community college"
Which School Colors were Founded of 1969, with an Institution of barton community college?
CREATE TABLE table_name_48 (school_colors VARCHAR, founded VARCHAR, institution VARCHAR)
SELECT country FROM table_name_38 WHERE to_par = "+1" AND score = 75 - 69 - 73 = 217
What is the Country of the Player with a To par of +1 and a Score of 75-69-73=217?
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT organization_name FROM organizations WHERE organization_name LIKE "%Party%"
Find the name of organizations whose names contain "Party".
CREATE TABLE organizations (organization_name VARCHAR)
SELECT AVG(crowd) FROM table_name_54 WHERE away_team = "hawthorn"
What was the attendance when Hawthorn played as the away team?
CREATE TABLE table_name_54 (crowd INTEGER, away_team VARCHAR)
SELECT utah FROM table_name_7 WHERE colorado = "bush" AND new_mexico = "bush"
What's the value for utah when colorado and new mexico are bush?
CREATE TABLE table_name_7 (utah VARCHAR, colorado VARCHAR, new_mexico VARCHAR)
SELECT MIN(touchdowns) FROM table_name_41 WHERE yards = 1318
What is the lease amount of touchdowns with 1318 yards?
CREATE TABLE table_name_41 (touchdowns INTEGER, yards VARCHAR)
SELECT AVG(against) FROM table_name_23 WHERE drawn = 3 AND points > 9 AND team = "portuguesa"
Which average Against has Drawn of 3, and Points larger than 9, and a Team of portuguesa?
CREATE TABLE table_name_23 (against INTEGER, team VARCHAR, drawn VARCHAR, points VARCHAR)