answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT to_par FROM table_name_89 WHERE year_s__won = "1964"
Which To par has a Year(s) won of 1964?
CREATE TABLE table_name_89 (to_par VARCHAR, year_s__won 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 human_development_index__2000_ FROM table_1480455_1 WHERE inegi_code = 10
What is the human development index for the year 2000 where the ingei code is 10?
CREATE TABLE table_1480455_1 (human_development_index__2000_ VARCHAR, inegi_code VARCHAR)
SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = "black maria film and video festival"
Name the nominated work for 1996 and festival of black maria film and video festival
CREATE TABLE table_name_7 (nominated_work VARCHAR, year VARCHAR, festival VARCHAR)
SELECT MAX(touchdowns) FROM table_14342480_6 WHERE field_goals = 1
Name the most touchdowns for field goals being 1
CREATE TABLE table_14342480_6 (touchdowns INTEGER, field_goals VARCHAR)
SELECT original_air_date FROM table_24648983_1 WHERE № = 4
What day did episode number 4 air originally?
CREATE TABLE table_24648983_1 (original_air_date VARCHAR, № VARCHAR)
SELECT karen FROM table_19744915_4 WHERE nicky = "2.5"
Name the karen when nicky is 2.5
CREATE TABLE table_19744915_4 (karen VARCHAR, nicky VARCHAR)
SELECT COUNT(district) FROM table_17503169_1 WHERE republican = "Bob Goodlatte"
How many districts had republican Bob Goodlatte as a candidate?
CREATE TABLE table_17503169_1 (district VARCHAR, republican VARCHAR)
SELECT erp__analog__digital_ FROM table_name_6 WHERE transmitter_location = "mount goonaneman"
What is the ERP for the Mount Goonaneman transmitter?
CREATE TABLE table_name_6 (erp__analog__digital_ VARCHAR, transmitter_location VARCHAR)
SELECT COUNT(teleplay_by) FROM table_14346950_1 WHERE series__number = 35
What is the total number of values for "Teleplay by" category for series # 35?
CREATE TABLE table_14346950_1 (teleplay_by VARCHAR, series__number VARCHAR)
SELECT turbine_manufacturer FROM table_24837750_1 WHERE county = "Wheatland"
Who was the turbine manufacturer for the Wheatland county?
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, county VARCHAR)
SELECT time FROM table_name_3 WHERE date = "december 15, 2010"
What was the time of December 15, 2010?
CREATE TABLE table_name_3 (time VARCHAR, date VARCHAR)
SELECT COUNT(class_aAA) FROM table_14630796_1 WHERE school_year = "2006-07"
Name the total number of class aaa for 2006-07
CREATE TABLE table_14630796_1 (class_aAA VARCHAR, school_year VARCHAR)
SELECT median_family_income FROM table_name_23 WHERE per_capita_income = "$24,114"
What is the median family income when the per capita is $24,114?
CREATE TABLE table_name_23 (median_family_income VARCHAR, per_capita_income VARCHAR)
SELECT mountains_classification FROM table_23944514_15 WHERE aggressive_rider = "Bradley White"
Name the mountains classification for bradley white
CREATE TABLE table_23944514_15 (mountains_classification VARCHAR, aggressive_rider VARCHAR)
SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = "ktm" AND time_retired = "+56.440" AND grid < 11
What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11?
CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR)
SELECT date FROM table_name_30 WHERE visitor = "anaheim"
What was the date of the Red Wings home game against Anaheim?
CREATE TABLE table_name_30 (date VARCHAR, visitor VARCHAR)
SELECT COUNT(lead_maragin) FROM table_16751596_13 WHERE dates_administered = "July 17, 2008"
On July 17, 2008, what was the total number of lead maragin?
CREATE TABLE table_16751596_13 (lead_maragin VARCHAR, dates_administered VARCHAR)
SELECT COUNT(no_in_season) FROM table_25604014_8 WHERE no_in_series = 142
How many episodes in the season are episode 142 in the series?
CREATE TABLE table_25604014_8 (no_in_season VARCHAR, no_in_series VARCHAR)
SELECT high_assists FROM table_17340355_7 WHERE date = "January 2"
Who had the high assist total on january 2?
CREATE TABLE table_17340355_7 (high_assists VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_4 WHERE stadium = "balboa stadium"
What opponent has balboa stadium as the opponent?
CREATE TABLE table_name_4 (opponent VARCHAR, stadium VARCHAR)
SELECT MAX(february) FROM table_27539535_7 WHERE record = "17-29-7"
What day in February was the team 17-29-7?
CREATE TABLE table_27539535_7 (february INTEGER, record VARCHAR)
SELECT bolton_wanderers_career FROM table_name_77 WHERE apps = 293
Which Bolton Wanderers career has 293 Apps?
CREATE TABLE table_name_77 (bolton_wanderers_career VARCHAR, apps VARCHAR)
SELECT super_g FROM table_name_8 WHERE overall = "16"
What is the Super G value for the season that has an Overall score of 16?
CREATE TABLE table_name_8 (super_g VARCHAR, overall VARCHAR)
SELECT stream_s__and___or_lake_s_ FROM table_name_42 WHERE date_founded = 1959
what is the stream(s) and / or lake(s) when the date founded is 1959?
CREATE TABLE table_name_42 (stream_s__and___or_lake_s_ VARCHAR, date_founded VARCHAR)
SELECT time_retired FROM table_name_75 WHERE qual = 144.02
Which time/retired has a qual of 144.02?
CREATE TABLE table_name_75 (time_retired VARCHAR, qual VARCHAR)
SELECT results FROM table_name_89 WHERE total_votes > 3 OFFSET 871
What is the result of the election with 3,871 total votes?
CREATE TABLE table_name_89 (results VARCHAR, total_votes INTEGER)
SELECT license FROM table_name_83 WHERE system = "amiga" AND name = "pocketuae"
Which License has a System of amiga, and a Name of pocketuae?
CREATE TABLE table_name_83 (license VARCHAR, system VARCHAR, name VARCHAR)
SELECT reference FROM table_2414_1 WHERE violas = 2 AND author = "Nelson Riddle"
What reference, written by Nelson Riddle, suggests 2 violas?
CREATE TABLE table_2414_1 (reference VARCHAR, violas VARCHAR, author VARCHAR)
SELECT aspect FROM table_name_18 WHERE programming = "latv"
Which Aspect has a Programming of latv?
CREATE TABLE table_name_18 (aspect VARCHAR, programming VARCHAR)
SELECT COUNT(poles) FROM table_19001175_1 WHERE name = "Stefano Livio Category:Articles with hCards"
Name the number of poles for stefano livio category:articles with hcards
CREATE TABLE table_19001175_1 (poles VARCHAR, name VARCHAR)
SELECT tv FROM table_11449590_2 WHERE date = "December 7, 1986"
Which tv had the date december 7, 1986?
CREATE TABLE table_11449590_2 (tv VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_54 WHERE venue = "candlestick park" AND date = "november 25"
What is the average Attendance, when Venue is "Candlestick Park", and when Date is "November 25"?
CREATE TABLE table_name_54 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_11 WHERE date = "october 9, 1983"
What is the average attendance on October 9, 1983?
CREATE TABLE table_name_11 (attendance INTEGER, date VARCHAR)
SELECT country FROM table_name_21 WHERE score = 71 - 69 - 70 - 69 = 279
What is the country of the player whose score is 71-69-70-69=279?
CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR)
SELECT SUM(gold) FROM table_name_89 WHERE bronze > 15 AND silver < 197 AND nation = "saint lucia" AND total > 50
What's the sum of Gold with a Bronze that's larger than 15, Silver that's smaller than 197, the Nation of Saint Lucia, and has a Total that is larger than 50?
CREATE TABLE table_name_89 (gold INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT COUNT(*) FROM student WHERE sex = 'F' AND age < 25
How many female students (sex is F) whose age is below 25?
CREATE TABLE student (sex VARCHAR, age VARCHAR)
SELECT series_ep FROM table_name_98 WHERE segment_b = "deli meats"
What series episode has deli meats under segment B?
CREATE TABLE table_name_98 (series_ep VARCHAR, segment_b VARCHAR)
SELECT AVG(grid) FROM table_name_44 WHERE time_retired = "+2.2 secs"
What is the average grid for the +2.2 secs time/retired?
CREATE TABLE table_name_44 (grid INTEGER, time_retired VARCHAR)
SELECT style FROM table_28677723_14 WHERE total = 39
Name the style for 39
CREATE TABLE table_28677723_14 (style VARCHAR, total VARCHAR)
SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = "6" AND bronze > 1
What is the average gold total for nations ranked 6 with 1 total medal and 1 bronze medal?
CREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)
SELECT AVG(score) FROM table_name_75 WHERE place = "t3" AND player = "doug sanders"
WHAT IS AVERAGE SCORE WITH T3 PLACE, FOR DOUG SANDERS?
CREATE TABLE table_name_75 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_42 WHERE round = "2" AND college = "kansas state" AND pick = "19"
What is the nationality of the player from Round 2, Pick 19 from College of Kansas State?
CREATE TABLE table_name_42 (nationality VARCHAR, pick VARCHAR, round VARCHAR, college VARCHAR)
SELECT candidates FROM table_2668243_25 WHERE incumbent = "Nathaniel H. Claiborne"
What candidate(s) ran for election when nathaniel h. claiborne was the incumbent?
CREATE TABLE table_2668243_25 (candidates VARCHAR, incumbent VARCHAR)
SELECT id, color, name FROM photos
List the id, color scheme, and name for all the photos.
CREATE TABLE photos (id VARCHAR, color VARCHAR, name VARCHAR)
SELECT MAX(played) FROM table_name_4 WHERE position < 17 AND goals_for = 63
What is the highest played that has a position less than 17, and 63 as the goals for?
CREATE TABLE table_name_4 (played INTEGER, position VARCHAR, goals_for VARCHAR)
SELECT result FROM table_name_5 WHERE date = "1979-01-17"
Tell me the result for 1979-01-17
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 16"
What was the attendance for the game on August 16?
CREATE TABLE table_name_74 (attendance INTEGER, date VARCHAR)
SELECT subregion FROM table_name_41 WHERE no_p = 4 AND pop_area__1_km²_ = 534
Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?
CREATE TABLE table_name_41 (subregion VARCHAR, no_p VARCHAR, pop_area__1_km²_ VARCHAR)
SELECT segment_d FROM table_name_60 WHERE segment_a = "umbrellas"
Name the segment D for umbrellas
CREATE TABLE table_name_60 (segment_d VARCHAR, segment_a VARCHAR)
SELECT game FROM table_name_89 WHERE genre = "fighting"
When the genre is fighting what is the game?
CREATE TABLE table_name_89 (game VARCHAR, genre VARCHAR)
SELECT score_in_the_final FROM table_name_8 WHERE surface = "hard"
What is the score in the final of the tournament with a hard surface?
CREATE TABLE table_name_8 (score_in_the_final VARCHAR, surface VARCHAR)
SELECT party FROM table_name_45 WHERE member = "mick young"
What party is Mick Young a member of?
CREATE TABLE table_name_45 (party VARCHAR, member VARCHAR)
SELECT points_won FROM table_1628607_5 WHERE year = "1992"
When the year was 1992, what were the points won?
CREATE TABLE table_1628607_5 (points_won VARCHAR, year VARCHAR)
SELECT player FROM table_name_56 WHERE class = "senior" AND position = "shooting guard" AND school = "bradley"
What is Player, when Class is "senior", when Position is "shooting guard", and when School is "Bradley"?
CREATE TABLE table_name_56 (player VARCHAR, school VARCHAR, class VARCHAR, position VARCHAR)
SELECT year FROM table_name_88 WHERE entrant = "belond equa-flow / calif. muffler"
Which year is that has a Entrant of belond equa-flow / calif. muffler?
CREATE TABLE table_name_88 (year VARCHAR, entrant VARCHAR)
SELECT score FROM table_name_99 WHERE country = "spain"
Name the Score of spain?
CREATE TABLE table_name_99 (score VARCHAR, country VARCHAR)
SELECT MAX(no_in_season) FROM table_25716399_1 WHERE written_by = "Jonathan Collier"
what season was written by jonathan collier?
CREATE TABLE table_25716399_1 (no_in_season INTEGER, written_by VARCHAR)
SELECT sprints_classification FROM table_name_18 WHERE points_classification = "mark cavendish" AND team_classification = "caisse d'epargne"
What Sprints classification has the Points classification, Mark Cavendish and Team classification, Caisse D'epargne?
CREATE TABLE table_name_18 (sprints_classification VARCHAR, points_classification VARCHAR, team_classification VARCHAR)
SELECT product FROM table_name_88 WHERE melamine_content_mg_kg_ < 98.6 AND samples_failed > 1 AND samples_taken < 3
What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 samples?
CREATE TABLE table_name_88 (product VARCHAR, samples_taken VARCHAR, melamine_content_mg_kg_ VARCHAR, samples_failed VARCHAR)
SELECT MIN(number_of_believers) FROM table_24613895_1
Name the least number of believers
CREATE TABLE table_24613895_1 (number_of_believers INTEGER)
SELECT oberliga_baden_württemberg FROM table_name_77 WHERE oberliga_hessen = "fsv frankfurt" AND season = "1993-94"
Which Oberliga Baden-Württemberg has an Oberliga Hessen of fsv frankfurt in 1993-94?
CREATE TABLE table_name_77 (oberliga_baden_württemberg VARCHAR, oberliga_hessen VARCHAR, season VARCHAR)
SELECT power_kw FROM table_23394920_1 WHERE callsign = "DXZB-TV"
When dxzb-tv is the call sign what is the power kw?
CREATE TABLE table_23394920_1 (power_kw VARCHAR, callsign VARCHAR)
SELECT SUM(year) FROM table_name_82 WHERE co_drivers = "jérôme policand christopher campbell"
In what year Year has a Co-Drivers of jérôme policand christopher campbell?
CREATE TABLE table_name_82 (year INTEGER, co_drivers VARCHAR)
SELECT hindi FROM table_name_37 WHERE tamil = "vyazhan"
WHAT HINDI HAS Tamil of vyazhan?
CREATE TABLE table_name_37 (hindi VARCHAR, tamil VARCHAR)
SELECT away_team AS score FROM table_name_23 WHERE away_team = "hawthorn"
What was the away team's score against Hawthorn?
CREATE TABLE table_name_23 (away_team VARCHAR)
SELECT MAX(erp_w) FROM table_name_59 WHERE call_sign = "k275av"
What is k275av call sign's highest erp w?
CREATE TABLE table_name_59 (erp_w INTEGER, call_sign VARCHAR)
SELECT attendance FROM table_name_32 WHERE loss = "gonzález (0–3)"
Loss of gonzález (0–3) had what attendance?
CREATE TABLE table_name_32 (attendance VARCHAR, loss VARCHAR)
SELECT COUNT(population_2000_census) FROM table_name_58 WHERE area__km²_ = 464.5 AND population_density_2010___km²_ > 1840
What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840?
CREATE TABLE table_name_58 (population_2000_census VARCHAR, area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR)
SELECT 2008 AS _candidates FROM table_16185956_1 WHERE district = "Washington 1"
Who are the candidates in Washington 1 district?
CREATE TABLE table_16185956_1 (district VARCHAR)
SELECT MIN(rank) FROM table_name_3 WHERE bronze = 3 AND total > 10
What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?
CREATE TABLE table_name_3 (rank INTEGER, bronze VARCHAR, total VARCHAR)
SELECT round FROM table_24099476_8 WHERE opponent = "Sergiy Stakhovsky"
In what round did he play against Sergiy Stakhovsky?
CREATE TABLE table_24099476_8 (round VARCHAR, opponent VARCHAR)
SELECT runner_up FROM table_10566855_1 WHERE premier = "Richmond"
who are all the runner-up for premier in richmond
CREATE TABLE table_10566855_1 (runner_up VARCHAR, premier VARCHAR)
SELECT MAX(laps_led) FROM table_181892_4 WHERE chassis = "Lotus-Ford 34/3"
What is the largest laps led with the lotus-ford 34/3 chassis?
CREATE TABLE table_181892_4 (laps_led INTEGER, chassis VARCHAR)
SELECT label FROM table_name_34 WHERE region = "uk" AND date = "1996"
What is the label for the UK in 1996?
CREATE TABLE table_name_34 (label VARCHAR, region VARCHAR, date VARCHAR)
SELECT date FROM table_name_97 WHERE away_team = "fitzroy"
If fitzroy is the Away team, what Date did they play?
CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR)
SELECT T1.Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC
Show the names of products and the number of events they are in, sorted by the number of events in descending order.
CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)
SELECT swimsuit FROM table_15081939_4 WHERE evening_gown = "7.61"
What is the swimsuit score for the item that has 7.61 as evening gown
CREATE TABLE table_15081939_4 (swimsuit VARCHAR, evening_gown VARCHAR)
SELECT region FROM table_166346_1 WHERE production___bbl__day_ = "1,213,000 (21st)"
Which regions had a production (bbl/day) of 1,213,000 (21st)?
CREATE TABLE table_166346_1 (region VARCHAR, production___bbl__day_ VARCHAR)
SELECT SUM(rank) FROM table_name_20 WHERE network = "bbc one" AND number_of_viewers = "30.15million"
Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2
CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR)
SELECT MAX(draws) FROM table_name_81 WHERE port_fairy_fl = "hawkesdale" AND wins > 9
How many draws when the Port Fairy FL is Hawkesdale and there are more than 9 wins?
CREATE TABLE table_name_81 (draws INTEGER, port_fairy_fl VARCHAR, wins VARCHAR)
SELECT 1 AS st_leg FROM table_name_25 WHERE agg = "4-3"
What is the 1st leg with a 4-3 agg.?
CREATE TABLE table_name_25 (agg VARCHAR)
SELECT SUM(points) FROM table_name_41 WHERE entrant = "peter whitehead" AND chassis = "alta f2"
What is the sum of all the points won by Peter Whitehead in an alta f2 Chassis?
CREATE TABLE table_name_41 (points INTEGER, entrant VARCHAR, chassis VARCHAR)
SELECT years FROM table_name_72 WHERE type_code = "cubic centimetres (cuin) v8 ( m273 )"
Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?
CREATE TABLE table_name_72 (years VARCHAR, type_code VARCHAR)
SELECT AVG(game) FROM table_name_46 WHERE attendance > 56 OFFSET 040
What was the average Game, when the attendance was higher than 56,040?
CREATE TABLE table_name_46 (game INTEGER, attendance INTEGER)
SELECT host_nation_s_ FROM table_28601467_1 WHERE year = 2004
Which nation hosted the competition in 2004?
CREATE TABLE table_28601467_1 (host_nation_s_ VARCHAR, year VARCHAR)
SELECT chi FROM table_15416002_1 WHERE nhc_advisory_number = "49B"
What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?
CREATE TABLE table_15416002_1 (chi VARCHAR, nhc_advisory_number VARCHAR)
SELECT platform_s_ FROM table_name_33 WHERE developer_s_ = "rockstar games"
What's the platform that has Rockstar Games as the developer?
CREATE TABLE table_name_33 (platform_s_ VARCHAR, developer_s_ VARCHAR)
SELECT circuit FROM table_19886463_1 WHERE format = "Two heats"
Which circuit has two heats as the format?
CREATE TABLE table_19886463_1 (circuit VARCHAR, format VARCHAR)
SELECT builder FROM table_name_67 WHERE ship = "arizona"
What is Builder, when Ship is "Arizona"?
CREATE TABLE table_name_67 (builder VARCHAR, ship VARCHAR)
SELECT series__number FROM table_18217750_1 WHERE us_viewers__millions_ = "20.64"
What series number garnered 20.64 million viewers?
CREATE TABLE table_18217750_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT date FROM table_name_33 WHERE competition = "1936 summer olympics" AND score = "6-1"
In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?
CREATE TABLE table_name_33 (date VARCHAR, competition VARCHAR, score VARCHAR)
SELECT reader FROM table_20174050_24 WHERE author = "Cole, Stephen Stephen Cole" AND release_date = "2008-11-13 13 November 2008"
who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008
CREATE TABLE table_20174050_24 (reader VARCHAR, author VARCHAR, release_date VARCHAR)
SELECT competition FROM table_name_58 WHERE round = "1st round" AND club = "union luxembourg"
Which competition features the 1st round of Club Union Luxembourg?
CREATE TABLE table_name_58 (competition VARCHAR, round VARCHAR, club VARCHAR)
SELECT skip FROM table_name_92 WHERE nation = "spain"
What is Spain's skip?
CREATE TABLE table_name_92 (skip VARCHAR, nation VARCHAR)
SELECT _number_of_candidates FROM table_19283982_4 WHERE _number_of_seats_won = 43
Name the number of candidates for # of seats won being 43
CREATE TABLE table_19283982_4 (_number_of_candidates VARCHAR, _number_of_seats_won VARCHAR)
SELECT pinyin FROM table_2847477_2 WHERE english_name = "Xin County"
What is the pinyin name for the english name xin county?
CREATE TABLE table_2847477_2 (pinyin VARCHAR, english_name VARCHAR)
SELECT MIN(races) FROM table_24587026_1 WHERE team = "Carlin"
Name the least races for carlin
CREATE TABLE table_24587026_1 (races INTEGER, team VARCHAR)
SELECT dipole_moment___d__ FROM table_name_78 WHERE solvent = "ethyl acetate (etoac)"
What's the dipole moment of ethyl acetate (etoac)?
CREATE TABLE table_name_78 (dipole_moment___d__ VARCHAR, solvent VARCHAR)
SELECT MAX(year) FROM table_name_82 WHERE title = "loves lost and found"
What is the highest year for the title, "loves lost and found"?
CREATE TABLE table_name_82 (year INTEGER, title VARCHAR)