answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT monarchs_served FROM table_name_18 WHERE name = "stanley baldwin (1st ministry)"
What monarch(s) did Stanley Baldwin (1st ministry) serve?
CREATE TABLE table_name_18 (monarchs_served VARCHAR, name VARCHAR)
SELECT award_show FROM table_name_53 WHERE category = "best loved drama" AND year = 2002
In what award show was Bad Girls nominated for Best Loved Drama in 2002?
CREATE TABLE table_name_53 (award_show VARCHAR, category VARCHAR, year VARCHAR)
SELECT to_par FROM table_name_74 WHERE player = "jerry barber"
What is Jerry Barber's To par?
CREATE TABLE table_name_74 (to_par VARCHAR, player VARCHAR)
SELECT debut FROM table_name_58 WHERE name = "scott tunbridge"
What round was the debut of Scott Tunbridge?
CREATE TABLE table_name_58 (debut VARCHAR, name VARCHAR)
SELECT county FROM table_name_68 WHERE ihsaa_class = "aaa" AND enrollment < 799
Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?
CREATE TABLE table_name_68 (county VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT score FROM table_27715173_6 WHERE game = 3
What was the score for game 3?
CREATE TABLE table_27715173_6 (score VARCHAR, game VARCHAR)
SELECT percentage_of_votes FROM table_13746866_2 WHERE election_date = 1981
what's the percentage of votes with election date being 1981
CREATE TABLE table_13746866_2 (percentage_of_votes VARCHAR, election_date VARCHAR)
SELECT date FROM table_name_45 WHERE site = "memorial stadium • minneapolis, mn" AND opponent = "northwestern"
What is the Date at memorial stadium • minneapolis, mn, and an Opponent of northwestern?
CREATE TABLE table_name_45 (date VARCHAR, site VARCHAR, opponent VARCHAR)
SELECT MIN(week) FROM table_name_66 WHERE opponent = "minnesota vikings"
What is the Week of the game against the Minnesota Vikings?
CREATE TABLE table_name_66 (week INTEGER, opponent VARCHAR)
SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040
What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?
CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR)
SELECT result FROM table_1341395_33 WHERE district = "New York 16"
what are all the result for New York 16 district
CREATE TABLE table_1341395_33 (result VARCHAR, district VARCHAR)
SELECT COUNT(season) FROM table_name_13 WHERE actual_adjusted_record = "0–19"
How many seasons have an Actual adjusted record of 0–19?
CREATE TABLE table_name_13 (season VARCHAR, actual_adjusted_record VARCHAR)
SELECT club FROM table_27293285_2 WHERE bonus_points = "5"
Which club had 5 bonus points?
CREATE TABLE table_27293285_2 (club VARCHAR, bonus_points VARCHAR)
SELECT TYPE, Nationality FROM ship
What are the type and nationality of ships?
CREATE TABLE ship (TYPE VARCHAR, Nationality VARCHAR)
SELECT 2001 FROM table_name_74 WHERE 1994 = "a" AND tournament = "monte carlo masters"
What is 2001, when 1994 is "A", and when Tournament is "Monte Carlo Masters"?
CREATE TABLE table_name_74 (tournament VARCHAR)
SELECT AVG(wins) FROM table_name_86 WHERE points = "42-2" AND goals_against = 67 AND played < 44
What are the average wins with a Points of 42-2, and Goals against of 67, and Played smaller than 44?
CREATE TABLE table_name_86 (wins INTEGER, played VARCHAR, points VARCHAR, goals_against VARCHAR)
SELECT brazil_scorers FROM table_name_35 WHERE score = "2-1"
What Brazil scorers have a 2-1 Score?
CREATE TABLE table_name_35 (brazil_scorers VARCHAR, score VARCHAR)
SELECT 5 AS th_evening FROM table_29857115_4 WHERE singer = "Gabriella Ferrone"
What was gabriella ferrone's result on the 5th evening?
CREATE TABLE table_29857115_4 (singer VARCHAR)
SELECT player_api_id FROM Player WHERE height >= 180 AND height <= 190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot = "left"
List all of the ids for left-footed players with a height between 180cm and 190cm.
CREATE TABLE Player_Attributes (player_api_id VARCHAR, preferred_foot VARCHAR, height VARCHAR); CREATE TABLE Player (player_api_id VARCHAR, preferred_foot VARCHAR, height VARCHAR)
SELECT attendance FROM table_13258972_2 WHERE record = "1-1"
What was the attendance when the record was 1-1?
CREATE TABLE table_13258972_2 (attendance VARCHAR, record VARCHAR)
SELECT bullet_diameter FROM table_name_32 WHERE neck_diameter = "12.17 (.479)"
Which Bullet diameter has a Neck diameter of 12.17 (.479)?
CREATE TABLE table_name_32 (bullet_diameter VARCHAR, neck_diameter VARCHAR)
SELECT AVG(loses) FROM table_name_38 WHERE points < 6
Which Loses has Points smaller than 6?
CREATE TABLE table_name_38 (loses INTEGER, points INTEGER)
SELECT born_died FROM table_name_60 WHERE term_end = "19 january 1943"
What is Born-Died, when Term End is 19 January 1943?
CREATE TABLE table_name_60 (born_died VARCHAR, term_end VARCHAR)
SELECT COUNT(overall) FROM table_name_84 WHERE position = "kicker" AND pick__number < 6
What is the overall number for a kicker with a pick of less than 6?
CREATE TABLE table_name_84 (overall VARCHAR, position VARCHAR, pick__number VARCHAR)
SELECT no_in_series FROM table_228973_9 WHERE original_air_date = "April 1, 2003"
If the original air date is April 1, 2003, what number in the series is this episode?
CREATE TABLE table_228973_9 (no_in_series VARCHAR, original_air_date VARCHAR)
SELECT composition FROM table_11464746_1 WHERE colours = "Green"
What is the green house made of?
CREATE TABLE table_11464746_1 (composition VARCHAR, colours VARCHAR)
SELECT SUM(seasons) FROM table_name_45 WHERE total_points < 24
What is the number of seasons for the team with a total fewer than 24?
CREATE TABLE table_name_45 (seasons INTEGER, total_points INTEGER)
SELECT date FROM table_name_98 WHERE week < 10 AND attendance = "38,865"
When was the pre-Week 10 game that had an attendance of over 38,865?
CREATE TABLE table_name_98 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT COUNT(sales) FROM table_name_21 WHERE song_title = "21 seconds"
What were the total number of sales for the song 21 Seconds?
CREATE TABLE table_name_21 (sales VARCHAR, song_title VARCHAR)
SELECT SUM(goals_against) FROM table_name_37 WHERE games = 64 AND lost < 12 AND points > 107
How many goals against have 64 for games, a loss less than 12, with points greater than 107?
CREATE TABLE table_name_37 (goals_against INTEGER, points VARCHAR, games VARCHAR, lost VARCHAR)
SELECT record FROM table_27537518_4 WHERE date = "October 16"
What was the record for the October 16 game?
CREATE TABLE table_27537518_4 (record VARCHAR, date VARCHAR)
SELECT most_recent_cyclist FROM table_18676973_3 WHERE rank = "12"
When 12 is the rank who is the most recent cyclist?
CREATE TABLE table_18676973_3 (most_recent_cyclist VARCHAR, rank VARCHAR)
SELECT COUNT(long) FROM table_name_3 WHERE loss > 0 AND avg_g = 124.9
What is the total number of Long with a Av/g of 124.9 but Loss greater than 0?
CREATE TABLE table_name_3 (long VARCHAR, loss VARCHAR, avg_g VARCHAR)
SELECT MIN(rank) FROM table_name_7 WHERE industry = "petroleum" AND revenue_in_usd = "$481.7 billion"
What is the rank of the petroleum company who has a revenue of $481.7 billion?
CREATE TABLE table_name_7 (rank INTEGER, industry VARCHAR, revenue_in_usd VARCHAR)
SELECT event FROM table_name_14 WHERE date = "26 august 2005"
What event was on 26 August 2005?
CREATE TABLE table_name_14 (event VARCHAR, date VARCHAR)
SELECT transfer_window FROM table_name_76 WHERE moving_to = "alianza atlético" AND name = "v. zapata"
What is the transfer window when moving to alianza atlético by the name of v. zapata?
CREATE TABLE table_name_76 (transfer_window VARCHAR, moving_to VARCHAR, name VARCHAR)
SELECT place FROM table_name_10 WHERE to_par = "+1" AND player = "dave stockton"
What place was Dave Stockton when he had a to par of +1?
CREATE TABLE table_name_10 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT COUNT(pick__number) FROM table_15353123_1 WHERE player = "Dean Kirkland"
How many players named Dean Kirkland were picked
CREATE TABLE table_15353123_1 (pick__number VARCHAR, player VARCHAR)
SELECT AVG(draw) FROM table_name_14 WHERE lost < 4 AND team = "gwardia bydgoszcz" AND match > 5
What is the average draw that has a lost less than 4, gwardia bydgoszcz as the team, with a match greater than 5?
CREATE TABLE table_name_14 (draw INTEGER, match VARCHAR, lost VARCHAR, team VARCHAR)
SELECT enzyme FROM table_name_66 WHERE disorder = "ornithine transcarbamylase deficiency"
What is the enzyme involved in the disorder of Ornithine Transcarbamylase deficiency?
CREATE TABLE table_name_66 (enzyme VARCHAR, disorder VARCHAR)
SELECT medal FROM table_name_69 WHERE event = "men's freestyle 52 kg"
What medal was awarded in the men's freestyle 52 kg?
CREATE TABLE table_name_69 (medal VARCHAR, event VARCHAR)
SELECT MAX(SLM) AS number FROM table_name_26 WHERE built > 1895
What locomotive built after 1895 has the highest SLM number?
CREATE TABLE table_name_26 (SLM INTEGER, built INTEGER)
SELECT runner_s__up FROM table_name_27 WHERE winning_score = –15(66 - 67 - 70 - 70 = 273)
Who was the runner-up for the event that ended with a winning score of –15 (66-67-70-70=273)?
CREATE TABLE table_name_27 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT COUNT(touchdowns) FROM table_name_80 WHERE average < 2.6
What is the number of touchdowns with the average is less than 2.6?
CREATE TABLE table_name_80 (touchdowns VARCHAR, average INTEGER)
SELECT manager FROM table_name_52 WHERE manufacturer = "adidas" AND club = "newcastle united"
What Premier League Manager has an Adidas sponsor and a Newcastle United club?
CREATE TABLE table_name_52 (manager VARCHAR, manufacturer VARCHAR, club VARCHAR)
SELECT pat_robertson FROM table_name_12 WHERE bob_dole = "26%" AND george_hw_bush = "47%"
When Bob Dole had 26%, and George H.W. Bush had 47%, what did Pat Robertson have?
CREATE TABLE table_name_12 (pat_robertson VARCHAR, bob_dole VARCHAR, george_hw_bush VARCHAR)
SELECT points FROM table_20500097_1 WHERE poles > 1.0
How many points did he win in the race with more than 1.0 poles?
CREATE TABLE table_20500097_1 (points VARCHAR, poles INTEGER)
SELECT home_team FROM table_name_1 WHERE away_team = "bristol rovers"
Who was the home team when the away team was Bristol Rovers?
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(margin) FROM table_22753245_1 WHERE party = "Indian National Congress" AND winner = "L. Adaikalaraj c"
How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress?
CREATE TABLE table_22753245_1 (margin VARCHAR, party VARCHAR, winner VARCHAR)
SELECT name FROM table_name_43 WHERE pos = "cf"
What's the name of the person in the CF Pos?
CREATE TABLE table_name_43 (name VARCHAR, pos VARCHAR)
SELECT athlete FROM table_name_97 WHERE rank > 1 AND lane > 7 AND nationality = "china"
Which Athlete has a Rank larger than 1, and a Lane larger than 7, and a Nationality of china?
CREATE TABLE table_name_97 (athlete VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)
SELECT challenger FROM table_29281529_2 WHERE iron_chef = "Guillaume Brahimi"
Who was the challenger when guillaume brahimi was the iron chef?
CREATE TABLE table_29281529_2 (challenger VARCHAR, iron_chef VARCHAR)
SELECT forward_caste FROM table_name_80 WHERE scheduled_caste = "89.50%"
WHAT IS THE FORWARD CASTE WITH A SCHEDULED CASTE OF 89.50%?
CREATE TABLE table_name_80 (forward_caste VARCHAR, scheduled_caste VARCHAR)
SELECT record FROM table_name_1 WHERE points > 39 AND game = 38
What record has points greater than 39, with 38 as the game?
CREATE TABLE table_name_1 (record VARCHAR, points VARCHAR, game VARCHAR)
SELECT nationality FROM table_name_36 WHERE lane = 5 AND time = "7:08.04"
Which Nationality has a Lane of 5, and a Time of 7:08.04?
CREATE TABLE table_name_36 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
SELECT silver FROM table_name_48 WHERE nation = "finland"
How many silvers for finland?
CREATE TABLE table_name_48 (silver VARCHAR, nation VARCHAR)
SELECT MAX(position) FROM table_18018214_1 WHERE draws = 7
What is the highest position a team with 7 draws earned?
CREATE TABLE table_18018214_1 (position INTEGER, draws VARCHAR)
SELECT player FROM table_name_1 WHERE pick = 219
WHAT IS THE PLAYER WITH A PICK OF 219?
CREATE TABLE table_name_1 (player VARCHAR, pick VARCHAR)
SELECT income_inequality_1994_2011__latest_available_ FROM table_name_15 WHERE country = "seychelles"
What is the current income inequality for the country of Seychelles?
CREATE TABLE table_name_15 (income_inequality_1994_2011__latest_available_ VARCHAR, country VARCHAR)
SELECT member FROM table_name_36 WHERE electorate = "southern melbourne"
Which Member has an Electorate of southern melbourne?
CREATE TABLE table_name_36 (member VARCHAR, electorate VARCHAR)
SELECT county FROM table_24329520_8 WHERE members = 1 AND franchise_type = "Corporation" AND borough = "Ennis"
Which county has a membership of 1, a franchise type of corporation and a borough of Ennis?
CREATE TABLE table_24329520_8 (county VARCHAR, borough VARCHAR, members VARCHAR, franchise_type VARCHAR)
SELECT MIN(crowd) FROM table_name_84 WHERE venue = "junction oval"
What was the smallest crowd size for the match played at Junction Oval?
CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR)
SELECT mens_40 FROM table_16724844_1 WHERE mens_u20 = "Southern Suns def Gold Coast Sharks"
What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks?
CREATE TABLE table_16724844_1 (mens_40 VARCHAR, mens_u20 VARCHAR)
SELECT owner_s___2009_ FROM table_23958917_1 WHERE location = "South Side Indianapolis"
Name the owners 2009 for south side indianapolis
CREATE TABLE table_23958917_1 (owner_s___2009_ VARCHAR, location VARCHAR)
SELECT written_by FROM table_228973_7 WHERE no_in_series = 129
When 129 is the number in the series who is the writer?
CREATE TABLE table_228973_7 (written_by VARCHAR, no_in_series VARCHAR)
SELECT democrat AS :_tom_harkin FROM table_name_77 WHERE poll_source = "rasmussen reports" AND lead_margin = 14
What was Democrat: Tom Harkin's percentage when the poll source was Rasmussen Reports and the lead margin was 14?
CREATE TABLE table_name_77 (democrat VARCHAR, poll_source VARCHAR, lead_margin VARCHAR)
SELECT date FROM table_name_42 WHERE away_team = "newcastle united"
What date was Newcastle United the away team?
CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR)
SELECT MAX(urban_population__2010_) FROM table_name_83 WHERE province = "guangxi"
What is the highest urban population for Guangxi province?
CREATE TABLE table_name_83 (urban_population__2010_ INTEGER, province VARCHAR)
SELECT district FROM table_1342426_5 WHERE incumbent = "William J. Driver"
Name the district for william j. driver
CREATE TABLE table_1342426_5 (district VARCHAR, incumbent VARCHAR)
SELECT res FROM table_name_27 WHERE opponent = "tony halme"
What was the result of the fight with Tony Halme?
CREATE TABLE table_name_27 (res VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_25938117_1 WHERE location = "Dominican Republic"
Name the tournament for dominican republic
CREATE TABLE table_25938117_1 (tournament VARCHAR, location VARCHAR)
SELECT COUNT(series__number) FROM table_12159115_3 WHERE written_by = "William N. Fordes"
How many episodes were written only by William N. Fordes?
CREATE TABLE table_12159115_3 (series__number VARCHAR, written_by VARCHAR)
SELECT particulate_size_approaching_100_percentage_retention FROM table_name_47 WHERE usage = "semi hepa" AND class = "h12"
Which Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12?
CREATE TABLE table_name_47 (particulate_size_approaching_100_percentage_retention VARCHAR, usage VARCHAR, class VARCHAR)
SELECT original_air_date FROM table_23114705_7 WHERE nz_viewers__thousand_ = "456.58"
What was the air date of the episod that had 456.58 thousand viewers?
CREATE TABLE table_23114705_7 (original_air_date VARCHAR, nz_viewers__thousand_ VARCHAR)
SELECT COUNT(report) FROM table_10707142_2 WHERE date = "October 16"
how many reports of races took place on october 16?
CREATE TABLE table_10707142_2 (report VARCHAR, date VARCHAR)
SELECT earnings_per_share__p_ FROM table_name_47 WHERE year_ended = "2007"
What is the year 2007 earnings per share?
CREATE TABLE table_name_47 (earnings_per_share__p_ VARCHAR, year_ended VARCHAR)
SELECT COUNT(cfl_team) FROM table_21321804_1 WHERE pick__number = 5
How many clf teams have a pick # of 5?
CREATE TABLE table_21321804_1 (cfl_team VARCHAR, pick__number VARCHAR)
SELECT competition FROM table_name_44 WHERE score = "1-1"
What is the competition type when the score is 1-1?
CREATE TABLE table_name_44 (competition VARCHAR, score VARCHAR)
SELECT COUNT(position_in_table) FROM table_18788823_5 WHERE outgoing_manager = "Keith Downing"
How many times did Keith Downing depart a position?
CREATE TABLE table_18788823_5 (position_in_table VARCHAR, outgoing_manager VARCHAR)
SELECT set_1 FROM table_name_77 WHERE set_2 = "26–24"
Which Set 1 has a Set 2 of 26–24?
CREATE TABLE table_name_77 (set_1 VARCHAR, set_2 VARCHAR)
SELECT segment_c FROM table_name_92 WHERE segment_b = "s pineapple"
When segment B is s pineapple, what is the segment C?
CREATE TABLE table_name_92 (segment_c VARCHAR, segment_b VARCHAR)
SELECT attendance FROM table_name_77 WHERE loss = "nakamura (0-1)"
What was the attendance when Nakamura (0-1) lost?
CREATE TABLE table_name_77 (attendance VARCHAR, loss VARCHAR)
SELECT country FROM table_name_82 WHERE play = "electra and orestes, the trial"
Which Country is the Play Electra and Orestes, The Trial from?
CREATE TABLE table_name_82 (country VARCHAR, play VARCHAR)
SELECT player FROM table_12962773_2 WHERE height = "2.01"
What player is 2.01 m tall?
CREATE TABLE table_12962773_2 (player VARCHAR, height VARCHAR)
SELECT AVG(bronze) FROM table_name_51 WHERE silver < 1 AND gold > 0
What is the number of bronze that silver is smaller than 1 and gold bigger than 0?
CREATE TABLE table_name_51 (bronze INTEGER, silver VARCHAR, gold VARCHAR)
SELECT COUNT(silver) FROM table_name_6 WHERE rank = 6
What is the total number of silver with rank number 6?
CREATE TABLE table_name_6 (silver VARCHAR, rank VARCHAR)
SELECT COUNT(silver) FROM table_name_65 WHERE gold > 0 AND rank > 1 AND total < 4
How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?
CREATE TABLE table_name_65 (silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT position FROM table_name_40 WHERE college = "trinity"
If the college is Trinity, what position is listed?
CREATE TABLE table_name_40 (position VARCHAR, college VARCHAR)
SELECT sunday_surya__the_sun_ FROM table_1277350_3 WHERE thursday_guru__jupiter_ = "برس وار Bres'var"
In language where Thursday is برس وار bres'var, what is Sunday?
CREATE TABLE table_1277350_3 (sunday_surya__the_sun_ VARCHAR, thursday_guru__jupiter_ VARCHAR)
SELECT MAX(bronze) FROM table_name_53 WHERE total < 82 AND nation = "san marino" AND gold < 3
What is the highest bronze for San Marino with less than 82 total and less than 3 golds?
CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR)
SELECT title FROM table_name_87 WHERE podcast_date = "november 21, 2004"
What is the name of the podcast on November 21, 2004?
CREATE TABLE table_name_87 (title VARCHAR, podcast_date VARCHAR)
SELECT opponent FROM table_name_12 WHERE record = "65-95"
Which Opponent has a Record of 65-95?
CREATE TABLE table_name_12 (opponent VARCHAR, record VARCHAR)
SELECT rounds FROM table_name_82 WHERE entrant = "stanley brm"
Name the rounds for stanley brm
CREATE TABLE table_name_82 (rounds VARCHAR, entrant VARCHAR)
SELECT outcome FROM table_name_39 WHERE date = "01/07/2007"
What was the outcome of the match on 01/07/2007?
CREATE TABLE table_name_39 (outcome VARCHAR, date VARCHAR)
SELECT date FROM table_name_95 WHERE record = "41–32–6"
On what date was the Record 41–32–6?
CREATE TABLE table_name_95 (date VARCHAR, record VARCHAR)
SELECT position FROM table_name_7 WHERE school_country = "temple"
What is the position of the player from Temple?
CREATE TABLE table_name_7 (position VARCHAR, school_country VARCHAR)
SELECT losses FROM table_14876228_1 WHERE team = "General Caballero ZC"
Name the losses for general caballero zc
CREATE TABLE table_14876228_1 (losses VARCHAR, team VARCHAR)
SELECT speed FROM table_name_26 WHERE rank = "1"
What is the speed for rank 1?
CREATE TABLE table_name_26 (speed VARCHAR, rank VARCHAR)
SELECT number_of_sequences_number_of_sequences AS :_ FROM table_name_72 WHERE name = "alifoldz"
What is the number of sequences for the name Alifoldz?
CREATE TABLE table_name_72 (number_of_sequences_number_of_sequences VARCHAR, name VARCHAR)
SELECT COUNT(title) FROM table_26808178_1 WHERE series__number = 4
How many episodes is episode number 4 in the series?
CREATE TABLE table_26808178_1 (title VARCHAR, series__number VARCHAR)