answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT ungegn FROM table_name_34 WHERE value = "10 000"
What is the UNGEGN, when the Value is 10 000?
CREATE TABLE table_name_34 (ungegn VARCHAR, value VARCHAR)
SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING AVG(Product_Price) < 1000000
What are the product names with average product price smaller than 1000000?
CREATE TABLE PRODUCTS (Product_Name VARCHAR, Product_Price INTEGER)
SELECT series__number FROM table_27833469_1 WHERE season__number = "10"
What is the series number for the episode number 10 of the season?
CREATE TABLE table_27833469_1 (series__number VARCHAR, season__number VARCHAR)
SELECT player FROM table_1473672_3 WHERE position = "Right Wing"
Which players played right wing?
CREATE TABLE table_1473672_3 (player VARCHAR, position VARCHAR)
SELECT result FROM table_name_53 WHERE date = "5,6,7,8 june 1997"
What is the Result of the Test match at the Edgbaston Venue on 5,6,7,8 June 1997?
CREATE TABLE table_name_53 (result VARCHAR, date VARCHAR)
SELECT MAX(poles) FROM table_24466191_1 WHERE series = "Macau Grand Prix"
Name th most poles for macau grand prix
CREATE TABLE table_24466191_1 (poles INTEGER, series VARCHAR)
SELECT league_apps FROM table_10556257_1 WHERE season = "1923-24"
What is the league apps for season 1923-24?
CREATE TABLE table_10556257_1 (league_apps VARCHAR, season VARCHAR)
SELECT hometown FROM table_name_99 WHERE college = "ucla"
What is the hometown of the player that attends UCLA?
CREATE TABLE table_name_99 (hometown VARCHAR, college VARCHAR)
SELECT MIN(gold) FROM table_name_62 WHERE total < 2 AND rank = 17 AND silver > 0
What is the lowest amount of gold a team with less than 2 total medals, ranked 17, and more than 0 silver medals, has?
CREATE TABLE table_name_62 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)
SELECT margin_of_victory FROM table_name_78 WHERE winning_score = −10(71 - 65 - 68 - 70 = 274)
What is the margin of victory for the winning score of −10 (71-65-68-70=274)?
CREATE TABLE table_name_78 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT date FROM table_23486853_3 WHERE opponent = "Florida Panthers"
What date did they play the Florida Panthers?
CREATE TABLE table_23486853_3 (date VARCHAR, opponent VARCHAR)
SELECT finish FROM table_name_55 WHERE total < 292 AND year_s__won = "1978"
Of the 1978 winners, who had finish totals smaller than 292?
CREATE TABLE table_name_55 (finish VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT artist FROM table_name_94 WHERE spoofed_title = "miscue 911"
Which artist has the Spoofed title Miscue 911?
CREATE TABLE table_name_94 (artist VARCHAR, spoofed_title VARCHAR)
SELECT location FROM table_12936521_2 WHERE institution = "University at Albany"
Where is the University at Albany located?
CREATE TABLE table_12936521_2 (location VARCHAR, institution VARCHAR)
SELECT time FROM table_name_14 WHERE set_3 = "25–16"
What time has a Set 3 of 25–16?
CREATE TABLE table_name_14 (time VARCHAR, set_3 VARCHAR)
SELECT COUNT(kickoff_)[a_] FROM table_11452830_2 WHERE date = "September 4, 1988"
How many times was there a kickoff in the September 4, 1988 game?
CREATE TABLE table_11452830_2 (a_ VARCHAR, kickoff_ VARCHAR, date VARCHAR)
SELECT incumbent FROM table_2668243_17 WHERE candidates = "Robert Monell (J) 63.6% Tilly Lynde 36.4%"
Name the incumbent for robert monell (j) 63.6% tilly lynde 36.4%
CREATE TABLE table_2668243_17 (incumbent VARCHAR, candidates VARCHAR)
SELECT tournament FROM table_name_78 WHERE outcome = "winner" AND opponents = "eddie dibbs harold solomon"
What Tournament has an Outcome of winner, and Opponents of eddie dibbs harold solomon?
CREATE TABLE table_name_78 (tournament VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT home_team AS score FROM table_16387653_1 WHERE home_team = "Footscray"
What to Footscray score at home?
CREATE TABLE table_16387653_1 (home_team VARCHAR)
SELECT m1a1_abrams FROM table_name_92 WHERE lince = "t (short tons)"
What is the M1A1 when the Lince was T (Short Tons)?
CREATE TABLE table_name_92 (m1a1_abrams VARCHAR, lince VARCHAR)
SELECT COUNT(*) FROM Reviewer
How many reviewers listed?
CREATE TABLE Reviewer (Id VARCHAR)
SELECT tie_no FROM table_name_20 WHERE home_team = "ramsgate"
What was the Tie no when the Home team was Ramsgate?
CREATE TABLE table_name_20 (tie_no VARCHAR, home_team VARCHAR)
SELECT record FROM table_name_82 WHERE february = 23
What is the record on February 23?
CREATE TABLE table_name_82 (record VARCHAR, february VARCHAR)
SELECT COUNT(evening_gown) FROM table_name_57 WHERE swimsuit < 9.36 AND average < 9.23
Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?
CREATE TABLE table_name_57 (evening_gown VARCHAR, swimsuit VARCHAR, average VARCHAR)
SELECT tournament FROM table_name_64 WHERE runner_s__up = "gil morgan"
In which tournament was Gil Morgan the runner-up?
CREATE TABLE table_name_64 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT venue FROM table_name_6 WHERE away_team = "footscray"
Which Venue has an Away team of footscray?
CREATE TABLE table_name_6 (venue VARCHAR, away_team VARCHAR)
SELECT tournament FROM table_name_26 WHERE 2007 = "wta premier 5 tournaments"
What is the tournament when 2007 is WTA Premier 5 tournaments?
CREATE TABLE table_name_26 (tournament VARCHAR)
SELECT COUNT(_number) FROM table_23294081_10 WHERE no = 214
How many episodes were series episode 214?
CREATE TABLE table_23294081_10 (_number VARCHAR, no VARCHAR)
SELECT score FROM table_name_16 WHERE place = "4"
What is the Score of the game of the Player in Place 4?
CREATE TABLE table_name_16 (score VARCHAR, place VARCHAR)
SELECT social_democratic FROM table_1463383_1 WHERE left_bloc = "5.5%"
What percentages of social democratic correspond to a 5.5% left bloc?
CREATE TABLE table_1463383_1 (social_democratic VARCHAR, left_bloc VARCHAR)
SELECT player FROM table_name_16 WHERE years_in_orlando = "2005"
Who was the Player that spent the Year 2005 in Orlando?
CREATE TABLE table_name_16 (player VARCHAR, years_in_orlando VARCHAR)
SELECT date FROM table_name_29 WHERE league_position = "1st" AND result_f___a = "5 – 0"
What date that was the league position was 1st, and the result F– A was 5 – 0?
CREATE TABLE table_name_29 (date VARCHAR, league_position VARCHAR, result_f___a VARCHAR)
SELECT MAX(round) FROM table_name_91 WHERE player = "darryl fedorak"
What is Darryl Fedorak's highest round?
CREATE TABLE table_name_91 (round INTEGER, player VARCHAR)
SELECT nhl_team FROM table_2840500_6 WHERE player = "Blaine Russell"
Which team picked Blaine Russell?
CREATE TABLE table_2840500_6 (nhl_team VARCHAR, player VARCHAR)
SELECT winning_driver FROM table_name_67 WHERE winning_team = "chaparral" AND name = "indianapolis 500"
Which driver won the Indianapolis 500 the year the Chaparral team also won it?
CREATE TABLE table_name_67 (winning_driver VARCHAR, winning_team VARCHAR, name VARCHAR)
SELECT COUNT(byes) FROM table_name_78 WHERE losses > 4 AND sunrayia_fl = "red cliffs" AND against > 2422
What are the total byes for the Red Cliffs with more than 4 losses and more than 2422 against?
CREATE TABLE table_name_78 (byes VARCHAR, against VARCHAR, losses VARCHAR, sunrayia_fl VARCHAR)
SELECT MIN(silver) FROM table_name_75 WHERE bronze = 0 AND rank = 14 AND gold > 0
What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?
CREATE TABLE table_name_75 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT SUM(rank) FROM table_name_57 WHERE rider = "andrew neill"
What was Andrew Neill's rank?
CREATE TABLE table_name_57 (rank INTEGER, rider VARCHAR)
SELECT score FROM table_name_52 WHERE home = "detroit" AND decision = "legace" AND date = "december 3"
What was the score on December 3 when Detroit was the home team and Legace took the decision?
CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR, home VARCHAR, decision VARCHAR)
SELECT legs FROM table_name_81 WHERE venue = "rwe-sporthalle, mülheim" AND runner_up__average_in_final_ = "simon whitlock (99.59)"
What is the legs when the venue is rwe-sporthalle, mülheim and the runner-up (average in final) is simon whitlock (99.59)?
CREATE TABLE table_name_81 (legs VARCHAR, venue VARCHAR, runner_up__average_in_final_ VARCHAR)
SELECT date FROM table_17782308_1 WHERE opponent = "Miami Dolphins"
What was the date of the game when the opponent was the Miami Dolphins?
CREATE TABLE table_17782308_1 (date VARCHAR, opponent VARCHAR)
SELECT original_air_date FROM table_12159115_2 WHERE production_code = "2T6719"
What's the original air date of the episode with production code 2T6719?
CREATE TABLE table_12159115_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT MIN(year) FROM table_103084_4 WHERE bbc_two_total_viewing = "7,530,000"
What year was the BBC two total viewing 7,530,000?
CREATE TABLE table_103084_4 (year INTEGER, bbc_two_total_viewing VARCHAR)
SELECT SUM(Home) AS wins FROM table_name_89 WHERE institution = "boston college eagles" AND wins > 6
What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins?
CREATE TABLE table_name_89 (Home INTEGER, institution VARCHAR, wins VARCHAR)
SELECT ground FROM table_name_88 WHERE home = "etobicoke kangaroos"
What ground has etobicoke kangaroos as the home?
CREATE TABLE table_name_88 (ground VARCHAR, home VARCHAR)
SELECT score FROM table_name_38 WHERE visitor = "philadelphia"
What was the score when philadelphia visited?
CREATE TABLE table_name_38 (score VARCHAR, visitor VARCHAR)
SELECT MIN(year) FROM table_name_6 WHERE country_territory = "philippines"
What's the earliest year the philippines won?
CREATE TABLE table_name_6 (year INTEGER, country_territory VARCHAR)
SELECT MAX(no_s__in_series) FROM table_27714985_1 WHERE written_by = "Gregory S. Malins"
What is the last episode in the series written by Gregory S. Malins?
CREATE TABLE table_27714985_1 (no_s__in_series INTEGER, written_by VARCHAR)
SELECT opponent FROM table_name_24 WHERE date = "july 27"
Which opponent has a Date of july 27?
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
SELECT champion FROM table_name_28 WHERE engine = "ford" AND season = "1971"
Who was the champion that drove the car with the Ford engine in 1971?
CREATE TABLE table_name_28 (champion VARCHAR, engine VARCHAR, season VARCHAR)
SELECT surface FROM table_name_72 WHERE date = "16 april 2007"
Tell me the surface for 16 april 2007
CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR)
SELECT location FROM table_name_42 WHERE race = "argentine grand prix"
Where was the argentine grand prix?
CREATE TABLE table_name_42 (location VARCHAR, race VARCHAR)
SELECT county FROM table_name_3 WHERE median_family_income = "$79,331"
What County has a Median Family Income of $79,331?
CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR)
SELECT SUM(rank) FROM table_name_10 WHERE athlete = "kerron stewart" AND time < 11.05
What is the sum of rank for the athlete kerron stewart, and a time smaller than 11.05?
CREATE TABLE table_name_10 (rank INTEGER, athlete VARCHAR, time VARCHAR)
SELECT set_3 FROM table_name_1 WHERE set_1 = "14–25"
What was the score for set 3 when set 1 was 14–25?
CREATE TABLE table_name_1 (set_3 VARCHAR, set_1 VARCHAR)
SELECT 2010 FROM table_name_45 WHERE 2011 = "q2"
What's the 2010 when Q2 happened in 2011?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = "mid west gas pipeline (1999)"
What is the maximum diameter of the Mid West Gas Pipeline (1999)?
CREATE TABLE table_name_57 (maximum_diameter VARCHAR, name__year_commissioned_ VARCHAR)
SELECT name FROM table_name_56 WHERE novelty = "gen et sp nov"
What name has gen et sp nov as the novelty?
CREATE TABLE table_name_56 (name VARCHAR, novelty VARCHAR)
SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = "1"
How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?
CREATE TABLE table_name_81 (joint_music_award VARCHAR, year VARCHAR, rthk VARCHAR)
SELECT score FROM table_17102076_7 WHERE game = 35
What was the score of game 35?
CREATE TABLE table_17102076_7 (score VARCHAR, game VARCHAR)
SELECT country FROM table_name_13 WHERE score = 71 - 74 - 70 = 215
What is Country, when Score is 71-74-70=215?
CREATE TABLE table_name_13 (country VARCHAR, score VARCHAR)
SELECT proto_slavic FROM table_26757_4 WHERE polish = "gniazdo"
When gniazdo is polish what is proto-slavic?
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, polish VARCHAR)
SELECT tv_season FROM table_name_80 WHERE households__in_millions_ = "30.503 (34.9 rating)"
Which TV season has Households (in millions) of 30.503 (34.9 rating)?
CREATE TABLE table_name_80 (tv_season VARCHAR, households__in_millions_ VARCHAR)
SELECT MAX(Market_Value_in_Billion), MIN(Market_Value_in_Billion) FROM company
What is the maximum and minimum market value of companies?
CREATE TABLE company (Market_Value_in_Billion INTEGER)
SELECT model FROM table_name_6 WHERE green_rating = "g" AND manufacturer = "chrysler jeep" AND l_100km_urban__cold_ < 18 AND mpg_uk_combined = 27.7
What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7?
CREATE TABLE table_name_6 (model VARCHAR, mpg_uk_combined VARCHAR, l_100km_urban__cold_ VARCHAR, green_rating VARCHAR, manufacturer VARCHAR)
SELECT laid_down FROM table_name_17 WHERE name = "uss cambridge"
What year was the USS Cambridge laid down?
CREATE TABLE table_name_17 (laid_down VARCHAR, name VARCHAR)
SELECT lead FROM table_name_66 WHERE second = "marc kennedy" AND season = "2012–13"
What is the Lead when the Second was marc kennedy, in the 2012–13 season?
CREATE TABLE table_name_66 (lead VARCHAR, second VARCHAR, season VARCHAR)
SELECT high_assists FROM table_name_93 WHERE team = "@ detroit"
What is the high assists that has @ detroit as the team?
CREATE TABLE table_name_93 (high_assists VARCHAR, team VARCHAR)
SELECT winner_and_score FROM table_name_7 WHERE week = "august 10"
Who won on the week of August 10?
CREATE TABLE table_name_7 (winner_and_score VARCHAR, week VARCHAR)
SELECT date FROM table_name_67 WHERE competition = "rothmans cup"
What date was the Competition of rothmans cup?
CREATE TABLE table_name_67 (date VARCHAR, competition VARCHAR)
SELECT player FROM table_name_22 WHERE jersey_number_s_ > 30
Who is the player with a Jersey Number(s) greater than 30?
CREATE TABLE table_name_22 (player VARCHAR, jersey_number_s_ INTEGER)
SELECT series_leader FROM table_name_93 WHERE date = "october 9"
What is the Series leader with a Date that is october 9?
CREATE TABLE table_name_93 (series_leader VARCHAR, date VARCHAR)
SELECT density__hab_km²_ FROM table_name_11 WHERE city_district = "san sebastián"
What is the density of San Sebastián?
CREATE TABLE table_name_11 (density__hab_km²_ VARCHAR, city_district VARCHAR)
SELECT drawn FROM table_12792876_2 WHERE tries_against = "30"
How many draws were there when there were 30 tries against?
CREATE TABLE table_12792876_2 (drawn VARCHAR, tries_against VARCHAR)
SELECT MAX(top_10) FROM table_name_49 WHERE tournament = "u.s. open" AND top_25 > 12
What is the highest top-10 that has a u.s. open for the tournament, and a top-25 greater than 12?
CREATE TABLE table_name_49 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT friday_fifth_day FROM table_1277350_5 WHERE day__see_irregularities__ = "Polish"
How do you say Friday in Polish?
CREATE TABLE table_1277350_5 (friday_fifth_day VARCHAR, day__see_irregularities__ VARCHAR)
SELECT COUNT(vacator) FROM table_224839_3 WHERE successor = "William H. Wells ( F )"
What is the number of vacators when the successor was William H. Wells ( F )?
CREATE TABLE table_224839_3 (vacator VARCHAR, successor VARCHAR)
SELECT winning_span FROM table_1953516_1 WHERE rank = "5"
What is the winning span with the rank of 5?
CREATE TABLE table_1953516_1 (winning_span VARCHAR, rank VARCHAR)
SELECT score FROM table_name_44 WHERE loss = "cox (6–2)"
What was the score of the game that had a loss of Cox (6–2)?
CREATE TABLE table_name_44 (score VARCHAR, loss VARCHAR)
SELECT 2008 FROM table_name_2 WHERE 2009 = "a" AND 2010 = "a" AND 2012 = "1r" AND tournament = "cincinnati masters"
Which 2008 has a 2009 of A, and a 2010 of A, and a 2012 of 1r, and a Tournament of cincinnati masters?
CREATE TABLE table_name_2 (tournament VARCHAR)
SELECT MIN(rank__night_) FROM table_25751274_2 WHERE rating / SHARE(18 - 49) = 1.3 / 4
What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4?
CREATE TABLE table_25751274_2 (rank__night_ INTEGER, rating VARCHAR)
SELECT percentage FROM table_name_80 WHERE first_game = 1998
What Percentage did the First game of 1998 have?
CREATE TABLE table_name_80 (percentage VARCHAR, first_game VARCHAR)
SELECT format FROM table_name_10 WHERE catalog = "alca-9196"
What formated cataloged alca-9196?
CREATE TABLE table_name_10 (format VARCHAR, catalog VARCHAR)
SELECT points FROM table_name_12 WHERE rebounds = "al jefferson (7)"
Who was the leader in Points when Al Jefferson (7) was the leader in Rebounds?
CREATE TABLE table_name_12 (points VARCHAR, rebounds VARCHAR)
SELECT series_ep FROM table_name_22 WHERE segment_d = "fluorescent tubes"
What is the series episode number with a segment of D, and having fluorescent tubes?
CREATE TABLE table_name_22 (series_ep VARCHAR, segment_d VARCHAR)
SELECT score FROM table_15872814_3 WHERE team = "Washington"
Name the score for washington
CREATE TABLE table_15872814_3 (score VARCHAR, team VARCHAR)
SELECT AVG(position) FROM table_name_80 WHERE team = "criciúma" AND drawn > 8
Which Position has a Team of criciúma, and a Drawn larger than 8?
CREATE TABLE table_name_80 (position INTEGER, team VARCHAR, drawn VARCHAR)
SELECT MAX(flap) FROM table_name_97 WHERE bike = "honda nsr500" AND race > 16
What is the highest FLap by a Honda NSR500 bike after Race 16?
CREATE TABLE table_name_97 (flap INTEGER, bike VARCHAR, race VARCHAR)
SELECT upstream FROM table_name_68 WHERE monthly_cap = "150 gb"
What is the upstream with a 150 gb monthly cap?
CREATE TABLE table_name_68 (upstream VARCHAR, monthly_cap VARCHAR)
SELECT latitude FROM table_name_94 WHERE diameter__km_ = "13km" AND longitude = "72.9° e"
What is the Latitude when the Diameter (km) is 13km, and the Longitude is 72.9° e?
CREATE TABLE table_name_94 (latitude VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR)
SELECT class FROM table_name_20 WHERE dates = "22 april - 3 may 2009"
What is Class, when Dates is "22 April - 3 May 2009"?
CREATE TABLE table_name_20 (class VARCHAR, dates VARCHAR)
SELECT season FROM table_name_22 WHERE promoted = "norwich union league"
What season was Norwich Union League promoted?
CREATE TABLE table_name_22 (season VARCHAR, promoted VARCHAR)
SELECT COUNT(total) FROM table_name_4 WHERE bronze > 1 AND silver = 1
What is the total number of totals for nations with 1 silver and more than 1 bronze?
CREATE TABLE table_name_4 (total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT english_title FROM table_11173827_1 WHERE finale = 33 AND peak = 42
What is the english title that has finale as 33 and peak as 42?
CREATE TABLE table_11173827_1 (english_title VARCHAR, finale VARCHAR, peak VARCHAR)
SELECT NOT COUNT AS event FROM table_name_42 WHERE winner = "clay"
How many events did clay win?
CREATE TABLE table_name_42 (COUNT VARCHAR, winner VARCHAR)
SELECT AVG(attendance) FROM table_name_18 WHERE loss = "stoneman (0-2)"
Which average attendance has stoneman (0-2) as the loss?
CREATE TABLE table_name_18 (attendance INTEGER, loss VARCHAR)
SELECT venue FROM table_name_40 WHERE home_team = "carlton"
What venue features carlton as the home side?
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
SELECT maac FROM table_21756039_1 WHERE overall = "26-8"
What is the maac when the overall is 26-8?
CREATE TABLE table_21756039_1 (maac VARCHAR, overall VARCHAR)
SELECT surface FROM table_1918850_2 WHERE score_in_the_final = "6-2, 6-3"
what is the surface of the final which had score 6-2, 6-3
CREATE TABLE table_1918850_2 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT AVG(league_goals) FROM table_name_98 WHERE fa_cup_goals = "0" AND position = "mf" AND league_cup_apps = "0" AND name = "ben thornley"
What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley?
CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR)