question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
WHich Record has a Visitor of quebec nordiques with a Score of 7–5?
CREATE TABLE table_name_37 (record VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT record FROM table_name_37 WHERE visitor = "quebec nordiques" AND score = "7–5"
Which Played has a Lost larger than 9, and a Points smaller than 15, and a Position smaller than 12, and a Drawn smaller than 2?
CREATE TABLE table_name_18 (played INTEGER, drawn VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR)
SELECT AVG(played) FROM table_name_18 WHERE lost > 9 AND points < 15 AND position < 12 AND drawn < 2
What away team has 7 as the tie no.?
CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR)
SELECT away_team FROM table_name_38 WHERE tie_no = "7"
Name the team for january 17
CREATE TABLE table_27733909_7 (team VARCHAR, date VARCHAR)
SELECT team FROM table_27733909_7 WHERE date = "January 17"
Who wrote the episode seen by 10.64 million people in the US?
CREATE TABLE table_23528223_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT written_by FROM table_23528223_2 WHERE us_viewers__millions_ = "10.64"
Which driver drove car McLaren M23 at the Snetterton Circuit?
CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_car VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_name_66 WHERE winning_car = "mclaren m23" AND circuit = "snetterton"
What is the highest total number of medals for a team ranked smaller than 1 and had 20 gold medals?
CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, rank VARCHAR)
SELECT MAX(total) FROM table_name_40 WHERE gold = 20 AND rank < 1
What location contains a school that has an enrollment of 2686?
CREATE TABLE table_1973729_1 (location VARCHAR, enrollment VARCHAR)
SELECT location FROM table_1973729_1 WHERE enrollment = 2686
What date was the game played against the home team Rockets?
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_28 WHERE home = "rockets"
Show each gender code and the corresponding count of guests sorted by the count in descending order.
CREATE TABLE Guests (gender_code VARCHAR)
SELECT gender_code, COUNT(*) FROM Guests GROUP BY gender_code ORDER BY COUNT(*) DESC
What is the engine for year 2012-?
CREATE TABLE table_name_52 (engine VARCHAR, years VARCHAR)
SELECT engine FROM table_name_52 WHERE years = "2012-"
Name the people who wrote number 67
CREATE TABLE table_12419515_5 (written_by VARCHAR, series__number VARCHAR)
SELECT written_by FROM table_12419515_5 WHERE series__number = 67
What was the Jury Points value when there were 3 Televote Points?
CREATE TABLE table_name_5 (jury_points VARCHAR, televote_points VARCHAR)
SELECT jury_points FROM table_name_5 WHERE televote_points = "3"
What was the final score of the player from Inglewood, California?
CREATE TABLE table_name_14 (score VARCHAR, city VARCHAR)
SELECT score FROM table_name_14 WHERE city = "inglewood, california"
Name the school/club team for 9
CREATE TABLE table_15463188_16 (school_club_team VARCHAR, number VARCHAR)
SELECT school_club_team FROM table_15463188_16 WHERE number = "9"
What is the highest uni# of the person with the first name Todd?
CREATE TABLE table_name_32 (uni_number INTEGER, first VARCHAR)
SELECT MAX(uni_number) FROM table_name_32 WHERE first = "todd"
Where the total trade is 14,954.86, what are the exports?
CREATE TABLE table_26160007_1 (exports VARCHAR, total_trade VARCHAR)
SELECT exports FROM table_26160007_1 WHERE total_trade = "14,954.86"
What is the To par of the Player with a Score of 71-74-72-72=289?
CREATE TABLE table_name_25 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_25 WHERE score = 71 - 74 - 72 - 72 = 289
What is the number of steals for 2012
CREATE TABLE table_13050003_3 (steals VARCHAR, year VARCHAR)
SELECT COUNT(steals) FROM table_13050003_3 WHERE year = 2012
What class had 1 made and fleet number of 406?
CREATE TABLE table_name_36 (class VARCHAR, quantity_made VARCHAR, fleet_number_s_ VARCHAR)
SELECT class FROM table_name_36 WHERE quantity_made = "1" AND fleet_number_s_ = "406"
What issue was the spoofed title Ho-Hum land?
CREATE TABLE table_name_75 (issue INTEGER, spoofed_title VARCHAR)
SELECT SUM(issue) FROM table_name_75 WHERE spoofed_title = "ho-hum land"
Which Rank has a Reaction of 0.198, and a Time smaller than 46.3?
CREATE TABLE table_name_98 (rank INTEGER, react VARCHAR, time VARCHAR)
SELECT MAX(rank) FROM table_name_98 WHERE react = 0.198 AND time < 46.3
What was the last round the team drafted?
CREATE TABLE table_14999879_2 (round INTEGER)
SELECT MAX(round) FROM table_14999879_2
Name the total number of no result for losses more than 1 and played of 38 and wins less than 19
CREATE TABLE table_name_16 (no_result VARCHAR, wins VARCHAR, losses VARCHAR, played VARCHAR)
SELECT COUNT(no_result) FROM table_name_16 WHERE losses > 1 AND played = 38 AND wins < 19
What date did Ian poulter become runner up?
CREATE TABLE table_name_76 (date VARCHAR, runner_s__up VARCHAR)
SELECT date FROM table_name_76 WHERE runner_s__up = "ian poulter"
Name the highest grid for Laps more than 137 and rank is less than 8
CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR, rank VARCHAR)
SELECT MAX(grid) FROM table_name_89 WHERE laps > 137 AND rank < 8
What is the highest number of losses associated with 2 matches played, a first game after 1997, and more than 0 draws?
CREATE TABLE table_name_37 (lost INTEGER, drawn VARCHAR, played VARCHAR, first_game VARCHAR)
SELECT MAX(lost) FROM table_name_37 WHERE played = 2 AND first_game > 1997 AND drawn > 0
What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ranking?
CREATE TABLE table_19948664_1 (index__year_ VARCHAR, author___editor___source VARCHAR, ranking_la__2_ VARCHAR)
SELECT index__year_ FROM table_19948664_1 WHERE author___editor___source = "United Nations (UNDP)" AND ranking_la__2_ = "2nd"
Which unit has a Pennant Number of 82?
CREATE TABLE table_name_27 (unit VARCHAR, pennant_number VARCHAR)
SELECT unit FROM table_name_27 WHERE pennant_number = 82
Which date has serial of 11c?
CREATE TABLE table_name_28 (date VARCHAR, serial VARCHAR)
SELECT date FROM table_name_28 WHERE serial = "11c"
What's Italy's rank?
CREATE TABLE table_name_36 (rank INTEGER, country VARCHAR)
SELECT SUM(rank) FROM table_name_36 WHERE country = "italy"
What was the score of the home team when they played carlton?
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_77 WHERE away_team = "carlton"
what is the total number of date where visitor is new jersey nets
CREATE TABLE table_11964047_5 (date VARCHAR, visitor VARCHAR)
SELECT COUNT(date) FROM table_11964047_5 WHERE visitor = "New Jersey Nets"
what is the total rank where the rank is 58?
CREATE TABLE table_15681686_4 (rank__timeslot_ VARCHAR, rank__week_ VARCHAR)
SELECT COUNT(rank__timeslot_) FROM table_15681686_4 WHERE rank__week_ = "58"
What is the Opponent when Todd Woodbridge was the runner-up, and a Date of 26 august 1996?
CREATE TABLE table_name_52 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_52 WHERE outcome = "runner-up" AND date = "26 august 1996"
What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3, and the Score (Global) is 266?
CREATE TABLE table_name_11 (performance_return_on_capital__score_ VARCHAR, score__iran_ VARCHAR, score__global_ VARCHAR)
SELECT COUNT(performance_return_on_capital__score_) FROM table_name_11 WHERE score__iran_ < 3 AND score__global_ = 266
What award was nominated in 2007?
CREATE TABLE table_name_76 (award VARCHAR, result VARCHAR, year VARCHAR)
SELECT award FROM table_name_76 WHERE result = "nominated" AND year = 2007
Are the there macros in the Tabula software?
CREATE TABLE table_name_65 (macros VARCHAR, software VARCHAR)
SELECT macros FROM table_name_65 WHERE software = "tabula"
Who is the player with a FB position?
CREATE TABLE table_name_2 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_2 WHERE position = "fb"
Name the fewest gold for tanzania with bronze less than 0
CREATE TABLE table_name_54 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MIN(gold) FROM table_name_54 WHERE nation = "tanzania" AND bronze < 0
Which TV Station has Average Ratings of 16.89%?
CREATE TABLE table_name_54 (tv_station VARCHAR, average_ratings VARCHAR)
SELECT tv_station FROM table_name_54 WHERE average_ratings = "16.89%"
What is the college/junior/club team of the defence player drafted by the New York Rangers?
CREATE TABLE table_name_43 (college_junior_club_team VARCHAR, nhl_team VARCHAR, position VARCHAR)
SELECT college_junior_club_team FROM table_name_43 WHERE nhl_team = "new york rangers" AND position = "defence"
What is the title of the film when the producer was 2003?
CREATE TABLE table_name_65 (title VARCHAR, producer VARCHAR)
SELECT title FROM table_name_65 WHERE producer = "2003"
How many total appearances are there when the league appearances is 192?
CREATE TABLE table_29701419_2 (total_appearances VARCHAR, league_appearances VARCHAR)
SELECT COUNT(total_appearances) FROM table_29701419_2 WHERE league_appearances = 192
How many points for the cosworth v8 engine after 1985?
CREATE TABLE table_name_23 (points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT points FROM table_name_23 WHERE year > 1985 AND engine = "cosworth v8"
What is the least amount of touchdowns scored on the chart?
CREATE TABLE table_14342480_7 (touchdowns INTEGER)
SELECT MIN(touchdowns) FROM table_14342480_7
How much Loss has a Gain smaller than 1571, and a Long smaller than 47, and an Avg/G of 36.4?
CREATE TABLE table_name_27 (loss VARCHAR, avg_g VARCHAR, gain VARCHAR, long VARCHAR)
SELECT COUNT(loss) FROM table_name_27 WHERE gain < 1571 AND long < 47 AND avg_g = 36.4
When aaron afflalo (9) has the highest amount of rebounds what is the score?
CREATE TABLE table_23285849_10 (score VARCHAR, high_rebounds VARCHAR)
SELECT score FROM table_23285849_10 WHERE high_rebounds = "Aaron Afflalo (9)"
what is the even when the location is tokyo, japan and the record is 6-1?
CREATE TABLE table_name_7 (event VARCHAR, location VARCHAR, record VARCHAR)
SELECT event FROM table_name_7 WHERE location = "tokyo, japan" AND record = "6-1"
what was the average game when record was 16-63?
CREATE TABLE table_name_30 (game INTEGER, record VARCHAR)
SELECT AVG(game) FROM table_name_30 WHERE record = "16-63"
Which class had a vehicle of Nissan in 2007?
CREATE TABLE table_name_31 (class VARCHAR, vehicle VARCHAR, year VARCHAR)
SELECT class FROM table_name_31 WHERE vehicle = "nissan" AND year = 2007
What is the distance of the maldegem > brussels route?
CREATE TABLE table_name_71 (distance VARCHAR, route VARCHAR)
SELECT distance FROM table_name_71 WHERE route = "maldegem > brussels"
List the names of countries whose language is not "German".
CREATE TABLE country (Name VARCHAR, Languages VARCHAR)
SELECT Name FROM country WHERE Languages <> "German"
Who are the scorers when the score is 9-2?
CREATE TABLE table_name_4 (scorers VARCHAR, score VARCHAR)
SELECT scorers FROM table_name_4 WHERE score = "9-2"
What is the Week on November 10, 1996?
CREATE TABLE table_name_42 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_42 WHERE date = "november 10, 1996"
In what year was Luxembourg Host?
CREATE TABLE table_name_77 (year INTEGER, host VARCHAR)
SELECT MIN(year) FROM table_name_77 WHERE host = "luxembourg"
How many directed have the product code of 2.8?
CREATE TABLE table_20124413_2 (directed_by VARCHAR, prod_code VARCHAR)
SELECT COUNT(directed_by) FROM table_20124413_2 WHERE prod_code = "2.8"
What is the type of bulykin, which has a summer transfer window?
CREATE TABLE table_name_79 (type VARCHAR, transfer_window VARCHAR, name VARCHAR)
SELECT type FROM table_name_79 WHERE transfer_window = "summer" AND name = "bulykin"
What is the smallest amount of freight carried on the road that closed on March 31 and reached super B capacity on February 17 after 2011?
CREATE TABLE table_name_80 (freight_carried_s_tonne INTEGER, year VARCHAR, road_closed VARCHAR, super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR)
SELECT MIN(freight_carried_s_tonne) FROM table_name_80 WHERE road_closed = "march 31" AND super_b_capacity_reached_[_citation_needed_] = "february 17" AND year > 2011
What was the highest number of touchdowns by a player?
CREATE TABLE table_25647137_2 (touchdowns INTEGER)
SELECT MAX(touchdowns) FROM table_25647137_2
Who wrote the series number 14?
CREATE TABLE table_18734298_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_18734298_1 WHERE no_in_series = 14
How many touchdowns were made where field goals were less than 0?
CREATE TABLE table_name_81 (touchdowns INTEGER, field_goals INTEGER)
SELECT SUM(touchdowns) FROM table_name_81 WHERE field_goals < 0
What is the maac when the overall is 26-8?
CREATE TABLE table_21756039_1 (maac VARCHAR, overall VARCHAR)
SELECT maac FROM table_21756039_1 WHERE overall = "26-8"
What was the lowest round number that had an overall pick up 92?
CREATE TABLE table_name_9 (round INTEGER, overall VARCHAR)
SELECT MIN(round) FROM table_name_9 WHERE overall = 92
What is the local sources for property taxes of 11,631,227?
CREATE TABLE table_11608735_3 (other_local_sources VARCHAR, property_taxes VARCHAR)
SELECT other_local_sources FROM table_11608735_3 WHERE property_taxes = "11,631,227"
What's the record of the game on Nov 13?
CREATE TABLE table_name_80 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_80 WHERE date = "nov 13"
Who was the home team when Hawthorn was the away team?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_39 WHERE away_team = "hawthorn"
When 1180 am is the frequency how many call signs are there?
CREATE TABLE table_1949746_1 (call_sign VARCHAR, frequency VARCHAR)
SELECT COUNT(call_sign) FROM table_1949746_1 WHERE frequency = "1180 AM"
Name the class with call sign of k220cp
CREATE TABLE table_name_2 (class VARCHAR, call_sign VARCHAR)
SELECT class FROM table_name_2 WHERE call_sign = "k220cp"
What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger?
CREATE TABLE table_name_90 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_90 WHERE bronze < 7 AND silver = 1 AND rank > 9
When sv neuses is the oberfranken west what is the season?
CREATE TABLE table_23224961_2 (season VARCHAR, oberfranken_west VARCHAR)
SELECT season FROM table_23224961_2 WHERE oberfranken_west = "SV Neuses"
Which Home team has a Tie no of replay, a Date of 19 november 1985, and an Away team of tranmere rovers?
CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR, tie_no VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_25 WHERE tie_no = "replay" AND date = "19 november 1985" AND away_team = "tranmere rovers"
What is the Weight of the Spandau 04 Player with a Height of m (ft 5in)?
CREATE TABLE table_name_61 (weight VARCHAR, club VARCHAR, height VARCHAR)
SELECT weight FROM table_name_61 WHERE club = "spandau 04" AND height = "m (ft 5in)"
Which lifetime has alan gendreau?
CREATE TABLE table_name_3 (lifetime VARCHAR, name VARCHAR)
SELECT lifetime FROM table_name_3 WHERE name = "alan gendreau"
What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?
CREATE TABLE table_18173916_6 (episodes VARCHAR, tuesday VARCHAR)
SELECT episodes FROM table_18173916_6 WHERE tuesday = "224 Assassin's Creed: Brotherhood Circus Training"
What country has player Nick Faldo?
CREATE TABLE table_name_92 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_92 WHERE player = "nick faldo"
What is the episode # of the episode that originally aired on January 21, 2001?
CREATE TABLE table_name_95 (episode__number VARCHAR, original_airdate VARCHAR)
SELECT episode__number FROM table_name_95 WHERE original_airdate = "january 21, 2001"
Which Affiliation has an Enrollement larger than 502?
CREATE TABLE table_name_54 (affiliation VARCHAR, enrollment INTEGER)
SELECT affiliation FROM table_name_54 WHERE enrollment > 502
Who is the home team at Victoria Park on 20 April 1957?
CREATE TABLE table_name_62 (home_team VARCHAR, date VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_62 WHERE date = "20 april 1957" AND venue = "victoria park"
Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77?
CREATE TABLE table_name_19 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR)
SELECT MAX(comp) FROM table_name_19 WHERE yds_game > 0 AND name = "bostick" AND rating < 91.77
How many Dwellings does Beverly Heights have that have a change percent larger than -5.2?
CREATE TABLE table_name_37 (dwellings INTEGER, neighbourhood VARCHAR, change___percentage_ VARCHAR)
SELECT SUM(dwellings) FROM table_name_37 WHERE neighbourhood = "beverly heights" AND change___percentage_ > -5.2
what are all the rating with viewers (m) being 2.61
CREATE TABLE table_13110459_2 (rating VARCHAR, viewers__m_ VARCHAR)
SELECT rating FROM table_13110459_2 WHERE viewers__m_ = "2.61"
What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce?
CREATE TABLE table_name_46 (tier VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR)
SELECT tier FROM table_name_46 WHERE semi_finalists = "sandrine testud mary pierce" AND runner_up = "lisa raymond"
What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13?
CREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR, time VARCHAR)
SELECT MAX(laps) FROM table_name_93 WHERE grid < 13 AND time = "+18.366"
Who is the winner of the race in Burkina Faso?
CREATE TABLE table_name_60 (winner VARCHAR, location VARCHAR)
SELECT winner FROM table_name_60 WHERE location = "burkina faso"
What attendance has astros as the opponent, and april 29 as the date?
CREATE TABLE table_name_69 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT SUM(attendance) FROM table_name_69 WHERE opponent = "astros" AND date = "april 29"
What is the location/state of the race on the Wanneroo raceway?
CREATE TABLE table_name_5 (location___state VARCHAR, circuit VARCHAR)
SELECT location___state FROM table_name_5 WHERE circuit = "wanneroo raceway"
When has a Surface of hard, a Tournament of wrexham , great britain?
CREATE TABLE table_name_46 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_46 WHERE surface = "hard" AND tournament = "wrexham , great britain"
What is the number of Independents elected in the year Labour won 26 (+3) seats?
CREATE TABLE table_name_73 (independents VARCHAR, labour_party VARCHAR)
SELECT independents FROM table_name_73 WHERE labour_party = "26 (+3)"
What is the population density (per km) that has -6.7 as the change (%)?
CREATE TABLE table_name_8 (population_density__per_km²_ VARCHAR, change___percentage_ VARCHAR)
SELECT population_density__per_km²_ FROM table_name_8 WHERE change___percentage_ = "-6.7"
What is the region where Milan is located?
CREATE TABLE table_14532_1 (region VARCHAR, capital VARCHAR)
SELECT region FROM table_14532_1 WHERE capital = "Milan"
What is the lowest Round with Overall of 247 and pick less than 41?
CREATE TABLE table_name_39 (round INTEGER, overall VARCHAR, pick__number VARCHAR)
SELECT MIN(round) FROM table_name_39 WHERE overall = 247 AND pick__number < 41
Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
SELECT T1.fname, T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE NOT T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')
Which Model has the GCM (kg) Technical Capacity of 42000?
CREATE TABLE table_name_52 (model VARCHAR, gcm__kg__technical_capacity VARCHAR)
SELECT model FROM table_name_52 WHERE gcm__kg__technical_capacity = "42000"
What is the listed date of the Warren pony truss bridge that was built in 1925?
CREATE TABLE table_name_1 (listed VARCHAR, built VARCHAR, type VARCHAR)
SELECT listed FROM table_name_1 WHERE built = "1925" AND type = "warren pony truss"
Game 1's sum of attendance is?
CREATE TABLE table_name_4 (attendance INTEGER, game VARCHAR)
SELECT SUM(attendance) FROM table_name_4 WHERE game = 1
Kimball, toby toby kimball is a player; How many times at school/ club team/country was the player present?
CREATE TABLE table_11734041_10 (school_club_team_country VARCHAR, player VARCHAR)
SELECT COUNT(school_club_team_country) FROM table_11734041_10 WHERE player = "Kimball, Toby Toby Kimball"
What is the position of cfl team saskatchewan (7)?
CREATE TABLE table_26996293_7 (position VARCHAR, cfl_team VARCHAR)
SELECT position FROM table_26996293_7 WHERE cfl_team = "Saskatchewan (7)"
What was the score for the loss of McDowell (12-7)?
CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_39 WHERE loss = "mcdowell (12-7)"
Who is the opponent in 1976?
CREATE TABLE table_name_98 (opponent VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_98 WHERE year = 1976