answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT MAX(2010) FROM table_30133_3 WHERE economy = "China"
|
CREATE TABLE table_30133_3 (economy VARCHAR)
|
What is the maximum 2010 value for China?
|
SELECT gap_from_thailand_as_of_2012__times_ FROM table_30133_3 WHERE gap_from_thailand_as_of_1980__times_ = "0.29"
|
CREATE TABLE table_30133_3 (gap_from_thailand_as_of_2012__times_ VARCHAR, gap_from_thailand_as_of_1980__times_ VARCHAR)
|
What is the gap from Thailand as of 2012 for the country whose 1980 gap was 0.29?
|
SELECT COUNT(gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_) FROM table_30133_3 WHERE 2012 = 23113
|
CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)
|
How many GDPs as of 2012 after PPP values are associated with a 2012 value of 23113?
|
SELECT MAX(2010) FROM table_30133_3 WHERE gap_from_thailand_as_of_1980__times_ = "2.43"
|
CREATE TABLE table_30133_3 (gap_from_thailand_as_of_1980__times_ VARCHAR)
|
What is the max 2010 value for a 1980 gap value is 2.43?
|
SELECT uk_total_viewers FROM table_30139175_3 WHERE episode_no = 50
|
CREATE TABLE table_30139175_3 (uk_total_viewers VARCHAR, episode_no VARCHAR)
|
How many viewers in the UK did episode 50 have?
|
SELECT doubles_w_l FROM table_name_91 WHERE player = "laurynas grigelis"
|
CREATE TABLE table_name_91 (doubles_w_l VARCHAR, player VARCHAR)
|
Tell me the doubles W-L for player of laurynas grigelis
|
SELECT most_recent_cap FROM table_name_64 WHERE goals > 17 AND name = "brian turner"
|
CREATE TABLE table_name_64 (most_recent_cap VARCHAR, goals VARCHAR, name VARCHAR)
|
What is the newest Cap with a Goals stat larger than 17 and which was done by Brian Turner?
|
SELECT nationality FROM table_name_65 WHERE school_club_team = "barton cc (ks)"
|
CREATE TABLE table_name_65 (nationality VARCHAR, school_club_team VARCHAR)
|
What is the nationality of school/club team of barton cc (ks)?
|
SELECT school_club_team FROM table_name_66 WHERE player = "shawn respert"
|
CREATE TABLE table_name_66 (school_club_team VARCHAR, player VARCHAR)
|
Shawn Respert play for what school/club team?
|
SELECT position FROM table_name_88 WHERE years_in_toronto = "1996-97"
|
CREATE TABLE table_name_88 (position VARCHAR, years_in_toronto VARCHAR)
|
Who has position in year 1996-97 in Toronto?
|
SELECT school_club_team FROM table_name_38 WHERE player = "roy rogers"
|
CREATE TABLE table_name_38 (school_club_team VARCHAR, player VARCHAR)
|
Roy Rogers play for what school/club team?
|
SELECT years_in_toronto FROM table_name_87 WHERE nationality = "united states" AND school_club_team = "arkansas"
|
CREATE TABLE table_name_87 (years_in_toronto VARCHAR, nationality VARCHAR, school_club_team VARCHAR)
|
What year is United States school/club team from Arkansas play in Toronto
|
SELECT player FROM table_name_8 WHERE nationality = "united states" AND years_in_toronto = "2003-06"
|
CREATE TABLE table_name_8 (player VARCHAR, nationality VARCHAR, years_in_toronto VARCHAR)
|
Who is the player from United States who play in year 2003-06 in Toronto?
|
SELECT AVG(units_sold) FROM table_name_46 WHERE publisher = "square enix"
|
CREATE TABLE table_name_46 (units_sold INTEGER, publisher VARCHAR)
|
Tell me the average units sold for square enix
|
SELECT date FROM table_name_60 WHERE partnering = "nicolas pereira"
|
CREATE TABLE table_name_60 (date VARCHAR, partnering VARCHAR)
|
Tell me the date for nicolas pereira
|
SELECT date FROM table_name_14 WHERE year = 1986
|
CREATE TABLE table_name_14 (date VARCHAR, year VARCHAR)
|
what is the date in 1986?
|
SELECT AVG(year) FROM table_name_15 WHERE venue = "ponce, puerto rico"
|
CREATE TABLE table_name_15 (year INTEGER, venue VARCHAR)
|
What is the average year for Ponce, Puerto Rico events?
|
SELECT year FROM table_name_9 WHERE event = "junior race" AND position = "8th"
|
CREATE TABLE table_name_9 (year VARCHAR, event VARCHAR, position VARCHAR)
|
What year did she place 8th in the junior race?
|
SELECT nhl_team FROM table_name_69 WHERE player = "ryan johnson"
|
CREATE TABLE table_name_69 (nhl_team VARCHAR, player VARCHAR)
|
Tell me the NHL team for ryan johnson
|
SELECT position FROM table_name_68 WHERE pick = "47"
|
CREATE TABLE table_name_68 (position VARCHAR, pick VARCHAR)
|
Tell me the position for pick of 47
|
SELECT pick FROM table_name_12 WHERE nhl_team = "pittsburgh penguins"
|
CREATE TABLE table_name_12 (pick VARCHAR, nhl_team VARCHAR)
|
Tell me the pick for pittsburgh penguins
|
SELECT nationality FROM table_name_51 WHERE player = "rudolf vercik"
|
CREATE TABLE table_name_51 (nationality VARCHAR, player VARCHAR)
|
Tell me the nationality for rudolf vercik
|
SELECT player FROM table_name_85 WHERE nationality = "canada" AND pick = "43"
|
CREATE TABLE table_name_85 (player VARCHAR, nationality VARCHAR, pick VARCHAR)
|
Tell me the player for nationality of canada for pick of 43
|
SELECT college_junior_club_team FROM table_name_2 WHERE player = "jason holland"
|
CREATE TABLE table_name_2 (college_junior_club_team VARCHAR, player VARCHAR)
|
Tell me the college for jason holland
|
SELECT date FROM table_name_91 WHERE winning_driver = "rudolf caracciola" AND name = "avusrennen"
|
CREATE TABLE table_name_91 (date VARCHAR, winning_driver VARCHAR, name VARCHAR)
|
Tell me the date for rudolf caracciola for avusrennen
|
SELECT circuit FROM table_name_79 WHERE date = "10 may" AND name = "targa florio"
|
CREATE TABLE table_name_79 (circuit VARCHAR, date VARCHAR, name VARCHAR)
|
Tell me the circuit for 10 may for targa florio
|
SELECT score FROM table_name_20 WHERE tournament = "washington"
|
CREATE TABLE table_name_20 (score VARCHAR, tournament VARCHAR)
|
What was the score of the Washington tournament?
|
SELECT date FROM table_name_95 WHERE opponent = "patty fendick"
|
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR)
|
On what date was Patty Fendick an opponent?
|
SELECT score FROM table_name_62 WHERE venue = "vasil levski national stadium, sofia"
|
CREATE TABLE table_name_62 (score VARCHAR, venue VARCHAR)
|
What score does Vasil Levski National Stadium, Sofia earn?
|
SELECT score FROM table_name_96 WHERE competition = "friendly" AND venue = "vasil levski national stadium, sofia"
|
CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR, venue VARCHAR)
|
What score did vasil levski national stadium, sofia, which was friendly during competition, earn?
|
SELECT nationality FROM table_name_68 WHERE nhl_team = "washington capitals"
|
CREATE TABLE table_name_68 (nationality VARCHAR, nhl_team VARCHAR)
|
What is the nationality of the Washington Capitals?
|
SELECT nhl_team FROM table_name_57 WHERE player = "roman vopat"
|
CREATE TABLE table_name_57 (nhl_team VARCHAR, player VARCHAR)
|
On what NHL team does Roman Vopat play for?
|
SELECT position FROM table_name_1 WHERE nationality = "ukraine"
|
CREATE TABLE table_name_1 (position VARCHAR, nationality VARCHAR)
|
What is the position of the player from the Ukraine?
|
SELECT tournament FROM table_name_58 WHERE result = "12th"
|
CREATE TABLE table_name_58 (tournament VARCHAR, result VARCHAR)
|
What Tournament did he place 12th in?
|
SELECT MIN(year) FROM table_name_9 WHERE result = "12th"
|
CREATE TABLE table_name_9 (year INTEGER, result VARCHAR)
|
What was the first year he placed 12th
|
SELECT circuit FROM table_name_5 WHERE winning_constructor = "alfa romeo" AND name = "swedish ice race"
|
CREATE TABLE table_name_5 (circuit VARCHAR, winning_constructor VARCHAR, name VARCHAR)
|
Tell me the circuit for alfa romeo swedish ice race
|
SELECT date FROM table_name_60 WHERE winning_constructor = "bugatti" AND winning_driver = "stanislas czaykowski"
|
CREATE TABLE table_name_60 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)
|
Tell me the date for bugatti fpr stanislas czaykowski
|
SELECT circuit FROM table_name_99 WHERE date = "20 august"
|
CREATE TABLE table_name_99 (circuit VARCHAR, date VARCHAR)
|
Tell me the circuit for 20 august
|
SELECT winning_driver FROM table_name_70 WHERE name = "avusrennen"
|
CREATE TABLE table_name_70 (winning_driver VARCHAR, name VARCHAR)
|
Tell me the winning driver for avusrennen
|
SELECT report FROM table_name_96 WHERE winning_constructor = "bugatti" AND circuit = "brooklands"
|
CREATE TABLE table_name_96 (report VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)
|
Tell me the report for bugatti and brooklands
|
SELECT COUNT(year) FROM table_name_78 WHERE location = "helsinki"
|
CREATE TABLE table_name_78 (year VARCHAR, location VARCHAR)
|
How many years has there been a competition in Helsinki?
|
SELECT competition FROM table_name_96 WHERE year < 1982 AND score = "2:3"
|
CREATE TABLE table_name_96 (competition VARCHAR, year VARCHAR, score VARCHAR)
|
Which competition before 1982 had a score of 2:3?
|
SELECT competition FROM table_name_51 WHERE year > 1980 AND score = "0:5" AND location = "jerusalem"
|
CREATE TABLE table_name_51 (competition VARCHAR, location VARCHAR, year VARCHAR, score VARCHAR)
|
Which competition occurred after 1980 with a score of 0:5 in Jerusalem?
|
SELECT date FROM table_name_6 WHERE attendance = "51,342"
|
CREATE TABLE table_name_6 (date VARCHAR, attendance VARCHAR)
|
When was there an attendance of 51,342?
|
SELECT attendance FROM table_name_88 WHERE week = 7
|
CREATE TABLE table_name_88 (attendance VARCHAR, week VARCHAR)
|
What was the attendance during week 7?
|
SELECT result FROM table_name_12 WHERE week = 16
|
CREATE TABLE table_name_12 (result VARCHAR, week VARCHAR)
|
What was the score during week 16?
|
SELECT minister FROM table_name_58 WHERE left_office = "1960"
|
CREATE TABLE table_name_58 (minister VARCHAR, left_office VARCHAR)
|
Who is the mInister who left office during 1960?
|
SELECT government FROM table_name_63 WHERE number = 6
|
CREATE TABLE table_name_63 (government VARCHAR, number VARCHAR)
|
Which government is number 6?
|
SELECT rider FROM table_name_59 WHERE speed = "90.57mph"
|
CREATE TABLE table_name_59 (rider VARCHAR, speed VARCHAR)
|
Which rider had a speed of 90.57mph?
|
SELECT country FROM table_name_63 WHERE place < 8 AND points < 5
|
CREATE TABLE table_name_63 (country VARCHAR, place VARCHAR, points VARCHAR)
|
Which country has a place smaller than 8 and points smaller than 5?
|
SELECT MIN(losses) FROM table_name_38 WHERE wins < 4 AND ties = 2 AND place = 5
|
CREATE TABLE table_name_38 (losses INTEGER, place VARCHAR, wins VARCHAR, ties VARCHAR)
|
What is the lowest number of Losses when the number of Wins is less than 4, the number of Tie is 2, and the Place is 5?
|
SELECT post_season_record_[e_] FROM table_name_55 WHERE mlb_affiliate = "kansas city"
|
CREATE TABLE table_name_55 (post_season_record_ VARCHAR, e_ VARCHAR, mlb_affiliate VARCHAR)
|
Tell me the post-season record for kansas city
|
SELECT venue FROM table_name_14 WHERE date = "29 april 2007"
|
CREATE TABLE table_name_14 (venue VARCHAR, date VARCHAR)
|
Tell me the venue of 29 april 2007
|
SELECT competition FROM table_name_87 WHERE date = "20 august 2008"
|
CREATE TABLE table_name_87 (competition VARCHAR, date VARCHAR)
|
Tell me the competition of 20 august 2008
|
SELECT date FROM table_name_89 WHERE venue = "stade des martyrs, dr congo"
|
CREATE TABLE table_name_89 (date VARCHAR, venue VARCHAR)
|
Tell me the date of stade des martyrs, dr congo
|
SELECT amount__millions_ FROM table_name_92 WHERE payee = "infotalent"
|
CREATE TABLE table_name_92 (amount__millions_ VARCHAR, payee VARCHAR)
|
How much money, in millions, is paid to Infotalent?
|
SELECT purpose FROM table_name_52 WHERE payee = "euromarine"
|
CREATE TABLE table_name_52 (purpose VARCHAR, payee VARCHAR)
|
What is the purpose of Euromarine?
|
SELECT signatories FROM table_name_71 WHERE purpose = "police security" AND payee = "infotalent"
|
CREATE TABLE table_name_71 (signatories VARCHAR, purpose VARCHAR, payee VARCHAR)
|
What signatory has a purpose of police security and Infotalent payee?
|
SELECT MAX(launched) FROM table_name_1 WHERE name = "trn"
|
CREATE TABLE table_name_1 (launched INTEGER, name VARCHAR)
|
Tell me the highest launced for trn
|
SELECT period FROM table_name_25 WHERE place = "red rock"
|
CREATE TABLE table_name_25 (period VARCHAR, place VARCHAR)
|
Tell me the period for red rock
|
SELECT province FROM table_name_15 WHERE location = "260km ese of calgary"
|
CREATE TABLE table_name_15 (province VARCHAR, location VARCHAR)
|
Tell me the province for 260km ese of calgary
|
SELECT province FROM table_name_49 WHERE period = "1941-1946"
|
CREATE TABLE table_name_49 (province VARCHAR, period VARCHAR)
|
Tell me the province of 1941-1946
|
SELECT degree FROM table_name_90 WHERE award_year = 1965 AND award = "chemistry"
|
CREATE TABLE table_name_90 (degree VARCHAR, award_year VARCHAR, award VARCHAR)
|
Tell me the degree for chemistry 1965
|
SELECT election_date FROM table_name_49 WHERE member = "william richmond category:articles with hcards"
|
CREATE TABLE table_name_49 (election_date VARCHAR, member VARCHAR)
|
What is the Election date for Member william richmond category:articles with hcards?
|
SELECT election_date FROM table_name_16 WHERE electorate = "city of auckland category:articles with hcards"
|
CREATE TABLE table_name_16 (election_date VARCHAR, electorate VARCHAR)
|
What is the election date for the city of auckland category:articles with hcards?
|
SELECT electorate FROM table_name_37 WHERE member = "dingley brittin category:articles with hcards"
|
CREATE TABLE table_name_37 (electorate VARCHAR, member VARCHAR)
|
What electorate does Member dingley brittin category:articles with hcards represent?
|
SELECT election_date FROM table_name_94 WHERE member = "charles brown category:articles with hcards"
|
CREATE TABLE table_name_94 (election_date VARCHAR, member VARCHAR)
|
What is the election date for the electorate of member charles brown category:articles with hcards?
|
SELECT date FROM table_name_4 WHERE acts = "6 bands" AND year > 1981 AND event = "monsters of rock"
|
CREATE TABLE table_name_4 (date VARCHAR, event VARCHAR, acts VARCHAR, year VARCHAR)
|
Tell me the date for acts of 6 bands and year larger than 1981 for monsters of rock
|
SELECT stages FROM table_name_42 WHERE year = 1981
|
CREATE TABLE table_name_42 (stages VARCHAR, year VARCHAR)
|
Tell me the stages for 1981
|
SELECT event FROM table_name_74 WHERE acts = "6 bands"
|
CREATE TABLE table_name_74 (event VARCHAR, acts VARCHAR)
|
Tell me the event for 6 bands
|
SELECT lightweight FROM table_name_79 WHERE information_model = "no" AND flexible = "unknown"
|
CREATE TABLE table_name_79 (lightweight VARCHAR, information_model VARCHAR, flexible VARCHAR)
|
What is the lightweight value with no information model and the flexible value is unknown?
|
SELECT bore FROM table_name_8 WHERE cyl = "9-cyl radial" AND name = "9 ad"
|
CREATE TABLE table_name_8 (bore VARCHAR, cyl VARCHAR, name VARCHAR)
|
What is the bore for a 9-cyl radial on a 9 AD?
|
SELECT bore FROM table_name_9 WHERE name = "18 ab"
|
CREATE TABLE table_name_9 (bore VARCHAR, name VARCHAR)
|
What bore goes with an 18 AB?
|
SELECT venue FROM table_name_45 WHERE notes = "10.93 secs"
|
CREATE TABLE table_name_45 (venue VARCHAR, notes VARCHAR)
|
Tell me the venue for notes of 10.93 secs
|
SELECT venue FROM table_name_81 WHERE year < 2003
|
CREATE TABLE table_name_81 (venue VARCHAR, year INTEGER)
|
Tell me the venue for year less than 2003
|
SELECT SUM(points) FROM table_name_56 WHERE team_chassis = "alfa romeo 184t"
|
CREATE TABLE table_name_56 (points INTEGER, team_chassis VARCHAR)
|
What is the total number of points team Alfa Romeo 184T won?
|
SELECT engine FROM table_name_87 WHERE year > 1984
|
CREATE TABLE table_name_87 (engine VARCHAR, year INTEGER)
|
What engine was used after 1984?
|
SELECT year FROM table_name_72 WHERE points > 0
|
CREATE TABLE table_name_72 (year VARCHAR, points INTEGER)
|
In which year were the points more than 0?
|
SELECT tyres FROM table_name_22 WHERE year > 1984
|
CREATE TABLE table_name_22 (tyres VARCHAR, year INTEGER)
|
What were the Tyres after 1984?
|
SELECT bp_comp_2__˚c_ FROM table_name_32 WHERE _percentage_wt_comp_1 = 76
|
CREATE TABLE table_name_32 (bp_comp_2__˚c_ VARCHAR, _percentage_wt_comp_1 VARCHAR)
|
Tell me the bp comp 2 for % wt comp 1 of 76
|
SELECT COUNT(_percentage_wt_comp_1) FROM table_name_1 WHERE _percentage_wt_comp_2 = 27
|
CREATE TABLE table_name_1 (_percentage_wt_comp_1 VARCHAR, _percentage_wt_comp_2 VARCHAR)
|
Tell me the total number of % wt comp 1 foR % wt comp 2 or 27
|
SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = 90
|
CREATE TABLE table_name_53 (_percentage_of_popular_vote VARCHAR, _number_of_seats_available VARCHAR)
|
What is the percentage of the popular vote when there were 90 seats available?
|
SELECT gold FROM table_name_56 WHERE silver = 39
|
CREATE TABLE table_name_56 (gold VARCHAR, silver VARCHAR)
|
Name the gold for silver of 39
|
SELECT compression_ratio FROM table_name_41 WHERE engine = "302-2v windsor v8"
|
CREATE TABLE table_name_41 (compression_ratio VARCHAR, engine VARCHAR)
|
What is the compression ratio for the 302-2v Windsor v8 engine?
|
SELECT COUNT(games) FROM table_name_21 WHERE rushes = 41 AND yards < 197
|
CREATE TABLE table_name_21 (games VARCHAR, rushes VARCHAR, yards VARCHAR)
|
How many games had 41 rushes and were than 197 yards?
|
SELECT MAX(yards) FROM table_name_48 WHERE rushes < 51 AND games > 12
|
CREATE TABLE table_name_48 (yards INTEGER, rushes VARCHAR, games VARCHAR)
|
What was the highest number of yards in years where there were fewer than 51 rushes and more than 12 games?
|
SELECT MIN(pick__number) FROM table_name_93 WHERE player = "dimelon westfield"
|
CREATE TABLE table_name_93 (pick__number INTEGER, player VARCHAR)
|
What is the pick # for Dimelon Westfield?
|
SELECT result FROM table_name_64 WHERE date = "november 8, 2001"
|
CREATE TABLE table_name_64 (result VARCHAR, date VARCHAR)
|
What was the final score of the November 8, 2001 game?
|
SELECT bullet_tip_color FROM table_name_54 WHERE headstamp_id = "h1z"
|
CREATE TABLE table_name_54 (bullet_tip_color VARCHAR, headstamp_id VARCHAR)
|
Tell me the bullet tip color of headstamp id of h1z
|
SELECT COUNT(gold) FROM table_name_2 WHERE bronze > 0 AND rank = "total" AND "total" > 100
|
CREATE TABLE table_name_2 (gold VARCHAR, bronze VARCHAR, rank VARCHAR)
|
Tell me the total number of gold for bronze more than 0 and total more than 100
|
SELECT MIN(silver) FROM table_name_17 WHERE total < 6 AND rank = "8"
|
CREATE TABLE table_name_17 (silver INTEGER, total VARCHAR, rank VARCHAR)
|
Tell me the least silver for total less than 6 and rank of 8
|
SELECT 1 AS st_leg FROM table_name_85 WHERE team_1 = "marseille"
|
CREATE TABLE table_name_85 (team_1 VARCHAR)
|
What is the first leg score in that match where Marseille was the first team?
|
SELECT discovery___publication_of_name FROM table_name_55 WHERE fossil_record = "still living"
|
CREATE TABLE table_name_55 (discovery___publication_of_name VARCHAR, fossil_record VARCHAR)
|
Tell me the discovery/publication for still living
|
SELECT discovery___publication_of_name FROM table_name_69 WHERE species = "red deer cave people"
|
CREATE TABLE table_name_69 (discovery___publication_of_name VARCHAR, species VARCHAR)
|
Tell me the discovery/publication for red deer cave people
|
SELECT discovery___publication_of_name FROM table_name_78 WHERE species = "h.heidelbergensis"
|
CREATE TABLE table_name_78 (discovery___publication_of_name VARCHAR, species VARCHAR)
|
Tell me the discovery/publicatio of name for h.heidelbergensis
|
SELECT fossil_record FROM table_name_33 WHERE discovery___publication_of_name = "1994/2003"
|
CREATE TABLE table_name_33 (fossil_record VARCHAR, discovery___publication_of_name VARCHAR)
|
Tell me the fossil record for name of 1994/2003
|
SELECT lived_when___mya__ FROM table_name_99 WHERE discovery___publication_of_name = "1994/2003"
|
CREATE TABLE table_name_99 (lived_when___mya__ VARCHAR, discovery___publication_of_name VARCHAR)
|
Tell me lived for name of 1994/2003
|
SELECT date FROM table_name_68 WHERE circuit = "monza"
|
CREATE TABLE table_name_68 (date VARCHAR, circuit VARCHAR)
|
When was the Monza circuit?
|
SELECT win__percentage FROM table_name_4 WHERE conference = "metro"
|
CREATE TABLE table_name_4 (win__percentage VARCHAR, conference VARCHAR)
|
What is Metro's win percentage?
|
SELECT elite_eight FROM table_name_67 WHERE conference = "atlantic 10"
|
CREATE TABLE table_name_67 (elite_eight VARCHAR, conference VARCHAR)
|
How many elite eight teams came from the Atlantic 10?
|
Subsets and Splits
SQL Console for knowrohit07/know_sql
Finds questions in the dataset that contain the word 'god', providing a basic filtered view without much analytical insight.