answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT opponent FROM table_name_86 WHERE method = "submission (armbar)" AND record = "9-3-1"
Who is the opponent of the match with a method of submission (armbar) and a 9-3-1 record?
CREATE TABLE table_name_86 (opponent VARCHAR, method VARCHAR, record VARCHAR)
SELECT nationality FROM table_name_68 WHERE nhl_team = "washington capitals"
What is the nationality of the Washington Capitals?
CREATE TABLE table_name_68 (nationality VARCHAR, nhl_team VARCHAR)
SELECT years FROM table_name_46 WHERE representative = "james robert jones"
Which years did James Robert Jones serve?
CREATE TABLE table_name_46 (years VARCHAR, representative VARCHAR)
SELECT power FROM table_name_22 WHERE model = "1500" AND displacement = "1490cc"
How much power does the 1500 model have with a displacement of 1490cc?
CREATE TABLE table_name_22 (power VARCHAR, model VARCHAR, displacement VARCHAR)
SELECT MIN(matches) FROM table_name_26 WHERE goalkeeper = "josé bermúdez" AND goals > 18
What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?
CREATE TABLE table_name_26 (matches INTEGER, goalkeeper VARCHAR, goals VARCHAR)
SELECT away_team FROM table_name_84 WHERE score = "107-104"
What away team scored 107-104?
CREATE TABLE table_name_84 (away_team VARCHAR, score VARCHAR)
SELECT driver FROM table_name_57 WHERE laps = 59 AND grid = 11
What driver went 59 laps on grid 11?
CREATE TABLE table_name_57 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT MIN(pick) FROM table_name_96 WHERE school = "stanford university"
What is the lowest pick when the School is Stanford University?
CREATE TABLE table_name_96 (pick INTEGER, school VARCHAR)
SELECT SUM(laps) FROM table_name_93 WHERE driver = "eddie irvine"
What is the total number of laps with a Driver of eddie irvine?
CREATE TABLE table_name_93 (laps INTEGER, driver VARCHAR)
SELECT COUNT(director) FROM table_26385848_1 WHERE film_title = "Eldra"
What is the number of directors for the film title Eldra?
CREATE TABLE table_26385848_1 (director VARCHAR, film_title VARCHAR)
SELECT date FROM table_name_72 WHERE outcome = "winner" AND surface = "grass"
What is Date, when Outcome is "Winner", and when Surface is "Grass"?
CREATE TABLE table_name_72 (date VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT MAX(inhabitants) FROM table_name_86 WHERE municipality = "gela"
Highest inhabitants from gela?
CREATE TABLE table_name_86 (inhabitants INTEGER, municipality VARCHAR)
SELECT COUNT(height_of_ground_station_m_) FROM table_name_35 WHERE name = "lutersee" AND height_of_mountain_station_m_ > 2398
How much Height of ground station(m) has a Name of lutersee, and a Height of mountain station(m) larger than 2398?
CREATE TABLE table_name_35 (height_of_ground_station_m_ VARCHAR, name VARCHAR, height_of_mountain_station_m_ VARCHAR)
SELECT MIN(rank) FROM table_name_61 WHERE constituency = "edinburgh northern and leith" AND swing_to_gain < 4.16
what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16?
CREATE TABLE table_name_61 (rank INTEGER, constituency VARCHAR, swing_to_gain VARCHAR)
SELECT SUM(spike) FROM table_name_78 WHERE date_of_birth = "28.09.1981" AND block > 318
How many spikes have 28.09.1981 as the date of birth, with a block greater than 318?
CREATE TABLE table_name_78 (spike INTEGER, date_of_birth VARCHAR, block VARCHAR)
SELECT first_name, last_name, email_address FROM Owners WHERE state LIKE '%North%'
Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.
CREATE TABLE Owners (first_name VARCHAR, last_name VARCHAR, email_address VARCHAR, state VARCHAR)
SELECT AVG(total) FROM table_name_44 WHERE year_s__won = "1922, 1932"
What is the Total for the Player who won in 1922, 1932?
CREATE TABLE table_name_44 (total INTEGER, year_s__won VARCHAR)
SELECT COUNT(no) FROM table_23918997_1 WHERE us_viewers__million_ = "1.29"
How many episodes were viewed by 1.29 million people?
CREATE TABLE table_23918997_1 (no VARCHAR, us_viewers__million_ VARCHAR)
SELECT hole FROM table_name_75 WHERE country = "united states" AND player = "mike reid"
How many holes did Mike Reid from United States have?
CREATE TABLE table_name_75 (hole VARCHAR, country VARCHAR, player VARCHAR)
SELECT MAX(incarceration_rate_male) FROM table_25042332_31 WHERE region = "Maule"
What is the male incarceration rate of maule?
CREATE TABLE table_25042332_31 (incarceration_rate_male INTEGER, region VARCHAR)
SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4
What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT college_junior_club_team FROM table_1965650_3 WHERE player = "John Campbell"
Name the college/junior club team for john campbell
CREATE TABLE table_1965650_3 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT SUM(bronze) FROM table_name_89 WHERE rank = 5 AND nation = "poland" AND gold < 0
what is the sum of bronze when the rank is 5, the nation is poland and gold is less than 0?
CREATE TABLE table_name_89 (bronze INTEGER, gold VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT authorizing_agency FROM table_22665117_1 WHERE district_name = "Academy of Flint"
If the district name is the Academy of Flint, what is the authorizing agency?
CREATE TABLE table_22665117_1 (authorizing_agency VARCHAR, district_name VARCHAR)
SELECT MAX(km_from_kingston) FROM table_name_61 WHERE mi_from_kingston < 108 AND length_meters = 260.6
What is the highest Km From Kingston, when Mi From Kingston is less than 108, and when Length Meters is 260.6?
CREATE TABLE table_name_61 (km_from_kingston INTEGER, mi_from_kingston VARCHAR, length_meters VARCHAR)
SELECT nationality FROM table_name_79 WHERE player = "rod langway"
What nationality is Rod Langway?
CREATE TABLE table_name_79 (nationality VARCHAR, player VARCHAR)
SELECT home FROM table_name_58 WHERE ground = "humber college north" AND time = "15:00"
What is Home, when Ground is Humber College North, and when Time is 15:00?
CREATE TABLE table_name_58 (home VARCHAR, ground VARCHAR, time VARCHAR)
SELECT no__episode__number_ FROM table_28210383_1 WHERE directed_by = "Greg Colton" AND written_by = "Patrick Meighan"
What numbered episode was directed by greg colton and written by patrick meighan?
CREATE TABLE table_28210383_1 (no__episode__number_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT MAX(top_10) FROM table_name_13 WHERE top_5 = 3 AND cuts_made < 22
How many top 10s associated with 3 top 5s and under 22 cuts made?
CREATE TABLE table_name_13 (top_10 INTEGER, top_5 VARCHAR, cuts_made VARCHAR)
SELECT SUM(visitors), _2007 FROM table_name_10 WHERE type = "ski jumping hill"
How many visitors in 2007 were there for ski jumping hill?
CREATE TABLE table_name_10 (_2007 VARCHAR, visitors INTEGER, type VARCHAR)
SELECT latitude FROM table_18600760_10 WHERE water__sqmi_ = "4.243"
What was the lattitude for the area with 4.243 square miles of water?
CREATE TABLE table_18600760_10 (latitude VARCHAR, water__sqmi_ VARCHAR)
SELECT horse FROM table_name_43 WHERE jockey = "jara"
What horse for jara?
CREATE TABLE table_name_43 (horse VARCHAR, jockey VARCHAR)
SELECT institutional_authority FROM table_11869952_1 WHERE rocket_launch = "Shahpar-2"
Which authority has a rocket launch called shahpar-2?
CREATE TABLE table_11869952_1 (institutional_authority VARCHAR, rocket_launch VARCHAR)
SELECT stadium FROM table_name_43 WHERE result = "hunter mariners def. sheffield eagles"
What stadium was the game played at when the result was hunter mariners def. sheffield eagles?
CREATE TABLE table_name_43 (stadium VARCHAR, result VARCHAR)
SELECT class_aAA FROM table_name_50 WHERE school_year = "1989-90"
what AAA class has a school year of 1989-90?
CREATE TABLE table_name_50 (class_aAA VARCHAR, school_year VARCHAR)
SELECT record FROM table_name_45 WHERE visitor = "montreal canadiens"
What is the record when the visiting team was the montreal canadiens?
CREATE TABLE table_name_45 (record VARCHAR, visitor VARCHAR)
SELECT player FROM table_name_8 WHERE span = "1998-2009"
What is the player with a Span of 1998-2009?
CREATE TABLE table_name_8 (player VARCHAR, span VARCHAR)
SELECT competition FROM table_name_31 WHERE result = "w" AND date = "june 30, 1966"
What competition has a result of W on June 30, 1966?
CREATE TABLE table_name_31 (competition VARCHAR, result VARCHAR, date VARCHAR)
SELECT local_board FROM table_name_98 WHERE name = "clendon teen parent unit"
Which local board does the Clendon Teen Parent Unit belong to?
CREATE TABLE table_name_98 (local_board VARCHAR, name VARCHAR)
SELECT score FROM table_name_48 WHERE december = 30
What's the score for December of 30?
CREATE TABLE table_name_48 (score VARCHAR, december VARCHAR)
SELECT SUM(rebounds) FROM table_name_6 WHERE name = "novica veličković" AND games < 22
How many Rebounds did Novica Veličković get in less than 22 Games?
CREATE TABLE table_name_6 (rebounds INTEGER, name VARCHAR, games VARCHAR)
SELECT constructor FROM table_name_34 WHERE winning_driver = "jim clark" AND pole_position = "graham hill" AND race = "dutch grand prix"
I want the constructor for winning driver of jim clark, pole position of graham hill and dutch grand prix
CREATE TABLE table_name_34 (constructor VARCHAR, race VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT high_assists FROM table_name_35 WHERE high_points = "jalen rose (22)"
What is the High assists when jalen rose (22) had the high points?
CREATE TABLE table_name_35 (high_assists VARCHAR, high_points VARCHAR)
SELECT code FROM table_2801442_1 WHERE population__2011_census_ = 312520
What's the code of the district in which 312520 people lived in 2011?
CREATE TABLE table_2801442_1 (code VARCHAR, population__2011_census_ VARCHAR)
SELECT semifinalists FROM table_name_6 WHERE tournament = "rome"
Who were the semifinalists in the Rome tournament?
CREATE TABLE table_name_6 (semifinalists VARCHAR, tournament VARCHAR)
SELECT event FROM table_name_71 WHERE record = "1-0"
The event that has a record of 1-0 is none of the above.
CREATE TABLE table_name_71 (event VARCHAR, record VARCHAR)
SELECT to_par FROM table_name_87 WHERE player = "hunter mahan"
What is the to par of player hunter mahan?
CREATE TABLE table_name_87 (to_par VARCHAR, player VARCHAR)
SELECT finished FROM table_name_3 WHERE trainer = "nick zito" AND horse = "da'tara"
What is the Finished place for da'tara trained by Nick zito?
CREATE TABLE table_name_3 (finished VARCHAR, trainer VARCHAR, horse VARCHAR)
SELECT MIN(opp_points) FROM table_22903773_2 WHERE location = "Knoxville"
How many points did the opponents score at the game in Knoxville?
CREATE TABLE table_22903773_2 (opp_points INTEGER, location VARCHAR)
SELECT season FROM table_name_43 WHERE club = "renova"
Which season has the Renova Club?
CREATE TABLE table_name_43 (season VARCHAR, club VARCHAR)
SELECT COUNT(tues_1_june) FROM table_25220821_3 WHERE mon_31_may = "20' 15.35 111.761mph"
What is the Tuesday 1 June total number if Monday 31 May is 20' 15.35 111.761mph?
CREATE TABLE table_25220821_3 (tues_1_june VARCHAR, mon_31_may VARCHAR)
SELECT to_par FROM table_name_99 WHERE player = "lanny wadkins"
What is the To par for Lanny Wadkins?
CREATE TABLE table_name_99 (to_par VARCHAR, player VARCHAR)
SELECT location_attendance FROM table_23248940_7 WHERE record = "10-14"
Name the location attendance for 10-14
CREATE TABLE table_23248940_7 (location_attendance VARCHAR, record VARCHAR)
SELECT MIN(pick__number) FROM table_16376436_1 WHERE player = "Garry Lewis"
What is the pick number for the player Garry Lewis?
CREATE TABLE table_16376436_1 (pick__number INTEGER, player VARCHAR)
SELECT COUNT(directed_by) FROM table_20942925_1 WHERE _number = 15
How many directors for #15?
CREATE TABLE table_20942925_1 (directed_by VARCHAR, _number VARCHAR)
SELECT SUM(draws) FROM table_name_23 WHERE wins > 14
Which Draws have Wins larger than 14?
CREATE TABLE table_name_23 (draws INTEGER, wins INTEGER)
SELECT MAX(total) FROM table_name_80 WHERE championship < 1
What is the highest total when there is less than 1 championship?
CREATE TABLE table_name_80 (total INTEGER, championship INTEGER)
SELECT COUNT(network) FROM table_28190363_1 WHERE judges = "TBA" AND presenter_s_ = "Arbana Osmani"
How many networks are there whose version of the shows includes judges tba and the presenter is Arbana Osmani?
CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR, presenter_s_ VARCHAR)
SELECT platform FROM table_name_93 WHERE system = "nintendo ds" AND license = "gpl v2" AND name = "nds4droid"
What platform is nds4droid on for the nintendo ds with a license of gpl v2?
CREATE TABLE table_name_93 (platform VARCHAR, name VARCHAR, system VARCHAR, license VARCHAR)
SELECT tournament FROM table_name_85 WHERE winning_score = 66 - 68 - 70 - 70 = 274
Which tournament won with a score of 66-68-70-70=274?
CREATE TABLE table_name_85 (tournament VARCHAR, winning_score VARCHAR)
SELECT Name FROM WINE WHERE score > 90
List the names of all distinct wines that have scores higher than 90.
CREATE TABLE WINE (Name VARCHAR, score INTEGER)
SELECT AVG(capacity) FROM table_name_72 WHERE home_team_s_ = "vélez sársfield"
What was the average capacity for vélez sársfield?
CREATE TABLE table_name_72 (capacity INTEGER, home_team_s_ VARCHAR)
SELECT location FROM table_name_5 WHERE notes = "eisstadion" AND date = "1930-01-11"
Which Location has Notes of eisstadion, and a Date of 1930-01-11?
CREATE TABLE table_name_5 (location VARCHAR, notes VARCHAR, date VARCHAR)
SELECT senior_british_open FROM table_name_57 WHERE senior_pga_championship = "hale irwin (3/7)"
Who won the Senior British Open when Hale Irwin (3/7) won the Senior PGA Championship?
CREATE TABLE table_name_57 (senior_british_open VARCHAR, senior_pga_championship VARCHAR)
SELECT SUM(flap) FROM table_name_40 WHERE pole > 0 AND podiums = 6
Can you tell me the sum of FLap that has the Pole larger than 0, and the Podiums of 6?
CREATE TABLE table_name_40 (flap INTEGER, pole VARCHAR, podiums VARCHAR)
SELECT challengers__female_ FROM table_24051050_1 WHERE episode = 28
Which female challengers featured in episode 28?
CREATE TABLE table_24051050_1 (challengers__female_ VARCHAR, episode VARCHAR)
SELECT SUM(silver) FROM table_name_5 WHERE bronze = 0 AND rank < 2
What is the number of silver when bronze is 0, and rank is less than 2?
CREATE TABLE table_name_5 (silver INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT opponent FROM table_24561550_1 WHERE record = "4-4"
List all opponents from the 4-4 scoring game.
CREATE TABLE table_24561550_1 (opponent VARCHAR, record VARCHAR)
SELECT teams FROM table_name_32 WHERE league = "bundesliga" AND away = "3-2"
What team has a league of bundesliga, and an away of 3-2?
CREATE TABLE table_name_32 (teams VARCHAR, league VARCHAR, away VARCHAR)
SELECT song_title FROM table_21500850_1 WHERE year = 2007
What is every song title for 2007?
CREATE TABLE table_21500850_1 (song_title VARCHAR, year VARCHAR)
SELECT MIN(total) FROM table_name_92 WHERE bronze = 0 AND rank < 2
What is the lowest Total containing a Bronze of 0 and Rank smaller than 2?
CREATE TABLE table_name_92 (total INTEGER, bronze VARCHAR, rank VARCHAR)
SELECT MAX(rank) FROM table_name_18 WHERE country = "united states" AND wins < 1
Name the most rank for the United States with wins less than 1
CREATE TABLE table_name_18 (rank INTEGER, country VARCHAR, wins VARCHAR)
SELECT lost FROM table_27293285_2 WHERE bonus_points = "9" AND won = "11"
How many losses did the club who had 9 bonus points and 11 wins have?
CREATE TABLE table_27293285_2 (lost VARCHAR, bonus_points VARCHAR, won VARCHAR)
SELECT last_title FROM table_2454589_1 WHERE home_city = "Cuenca"
Name the last title for cuenca
CREATE TABLE table_2454589_1 (last_title VARCHAR, home_city VARCHAR)
SELECT MIN(overall) FROM table_name_7 WHERE college = "oregon state"
What is the smallest overall for Oregon State?
CREATE TABLE table_name_7 (overall INTEGER, college VARCHAR)
SELECT member FROM table_10054296_1 WHERE chapters = 12
Name the member that has 12 chapters
CREATE TABLE table_10054296_1 (member VARCHAR, chapters VARCHAR)
SELECT location_attendance FROM table_28768469_2 WHERE date = "October 20"
What is the location for the game on October 20 with it's corresponding attendance?
CREATE TABLE table_28768469_2 (location_attendance VARCHAR, date VARCHAR)
SELECT COUNT(pick) FROM table_2840500_3 WHERE college_junior_club_team = "HC Dukla Trenčín (Slovakia)"
what is the number of the chosen club where the hc dukla trenčín (slovakia) is from
CREATE TABLE table_2840500_3 (pick VARCHAR, college_junior_club_team VARCHAR)
SELECT MIN(first_elected) FROM table_1342198_17 WHERE incumbent = "Noble Jones Gregory"
How many results for minimum first elected incumbent Noble Jones Gregory?
CREATE TABLE table_1342198_17 (first_elected INTEGER, incumbent VARCHAR)
SELECT SUM(year) FROM table_name_24 WHERE conventional_plans = "7%"
How many years have a conventional plan of 7%?
CREATE TABLE table_name_24 (year INTEGER, conventional_plans VARCHAR)
SELECT report FROM table_name_34 WHERE pole_position = "juan manuel fangio" AND tyre = "c"
What was Juan Manuel Fangio's reported pole position and the tire of C?
CREATE TABLE table_name_34 (report VARCHAR, pole_position VARCHAR, tyre VARCHAR)
SELECT outcome FROM table_name_99 WHERE date = "25 october 2004"
What was the outcome on 25 october 2004?
CREATE TABLE table_name_99 (outcome VARCHAR, date VARCHAR)
SELECT label FROM table_name_89 WHERE release_date = 1982 AND country = "us"
Who made a release in the US in 1982?
CREATE TABLE table_name_89 (label VARCHAR, release_date VARCHAR, country VARCHAR)
SELECT semifinalists FROM table_name_86 WHERE champions = "michael chang 6-0 6-4"
Which Semifinalists has a Champions of michael chang 6-0 6-4?
CREATE TABLE table_name_86 (semifinalists VARCHAR, champions VARCHAR)
SELECT township FROM table_18600760_12 WHERE longitude = "-98.741656"
Which township has a longitude of -98.741656?
CREATE TABLE table_18600760_12 (township VARCHAR, longitude VARCHAR)
SELECT 1998 FROM table_name_7 WHERE 1992 = "a" AND tournament = "hamburg masters"
What is 1998, when 1992 is "A", and when Tournament is "Hamburg Masters"?
CREATE TABLE table_name_7 (tournament VARCHAR)
SELECT high_points FROM table_name_55 WHERE date = "february 11"
What was the High points when date was February 11?
CREATE TABLE table_name_55 (high_points VARCHAR, date VARCHAR)
SELECT host_city FROM table_name_47 WHERE season = 2012
What is the host city during the 2012 season?
CREATE TABLE table_name_47 (host_city VARCHAR, season VARCHAR)
SELECT to_par FROM table_name_22 WHERE player = "emlyn aubrey"
Which To par has a Player of emlyn aubrey?
CREATE TABLE table_name_22 (to_par VARCHAR, player VARCHAR)
SELECT capital___endonym__ FROM table_1008653_1 WHERE country___endonym__ = "Anguilla"
What is the local name given to the capital of Anguilla?
CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, country___endonym__ VARCHAR)
SELECT COUNT(production_code) FROM table_25691838_11 WHERE original_airdate = "November 15"
How many production codes were there for the episode that aired on November 15?
CREATE TABLE table_25691838_11 (production_code VARCHAR, original_airdate VARCHAR)
SELECT ground FROM table_name_79 WHERE crowd > 41 OFFSET 185
Which ground has a crowd over 41,185?
CREATE TABLE table_name_79 (ground VARCHAR, crowd INTEGER)
SELECT date__closing_ FROM table_name_83 WHERE year > 2011
What is Date (Closing), when Year is greater than 2011?
CREATE TABLE table_name_83 (date__closing_ VARCHAR, year INTEGER)
SELECT COUNT(vehicle_theft) FROM table_26060884_2 WHERE population = 4465430
How many vehicle theft data were recorded for a year with a population of 4465430?
CREATE TABLE table_26060884_2 (vehicle_theft VARCHAR, population VARCHAR)
SELECT player FROM table_name_24 WHERE position = "forward" AND school_club_team = "grambling state"
Who is the forward from Grambling State?
CREATE TABLE table_name_24 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT place FROM table_name_22 WHERE hole > 9 AND country = "australia"
What place is in Australia with 9 or more holes?
CREATE TABLE table_name_22 (place VARCHAR, hole VARCHAR, country VARCHAR)
SELECT country FROM table_name_96 WHERE propulsion = "solid rocket"
What country had an anti-ship missile that had a solid rocket propulsion?
CREATE TABLE table_name_96 (country VARCHAR, propulsion VARCHAR)
SELECT overall_record FROM table_name_16 WHERE team = "ravens"
What is the overall record of the Ravens?
CREATE TABLE table_name_16 (overall_record VARCHAR, team VARCHAR)
SELECT time_retired FROM table_name_49 WHERE grid = 18
What time/retired for grid 18?
CREATE TABLE table_name_49 (time_retired VARCHAR, grid VARCHAR)
SELECT public FROM table_26375386_20 WHERE vote_percentage = "16.0%"
What is the public when the vote percentage is 16.0%
CREATE TABLE table_26375386_20 (public VARCHAR, vote_percentage VARCHAR)