answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_4 WHERE country = "Iraq"
What 2011 GDP (PPP) billions of USD does Iraq have?
CREATE TABLE table_2248784_4 (country VARCHAR)
SELECT venue FROM table_name_97 WHERE position = "12th (sf)"
What Venue has a Position of 12th (sf)?
CREATE TABLE table_name_97 (venue VARCHAR, position VARCHAR)
SELECT high_points FROM table_17311812_8 WHERE date = "February 11"
What is the high amount of points on February 11?
CREATE TABLE table_17311812_8 (high_points VARCHAR, date VARCHAR)
SELECT navy FROM table_name_84 WHERE home_port = "portsmouth" AND commissioned > 1983 AND name = "middleton"
What is the navy for middleton with a home port of portsmouth after 1983?
CREATE TABLE table_name_84 (navy VARCHAR, name VARCHAR, home_port VARCHAR, commissioned VARCHAR)
SELECT AVG(silver) FROM table_name_82 WHERE gold > 0 AND rank = "1" AND total < 30
What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller than 30?
CREATE TABLE table_name_82 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MIN(assists) FROM table_26360571_2
List the lowest number of assists.
CREATE TABLE table_26360571_2 (assists INTEGER)
SELECT nationality FROM table_name_37 WHERE position = "forward/center"
What nationality is the forward/center position?
CREATE TABLE table_name_37 (nationality VARCHAR, position VARCHAR)
SELECT venue FROM table_name_26 WHERE score = "4-0" AND competition = "2002 tiger cup"
What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition?
CREATE TABLE table_name_26 (venue VARCHAR, score VARCHAR, competition VARCHAR)
SELECT Name, Country FROM member
What are the names and countries of members?
CREATE TABLE member (Name VARCHAR, Country VARCHAR)
SELECT played FROM table_15467476_3 WHERE points_for = "277"
How many games played for teams with 277 points?
CREATE TABLE table_15467476_3 (played VARCHAR, points_for VARCHAR)
SELECT MIN(round) FROM table_name_6 WHERE player = "grant long"
In what Round was Grant Long Drafted?
CREATE TABLE table_name_6 (round INTEGER, player VARCHAR)
SELECT date FROM table_17323042_8 WHERE team = "Miami"
When did they play Miami?
CREATE TABLE table_17323042_8 (date VARCHAR, team VARCHAR)
SELECT origin, COUNT(*) FROM train GROUP BY origin
Find the number of trains starting from each origin.
CREATE TABLE train (origin VARCHAR)
SELECT SUM(electors) FROM table_name_70 WHERE share_of_votes = "11,0%"
What is the total of electors when the share of votes was 11,0%?
CREATE TABLE table_name_70 (electors INTEGER, share_of_votes VARCHAR)
SELECT MIN(wins) FROM table_name_9 WHERE class = "50cc" AND team = "tomos" AND year < 1969
Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969
CREATE TABLE table_name_9 (wins INTEGER, year VARCHAR, class VARCHAR, team VARCHAR)
SELECT AVG(attendance) FROM table_name_23 WHERE record = "19-13"
What was the average attendance when the record was 19-13?
CREATE TABLE table_name_23 (attendance INTEGER, record VARCHAR)
SELECT COUNT(frequency_mhz) FROM table_name_40 WHERE erp_w = "62"
Total frequency with ERP W of 62?
CREATE TABLE table_name_40 (frequency_mhz VARCHAR, erp_w VARCHAR)
SELECT score FROM table_name_12 WHERE partner = "jeff tarango"
What was the score of the Jeff Tarango game?
CREATE TABLE table_name_12 (score VARCHAR, partner VARCHAR)
SELECT COUNT(game) FROM table_name_12 WHERE high_rebounds = "radoslav nesterović (8)" AND high_assists = "josé calderón (9)"
What numbered game featured a High rebounds of radoslav nesterović (8), and a High assists of josé calderón (9)?
CREATE TABLE table_name_12 (game VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR)
SELECT city FROM table_name_74 WHERE winner = "hallescher fc" AND year = 2008
What was the city where Hallescher FC won in 2008?
CREATE TABLE table_name_74 (city VARCHAR, winner VARCHAR, year VARCHAR)
SELECT SUM(enrollment) FROM table_name_62 WHERE location = "buffalo, new york" AND affiliation = "public" AND founded > 1846
What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?
CREATE TABLE table_name_62 (enrollment INTEGER, founded VARCHAR, location VARCHAR, affiliation VARCHAR)
SELECT AVG(points) FROM table_name_69 WHERE name = "denis kornilov"
Which Points have a Name of denis kornilov?
CREATE TABLE table_name_69 (points INTEGER, name VARCHAR)
SELECT home FROM table_name_35 WHERE visitor = "warriors"
What is the home team of the game with Warriors as the visitor team?
CREATE TABLE table_name_35 (home VARCHAR, visitor VARCHAR)
SELECT COUNT(region) FROM table_2588674_1 WHERE village = "Mongmong-Toto-Maite"
How many places named mongmong-toto-maite?
CREATE TABLE table_2588674_1 (region VARCHAR, village VARCHAR)
SELECT date FROM table_name_58 WHERE record = "19-11"
On what date was the record 19-11?
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
SELECT 2005 AS _film FROM table_26436_2 WHERE original_broadway_cast = "Jesse L. Martin"
who was in the 2005 role when the original broadway cast was played by jesse l. martin?
CREATE TABLE table_26436_2 (original_broadway_cast VARCHAR)
SELECT SUM(bonus) FROM evaluation
What is total bonus given in all evaluations?
CREATE TABLE evaluation (bonus INTEGER)
SELECT place FROM table_name_13 WHERE player = "costantino rocca"
what is the place for costantino rocca?
CREATE TABLE table_name_13 (place VARCHAR, player VARCHAR)
SELECT state FROM table_name_34 WHERE reason_for_termination = "retirement" AND active_service = "1926–1928"
Which state has a Reason for termination of retirement, and an Active service of 1926–1928?
CREATE TABLE table_name_34 (state VARCHAR, reason_for_termination VARCHAR, active_service VARCHAR)
SELECT order_in_office FROM table_2026548_1 WHERE vice_president = "Spiro Agnew"
Name the order in office for spiro agnew
CREATE TABLE table_2026548_1 (order_in_office VARCHAR, vice_president VARCHAR)
SELECT overall_record FROM table_name_4 WHERE last_10_meetings = "ou, 7-3" AND at_norman = "ou, 18-3"
What is the Overall Record when the Last 10 Meetings is ou, 7-3, and Norman is ou, 18-3?
CREATE TABLE table_name_4 (overall_record VARCHAR, last_10_meetings VARCHAR, at_norman VARCHAR)
SELECT COUNT(poles) FROM table_20396_1 WHERE points = "72"
How many poles had 72 points?
CREATE TABLE table_20396_1 (poles VARCHAR, points VARCHAR)
SELECT name, lat, city FROM station ORDER BY lat LIMIT 1
What are the name, latitude, and city of the station with the lowest latitude?
CREATE TABLE station (name VARCHAR, lat VARCHAR, city VARCHAR)
SELECT COUNT(outcome) FROM table_2215159_2 WHERE surface = "Grass" AND partner = "Chuck McKinley" AND year = 1962
How many outcomes were there for matches played with Chuck McKinley on grass in 1962?
CREATE TABLE table_2215159_2 (outcome VARCHAR, year VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT english_title FROM table_name_53 WHERE director_s_ = "fernando meirelles"
What is the English title of the film directed by Fernando Meirelles?
CREATE TABLE table_name_53 (english_title VARCHAR, director_s_ VARCHAR)
SELECT score FROM table_name_20 WHERE date = "november 13, 2005"
What was the score for the match on November 13, 2005?
CREATE TABLE table_name_20 (score VARCHAR, date VARCHAR)
SELECT losing_bonus FROM table_15467476_3 WHERE points_difference = "-99"
What is the losing bonus for the team with a point difference of -99?
CREATE TABLE table_15467476_3 (losing_bonus VARCHAR, points_difference VARCHAR)
SELECT COUNT(date_of_issue) FROM table_298883_5 WHERE obverse = "Kumsusan Memorial Palace"
How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse?
CREATE TABLE table_298883_5 (date_of_issue VARCHAR, obverse VARCHAR)
SELECT AVG(total) FROM table_name_86 WHERE silver > 1 AND sport = "total" AND gold > 1
With more than 1 Gold and Silver and Total Sport, what is the Total?
CREATE TABLE table_name_86 (total INTEGER, gold VARCHAR, silver VARCHAR, sport VARCHAR)
SELECT COUNT(length) FROM table_1603807_2 WHERE line = "line 3"
How many lengths of line 3 are given?
CREATE TABLE table_1603807_2 (length VARCHAR, line VARCHAR)
SELECT MAX(crowd) FROM table_name_97 WHERE venue = "mcg"
What was the highest crowd at the venue MCG?
CREATE TABLE table_name_97 (crowd INTEGER, venue VARCHAR)
SELECT name_of_mill FROM table_name_73 WHERE built = "1802"
What is the Name of the Mill Built in 1802?
CREATE TABLE table_name_73 (name_of_mill VARCHAR, built VARCHAR)
SELECT country FROM table_name_21 WHERE airport = "adelaide airport"
Which country features Adelaide Airport?
CREATE TABLE table_name_21 (country VARCHAR, airport VARCHAR)
SELECT COUNT(season__number) FROM table_15838081_3 WHERE writer_s_ = "Jeff Truman"
Name the number of season number for jeff truman
CREATE TABLE table_15838081_3 (season__number VARCHAR, writer_s_ VARCHAR)
SELECT COUNT(pos) FROM table_name_51 WHERE points < 10 AND qualifying > 7 AND race_1 = "ret" AND driver = "jonathan grant"
What is the total number of positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving?
CREATE TABLE table_name_51 (pos VARCHAR, driver VARCHAR, race_1 VARCHAR, points VARCHAR, qualifying VARCHAR)
SELECT apparatus FROM table_name_9 WHERE rank_final > 6 AND competition_description = "u.s. championships"
What is Apparatus, when Rank-Final is greater than 6, and when Competition Description is "U.S. Championships"?
CREATE TABLE table_name_9 (apparatus VARCHAR, rank_final VARCHAR, competition_description VARCHAR)
SELECT candidates FROM table_1341690_43 WHERE district = "Texas 20"
Name the candidates for texas 20
CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR)
SELECT coach FROM table_name_33 WHERE losses = 215
Who was the coach who had 215 losses?
CREATE TABLE table_name_33 (coach VARCHAR, losses VARCHAR)
SELECT SUM(1992) FROM table_name_14 WHERE 1999 > 1 AND 2008 < 2 AND 2003 < 2
what is the listing for 1992 when 1999 is more than 1, 2008 is less than 2 and 2003 is less than 2?
CREATE TABLE table_name_14 (Id VARCHAR)
SELECT episode_no FROM table_name_78 WHERE no_of_dvds = "28"
WHAT IS THE EPISODE NUMBER THAT HAS 28 DVD?
CREATE TABLE table_name_78 (episode_no VARCHAR, no_of_dvds VARCHAR)
SELECT loss FROM table_name_52 WHERE date = "may 20"
Who took the loss on May 20?
CREATE TABLE table_name_52 (loss VARCHAR, date VARCHAR)
SELECT opponents FROM table_name_17 WHERE date = "4 august 2007"
Date of 4 august 2007 had what opponents?
CREATE TABLE table_name_17 (opponents VARCHAR, date VARCHAR)
SELECT SUM(decile) FROM table_name_37 WHERE roll < 25 AND area = "franz josef"
What is the decile sum with a roll smaller than 25, and franz josef area?
CREATE TABLE table_name_37 (decile INTEGER, roll VARCHAR, area VARCHAR)
SELECT attendance FROM table_name_80 WHERE opponent = "tampa bay buccaneers"
What is the Attendance, when the Opponent is the Tampa Bay Buccaneers?
CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR)
SELECT written_by FROM table_21994729_2 WHERE prod_code = "1APX11"
Who wore the episode with the production code of 1apx11?
CREATE TABLE table_21994729_2 (written_by VARCHAR, prod_code VARCHAR)
SELECT manner_of_departure FROM table_22848931_3 WHERE date_of_vacancy = "1 December 2009"
Name the manner of departure for 1 december 2009
CREATE TABLE table_22848931_3 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT MAX(league_cup_goals) FROM table_name_62 WHERE name = "david beresford" AND fa_cup_goals < 0
What is the most league cup goals for David Beresford having less than 0 FA Cup Goals?
CREATE TABLE table_name_62 (league_cup_goals INTEGER, name VARCHAR, fa_cup_goals VARCHAR)
SELECT MAX(december) FROM table_name_9 WHERE record = "11-13-5"
What is the December game that led to an 11-13-5 record?
CREATE TABLE table_name_9 (december INTEGER, record VARCHAR)
SELECT SUM(week) FROM table_name_49 WHERE attendance = 62 OFFSET 233
Name the sum of week with attendance of 62,233
CREATE TABLE table_name_49 (week INTEGER, attendance VARCHAR)
SELECT name FROM table_name_4 WHERE red_list = 7 AND order = "artiodactyla" AND species_authority = "cervus elaphus linnaeus, 1758"
What is the name for the red list of 7, the artiodactyla order, and Species Authority of cervus elaphus linnaeus, 1758?
CREATE TABLE table_name_4 (name VARCHAR, species_authority VARCHAR, red_list VARCHAR, order VARCHAR)
SELECT player FROM table_name_22 WHERE position = "goaltender" AND nhl_team = "vancouver canucks"
Who plays goaltender for the Vancouver Canucks?
CREATE TABLE table_name_22 (player VARCHAR, position VARCHAR, nhl_team VARCHAR)
SELECT COUNT(laps) FROM table_name_99 WHERE rank = "3"
What is the sum of all laps with rank 3?
CREATE TABLE table_name_99 (laps VARCHAR, rank VARCHAR)
SELECT 2004 FROM table_name_86 WHERE 2009 = "grand slam tournaments"
What is the 2004 value for the 2009 Grand slam tournaments?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT programming FROM table_name_98 WHERE aspect = "4:3" AND psip_short_name = "metvla"
Which Programming has an Aspect of 4:3 and a PSIP Short Name of metvla?
CREATE TABLE table_name_98 (programming VARCHAR, aspect VARCHAR, psip_short_name VARCHAR)
SELECT Population, LifeExpectancy FROM country WHERE Name = "Brazil"
What are the population and life expectancies in Brazil?
CREATE TABLE country (Population VARCHAR, LifeExpectancy VARCHAR, Name VARCHAR)
SELECT school FROM table_name_65 WHERE year < 2013 AND event = "100 breaststroke"
What is School, when Year is less than 2013, and when Event is "100 Breaststroke"?
CREATE TABLE table_name_65 (school VARCHAR, year VARCHAR, event VARCHAR)
SELECT AVG(round) FROM table_name_81 WHERE school = "georgia tech" AND pick > 103
What is the average round for Georgia Tech with a pick greater than 103?
CREATE TABLE table_name_81 (round INTEGER, school VARCHAR, pick VARCHAR)
SELECT hometown_school FROM table_name_94 WHERE team = "cleveland indians"
Which Hometown/School has a Team of cleveland indians?
CREATE TABLE table_name_94 (hometown_school VARCHAR, team VARCHAR)
SELECT date FROM table_name_27 WHERE away_team = "north melbourne"
What date did the Away team, North Melbourne, play Geelong?
CREATE TABLE table_name_27 (date VARCHAR, away_team VARCHAR)
SELECT high_rebounds FROM table_17060277_7 WHERE team = "Memphis"
Name the high rebounds for memphis
CREATE TABLE table_17060277_7 (high_rebounds VARCHAR, team VARCHAR)
SELECT location FROM table_1997759_1 WHERE last_flew = "11 June 2000"
at what location is the last flew on 11 june 2000
CREATE TABLE table_1997759_1 (location VARCHAR, last_flew VARCHAR)
SELECT COUNT(pick__number) FROM table_name_5 WHERE round = 12
How many picks for round 12?
CREATE TABLE table_name_5 (pick__number VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_58 WHERE attendance = "55,340"
Attendance of 55,340 had what opponent?
CREATE TABLE table_name_58 (opponent VARCHAR, attendance VARCHAR)
SELECT class FROM table_name_21 WHERE erp_w = 222
Which Class has an ERP W of 222?
CREATE TABLE table_name_21 (class VARCHAR, erp_w VARCHAR)
SELECT epicenter FROM table_name_54 WHERE date = "december 1, 2012"
Where was the epicenter of the quake on December 1, 2012?
CREATE TABLE table_name_54 (epicenter VARCHAR, date VARCHAR)
SELECT player FROM table_name_52 WHERE pick = 252
What player was drafted 252?
CREATE TABLE table_name_52 (player VARCHAR, pick VARCHAR)
SELECT AVG(points) FROM table_name_13 WHERE tied > 8 AND games < 82 AND coach = "bryan mclay † morris lallo ‡ gerry moore ‡" AND goals_against > 322
What is the points average when the tied is greater than 8, less than 82 games and the coach of Bryan Mclay † Morris Lallo ‡ Gerry Moore ‡, and greater than 322 goals?
CREATE TABLE table_name_13 (points INTEGER, goals_against VARCHAR, coach VARCHAR, tied VARCHAR, games VARCHAR)
SELECT position FROM table_name_73 WHERE nationality = "france"
WHAT IS THE POSITION OF FRANCE?
CREATE TABLE table_name_73 (position VARCHAR, nationality VARCHAR)
SELECT 2008 FROM table_name_2 WHERE 2009 = "a" AND 2010 = "a" AND 2012 = "1r" AND tournament = "cincinnati masters"
Which 2008 has a 2009 of A, and a 2010 of A, and a 2012 of 1r, and a Tournament of cincinnati masters?
CREATE TABLE table_name_2 (tournament VARCHAR)
SELECT d_45_o FROM table_name_30 WHERE d_46_o = "d 26"
Name the D 45 O that has D 46 O of d 26
CREATE TABLE table_name_30 (d_45_o VARCHAR, d_46_o VARCHAR)
SELECT round FROM table_21256068_3 WHERE score = "50-10"
state the round that had a game score 50-10
CREATE TABLE table_21256068_3 (round VARCHAR, score VARCHAR)
SELECT date FROM table_name_15 WHERE away_team = "burton albion"
WHAT IS THE DATE WITH AN AWAY TEAM OF BURTON ALBION?
CREATE TABLE table_name_15 (date VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_91 WHERE home = "montreal" AND record = "40–24–6"
What was the score of the game where Montreal was the home team and the Devils had a record of 40–24–6?
CREATE TABLE table_name_91 (score VARCHAR, home VARCHAR, record VARCHAR)
SELECT MAX(points) FROM table_15405904_1 WHERE position = 2
How many points are listed when the position is 2?
CREATE TABLE table_15405904_1 (points INTEGER, position VARCHAR)
SELECT COUNT(overall) FROM table_21756039_1 WHERE year = "2010-2011"
How many overall in the year 2010-2011?
CREATE TABLE table_21756039_1 (overall VARCHAR, year VARCHAR)
SELECT elite_eight FROM table_name_56 WHERE conference = "big west"
What is the elite eight result for the big west?
CREATE TABLE table_name_56 (elite_eight VARCHAR, conference VARCHAR)
SELECT winners_from_previous_round FROM table_1281200_1 WHERE phase = "First phase" AND clubs_involved = 16
During the first phase portion of phase and having 16 clubs involved; what would you find for the winners from previous round?
CREATE TABLE table_1281200_1 (winners_from_previous_round VARCHAR, phase VARCHAR, clubs_involved VARCHAR)
SELECT surface FROM table_name_56 WHERE outcome = "runner-up" AND championship = "toronto"
What is the listed surface for the Championship of Toronto that had a runner-up outcome?
CREATE TABLE table_name_56 (surface VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014
Show the pair of male and female names in all weddings after year 2014
CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, year INTEGER); CREATE TABLE people (name VARCHAR, people_id VARCHAR)
SELECT SUM(round) FROM table_name_55 WHERE college = "michigan" AND overall > 37
WHAT IS THE ROUND FROM MICHIGAN COLLEGE, AND OVERALL LARGER THAN 37?
CREATE TABLE table_name_55 (round INTEGER, college VARCHAR, overall VARCHAR)
SELECT loss FROM table_name_51 WHERE date = "april 25"
How much was the loss of April 25?
CREATE TABLE table_name_51 (loss VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_31 WHERE away_team = "south melbourne"
What did the home team score when the away team was South Melbourne?
CREATE TABLE table_name_31 (home_team VARCHAR, away_team VARCHAR)
SELECT SUM(polish_cup) FROM table_name_34 WHERE player = "maciej iwański" AND ekstraklasa < 1
What is the sum of Polish Cup, when Player is "Maciej Iwański", and when Ekstraklasa is less than 1?
CREATE TABLE table_name_34 (polish_cup INTEGER, player VARCHAR, ekstraklasa VARCHAR)
SELECT no_s_ FROM table_name_4 WHERE height_in_ft = "6-7" AND position = "guard"
Name the numbers for the player with a height in ft of 6-7 for the guard
CREATE TABLE table_name_4 (no_s_ VARCHAR, height_in_ft VARCHAR, position VARCHAR)
SELECT party FROM table_name_4 WHERE district = "california 35"
What is the party of the california 35 district?
CREATE TABLE table_name_4 (party VARCHAR, district VARCHAR)
SELECT tournament FROM table_name_14 WHERE date = "august 17, 2008"
what is the tournament on august 17, 2008?
CREATE TABLE table_name_14 (tournament VARCHAR, date VARCHAR)
SELECT game FROM table_30049462_8 WHERE score = "L 111–126"
Name the game for l 111–126
CREATE TABLE table_30049462_8 (game VARCHAR, score VARCHAR)
SELECT MIN(rank) FROM table_name_89 WHERE taijiquan > 9.42 AND total = 19.02
What is the lowest rank of the athlete with a taijiquan greater than 9.42 and a 19.02 total?
CREATE TABLE table_name_89 (rank INTEGER, taijiquan VARCHAR, total VARCHAR)
SELECT song_choice FROM table_27614571_1 WHERE theme = "Samba"
What was Barreto's song choice when the theme was samba?
CREATE TABLE table_27614571_1 (song_choice VARCHAR, theme VARCHAR)
SELECT margin_of_victory FROM table_name_69 WHERE date = "mar 18, 1979"
What was the margin of victory on Mar 18, 1979?
CREATE TABLE table_name_69 (margin_of_victory VARCHAR, date VARCHAR)