answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(year) FROM table_name_26 WHERE entrant = "fisa"
What is the most recent championship for FISA?
CREATE TABLE table_name_26 (year INTEGER, entrant VARCHAR)
SELECT plural FROM table_name_60 WHERE singular = "awu"
What is the plural if the singular is awu?
CREATE TABLE table_name_60 (plural VARCHAR, singular VARCHAR)
SELECT AVG(game) FROM table_name_23 WHERE date = "september 13"
WHAT IS THE GAME ON SEPTEMBER 13?
CREATE TABLE table_name_23 (game INTEGER, date VARCHAR)
SELECT party FROM table_1341865_44 WHERE district = "Tennessee 3"
what's party with district being tennessee 3
CREATE TABLE table_1341865_44 (party VARCHAR, district VARCHAR)
SELECT COUNT(goal) FROM table_name_26 WHERE date = "21 junio 2008"
How many goals were scored on 21 Junio 2008?
CREATE TABLE table_name_26 (goal VARCHAR, date VARCHAR)
SELECT SUM(wins) FROM table_name_59 WHERE team = "mv agusta" AND points > 10 AND year > 1957
How many wins for team mv agusta, over 10 points, and after 1957?
CREATE TABLE table_name_59 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR)
SELECT opponent FROM table_name_55 WHERE record = "4-2"
Which opponent has a record of 4-2?
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR)
SELECT name FROM table_name_31 WHERE circuit = "miramas"
What was the name for the race in the Miramas circuit?
CREATE TABLE table_name_31 (name VARCHAR, circuit VARCHAR)
SELECT directed_by FROM table_29273182_1 WHERE production_code = "IP03010"
Who directed the episode with production code ip03010?
CREATE TABLE table_29273182_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT winner FROM table_1672976_5 WHERE attendance = 16597
Who was the winner when the total attendance was 16597?
CREATE TABLE table_1672976_5 (winner VARCHAR, attendance VARCHAR)
SELECT team FROM table_name_5 WHERE race_title = "calder"
What team has a title of calder?
CREATE TABLE table_name_5 (team VARCHAR, race_title VARCHAR)
SELECT COUNT(report) FROM table_10707176_2 WHERE circuit = "Cleveland Burke Lakefront Airport"
How many reports were the for the cleveland burke lakefront airport circut?
CREATE TABLE table_10707176_2 (report VARCHAR, circuit VARCHAR)
SELECT AVG(gold) FROM table_name_2 WHERE total < 12 AND bronze < 1 AND sport = "wushu" AND silver > 3
I want to know the average Gold for total smaller 12 and bronze less than 1 and wushu with silver more than 3
CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, sport VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT format FROM table_name_81 WHERE catalogue = "asw 40362"
What format has a catalogue of asw 40362?
CREATE TABLE table_name_81 (format VARCHAR, catalogue VARCHAR)
SELECT SUM(pos) FROM table_name_72 WHERE car__number = 33
Which Pos has a Car # of 33?
CREATE TABLE table_name_72 (pos INTEGER, car__number VARCHAR)
SELECT venue FROM table_name_41 WHERE home_team = "hawthorn"
Where did Hawthorn play as the home team?
CREATE TABLE table_name_41 (venue VARCHAR, home_team VARCHAR)
SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING COUNT(*) >= 3
Which countries have at least 3 cities?
CREATE TABLE country (country VARCHAR, country_id VARCHAR); CREATE TABLE city (country_id VARCHAR)
SELECT AVG(oilers_points) FROM table_name_1 WHERE record = "10–6" AND oilers_first_downs > 14
Which Oilers points have a Record of 10–6, and Oilers first downs larger than 14?
CREATE TABLE table_name_1 (oilers_points INTEGER, record VARCHAR, oilers_first_downs VARCHAR)
SELECT COUNT(high_points) FROM table_27698941_8 WHERE game = 34
How many players held the high point records for game 34?
CREATE TABLE table_27698941_8 (high_points VARCHAR, game VARCHAR)
SELECT to_par FROM table_name_70 WHERE player = "mike souchak"
What is Mike Souchak's to par score?
CREATE TABLE table_name_70 (to_par VARCHAR, player VARCHAR)
SELECT MAX(no_in_season) FROM table_23117208_3 WHERE directed_by = "Constantine Makris"
which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?
CREATE TABLE table_23117208_3 (no_in_season INTEGER, directed_by VARCHAR)
SELECT series FROM table_name_13 WHERE site = "ames" AND sport = "w gymnastics"
Which Series has a Site of ames and a Sport of w gymnastics?
CREATE TABLE table_name_13 (series VARCHAR, site VARCHAR, sport VARCHAR)
SELECT date FROM table_name_62 WHERE week = "17"
What date was the week 17 game played on?
CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR)
SELECT T1.member_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id WHERE T2.Party_name <> "Progress Party"
Show member names that are not in the Progress Party.
CREATE TABLE party (party_id VARCHAR, Party_name VARCHAR); CREATE TABLE Member (member_name VARCHAR, party_id VARCHAR)
SELECT government FROM table_name_63 WHERE number = 6
Which government is number 6?
CREATE TABLE table_name_63 (government VARCHAR, number VARCHAR)
SELECT years_available FROM table_2889300_6 WHERE kickdrum_pad = "Rubber"
in which year was available the rubber as kickdrum pad
CREATE TABLE table_2889300_6 (years_available VARCHAR, kickdrum_pad VARCHAR)
SELECT club_team_s_ FROM table_name_52 WHERE team_number > 14
How many club teams had more than 14 people?
CREATE TABLE table_name_52 (club_team_s_ VARCHAR, team_number INTEGER)
SELECT COUNT(gp_gs) FROM table_23817012_6 WHERE ft_pct = ".667"
in the ft pct .667 what is the number of gp-gs
CREATE TABLE table_23817012_6 (gp_gs VARCHAR, ft_pct VARCHAR)
SELECT attendance FROM table_name_78 WHERE opponent = "crawley town"
Which Attendance has an Opponent of crawley town?
CREATE TABLE table_name_78 (attendance VARCHAR, opponent VARCHAR)
SELECT SUM(fa_trophy) FROM table_name_98 WHERE player = "tony hemmings" AND league > 15
What FA trophys have tony hemmings as the player, with a league greater than 15?
CREATE TABLE table_name_98 (fa_trophy INTEGER, player VARCHAR, league VARCHAR)
SELECT tv_time FROM table_name_93 WHERE result = "w 24–17"
Which TV Time has a Result of w 24–17?
CREATE TABLE table_name_93 (tv_time VARCHAR, result VARCHAR)
SELECT record FROM table_name_74 WHERE date = "october 30"
What is the record on October 30?
CREATE TABLE table_name_74 (record VARCHAR, date VARCHAR)
SELECT loss FROM table_name_4 WHERE record = "71-33"
Name the loss with record of 71-33
CREATE TABLE table_name_4 (loss VARCHAR, record VARCHAR)
SELECT song_name FROM table_11827596_2 WHERE film_name = "Kaal Bhairav"
what are the song names for the film kaal bhairav?
CREATE TABLE table_11827596_2 (song_name VARCHAR, film_name VARCHAR)
SELECT date_from FROM table_name_30 WHERE date_to = "end of season" AND name = "theo robinson"
What was the Date From for Theo Robinson, who was with the team until the end of season?
CREATE TABLE table_name_30 (date_from VARCHAR, date_to VARCHAR, name VARCHAR)
SELECT softball_stadium FROM table_1974545_3 WHERE school = "UMass Boston"
What is the name of UMass Boston's softball stadium?
CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR)
SELECT name FROM table_name_99 WHERE lane < 3 AND rank = 8
for the rank of 8 and lane less than 3 what is the name?
CREATE TABLE table_name_99 (name VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT southern_lakota FROM table_1499774_5 WHERE yankton_yanktonai = "híŋhaŋna"
Name the southern lakota for híŋhaŋna
CREATE TABLE table_1499774_5 (southern_lakota VARCHAR, yankton_yanktonai 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 candidates FROM table_1342249_13 WHERE incumbent = "Noah M. Mason"
Who were the candidates when Noah M. Mason was incumbent?
CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR)
SELECT deceased_spouse FROM table_24143253_1 WHERE name = "Carol DeLuise"
Name the decease spouse for carol deluise
CREATE TABLE table_24143253_1 (deceased_spouse VARCHAR, name VARCHAR)
SELECT mascot FROM table_name_40 WHERE year_left > 2000 AND location = "huntington"
What's the mascot in Huntington after the year 2000?
CREATE TABLE table_name_40 (mascot VARCHAR, year_left VARCHAR, location VARCHAR)
SELECT MIN(flaps) FROM table_16908657_1
Name the least flaps
CREATE TABLE table_16908657_1 (flaps INTEGER)
SELECT name FROM table_name_8 WHERE winner = "s. loeb" AND length = "13.04km" AND stage = "ss12"
What is the Name of the stage with S. Loeb as the Winner with a Length of 13.04km and a Stage of SS12?
CREATE TABLE table_name_8 (name VARCHAR, stage VARCHAR, winner VARCHAR, length VARCHAR)
SELECT date FROM table_name_91 WHERE visitor = "ottawa"
What date is the visitor Ottawa?
CREATE TABLE table_name_91 (date VARCHAR, visitor VARCHAR)
SELECT COUNT(draws) FROM table_name_39 WHERE losses < 10 AND wins = 13 AND byes < 2
What's the total draws when the losses are less than 10, less than 2 byes, and 13 wins?
CREATE TABLE table_name_39 (draws VARCHAR, byes VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT total FROM table_182298_5 WHERE country = "South Korea"
How many are the total winners from South Korea?
CREATE TABLE table_182298_5 (total VARCHAR, country VARCHAR)
SELECT player FROM table_10015132_11 WHERE no = "42"
Who is the player that wears number 42?
CREATE TABLE table_10015132_11 (player VARCHAR, no VARCHAR)
SELECT directed_by FROM table_28027307_1 WHERE production_code = "6AKY11"
Who directed the episode with the production code of 6AKY11?
CREATE TABLE table_28027307_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT visitor FROM table_name_15 WHERE series = "2 – 1"
Which Visitor has a Series of 2 – 1?
CREATE TABLE table_name_15 (visitor VARCHAR, series VARCHAR)
SELECT SUM(time) FROM table_name_82 WHERE lane < 5 AND nationality = "united states"
What is the time with fewer than 5 lanes for the United States?
CREATE TABLE table_name_82 (time INTEGER, lane VARCHAR, nationality VARCHAR)
SELECT team FROM table_name_37 WHERE date = "november 28"
What team played on November 28?
CREATE TABLE table_name_37 (team VARCHAR, date VARCHAR)
SELECT date FROM table_13328239_4 WHERE venue = "Halton Stadium"
When was the game happening at Halton Stadium?
CREATE TABLE table_13328239_4 (date VARCHAR, venue VARCHAR)
SELECT year FROM table_20774360_2 WHERE standing = "T-10th"
Name the year for t-10th
CREATE TABLE table_20774360_2 (year VARCHAR, standing VARCHAR)
SELECT director FROM table_10470082_4 WHERE writer = "Scott Peters"
Who is the director of the episode whom Scott Peters is the writer?
CREATE TABLE table_10470082_4 (director VARCHAR, writer VARCHAR)
SELECT region_1__can_ FROM table_240936_2 WHERE region_2__uk_ = "May 18, 2009"
What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?
CREATE TABLE table_240936_2 (region_1__can_ VARCHAR, region_2__uk_ VARCHAR)
SELECT SUM(runners) FROM table_name_81 WHERE jockey = "olivier peslier" AND placing < 2
How many total runners had jockeys of Olivier Peslier with placings under 2?
CREATE TABLE table_name_81 (runners INTEGER, jockey VARCHAR, placing VARCHAR)
SELECT MIN(pop_density) FROM table_2588674_1 WHERE village = "Mongmong-Toto-Maite"
What is the population density of mongmong-toto-maite?
CREATE TABLE table_2588674_1 (pop_density INTEGER, village VARCHAR)
SELECT MAX(game) FROM table_name_86 WHERE high_assists = "hedo türkoğlu (7)"
What is the highest Game, when High Assists is "Hedo Türkoğlu (7)"?
CREATE TABLE table_name_86 (game INTEGER, high_assists VARCHAR)
SELECT SUM(points) FROM table_name_98 WHERE year = 1978 AND chassis = "arrows fa1"
What was the total amount of points in 1978 with a Chassis of arrows fa1?
CREATE TABLE table_name_98 (points INTEGER, year VARCHAR, chassis VARCHAR)
SELECT SUM(evening_gown) FROM table_name_88 WHERE swimsuit > 9.4 AND average < 9.733
What is the sum of Evening Gown scores where the swimsuit score is higher than 9.4 and the average score is lower than 9.733?
CREATE TABLE table_name_88 (evening_gown INTEGER, swimsuit VARCHAR, average VARCHAR)
SELECT displacement FROM table_name_28 WHERE version = "db"
I want the displacement for version of db
CREATE TABLE table_name_28 (displacement VARCHAR, version VARCHAR)
SELECT hakhun FROM table_name_11 WHERE tikhak = "ʒu²"
Which Hakhun has a Tikhak of ʒu²?
CREATE TABLE table_name_11 (hakhun VARCHAR, tikhak VARCHAR)
SELECT T2.name, T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC
give me names of all compatible browsers and accelerators in the descending order of compatible year
CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)
SELECT alumni FROM table_26419467_1 WHERE fresh_meat_partner = "Noor Jehangir"
What alumni had noor jehangir as their fresh meat partner?
CREATE TABLE table_26419467_1 (alumni VARCHAR, fresh_meat_partner VARCHAR)
SELECT 2005 FROM table_name_52 WHERE tournament = "grand slam tournaments"
Which 2005 has a Tournament of grand slam tournaments?
CREATE TABLE table_name_52 (tournament VARCHAR)
SELECT position FROM table_16710541_2 WHERE motorcycle = "KTM"
What result did the ktm motorcycle achieve?
CREATE TABLE table_16710541_2 (position VARCHAR, motorcycle VARCHAR)
SELECT award FROM table_name_88 WHERE year > 2009
Which award took place after 2009?
CREATE TABLE table_name_88 (award VARCHAR, year INTEGER)
SELECT ratt FROM table_name_72 WHERE year = "1988"
What is the RAtt in the year 1988?
CREATE TABLE table_name_72 (ratt VARCHAR, year VARCHAR)
SELECT away_team AS score FROM table_name_21 WHERE away_team = "south melbourne"
What did South Melbourne score when they were the Away team?
CREATE TABLE table_name_21 (away_team VARCHAR)
SELECT date FROM table_name_12 WHERE loser = "chicago bears" AND location = "green bay" AND year < 1931
what date saw the chicago bears lose in green bay earlier than 1931?
CREATE TABLE table_name_12 (date VARCHAR, year VARCHAR, loser VARCHAR, location VARCHAR)
SELECT constructor FROM table_name_11 WHERE grid < 17 AND laps < 52 AND driver = "olivier panis"
Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver?
CREATE TABLE table_name_11 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT location_attendance FROM table_name_9 WHERE record = "41–36"
What shows for the location and attendance when the record is 41–36?
CREATE TABLE table_name_9 (location_attendance VARCHAR, record VARCHAR)
SELECT purpose FROM table_name_50 WHERE freq_currently = "8rn" AND area_served = "katherine"
What is the purpose for the katherine freq of 8rn?
CREATE TABLE table_name_50 (purpose VARCHAR, freq_currently VARCHAR, area_served VARCHAR)
SELECT time FROM table_name_15 WHERE event = "call to arms i"
Which Time has an Event of call to arms i?
CREATE TABLE table_name_15 (time VARCHAR, event VARCHAR)
SELECT site FROM table_name_83 WHERE attendance = "53,000" AND date = "october 21, 1967"
What Site has Attendance of 53,000, and a Date of october 21, 1967?
CREATE TABLE table_name_83 (site VARCHAR, attendance VARCHAR, date VARCHAR)
SELECT roomName FROM Rooms WHERE basePrice < 160 AND beds = 2 AND decor = 'modern'
Find the names of all modern rooms with a base price below $160 and two beds.
CREATE TABLE Rooms (roomName VARCHAR, decor VARCHAR, basePrice VARCHAR, beds VARCHAR)
SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 1
How many laps did the grid 1 engine have?
CREATE TABLE table_name_96 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT nationality FROM table_name_34 WHERE player = "gerry methe"
What nationality is Gerry Methe?
CREATE TABLE table_name_34 (nationality VARCHAR, player VARCHAR)
SELECT player FROM table_1473672_6 WHERE nhl_team = "Chicago Black Hawks"
What player was drafted by the Chicago Black Hawks?
CREATE TABLE table_1473672_6 (player VARCHAR, nhl_team VARCHAR)
SELECT date FROM table_11960610_10 WHERE high_points = "Deng (20)"
What is the date deng (20) had high points?
CREATE TABLE table_11960610_10 (date VARCHAR, high_points VARCHAR)
SELECT written_by FROM table_21726793_1 WHERE no = 2
who wrote the no 2?
CREATE TABLE table_21726793_1 (written_by VARCHAR, no VARCHAR)
SELECT l2_cache__mb_ FROM table_269920_3 WHERE model = "7140N"
What's the L2 cache for the 7140N model?
CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR)
SELECT date_of_birth FROM table_name_74 WHERE bowling_style = "right arm fast"
When is the birth date of player with right arm fast style?
CREATE TABLE table_name_74 (date_of_birth VARCHAR, bowling_style VARCHAR)
SELECT introduced FROM table_1181375_1 WHERE notes = "9 withdrawn in 1946 after fire"
what's the introduced where notes is 9 withdrawn in 1946 after fire
CREATE TABLE table_1181375_1 (introduced VARCHAR, notes VARCHAR)
SELECT team FROM table_name_18 WHERE carries = 19 AND week > 13
Which Team has 19 Carries, and a Week larger than 13?
CREATE TABLE table_name_18 (team VARCHAR, carries VARCHAR, week VARCHAR)
SELECT cospar_id FROM table_name_69 WHERE carrier_rocket = "scout" AND satellite = "ariel 4"
What is the COSPAR ID of Ariel 4, which was launched with a Scout carrier rocket?
CREATE TABLE table_name_69 (cospar_id VARCHAR, carrier_rocket VARCHAR, satellite VARCHAR)
SELECT location FROM table_21980_1 WHERE january__°f_ = "30/17"
In what location were the January (°F) temperatures 30/17?
CREATE TABLE table_21980_1 (location VARCHAR, january__°f_ VARCHAR)
SELECT party FROM table_name_3 WHERE result = "re-elected" AND first_elected < 1894 AND incumbent = "charles h. grosvenor"
What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?
CREATE TABLE table_name_3 (party VARCHAR, incumbent VARCHAR, result VARCHAR, first_elected VARCHAR)
SELECT to_par FROM table_18862490_2 WHERE year = 1998
What score to par won in 1998?
CREATE TABLE table_18862490_2 (to_par VARCHAR, year VARCHAR)
SELECT COUNT(index__year_) FROM table_19948664_2 WHERE countries_sampled = 157
How many years were listed under index when there were 157 countries sampled?
CREATE TABLE table_19948664_2 (index__year_ VARCHAR, countries_sampled VARCHAR)
SELECT operating_mode FROM table_23840623_4 WHERE vehicle = "Coda"
What is the operating mode of the Coda?
CREATE TABLE table_23840623_4 (operating_mode VARCHAR, vehicle VARCHAR)
SELECT to_par FROM table_name_65 WHERE country = "canada"
What is the to par of canada?
CREATE TABLE table_name_65 (to_par VARCHAR, country VARCHAR)
SELECT score FROM table_name_84 WHERE place = "t8" AND country = "united states" AND player = "craig stadler"
What is the score of player craig stadler from the United States with a t8 place?
CREATE TABLE table_name_84 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
SELECT directed_by FROM table_20967430_4 WHERE original_air_date = "March 18, 1988"
Who directed the episode that originally aired on March 18, 1988?
CREATE TABLE table_20967430_4 (directed_by VARCHAR, original_air_date VARCHAR)
SELECT team FROM table_name_18 WHERE speed = "113.316mph"
What's the name of the team that went 113.316mph?
CREATE TABLE table_name_18 (team VARCHAR, speed VARCHAR)
SELECT MIN(goals_for) FROM table_name_37 WHERE goals_against > 58 AND played > 30
What is the smallest number of goals when the goals against are more than 58 and played number is more than 30?
CREATE TABLE table_name_37 (goals_for INTEGER, goals_against VARCHAR, played VARCHAR)
SELECT COUNT(stunts) FROM table_21995420_6 WHERE total = "201.5"
How many stunts have a total of 201.5?
CREATE TABLE table_21995420_6 (stunts VARCHAR, total VARCHAR)
SELECT occupation FROM table_name_71 WHERE hometown = "santa monica, california"
What is listed under occupation for someone from Santa Monica, California?
CREATE TABLE table_name_71 (occupation VARCHAR, hometown VARCHAR)
SELECT document_type_name, document_type_description FROM Ref_document_types WHERE document_type_code = "RV"
What is the name and description for document type code RV?
CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR)