answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT StuID FROM Student WHERE age = (SELECT MAX(age) FROM Student)
Show the student id of the oldest student.
CREATE TABLE Student (StuID VARCHAR, age INTEGER)
SELECT AVG(lost) FROM table_name_69 WHERE _percentage_pts > 110.25
When the points scored was over 110.25%, what's the average amount lost?
CREATE TABLE table_name_69 (lost INTEGER, _percentage_pts INTEGER)
SELECT COUNT(production_code) FROM table_27713721_1 WHERE us_viewers__millions_ = "25.3"
How many episodes had an audience of exactly 25.3 million viewers in the U.S.A.?
CREATE TABLE table_27713721_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR)
SELECT player FROM table_23670057_6 WHERE height__m_ = "1.85"
Name the player that is 1.85 m
CREATE TABLE table_23670057_6 (player VARCHAR, height__m_ VARCHAR)
SELECT MIN(population) FROM table_name_64 WHERE type = "m" AND name = "saint-blaise-sur-richelieu" AND area__km_2__ < 68.42
Saint-Blaise-Sur-Richelieu is smaller than 68.42 km^2, what is the population of this type M municipality?
CREATE TABLE table_name_64 (population INTEGER, area__km_2__ VARCHAR, type VARCHAR, name VARCHAR)
SELECT skip FROM table_name_1 WHERE country = "finland"
What is the skip when the country is finland?
CREATE TABLE table_name_1 (skip VARCHAR, country VARCHAR)
SELECT AVG(2001) FROM table_name_41 WHERE 2010 > 414 AND 2011 = 7192 AND 2005 > 7340
What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340?
CREATE TABLE table_name_41 (Id VARCHAR)
SELECT MIN(opened) FROM table_name_20 WHERE venue = "huff hall" AND established > 1974
When is the earliest year opened for huff hall that was established after 1974?
CREATE TABLE table_name_20 (opened INTEGER, venue VARCHAR, established VARCHAR)
SELECT MIN(tromsø) FROM table_19439864_2 WHERE total = 740
When the total score is 740, what is tromso?
CREATE TABLE table_19439864_2 (tromsø INTEGER, total VARCHAR)
SELECT incumbent FROM table_1341865_44 WHERE district = "Tennessee 5"
what's incumbent with district being tennessee 5
CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR)
SELECT original_air_date FROM table_2818164_7 WHERE written_by = "Mark St. Germain" AND directed_by = "Jay Sandrich"
What is the original air date the was written by mark st. germain and direct by jay sandrich?
CREATE TABLE table_2818164_7 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT COUNT(round) FROM table_name_79 WHERE date = "may 31"
How many rounds total were there on may 31?
CREATE TABLE table_name_79 (round VARCHAR, date VARCHAR)
SELECT course FROM table_name_10 WHERE date = "1 june"
What is the course on 1 June?
CREATE TABLE table_name_10 (course VARCHAR, date VARCHAR)
SELECT team FROM table_15736385_1 WHERE date = "October 19"
Which team raced on October 19?
CREATE TABLE table_15736385_1 (team VARCHAR, date VARCHAR)
SELECT bandwidth_included FROM table_name_45 WHERE price = "50 eur"
What is Bandwidth Included, when Price is "50 EUR"?
CREATE TABLE table_name_45 (bandwidth_included VARCHAR, price VARCHAR)
SELECT date FROM table_name_54 WHERE winning_score = –8(70 - 71 - 67 = 208)
On what date is the winning score –8 (70-71-67=208)?
CREATE TABLE table_name_54 (date VARCHAR, winning_score VARCHAR)
SELECT COUNT(doubles_champions) FROM table_11900378_1 WHERE tournament = "Serbia F6 Futures"
How many doubles champions were there for the Serbia f6 Futures tournament?
CREATE TABLE table_11900378_1 (doubles_champions VARCHAR, tournament VARCHAR)
SELECT tournament FROM table_name_47 WHERE runner_s__up = "jack nicklaus"
What Tournament had Jack Nicklaus as Runner(s)-up?
CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT SUM(total) FROM table_name_87 WHERE silver > 1 AND nation = "germany (ger)" AND gold < 1
What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1?
CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT COUNT(against) FROM table_name_4 WHERE team = "corinthians" AND lost < 3
What is the total of all against values for the Corinthians with less than 3 lost?
CREATE TABLE table_name_4 (against VARCHAR, team VARCHAR, lost VARCHAR)
SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5
Find products with max page size as "A4" and pages per minute color smaller than 5.
CREATE TABLE product (product VARCHAR, max_page_size VARCHAR, pages_per_minute_color VARCHAR)
SELECT T1.booking_id, T1.amount_of_refund FROM Bookings AS T1 JOIN Payments AS T2 ON T1.booking_id = T2.booking_id GROUP BY T1.booking_id ORDER BY COUNT(*) DESC LIMIT 1
What are the id and the amount of refund of the booking that incurred the most times of payments?
CREATE TABLE Payments (booking_id VARCHAR); CREATE TABLE Bookings (booking_id VARCHAR, amount_of_refund VARCHAR)
SELECT словјански FROM table_25008327_8 WHERE polish = "książka"
What is every value for словјански if polish is książka?
CREATE TABLE table_25008327_8 (словјански VARCHAR, polish VARCHAR)
SELECT couple FROM table_19744915_22 WHERE public < 2.0
What couple had less than 2.0 points from the public?
CREATE TABLE table_19744915_22 (couple VARCHAR, public INTEGER)
SELECT performance FROM table_name_89 WHERE athlete = "dire tune"
What's the performance of Dire Tune?
CREATE TABLE table_name_89 (performance VARCHAR, athlete VARCHAR)
SELECT team FROM table_21795650_1 WHERE podiums = 4
What team had 4 podiums?
CREATE TABLE table_21795650_1 (team VARCHAR, podiums VARCHAR)
SELECT 2001 FROM table_name_32 WHERE 1995 = "1r"
In the Tournament during which Jiří Novák made it to the 1st round(1R) in 1995, how did he do in 2001?
CREATE TABLE table_name_32 (Id VARCHAR)
SELECT venue FROM table_name_59 WHERE competition = "2013 concacaf gold cup"
What venue will hold the 2013 Concacaf Gold Cup competition?
CREATE TABLE table_name_59 (venue VARCHAR, competition VARCHAR)
SELECT score FROM table_name_7 WHERE opponent = "andry laffita"
Opponent of andry laffita had what score?
CREATE TABLE table_name_7 (score VARCHAR, opponent VARCHAR)
SELECT MAX(first_elected) FROM table_name_21 WHERE result = "re-elected" AND district = "california 5"
What's the highest First Elected with a Result of Re-elected and DIstrict of California 5?
CREATE TABLE table_name_21 (first_elected INTEGER, result VARCHAR, district VARCHAR)
SELECT replaced_by FROM table_19359427_6 WHERE team = "Sheffield United"
Who came as a replacement in Sheffield United?
CREATE TABLE table_19359427_6 (replaced_by VARCHAR, team VARCHAR)
SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = "anaheim stadium" AND result = "14-28"
What's the total attendance at anaheim stadium after 1983 when the result is 14-28?
CREATE TABLE table_name_67 (attendance VARCHAR, result VARCHAR, year VARCHAR, venue VARCHAR)
SELECT MIN(no_in_series) FROM table_27969432_3
What is the lowest numbered episode in the series?
CREATE TABLE table_27969432_3 (no_in_series INTEGER)
SELECT AVG(losses) FROM table_name_63 WHERE runs_allowed < 25 AND wins = 5
What is the average number of losses the team with less than 25 runs allowed and 5 wins have?
CREATE TABLE table_name_63 (losses INTEGER, runs_allowed VARCHAR, wins VARCHAR)
SELECT resolution FROM table_name_47 WHERE network = "carismatv"
What is the resolution of the network Carismatv?
CREATE TABLE table_name_47 (resolution VARCHAR, network VARCHAR)
SELECT saturday_sixth_day FROM table_1277350_5 WHERE day__see_irregularities__ = "Croatian"
What's the Croatian word for Saturday?
CREATE TABLE table_1277350_5 (saturday_sixth_day VARCHAR, day__see_irregularities__ VARCHAR)
SELECT best_finish FROM table_29504351_2 WHERE player = "Carl Paulson"
What is the best finish record for Carl Paulson?
CREATE TABLE table_29504351_2 (best_finish VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_42 WHERE player = "gene littler"
What is the to par for Gene Littler?
CREATE TABLE table_name_42 (to_par VARCHAR, player VARCHAR)
SELECT away FROM table_name_5 WHERE date = "2008-07-18"
Which away game was played on 2008-07-18?
CREATE TABLE table_name_5 (away VARCHAR, date VARCHAR)
SELECT MIN(drawn) FROM table_name_38 WHERE lost = 13
What is the lowest drawn for entries with a lost of 13?
CREATE TABLE table_name_38 (drawn INTEGER, lost VARCHAR)
SELECT winning_score FROM table_name_87 WHERE year < 1959 AND runner_s__up = "jackie pung"
What is the winning score before 1959, with runner-up Jackie Pung?
CREATE TABLE table_name_87 (winning_score VARCHAR, year VARCHAR, runner_s__up VARCHAR)
SELECT COUNT(equivalent_daily_inflation_rate) FROM table_13681_2 WHERE time_required_for_prices_to_double = "3.7 days"
how many equivalent daily inflation rate with time required for prices to double being 3.7 days
CREATE TABLE table_13681_2 (equivalent_daily_inflation_rate VARCHAR, time_required_for_prices_to_double 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 MIN(car__number) FROM table_name_11 WHERE current_car = "son-e-wa" AND year_started < 2012
WHAT WAS THE LOWEST CAR # WITH SON-E-WA, AND 2012 START YEAR?
CREATE TABLE table_name_11 (car__number INTEGER, current_car VARCHAR, year_started VARCHAR)
SELECT MAX(crowd) FROM table_name_48 WHERE home_team = "north melbourne"
What is the largest crowd for North Melbourne home games?
CREATE TABLE table_name_48 (crowd INTEGER, home_team VARCHAR)
SELECT release_price___usd__ FROM table_18823880_10 WHERE socket = "socketG1"
When socketg1 is the socket what is the release price in dollars?
CREATE TABLE table_18823880_10 (release_price___usd__ VARCHAR, socket VARCHAR)
SELECT LANGUAGE, COUNT(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY COUNT(*) LIMIT 1
List the language used least number of TV Channel. List language and number of TV Channel.
CREATE TABLE TV_Channel (LANGUAGE VARCHAR)
SELECT social_ao FROM table_name_68 WHERE president = "harm van leeuwen"
What Social AO has a President of harm van leeuwen?
CREATE TABLE table_name_68 (social_ao VARCHAR, president VARCHAR)
SELECT conf_record FROM table_27069503_2 WHERE standings = "First" AND season = "2003-04"
What was the conference record for the Pandas when they were first in the standings in the 2003-04 season?
CREATE TABLE table_27069503_2 (conf_record VARCHAR, standings VARCHAR, season VARCHAR)
SELECT record FROM table_name_52 WHERE opponent = "hartford whalers"
What is the team's record in games against the Hartford Whalers?
CREATE TABLE table_name_52 (record VARCHAR, opponent VARCHAR)
SELECT club FROM table_name_36 WHERE head_coach = "casemiro mior"
Head Coach casemiro mior is at which Club?
CREATE TABLE table_name_36 (club VARCHAR, head_coach VARCHAR)
SELECT director_s_ FROM table_name_53 WHERE rank = "nominated" AND film = "badmouth"
Who directed the nominated film, Badmouth?
CREATE TABLE table_name_53 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR)
SELECT color_commentator_s_ FROM table_name_3 WHERE studio_host = "gary tanguay & eric frede"
WHich Color commentatorhas a Studio host of gary tanguay & eric frede?
CREATE TABLE table_name_3 (color_commentator_s_ VARCHAR, studio_host VARCHAR)
SELECT SUM(comp) FROM table_name_94 WHERE yds_game < 209.5 AND name = "brytus" AND rating < 100
Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100?
CREATE TABLE table_name_94 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR)
SELECT team_1 FROM table_name_7 WHERE team_2 = "(g14)morolo"
What is the team 1 with a (g14)morolo team 2?
CREATE TABLE table_name_7 (team_1 VARCHAR, team_2 VARCHAR)
SELECT kentucky_oaks FROM table_24089503_1 WHERE belmont_stakes = "64,949"
What was the Kentucky Oaks attendance the year the Belmont Stakes had 64,949 attendance?
CREATE TABLE table_24089503_1 (kentucky_oaks VARCHAR, belmont_stakes VARCHAR)
SELECT MAX(total) FROM table_name_40 WHERE sport = "shooting" AND bronze < 0
What is the highest Shooting Total with a Bronze less than 0?
CREATE TABLE table_name_40 (total INTEGER, sport VARCHAR, bronze VARCHAR)
SELECT home FROM table_name_57 WHERE date = "march 24"
Who was the home team on March 24?
CREATE TABLE table_name_57 (home VARCHAR, date VARCHAR)
SELECT COUNT(round) FROM table_name_52 WHERE college = "lsu"
College of lsu has how many rounds?
CREATE TABLE table_name_52 (round VARCHAR, college VARCHAR)
SELECT segment_a FROM table_15187735_21 WHERE series_ep = "21-12"
What are the titles of segment a for series episode 21-12?
CREATE TABLE table_15187735_21 (segment_a VARCHAR, series_ep VARCHAR)
SELECT rank FROM table_name_65 WHERE active_service = "american civil war and indian wars"
What rank does the person participating in American Civil war and indian wars?
CREATE TABLE table_name_65 (rank VARCHAR, active_service VARCHAR)
SELECT regulatory_citation FROM table_name_11 WHERE standard = "15 μg/m³"
what is the regulatory citation when the standard is 15 μg/m³?
CREATE TABLE table_name_11 (regulatory_citation VARCHAR, standard VARCHAR)
SELECT week__number FROM table_21501518_1 WHERE theme = "First Solo"
Which week is the theme First Solo
CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR)
SELECT height FROM table_name_59 WHERE year = "junior" AND name = "meghan austin"
What is the Height of Junior Meghan Austin?
CREATE TABLE table_name_59 (height VARCHAR, year VARCHAR, name VARCHAR)
SELECT MIN(draws) FROM table_name_6 WHERE byes < 2
What is the lowest Draws, when Byes is less than 2?
CREATE TABLE table_name_6 (draws INTEGER, byes INTEGER)
SELECT MIN(wins) FROM table_name_71 WHERE ballarat_fl = "daylesford" AND byes < 1
Can you tell me the lowest Wins that has the Ballarat FL of daylesford, and the Byes smaller than 1?
CREATE TABLE table_name_71 (wins INTEGER, ballarat_fl VARCHAR, byes VARCHAR)
SELECT dam_type FROM table_name_90 WHERE year_completed = 1961
Which dam type was completed in 1961?
CREATE TABLE table_name_90 (dam_type VARCHAR, year_completed VARCHAR)
SELECT MIN(attendance) FROM table_name_18 WHERE week = 5
What is the smallest attendance in week 5?
CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR)
SELECT district FROM table_name_99 WHERE first_elected > 2000 AND incumbent = "russ carnahan"
In what district was incumbent Russ Carnahan elected after 2000?
CREATE TABLE table_name_99 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT position FROM table_23963781_3 WHERE nationality = "United States" AND minutes = 30
What is the position of the player who is from the United States and has 30 minutes?
CREATE TABLE table_23963781_3 (position VARCHAR, nationality VARCHAR, minutes VARCHAR)
SELECT COUNT(*) FROM station
How many train stations are there?
CREATE TABLE station (Id VARCHAR)
SELECT week_2 FROM table_name_74 WHERE week_3 = "cidney carson"
Which week 2 had a week 3 of Cidney Carson?
CREATE TABLE table_name_74 (week_2 VARCHAR, week_3 VARCHAR)
SELECT senior_status FROM table_name_7 WHERE appointed_by = "l. johnson category:articles with hcards" AND born_died = "1918–2009"
Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918–2009?
CREATE TABLE table_name_7 (senior_status VARCHAR, appointed_by VARCHAR, born_died VARCHAR)
SELECT COUNT(player) FROM table_15621965_14 WHERE school_club_team = "Louisiana State"
Name the number of players for louisiana state
CREATE TABLE table_15621965_14 (player VARCHAR, school_club_team VARCHAR)
SELECT date FROM table_name_69 WHERE outcome = "winner" AND score = "7–5, 6–4"
Which Date has an Outcome of winner, and a Score of 7–5, 6–4?
CREATE TABLE table_name_69 (date VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT SUM(swing_to_gain) FROM table_name_70 WHERE winning_party_2007 = "conservative" AND rank < 5
What's the sum of swing to gain with a winning party 2007 of Conservative with a rank smaller than 5?
CREATE TABLE table_name_70 (swing_to_gain INTEGER, winning_party_2007 VARCHAR, rank VARCHAR)
SELECT department FROM table_21249915_1 WHERE small__100ha_ = 11370
Which department has a small of 11370?
CREATE TABLE table_21249915_1 (department VARCHAR, small__100ha_ VARCHAR)
SELECT pick__number FROM table_2679061_4 WHERE college_junior_club_team = "HIFK Helsinki (Finland)"
What number pick was the player from HIFK Helsinki (Finland)?
CREATE TABLE table_2679061_4 (pick__number VARCHAR, college_junior_club_team VARCHAR)
SELECT 20 AS _questions FROM table_name_46 WHERE centerfold_model = "rachel jeán marteen"
Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?
CREATE TABLE table_name_46 (centerfold_model VARCHAR)
SELECT became_duchess FROM table_name_84 WHERE death = "26 october 1614"
WHo Became Duchess that has a Death of 26 october 1614?
CREATE TABLE table_name_84 (became_duchess VARCHAR, death VARCHAR)
SELECT circuit FROM table_name_11 WHERE winning_driver = "guy edwards"
Which circuit did Guy Edwards win?
CREATE TABLE table_name_11 (circuit VARCHAR, winning_driver VARCHAR)
SELECT romanised_name FROM table_2263674_1 WHERE chinese_name = "梁愛詩"
What's 梁愛詩's romanised name?
CREATE TABLE table_2263674_1 (romanised_name VARCHAR, chinese_name VARCHAR)
SELECT player FROM table_name_34 WHERE college = "calgary"
Who was recruited from Calgary?
CREATE TABLE table_name_34 (player VARCHAR, college VARCHAR)
SELECT SUM(silver) FROM table_name_69 WHERE gold = 0 AND bronze < 0
Gold of 0, and a Bronze smaller than 0 and what is the sum of the silver?
CREATE TABLE table_name_69 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT opponent_in_the_final FROM table_name_30 WHERE date < 1991 AND outcome = "runner-up"
What is Opponent In The Final, when Date is before 1991, and when Outcome is "Runner-Up"?
CREATE TABLE table_name_30 (opponent_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR)
SELECT 1996 FROM table_name_92 WHERE tournament = "wimbledon"
What is the value for the Wimbledon tournament in 1996?
CREATE TABLE table_name_92 (tournament VARCHAR)
SELECT result FROM table_name_19 WHERE round > 4 AND opponent = "ed mahone"
What resulted after 4 rounds with Ed Mahone?
CREATE TABLE table_name_19 (result VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_74 WHERE date = "december 8-december 20"
What is Location, when Date is December 8-December 20?
CREATE TABLE table_name_74 (location VARCHAR, date VARCHAR)
SELECT notes FROM table_name_63 WHERE format = "talk radio"
What is the Notes of the Frequency with Format of talk radio?
CREATE TABLE table_name_63 (notes VARCHAR, format VARCHAR)
SELECT opponent FROM table_name_45 WHERE round = "1" AND record = "14-4-1"
Who was the opponent with a record of 14-4-1 and has a round of 1?
CREATE TABLE table_name_45 (opponent VARCHAR, round VARCHAR, record VARCHAR)
SELECT MIN(year) FROM table_name_21 WHERE result = "won" AND role_episode = "fox mulder"
what is the earliest year when the result is won and the role/episode is fox mulder?
CREATE TABLE table_name_21 (year INTEGER, result VARCHAR, role_episode VARCHAR)
SELECT MIN(year) FROM table_name_44 WHERE country = "mexico"
What is the earliest year of a film from Mexico?
CREATE TABLE table_name_44 (year INTEGER, country VARCHAR)
SELECT country FROM table_name_33 WHERE col__m_ = 1374
Which country has a Col (m) of 1374?
CREATE TABLE table_name_33 (country VARCHAR, col__m_ VARCHAR)
SELECT result FROM table_name_58 WHERE date = "23,24,25,26 july 1992"
What is the result for 23,24,25,26 july 1992?
CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR)
SELECT release_date FROM table_name_72 WHERE multi_1 = "10.5×"
When was the release date for technology that has a Multi 1 of 10.5×?
CREATE TABLE table_name_72 (release_date VARCHAR, multi_1 VARCHAR)
SELECT density FROM table_22916979_5 WHERE densest_incorporated_place = "Pennsbury Village"
Name the density for pennsbury village
CREATE TABLE table_22916979_5 (density VARCHAR, densest_incorporated_place VARCHAR)
SELECT mixed_doubles FROM table_name_42 WHERE season = 2002
Who won mixed doubles in the 2002 season?
CREATE TABLE table_name_42 (mixed_doubles VARCHAR, season VARCHAR)
SELECT MAX(pts) FROM table_name_41 WHERE engine = "ford" AND entrant = "brooke bond oxo team surtees" AND year = 1972
In 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees?
CREATE TABLE table_name_41 (pts INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR)
SELECT quarterfinalists FROM table_29302816_8 WHERE runner_up = "Andrew Pattison"
What are the quarterfinalists when the runner up is andrew pattison?
CREATE TABLE table_29302816_8 (quarterfinalists VARCHAR, runner_up VARCHAR)
SELECT destination FROM table_name_87 WHERE train_name = "garib nwaz exp"
What is the destination of the Garib nwaz exp train?
CREATE TABLE table_name_87 (destination VARCHAR, train_name VARCHAR)