question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
When has a cause of gas explosion, a Death toll smaller than 63, and a Location of penygraig?
CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR, cause VARCHAR, death_toll VARCHAR)
SELECT date FROM table_name_60 WHERE cause = "gas explosion" AND death_toll < 63 AND location = "penygraig"
How many districts for rené l. derouen?
CREATE TABLE table_1342315_17 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = "René L. DeRouen"
Which club has played for 27 seasons at this level?
CREATE TABLE table_name_10 (clubs VARCHAR, seasons_at_this_level VARCHAR)
SELECT clubs FROM table_name_10 WHERE seasons_at_this_level = "27 seasons"
What home team played North Melbourne?
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_50 WHERE away_team = "north melbourne"
Name the rounds for stanley brm
CREATE TABLE table_name_82 (rounds VARCHAR, entrant VARCHAR)
SELECT rounds FROM table_name_82 WHERE entrant = "stanley brm"
What is the constructor of the Swedish Grand Prix?
CREATE TABLE table_1140082_2 (constructor VARCHAR, race VARCHAR)
SELECT constructor FROM table_1140082_2 WHERE race = "Swedish Grand Prix"
What is the total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9?
CREATE TABLE table_name_7 (division VARCHAR, team VARCHAR, apps VARCHAR)
SELECT COUNT(division) FROM table_name_7 WHERE team = "chongqing lifan" AND apps > 9
Who were the authors of series episode #25?
CREATE TABLE table_12030612_3 (written_by VARCHAR, series__number VARCHAR)
SELECT written_by FROM table_12030612_3 WHERE series__number = 25
Who has the first leg that has a round in the semi-final?
CREATE TABLE table_name_53 (first_leg VARCHAR, round VARCHAR)
SELECT first_leg FROM table_name_53 WHERE round = "semi-final"
Find the average access count of documents with the least popular structure.
CREATE TABLE documents (access_count INTEGER, document_structure_code VARCHAR)
SELECT AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) LIMIT 1
Who is the opponent for week 10?
CREATE TABLE table_name_17 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_17 WHERE week = 10
What is the score in the 6 atlas stones event of the player who got 2 (6 in 30.89s) in the 3 dead lift event?
CREATE TABLE table_24302700_6 (event_6_atlas_stones VARCHAR, event_3_dead_lift VARCHAR)
SELECT COUNT(event_6_atlas_stones) FROM table_24302700_6 WHERE event_3_dead_lift = "2 (6 in 30.89s)"
On what date did Contac 12 Hours of Sebring take place?
CREATE TABLE table_name_21 (date VARCHAR, race VARCHAR)
SELECT date FROM table_name_21 WHERE race = "contac 12 hours of sebring"
which player is from georgia
CREATE TABLE table_10015132_7 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_10015132_7 WHERE school_club_team = "Georgia"
When interjection is the subject how many performers are there?
CREATE TABLE table_191105_2 (performed_by VARCHAR, subject VARCHAR)
SELECT COUNT(performed_by) FROM table_191105_2 WHERE subject = "interjection"
Who had the fastest lap when the winning team was Tom's Racing?
CREATE TABLE table_16670746_2 (fastest_lap VARCHAR, winning_team VARCHAR)
SELECT fastest_lap FROM table_16670746_2 WHERE winning_team = "TOM'S Racing"
What is the week 2 with daniella mugnolo in week 1?
CREATE TABLE table_name_83 (week_2 VARCHAR, week_1 VARCHAR)
SELECT week_2 FROM table_name_83 WHERE week_1 = "daniella mugnolo"
What was the record when they played in the Miami Arena, before game 24?
CREATE TABLE table_name_67 (record VARCHAR, game VARCHAR, location VARCHAR)
SELECT record FROM table_name_67 WHERE game < 24 AND location = "miami arena"
When was the event in Dublin?
CREATE TABLE table_name_50 (date VARCHAR, city VARCHAR)
SELECT date FROM table_name_50 WHERE city = "dublin"
Which Previous Conference has an IHSAA Class/ Football/ Soccer of 4a/5a/2a, and a Year Joined larger than 1926?
CREATE TABLE table_name_22 (previous_conference VARCHAR, ihsaa_class___football_soccer VARCHAR, year_joined VARCHAR)
SELECT previous_conference FROM table_name_22 WHERE ihsaa_class___football_soccer = "4a/5a/2a" AND year_joined > 1926
What is North American Release Date, when Japanese Release Date is "2011-06-23"?
CREATE TABLE table_name_17 (north_american_release_date VARCHAR, japanese_release_date VARCHAR)
SELECT north_american_release_date FROM table_name_17 WHERE japanese_release_date = "2011-06-23"
Find the female friends of Alice.
CREATE TABLE PersonFriend (friend VARCHAR, name VARCHAR); CREATE TABLE Person (name VARCHAR, gender VARCHAR)
SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T2.name = 'Alice' AND T1.gender = 'female'
what is the sum of games played when the losses is less than 7, the wins is 6 and the goals for is more than 76?
CREATE TABLE table_name_31 (games_played INTEGER, goals_for VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT SUM(games_played) FROM table_name_31 WHERE losses < 7 AND wins = 6 AND goals_for > 76
What is the frequency where the power is 25kw?
CREATE TABLE table_name_10 (frequency VARCHAR, power__kw_ VARCHAR)
SELECT frequency FROM table_name_10 WHERE power__kw_ = "25kw"
Who directed the episode with production code 40811-005?
CREATE TABLE table_name_7 (director VARCHAR, prod_code VARCHAR)
SELECT director FROM table_name_7 WHERE prod_code = "40811-005"
What is the traffic direction of 97th street?
CREATE TABLE table_name_94 (traffic_direction VARCHAR, street VARCHAR)
SELECT traffic_direction FROM table_name_94 WHERE street = "97th street"
What is the 1st leg of 2q round?
CREATE TABLE table_name_33 (round VARCHAR)
SELECT 1 AS st_leg FROM table_name_33 WHERE round = "2q"
What studio is director David Fincher from?
CREATE TABLE table_name_95 (studio VARCHAR, director VARCHAR)
SELECT studio FROM table_name_95 WHERE director = "david fincher"
What is the US A.C. in 1974?
CREATE TABLE table_name_13 (us_ac VARCHAR, year VARCHAR)
SELECT us_ac FROM table_name_13 WHERE year = 1974
What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?
CREATE TABLE table_name_93 (director VARCHAR, release_date VARCHAR, characters VARCHAR)
SELECT director FROM table_name_93 WHERE release_date = "2004-03-31" AND characters = "daffy (as duck dodgers)"
What is Action Comics #1's estimated value?
CREATE TABLE table_name_79 (estimated_value VARCHAR, first_appearance VARCHAR)
SELECT estimated_value FROM table_name_79 WHERE first_appearance = "action comics #1"
Name the guest 3 for iyare igiehon
CREATE TABLE table_20466963_13 (guest_3 VARCHAR, guest_2 VARCHAR)
SELECT guest_3 FROM table_20466963_13 WHERE guest_2 = "Iyare Igiehon"
Name the matches for gold coast
CREATE TABLE table_name_11 (matches VARCHAR, team VARCHAR)
SELECT matches FROM table_name_11 WHERE team = "gold coast"
what is the score when the opponent is fernando vicente?
CREATE TABLE table_name_9 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_9 WHERE opponent = "fernando vicente"
When was the incumbent Sherrod Brown first elected?
CREATE TABLE table_1341453_37 (first_elected INTEGER, incumbent VARCHAR)
SELECT MAX(first_elected) FROM table_1341453_37 WHERE incumbent = "Sherrod Brown"
What is the weight is the name is Stuart Craig?
CREATE TABLE table_22344463_2 (weight VARCHAR, name VARCHAR)
SELECT weight FROM table_22344463_2 WHERE name = "Stuart Craig"
What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?
CREATE TABLE table_name_48 (goals INTEGER, apps VARCHAR, team VARCHAR, division VARCHAR)
SELECT SUM(goals) FROM table_name_48 WHERE team = "torpedo moscow" AND division = 1 AND apps < 29
What country has a 72-70-75-72=289 score?
CREATE TABLE table_name_23 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_23 WHERE score = 72 - 70 - 75 - 72 = 289
When was the school in Salem, Massachusetts located?
CREATE TABLE table_1974545_2 (founded VARCHAR, location VARCHAR)
SELECT founded FROM table_1974545_2 WHERE location = "Salem, Massachusetts"
How many drivers drove on Suzuka Circuit where Loïc Duval took pole position?
CREATE TABLE table_22379931_2 (winning_driver VARCHAR, circuit VARCHAR, pole_position VARCHAR)
SELECT COUNT(winning_driver) FROM table_22379931_2 WHERE circuit = "Suzuka circuit" AND pole_position = "Loïc Duval"
Who was in the South when EV Bad Wörishofen was in the West?
CREATE TABLE table_name_10 (south VARCHAR, west VARCHAR)
SELECT south FROM table_name_10 WHERE west = "ev bad wörishofen"
What was the minimum population in 2011?
CREATE TABLE table_2328113_1 (population__2011_ INTEGER)
SELECT MIN(population__2011_) FROM table_2328113_1
List the addresses of all the course authors or tutors.
CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR)
SELECT address_line_1 FROM Course_Authors_and_Tutors
Which Skip did marju velga lead?
CREATE TABLE table_name_22 (skip VARCHAR, lead VARCHAR)
SELECT skip FROM table_name_22 WHERE lead = "marju velga"
How many high rebounds took place on December 8?
CREATE TABLE table_27712451_6 (high_rebounds VARCHAR, date VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27712451_6 WHERE date = "December 8"
What did South Melbourne score when they were the Away team?
CREATE TABLE table_name_21 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_21 WHERE away_team = "south melbourne"
Which player weighs 187 pounds?
CREATE TABLE table_name_87 (player VARCHAR, weight VARCHAR)
SELECT player FROM table_name_87 WHERE weight = 187
What was Kaine's (D) percentage in the Rasmussen poll on October 24, 2005?
CREATE TABLE table_name_43 (kaine__d_ VARCHAR, source VARCHAR, date VARCHAR)
SELECT kaine__d_ FROM table_name_43 WHERE source = "rasmussen" AND date = "october 24, 2005"
What is the young rider classification for jesper worre and stage 3
CREATE TABLE table_name_66 (young_rider_classification VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
SELECT young_rider_classification FROM table_name_66 WHERE mountains_classification = "jesper worre" AND stage = "3"
What country is Stephen Ames from with a place value of t9?
CREATE TABLE table_name_20 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_20 WHERE place = "t9" AND player = "stephen ames"
Where the week # is Top 12, what is the result?
CREATE TABLE table_26250253_1 (result VARCHAR, week__number VARCHAR)
SELECT result FROM table_26250253_1 WHERE week__number = "Top 12"
Who was the incumbent when Bo Itshaky was the Republican?
CREATE TABLE table_name_63 (incumbent VARCHAR, republican VARCHAR)
SELECT incumbent FROM table_name_63 WHERE republican = "bo itshaky"
What province does the Ruhuna Royals team come from?
CREATE TABLE table_19905183_1 (province VARCHAR, team VARCHAR)
SELECT province FROM table_19905183_1 WHERE team = "Ruhuna Royals"
On April 18, which team was the visitor?
CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_52 WHERE date = "april 18"
What are the prices of wines produced before the year of 2010?
CREATE TABLE WINE (Price VARCHAR, YEAR INTEGER)
SELECT Price FROM WINE WHERE YEAR < 2010
What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island?
CREATE TABLE table_name_8 (fastest_lap VARCHAR, circuit VARCHAR, pole_position VARCHAR, winning_team VARCHAR, race VARCHAR)
SELECT fastest_lap FROM table_name_8 WHERE winning_team = "team brm" AND race = 1 AND pole_position = "leanne tander" AND circuit = "phillip island"
What is the away team's score of the game where the away team is Geelong?
CREATE TABLE table_name_1 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_1 WHERE away_team = "geelong"
Which Founded has a League of women's flat track derby association, and a Club of omaha rollergirls?
CREATE TABLE table_name_14 (founded INTEGER, league VARCHAR, club VARCHAR)
SELECT AVG(founded) FROM table_name_14 WHERE league = "women's flat track derby association" AND club = "omaha rollergirls"
Which player is from Utah?
CREATE TABLE table_11677691_7 (player VARCHAR, college VARCHAR)
SELECT player FROM table_11677691_7 WHERE college = "Utah"
Which Opponent was played on 1991-10-13?
CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_52 WHERE date = "1991-10-13"
Who played against the away team hereford united?
CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_16 WHERE away_team = "hereford united"
Which position does the player from Muscle Shoals, Alabama play?
CREATE TABLE table_name_68 (position VARCHAR, hometown VARCHAR)
SELECT position FROM table_name_68 WHERE hometown = "muscle shoals, alabama"
What was the 2012 finish in the US Open?
CREATE TABLE table_name_62 (tournament VARCHAR)
SELECT 2012 FROM table_name_62 WHERE tournament = "us open"
Name the result for james lent (j) 52.3% silas wood (aj) 47.7%
CREATE TABLE table_2668243_17 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_2668243_17 WHERE candidates = "James Lent (J) 52.3% Silas Wood (AJ) 47.7%"
Can you tell me the total number of Total that has the B Score of 9.15?
CREATE TABLE table_name_16 (total VARCHAR, b_score VARCHAR)
SELECT COUNT(total) FROM table_name_16 WHERE b_score = 9.15
Which segment a's Netflix is S05E22?
CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR)
SELECT segment_a FROM table_name_86 WHERE netflix = "s05e22"
What was Week 15 when Week 12 was Notre Dame (7-2)?
CREATE TABLE table_name_50 (week_15__final__dec_3 VARCHAR, week_12_nov_13 VARCHAR)
SELECT week_15__final__dec_3 FROM table_name_50 WHERE week_12_nov_13 = "notre dame (7-2)"
Who is the driver of the chassis-engine porsche 956 gti?
CREATE TABLE table_name_14 (driver VARCHAR, chassis___engine VARCHAR)
SELECT driver FROM table_name_14 WHERE chassis___engine = "porsche 956 gti"
What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?
CREATE TABLE table_name_83 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_83 WHERE opponent = "oakland raiders" AND week > 9
What is the 2008 result when 2006 is Year-End Championship?
CREATE TABLE table_name_89 (Id VARCHAR)
SELECT 2008 FROM table_name_89 WHERE 2006 = "year-end championship"
What is the mark for Grenada in group A?
CREATE TABLE table_name_73 (mark VARCHAR, group VARCHAR, nationality VARCHAR)
SELECT mark FROM table_name_73 WHERE group = "a" AND nationality = "grenada"
Who was the away team at the game attended by 81?
CREATE TABLE table_name_6 (away_team VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_name_6 WHERE attendance = "81"
Which stadium is located in Adelaide, South Australia?
CREATE TABLE table_28885977_1 (stadium VARCHAR, location VARCHAR)
SELECT stadium FROM table_28885977_1 WHERE location = "Adelaide, South Australia"
Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final?
CREATE TABLE table_name_7 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT partner FROM table_name_7 WHERE opponents_in_the_final = "flavio cipolla simone vagnozzi"
Show all book categories and the number of books in each category.
CREATE TABLE book_club (category VARCHAR)
SELECT category, COUNT(*) FROM book_club GROUP BY category
What team had pick 203?
CREATE TABLE table_2679061_11 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT nhl_team FROM table_2679061_11 WHERE pick__number = 203
What was the record after game 45?
CREATE TABLE table_name_13 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_13 WHERE game = "45"
Which of the entrants had Luigi Fagioli as a driver?
CREATE TABLE table_name_79 (entrant VARCHAR, driver VARCHAR)
SELECT entrant FROM table_name_79 WHERE driver = "luigi fagioli"
When did Meg Whitman get 60%?
CREATE TABLE table_name_38 (date_s__administered VARCHAR, meg_whitman VARCHAR)
SELECT date_s__administered FROM table_name_38 WHERE meg_whitman = "60%"
What was the result of the election of doc hastings (r) 53.3% jay inslee (d) 46.7%
CREATE TABLE table_1341522_50 (status VARCHAR, opponent VARCHAR)
SELECT status FROM table_1341522_50 WHERE opponent = "Doc Hastings (R) 53.3% Jay Inslee (D) 46.7%"
Name the game for june 7
CREATE TABLE table_18894744_5 (game VARCHAR, date VARCHAR)
SELECT game FROM table_18894744_5 WHERE date = "June 7"
What Year has a Tyre of D, and Chassis of Mazda 787?
CREATE TABLE table_name_55 (year VARCHAR, tyre VARCHAR, chassis VARCHAR)
SELECT year FROM table_name_55 WHERE tyre = "d" AND chassis = "mazda 787"
What position has siim ennemuist as the player?
CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_52 WHERE player = "siim ennemuist"
Who is the crew chief, of driver Matt kurzejewski?
CREATE TABLE table_name_27 (crew_chief VARCHAR, driver_s_ VARCHAR)
SELECT crew_chief FROM table_name_27 WHERE driver_s_ = "matt kurzejewski"
How many million viewers watched the episode that aired on March 28, 2010?
CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, airdate VARCHAR)
SELECT viewers__millions_ FROM table_23397386_2 WHERE airdate = "March 28, 2010"
What city is in Saskatchewan?
CREATE TABLE table_name_70 (city VARCHAR, province VARCHAR)
SELECT city FROM table_name_70 WHERE province = "saskatchewan"
Who is the director for the witman boys?
CREATE TABLE table_14975415_1 (director VARCHAR, english_title VARCHAR)
SELECT director FROM table_14975415_1 WHERE english_title = "The Witman Boys"
Which date released had a Democratic Alternative value of 1% and Labour of 34%?
CREATE TABLE table_name_76 (date_s__released VARCHAR, democratic_alternative VARCHAR, labour VARCHAR)
SELECT date_s__released FROM table_name_76 WHERE democratic_alternative = "1%" AND labour = "34%"
How many houses are green?
CREATE TABLE table_11464746_1 (house_name VARCHAR, colours VARCHAR)
SELECT COUNT(house_name) FROM table_11464746_1 WHERE colours = "Green"
How many players named Jeff Brown were drafted
CREATE TABLE table_16441561_5 (position VARCHAR, player VARCHAR)
SELECT COUNT(position) FROM table_16441561_5 WHERE player = "Jeff Brown"
If leagues entering this round is Süper Lig, what is the maximum amount of clubs remaining?
CREATE TABLE table_1859269_1 (clubs_remaining INTEGER, leagues_entering_at_this_round VARCHAR)
SELECT MAX(clubs_remaining) FROM table_1859269_1 WHERE leagues_entering_at_this_round = "Süper Lig"
How many field goals did Stacey Thomas have?
CREATE TABLE table_24850487_5 (field_goals VARCHAR, player VARCHAR)
SELECT field_goals FROM table_24850487_5 WHERE player = "Stacey Thomas"
Who is the away team against the home team Ashington?
CREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_76 WHERE home_team = "ashington"
What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?
CREATE TABLE table_name_54 (circuit VARCHAR, team VARCHAR, city___state VARCHAR)
SELECT circuit FROM table_name_54 WHERE team = "r.j.macarthur onslow" AND city___state = "sydney , new south wales"
What is the listed crowd when essendon is the away squad?
CREATE TABLE table_name_68 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_68 WHERE away_team = "essendon"
What's the lowest rank of the United States with a time less than 24.63?
CREATE TABLE table_name_74 (rank INTEGER, nationality VARCHAR, time VARCHAR)
SELECT MIN(rank) FROM table_name_74 WHERE nationality = "united states" AND time < 24.63
Which Frequency has a Model Number of c3 1.4a?
CREATE TABLE table_name_5 (frequency VARCHAR, model_number VARCHAR)
SELECT frequency FROM table_name_5 WHERE model_number = "c3 1.4a"
Which Performer 2 has an Episode of 5?
CREATE TABLE table_name_26 (performer_2 VARCHAR, episode VARCHAR)
SELECT performer_2 FROM table_name_26 WHERE episode = 5
How much Enrollment has a School of indianapolis tindley?
CREATE TABLE table_name_32 (enrollment VARCHAR, school VARCHAR)
SELECT COUNT(enrollment) FROM table_name_32 WHERE school = "indianapolis tindley"
What is the date that a hell ship sunk in the East China Sea?
CREATE TABLE table_name_71 (date VARCHAR, where_sunk VARCHAR, ship_type VARCHAR)
SELECT date FROM table_name_71 WHERE where_sunk = "east china sea" AND ship_type = "hell ship"