answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT college FROM table_2508633_11 WHERE nfl_team = "New York Giants" AND position = "Defensive back"
In which colleges is the NFL Team New York Giants and with the position defensive back?
CREATE TABLE table_2508633_11 (college VARCHAR, nfl_team VARCHAR, position VARCHAR)
SELECT COUNT(outcome) FROM table_22834834_3 WHERE score_in_the_final = "7–6 (9–7) , 6–3"
How many outcome have a score of 7–6 (9–7) , 6–3?
CREATE TABLE table_22834834_3 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT genre FROM table_name_29 WHERE year = 2007
What genre is the game from the year 2007?
CREATE TABLE table_name_29 (genre VARCHAR, year VARCHAR)
SELECT winningteam FROM table_name_76 WHERE losingteam = "newcastle breakers"
Which team beat the Newcastle Breakers?
CREATE TABLE table_name_76 (winningteam VARCHAR, losingteam VARCHAR)
SELECT transfer_window FROM table_name_23 WHERE name = "christian nerlinger"
What is the transfer window for Christian Nerlinger?
CREATE TABLE table_name_23 (transfer_window VARCHAR, name VARCHAR)
SELECT MAX(pick) FROM table_name_67 WHERE round = 7
What is the highest numbered pick from round 7?
CREATE TABLE table_name_67 (pick INTEGER, round VARCHAR)
SELECT result FROM table_26842217_8 WHERE site = "Wallace Wade Stadium • Durham, NC"
If the site was wallace wade stadium • durham, nc, what was the result?
CREATE TABLE table_26842217_8 (result VARCHAR, site VARCHAR)
SELECT outgoing_manager FROM table_17327458_1 WHERE date_of_vacancy = "29 May"
Who left a position on 29 May?
CREATE TABLE table_17327458_1 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT result FROM table_2668367_7 WHERE district = "Kentucky 1"
What was the result in the election in the Kentucky 1 district?
CREATE TABLE table_2668367_7 (result VARCHAR, district VARCHAR)
SELECT release_date FROM table_name_37 WHERE director = "friz freleng" AND production_number > 1496 AND series = "mm" AND title = "apes of wrath"
What date was Apes of Wrath written by Friz Freleng, production number higher than 1496 from series mm released?
CREATE TABLE table_name_37 (release_date VARCHAR, title VARCHAR, series VARCHAR, director VARCHAR, production_number VARCHAR)
SELECT 4 AS _credits FROM table_name_28 WHERE hand = "straight"
What would be the 4 credits result of a straight?
CREATE TABLE table_name_28 (hand VARCHAR)
SELECT COUNT(english_gloss) FROM table_1499774_5 WHERE northern_lakota = "wakȟáŋyeža"
Name the number of english gloss for wakȟáŋyeža
CREATE TABLE table_1499774_5 (english_gloss VARCHAR, northern_lakota VARCHAR)
SELECT COUNT(DISTINCT PROF_NUM) FROM CLASS WHERE CRS_CODE = "ACCT-211"
How many professors are teaching class with code ACCT-211?
CREATE TABLE CLASS (PROF_NUM VARCHAR, CRS_CODE VARCHAR)
SELECT apogee FROM table_name_5 WHERE date = "1959-02-20"
Which Apogee was on 1959-02-20?
CREATE TABLE table_name_5 (apogee VARCHAR, date VARCHAR)
SELECT result FROM table_name_56 WHERE nationality___opponent = "new zealand"
Name the Result of new zealand Nationality / Opponent?
CREATE TABLE table_name_56 (result VARCHAR, nationality___opponent VARCHAR)
SELECT opponent FROM table_24786958_2 WHERE attendance = 30701
Who did Rhein Fire play Against where 30701 people attended?
CREATE TABLE table_24786958_2 (opponent VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_14 WHERE opponent = "tigers"
Which date has tigers as the opponent?
CREATE TABLE table_name_14 (date VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_98 WHERE label = "atco records" AND format = "mc"
What Country with a MC Format has a ATCO Records Label?
CREATE TABLE table_name_98 (country VARCHAR, label VARCHAR, format VARCHAR)
SELECT COUNT(loses) FROM table_name_96 WHERE position = 4 AND goals_conceded < 23
What is the total number of loses of the club with a 4 position and less than 23 goals conceded?
CREATE TABLE table_name_96 (loses VARCHAR, position VARCHAR, goals_conceded VARCHAR)
SELECT COUNT(wins) FROM table_name_45 WHERE races < 56 AND titles > 0
What is the total number of wins for riders with fewer than 56 races and more than 0 titles?
CREATE TABLE table_name_45 (wins VARCHAR, races VARCHAR, titles VARCHAR)
SELECT MAX(rank) FROM table_name_81 WHERE years = "1960—"
What is the highest Rank 1960—?
CREATE TABLE table_name_81 (rank INTEGER, years VARCHAR)
SELECT branding FROM table_name_88 WHERE frequency = "680 khz"
Tell me the branding for frequency of 680 khz
CREATE TABLE table_name_88 (branding VARCHAR, frequency VARCHAR)
SELECT kickoff_time FROM table_name_92 WHERE week = 17
What is the kickoff time for the game in week of 17?
CREATE TABLE table_name_92 (kickoff_time VARCHAR, week VARCHAR)
SELECT location FROM table_name_23 WHERE name = "pine valley"
Where is pine valley?
CREATE TABLE table_name_23 (location VARCHAR, name VARCHAR)
SELECT label FROM table_name_92 WHERE catalog_number = "817"
What label has the 817 catalog?
CREATE TABLE table_name_92 (label VARCHAR, catalog_number VARCHAR)
SELECT location FROM table_name_28 WHERE ihsaa_class = "aaa" AND mascot = "panthers"
What's the location of the school having the panthers as a mascot with an AAA for the IHSAA Class?
CREATE TABLE table_name_28 (location VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT rank__csa_ FROM table_12720275_1 WHERE percent_change__1990_2000_ = "A034 +8.71%"
What is the rank (csa) for the percentage change (1990-2000) was a034 +8.71%?
CREATE TABLE table_12720275_1 (rank__csa_ VARCHAR, percent_change__1990_2000_ VARCHAR)
SELECT title FROM table_20205538_4 WHERE episode__number = 2
What was the title for episode 2?
CREATE TABLE table_20205538_4 (title VARCHAR, episode__number VARCHAR)
SELECT original_us_air_date FROM table_21831229_3 WHERE prod_code = 213
What was the date that the episode with a production code of 213 was originally aired?
CREATE TABLE table_21831229_3 (original_us_air_date VARCHAR, prod_code VARCHAR)
SELECT partner FROM table_name_8 WHERE date = "may 2, 1993"
Name the partner for may 2, 1993
CREATE TABLE table_name_8 (partner VARCHAR, date VARCHAR)
SELECT SUM(wins) FROM table_name_19 WHERE draws < 2
How many wins happened when there were fewer than 2 draws?
CREATE TABLE table_name_19 (wins INTEGER, draws INTEGER)
SELECT record FROM table_name_92 WHERE home = "ny rangers"
What is the record for the NY Rangers?
CREATE TABLE table_name_92 (record VARCHAR, home VARCHAR)
SELECT COUNT(stage) FROM table_17672470_19 WHERE winner = "Robbie McEwen"
How many stages were won by Robbie McEwen?
CREATE TABLE table_17672470_19 (stage VARCHAR, winner VARCHAR)
SELECT e_coli FROM table_name_78 WHERE human = "hneil1"
Which E. coli has a human value of HNEIL1?
CREATE TABLE table_name_78 (e_coli VARCHAR, human VARCHAR)
SELECT MIN(_number) FROM table_25737761_4 WHERE writer = "Tony Basgallop"
What episode number of the season did Tony Basgallop write?
CREATE TABLE table_25737761_4 (_number INTEGER, writer VARCHAR)
SELECT record FROM table_name_43 WHERE location = "hemisfair arena"
Location of hemisfair arena had what record?
CREATE TABLE table_name_43 (record VARCHAR, location VARCHAR)
SELECT denomination FROM table_11900773_4 WHERE theme = "Opera, Léopold Simoneau and Pierrette Alarie"
What denominations are the stamps with themes opera, léopold simoneau and pierrette alarie?
CREATE TABLE table_11900773_4 (denomination VARCHAR, theme VARCHAR)
SELECT MAX(tied) FROM table_name_8 WHERE pct < 0.5593 AND lost = 551
What is the highest number of games tied for teams with under 551 games and a percentage of under 0.5593?
CREATE TABLE table_name_8 (tied INTEGER, pct VARCHAR, lost VARCHAR)
SELECT surface FROM table_name_24 WHERE partner = "piet norval"
What surface was played on when Piet Norval was a partner?
CREATE TABLE table_name_24 (surface VARCHAR, partner VARCHAR)
SELECT net_capacity FROM table_name_74 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-4"
What was the net capacity with a gross capacity of 1,126 mw, and a Unit of tianwan-4?
CREATE TABLE table_name_74 (net_capacity VARCHAR, gross_capacity VARCHAR, unit VARCHAR)
SELECT record FROM table_name_5 WHERE date = "april 8"
What is the record for April 8?
CREATE TABLE table_name_5 (record VARCHAR, date VARCHAR)
SELECT engine FROM table_name_9 WHERE years = "1975-84" AND displacement = "1585cc"
What engine with years of 1975-84 has a displacement of 1585cc?
CREATE TABLE table_name_9 (engine VARCHAR, years VARCHAR, displacement VARCHAR)
SELECT solidv4 FROM table_127511_1 WHERE sequencer = "Data output per run"
What is solidv4 when sequencer is data output per run?
CREATE TABLE table_127511_1 (solidv4 VARCHAR, sequencer VARCHAR)
SELECT player FROM table_name_27 WHERE round = 11 AND pick = 302
What player is picked 302 in round 11?
CREATE TABLE table_name_27 (player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT chassis FROM table_name_44 WHERE engine = "porsche flat-4" AND year < 1958
What chassis did the porsche flat-4 use before 1958?
CREATE TABLE table_name_44 (chassis VARCHAR, engine VARCHAR, year VARCHAR)
SELECT venue FROM table_name_63 WHERE third = "jack hargreaves"
What was the venue when Jack Hargreaves finished third?
CREATE TABLE table_name_63 (venue VARCHAR, third VARCHAR)
SELECT result FROM table_name_31 WHERE venue = "sydney cricket ground" AND date = "23,24,26,27,28,29 feb, 1 mar 1912"
What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
CREATE TABLE table_name_31 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT sign_in_bicker FROM table_name_27 WHERE location = "wash50 on washington rd"
What is the Sign-in/Bicker at wash50 on washington rd?
CREATE TABLE table_name_27 (sign_in_bicker VARCHAR, location VARCHAR)
SELECT written_by FROM table_28768925_1 WHERE directed_by = "Wendey Stanzler" AND no_in_series = 27
Who wrote episode 27 in the series that was directed by Wendey Stanzler?
CREATE TABLE table_28768925_1 (written_by VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
SELECT COUNT(ppv) FROM table_15887683_5 WHERE television_service = "Sky Cinema 1"
How many PPV values are listed for when television service Sky Cinema 1?
CREATE TABLE table_15887683_5 (ppv VARCHAR, television_service VARCHAR)
SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore"
Find the last names of the members of the club "Bootup Baltimore".
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
SELECT party FROM table_name_70 WHERE incumbent = "w. jasper talbert"
Which party had an incumbent of W. Jasper Talbert?
CREATE TABLE table_name_70 (party VARCHAR, incumbent VARCHAR)
SELECT class FROM table_name_13 WHERE year > 1986
What is the Class after 1986?
CREATE TABLE table_name_13 (class VARCHAR, year INTEGER)
SELECT MAX(ga) FROM table_1888157_1 WHERE gf = 39
What is the highest GA when GF is 39?
CREATE TABLE table_1888157_1 (ga INTEGER, gf VARCHAR)
SELECT COUNT(no_of_premierships) FROM table_name_72 WHERE nickname = "kangaroos"
How many Premierships have Nicknamed of kangaroos?
CREATE TABLE table_name_72 (no_of_premierships VARCHAR, nickname VARCHAR)
SELECT COUNT(rank) FROM table_name_44 WHERE team = "250cc honda" AND time = "1:27.57.28"
What ranking did Team 250cc Honda end up in when it finished a race with a time of 1:27.57.28?
CREATE TABLE table_name_44 (rank VARCHAR, team VARCHAR, time VARCHAR)
SELECT constructor FROM table_name_39 WHERE time_retired = "brakes" AND grid < 14
I want the constructor for brakes and grid less than 14
CREATE TABLE table_name_39 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT competition FROM table_name_85 WHERE date = "10 august 2011"
What competition took place on 10 August 2011?
CREATE TABLE table_name_85 (competition VARCHAR, date VARCHAR)
SELECT COUNT(pole_position) FROM table_26137666_3 WHERE round = 20
How many pole positions for round 20?
CREATE TABLE table_26137666_3 (pole_position VARCHAR, round VARCHAR)
SELECT COUNT(DISTINCT city) FROM airports WHERE country = 'Greenland'
How many different cities do have some airport in the country of Greenland?
CREATE TABLE airports (city VARCHAR, country VARCHAR)
SELECT english_title FROM table_name_79 WHERE original_title = "возвращение / vozvrashcheniye"
Original title of возвращение / vozvrashcheniye had what English title?
CREATE TABLE table_name_79 (english_title VARCHAR, original_title VARCHAR)
SELECT team_1 FROM table_name_6 WHERE team_2 = "gazélec ajaccio (d3)"
what is team 1 when team 2 is gazélec ajaccio (d3)?
CREATE TABLE table_name_6 (team_1 VARCHAR, team_2 VARCHAR)
SELECT pali FROM table_name_77 WHERE sanskrit = "rāga"
What is the pali word for rāga in sanskrit?
CREATE TABLE table_name_77 (pali VARCHAR, sanskrit VARCHAR)
SELECT home_team AS score FROM table_name_15 WHERE venue = "princes park"
What did the home team score at Princes Park?
CREATE TABLE table_name_15 (home_team VARCHAR, venue VARCHAR)
SELECT MAX(year) FROM table_name_7 WHERE edition = 14
What was the latest year with an edition of 14?
CREATE TABLE table_name_7 (year INTEGER, edition VARCHAR)
SELECT SUM(season) FROM table_name_42 WHERE ties < 1 AND team = "vancouver grizzlies" AND wins < 1
Which Season has Ties smaller than 1, and a Team of vancouver grizzlies, and Wins smaller than 1?
CREATE TABLE table_name_42 (season INTEGER, wins VARCHAR, ties VARCHAR, team VARCHAR)
SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1
List the record company shared by the most number of orchestras.
CREATE TABLE orchestra (Record_Company VARCHAR)
SELECT license FROM table_name_72 WHERE creator = "ietf"
What is the name of the license created by IETF?
CREATE TABLE table_name_72 (license VARCHAR, creator VARCHAR)
SELECT date FROM table_17323092_8 WHERE high_points = "Chris Bosh (18)"
What dates did Chris Bosh (18) score the high points?
CREATE TABLE table_17323092_8 (date VARCHAR, high_points VARCHAR)
SELECT competition FROM table_name_17 WHERE lost = "1" AND drew = "3" AND played = "9"
What competition did they have 1 lost, 3 draws, and played 9 games?
CREATE TABLE table_name_17 (competition VARCHAR, played VARCHAR, lost VARCHAR, drew VARCHAR)
SELECT college_junior_club_team FROM table_2850912_3 WHERE player = "Robert Dirk"
What is Robert Dirk's team?
CREATE TABLE table_2850912_3 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT high_rebounds FROM table_name_44 WHERE record = "18-14"
What is the high rebounds with a record that is 18-14?
CREATE TABLE table_name_44 (high_rebounds VARCHAR, record VARCHAR)
SELECT governors_1950 FROM table_name_46 WHERE general_1950 = "general 1979"
What is the Governors 1950 when the General 1950 is general 1979?
CREATE TABLE table_name_46 (governors_1950 VARCHAR, general_1950 VARCHAR)
SELECT streak FROM table_name_38 WHERE team = "new york knicks"
Which Streak has a Team of new york knicks?
CREATE TABLE table_name_38 (streak VARCHAR, team VARCHAR)
SELECT team FROM table_name_12 WHERE sponsor = "motorola"
what is the sponsor of motorola
CREATE TABLE table_name_12 (team VARCHAR, sponsor VARCHAR)
SELECT match_report FROM table_name_44 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND score = "1-2"
What was the Match Report for the Euro2008q at the Athens Olympic Stadium and a score of 1-2?
CREATE TABLE table_name_44 (match_report VARCHAR, score VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT COUNT(theme) FROM table_26250253_1 WHERE order__number = "9"
How many themes are there where the order # is 9?
CREATE TABLE table_26250253_1 (theme VARCHAR, order__number VARCHAR)
SELECT region_2 FROM table_1067134_1 WHERE dvd_name = "Season Six"
What date did the DVD for season six come out in region 2?
CREATE TABLE table_1067134_1 (region_2 VARCHAR, dvd_name VARCHAR)
SELECT open_1st_viii FROM table_name_76 WHERE crew = 2012
What is the Open 1st VIII for the 2012 crew?
CREATE TABLE table_name_76 (open_1st_viii VARCHAR, crew VARCHAR)
SELECT COUNT(*) FROM classroom WHERE building <> 'Lamberton'
Count the number of rooms that are not in the Lamberton building.
CREATE TABLE classroom (building VARCHAR)
SELECT time FROM table_name_29 WHERE game > 1 AND location = "comiskey park (i)" AND date = "october 9"
Game larger than 1, and a Location of comiskey park (i), and a Date of October 9 happened at what time?
CREATE TABLE table_name_29 (time VARCHAR, date VARCHAR, game VARCHAR, location VARCHAR)
SELECT school, nickname FROM university ORDER BY founded
List all schools and their nicknames in the order of founded year.
CREATE TABLE university (school VARCHAR, nickname VARCHAR, founded VARCHAR)
SELECT opponent FROM table_name_97 WHERE date = "1990-10-21"
What team was the opponent on 1990-10-21?
CREATE TABLE table_name_97 (opponent VARCHAR, date VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE home_team = "st kilda"
What was St Kilda's away team score?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(year) FROM table_name_97 WHERE driver = "wilson fittipaldi"
How many years did Wilson Fittipaldi race?
CREATE TABLE table_name_97 (year VARCHAR, driver VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_1013129_2 WHERE nhl_team = "Washington Capitals"
How many different college/junior/club teams provided a player to the Washington Capitals NHL Team?
CREATE TABLE table_1013129_2 (college_junior_club_team VARCHAR, nhl_team VARCHAR)
SELECT acronym FROM table_name_34 WHERE name_in_malay = "kolej komuniti sungai petani"
What is the acronym for the name Malay of Kolej Komuniti Sungai Petani?
CREATE TABLE table_name_34 (acronym VARCHAR, name_in_malay VARCHAR)
SELECT COUNT(location_attendance) FROM table_13557843_7 WHERE team = "Charlotte"
how many location attendance with team being charlotte
CREATE TABLE table_13557843_7 (location_attendance VARCHAR, team VARCHAR)
SELECT country FROM people WHERE age < 25 INTERSECT SELECT country FROM people WHERE age > 30
Show the country where people older than 30 and younger than 25 are from.
CREATE TABLE people (country VARCHAR, age INTEGER)
SELECT state FROM table_name_3 WHERE electorate = "cunningham"
What state shows for Cunningham?
CREATE TABLE table_name_3 (state VARCHAR, electorate VARCHAR)
SELECT SUM(year) FROM table_name_87 WHERE cause = "firedamp" AND death_toll > 11
Which Year has a cause of firedamp and a Death toll larger than 11?
CREATE TABLE table_name_87 (year INTEGER, cause VARCHAR, death_toll VARCHAR)
SELECT directed_by FROM table_2626495_1 WHERE written_by = "James Clavell"
who directed the episode james clavell wrote?
CREATE TABLE table_2626495_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT team FROM table_name_74 WHERE record = "17–8"
Which Team has a Record of 17–8?
CREATE TABLE table_name_74 (team VARCHAR, record VARCHAR)
SELECT dob FROM table_name_22 WHERE surname = "collins"
When is Collins' DOB?
CREATE TABLE table_name_22 (dob VARCHAR, surname VARCHAR)
SELECT time FROM table_name_98 WHERE year > 2011 AND event = "800 freestyle relay"
What is Time, when Year is greater than 2011, and when Event is "800 Freestyle Relay"?
CREATE TABLE table_name_98 (time VARCHAR, year VARCHAR, event VARCHAR)
SELECT MAX(final_four_mvp) FROM table_26130295_3 WHERE first_team = 1
what would be final four mvp maximum when first team is 1
CREATE TABLE table_26130295_3 (final_four_mvp INTEGER, first_team VARCHAR)
SELECT season FROM table_name_60 WHERE location = "safeco field" AND decision = "l" AND opponent = "boston red sox"
What season was played at Safeco Field, against the Boston Red Sox, with a decision of L?
CREATE TABLE table_name_60 (season VARCHAR, opponent VARCHAR, location VARCHAR, decision VARCHAR)
SELECT lost FROM table_name_72 WHERE drawn = "1" AND points_for = "515"
what is the amount lost when there is 1 draw and 515 points?
CREATE TABLE table_name_72 (lost VARCHAR, drawn VARCHAR, points_for VARCHAR)
SELECT high_assists FROM table_20010140_10 WHERE date = "February 15"
state high assists on february 15
CREATE TABLE table_20010140_10 (high_assists VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_37 WHERE result = "bye"
How many weeks do they have a bye?
CREATE TABLE table_name_37 (week VARCHAR, result VARCHAR)