answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT score FROM table_name_62 WHERE opponent = "seattle"
|
CREATE TABLE table_name_62 (score VARCHAR, opponent VARCHAR)
|
Which Score has an Opponent of seattle?
|
SELECT record FROM table_name_58 WHERE high_points = "hoffman (16)"
|
CREATE TABLE table_name_58 (record VARCHAR, high_points VARCHAR)
|
Which Record has a High points of hoffman (16)?
|
SELECT MIN(round) FROM table_name_51 WHERE record = "5-3 (1)"
|
CREATE TABLE table_name_51 (round INTEGER, record VARCHAR)
|
Which round has a record of 5-3 (1)?
|
SELECT djurgården_scorers FROM table_name_21 WHERE venue = "idrottsparken"
|
CREATE TABLE table_name_21 (djurgården_scorers VARCHAR, venue VARCHAR)
|
Who were the Djurgarden scorers when the venue was Idrottsparken?
|
SELECT series FROM table_name_95 WHERE team = "gunbroker racing"
|
CREATE TABLE table_name_95 (series VARCHAR, team VARCHAR)
|
what is the series when the team is gunbroker racing?
|
SELECT team FROM table_name_18 WHERE make = "dodge" AND year > 2008
|
CREATE TABLE table_name_18 (team VARCHAR, make VARCHAR, year VARCHAR)
|
what is the team when the make is dodge and the year is after 2008?
|
SELECT make FROM table_name_88 WHERE year = 2008
|
CREATE TABLE table_name_88 (make VARCHAR, year VARCHAR)
|
what is the make for the year 2008?
|
SELECT SUM(year) FROM table_name_87 WHERE driver = "kevin lepage"
|
CREATE TABLE table_name_87 (year INTEGER, driver VARCHAR)
|
what is the year when the driver was kevin lepage?
|
SELECT team FROM table_name_54 WHERE schedule = "limited" AND year < 2007 AND driver = "jason white"
|
CREATE TABLE table_name_54 (team VARCHAR, driver VARCHAR, schedule VARCHAR, year VARCHAR)
|
what is the team when the schedule is limited, year is earlier than 2007 and the driver is jason white?
|
SELECT MIN(rank) FROM table_name_44 WHERE games = 37 AND points > 613
|
CREATE TABLE table_name_44 (rank INTEGER, games VARCHAR, points VARCHAR)
|
Which rank is the lowest with 37 games and more than 613 points?
|
SELECT MAX(rank) FROM table_name_99 WHERE team = "grupo capitol valladolid" AND games > 34
|
CREATE TABLE table_name_99 (rank INTEGER, team VARCHAR, games VARCHAR)
|
What is Grupo Capitol Valladolid's highest rank with more than 34 games?
|
SELECT COUNT(points) FROM table_name_80 WHERE rank = 5 AND games > 34
|
CREATE TABLE table_name_80 (points VARCHAR, rank VARCHAR, games VARCHAR)
|
How many points are there for rank 5 with more than 34 games?
|
SELECT location FROM table_name_35 WHERE name = "kap shui mun bridge"
|
CREATE TABLE table_name_35 (location VARCHAR, name VARCHAR)
|
Where is the kap shui mun bridge?
|
SELECT tournament FROM table_name_32 WHERE 2013 = "2r" AND 2010 = "1r"
|
CREATE TABLE table_name_32 (tournament VARCHAR)
|
What tournament shows 2013 as 2r, and a 2010 as 1r?
|
SELECT 2013 FROM table_name_77 WHERE 2008 = "1r"
|
CREATE TABLE table_name_77 (Id VARCHAR)
|
What shows for 2013 when the 2008 is 1r?
|
SELECT 2011 FROM table_name_49 WHERE 2012 = "q1" AND 2010 = "4r"
|
CREATE TABLE table_name_49 (Id VARCHAR)
|
What shows for 2011 when 2012 is q1, and a 2010 is 4r?
|
SELECT tournament FROM table_name_4 WHERE 2010 = "1r" AND 2008 = "1r"
|
CREATE TABLE table_name_4 (tournament VARCHAR)
|
What tournament has a 2010 of 1r, and a 2008 of 1r?
|
SELECT 2011 FROM table_name_82 WHERE tournament = "french open"
|
CREATE TABLE table_name_82 (tournament VARCHAR)
|
What shows for 2011 at the French open?
|
SELECT 2013 FROM table_name_16 WHERE 2012 = "2r"
|
CREATE TABLE table_name_16 (Id VARCHAR)
|
What shows for 2013 when 2012 is 2r?
|
SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = "quebec" AND south_asians_2001 < 59 OFFSET 510
|
CREATE TABLE table_name_19 (south_asians_2011 VARCHAR, province VARCHAR, south_asians_2001 VARCHAR)
|
How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?
|
SELECT province FROM table_name_56 WHERE south_asians_2001 < 190 AND south_asians_2011 = 115
|
CREATE TABLE table_name_56 (province VARCHAR, south_asians_2001 VARCHAR, south_asians_2011 VARCHAR)
|
Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?
|
SELECT AVG(south_asians_2001) FROM table_name_86 WHERE province = "alberta" AND south_asians_2011 > 159 OFFSET 055
|
CREATE TABLE table_name_86 (south_asians_2001 INTEGER, province VARCHAR, south_asians_2011 VARCHAR)
|
How many South Asians on average were in Alberta in 2001 and in 2011 had 159,055?
|
SELECT result FROM table_name_62 WHERE extra = "heptathlon" AND venue = "götzis , austria"
|
CREATE TABLE table_name_62 (result VARCHAR, extra VARCHAR, venue VARCHAR)
|
What is Result, when Extra is "Heptathlon", and when Venue is "Götzis , Austria"?
|
SELECT COUNT(year) FROM table_name_50 WHERE tournament = "world championships"
|
CREATE TABLE table_name_50 (year VARCHAR, tournament VARCHAR)
|
What is the total number of Year(s), when Tournament is "World Championships"?
|
SELECT venue FROM table_name_63 WHERE year = 2005 AND result = "8th"
|
CREATE TABLE table_name_63 (venue VARCHAR, year VARCHAR, result VARCHAR)
|
What is Venue, when Year is 2005, and when Result is 8th?
|
SELECT tournament FROM table_name_50 WHERE result = "18th"
|
CREATE TABLE table_name_50 (tournament VARCHAR, result VARCHAR)
|
What is Tournament, when Result is 18th?
|
SELECT venue FROM table_name_89 WHERE year > 2003 AND tournament = "hypo-meeting"
|
CREATE TABLE table_name_89 (venue VARCHAR, year VARCHAR, tournament VARCHAR)
|
What is Venue, when Year is after 2003, and when Tournament is "Hypo-Meeting"?
|
SELECT to_par FROM table_name_94 WHERE score = 71 - 71 - 70 - 70 = 282
|
CREATE TABLE table_name_94 (to_par VARCHAR, score VARCHAR)
|
When the score was 71-71-70-70=282 what was the To par recorded?
|
SELECT score FROM table_name_68 WHERE player = "tom lehman"
|
CREATE TABLE table_name_68 (score VARCHAR, player VARCHAR)
|
What was the score for Tom Lehman?
|
SELECT SUM(november) FROM table_name_40 WHERE game > 23
|
CREATE TABLE table_name_40 (november INTEGER, game INTEGER)
|
What is the sum of November, when Game is greater than 23?
|
SELECT SUM(november) FROM table_name_55 WHERE game = 17
|
CREATE TABLE table_name_55 (november INTEGER, game VARCHAR)
|
What is the sum of November, when Game is "17"?
|
SELECT MAX(game) FROM table_name_44 WHERE opponent = "chicago black hawks" AND november < 16
|
CREATE TABLE table_name_44 (game INTEGER, opponent VARCHAR, november VARCHAR)
|
What is the highest Game, when Opponent is "Chicago Black Hawks", and when November is less than 16?
|
SELECT player FROM table_name_87 WHERE total = 297
|
CREATE TABLE table_name_87 (player VARCHAR, total VARCHAR)
|
What player has a total of 297?
|
SELECT country FROM table_name_22 WHERE total < 289 AND finish = "t2"
|
CREATE TABLE table_name_22 (country VARCHAR, total VARCHAR, finish VARCHAR)
|
Which country has a total less than 289 and finished t2?
|
SELECT player FROM table_name_89 WHERE finish = "t35"
|
CREATE TABLE table_name_89 (player VARCHAR, finish VARCHAR)
|
Which player finished t35?
|
SELECT finish FROM table_name_54 WHERE total > 289 AND year_s__won = "1979"
|
CREATE TABLE table_name_54 (finish VARCHAR, total VARCHAR, year_s__won VARCHAR)
|
What finish has a total of more than 289 and won in 1979?
|
SELECT name FROM table_name_30 WHERE moving_to = "nec nijmegen"
|
CREATE TABLE table_name_30 (name VARCHAR, moving_to VARCHAR)
|
What is Name, when Moving To is "NEC Nijmegen"?
|
SELECT date_from FROM table_name_46 WHERE moving_to = "birmingham city"
|
CREATE TABLE table_name_46 (date_from VARCHAR, moving_to VARCHAR)
|
What is Date From, when Moving To is "Birmingham City"?
|
SELECT pos FROM table_name_18 WHERE date_to = "30 june 2009" AND name = "eddie johnson"
|
CREATE TABLE table_name_18 (pos VARCHAR, date_to VARCHAR, name VARCHAR)
|
What is Pos., when Date To is "30 June 2009", and when Name is "Eddie Johnson"?
|
SELECT pos FROM table_name_8 WHERE date_from = "28 august 2008"
|
CREATE TABLE table_name_8 (pos VARCHAR, date_from VARCHAR)
|
What is Pos., when Date From is "28 August 2008"?
|
SELECT moving_to FROM table_name_18 WHERE name = "leon andreasen"
|
CREATE TABLE table_name_18 (moving_to VARCHAR, name VARCHAR)
|
What is Moving To, when Name is "Leon Andreasen"?
|
SELECT date_to FROM table_name_47 WHERE name = "lee cook"
|
CREATE TABLE table_name_47 (date_to VARCHAR, name VARCHAR)
|
What is Date To, when Name is "Lee Cook"?
|
SELECT listed FROM table_name_34 WHERE name = "oakachoy covered bridge"
|
CREATE TABLE table_name_34 (listed VARCHAR, name VARCHAR)
|
When was the oakachoy covered bridge listed?
|
SELECT county FROM table_name_4 WHERE name = "swann covered bridge"
|
CREATE TABLE table_name_4 (county VARCHAR, name VARCHAR)
|
In which county is the swann covered bridge located?
|
SELECT name FROM table_name_17 WHERE county = "blount" AND location = "nectar"
|
CREATE TABLE table_name_17 (name VARCHAR, county VARCHAR, location VARCHAR)
|
Which bridge is located in Nectar, in Blount County?
|
SELECT county FROM table_name_59 WHERE built = "1934"
|
CREATE TABLE table_name_59 (county VARCHAR, built VARCHAR)
|
Which county built a bridge in 1934?
|
SELECT built FROM table_name_78 WHERE county = "blount" AND listed = "1981-08-20" AND location = "cleveland"
|
CREATE TABLE table_name_78 (built VARCHAR, location VARCHAR, county VARCHAR, listed VARCHAR)
|
In which year did Blount County build a bridge in Cleveland that was listed on 1981-08-20?
|
SELECT score FROM table_name_12 WHERE time = "18:00" AND set_3 = "13–25"
|
CREATE TABLE table_name_12 (score VARCHAR, time VARCHAR, set_3 VARCHAR)
|
What is the score with a time at 18:00 and a score for set 3 of 13–25?
|
SELECT set_2 FROM table_name_70 WHERE set_1 = "19–25"
|
CREATE TABLE table_name_70 (set_2 VARCHAR, set_1 VARCHAR)
|
What is the score for set 2 when the score of set 1 is 19–25?
|
SELECT total FROM table_name_41 WHERE time = "16:00" AND set_3 = "18–25"
|
CREATE TABLE table_name_41 (total VARCHAR, time VARCHAR, set_3 VARCHAR)
|
How much is the total with a time at 16:00 and score for set 3 of 18–25?
|
SELECT set_2 FROM table_name_48 WHERE time = "18:00" AND set_1 = "18–25"
|
CREATE TABLE table_name_48 (set_2 VARCHAR, time VARCHAR, set_1 VARCHAR)
|
What is the score for set 2 when the time is 18:00 and the score of set 1 is 18–25?
|
SELECT total FROM table_name_55 WHERE set_3 = "13–25"
|
CREATE TABLE table_name_55 (total VARCHAR, set_3 VARCHAR)
|
What was the total with a score in set 3 of 13–25?
|
SELECT champion__seed_ FROM table_name_1 WHERE score = "79–75 ot"
|
CREATE TABLE table_name_1 (champion__seed_ VARCHAR, score VARCHAR)
|
What was the Champion of the Tournament with a Score of 79–75 OT?
|
SELECT champion__seed_ FROM table_name_78 WHERE score = "65–56"
|
CREATE TABLE table_name_78 (champion__seed_ VARCHAR, score VARCHAR)
|
What was the Champion of the Game with a Score of 65–56?
|
SELECT manufacturer FROM table_name_89 WHERE laps = 21 AND grid > 16 AND rider = "akira ryō"
|
CREATE TABLE table_name_89 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
|
Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira ryō?
|
SELECT time_retired FROM table_name_43 WHERE rider = "daijiro kato"
|
CREATE TABLE table_name_43 (time_retired VARCHAR, rider VARCHAR)
|
Which Time/Retired has a Rider of daijiro kato?
|
SELECT manufacturer FROM table_name_49 WHERE rider = "daijiro kato"
|
CREATE TABLE table_name_49 (manufacturer VARCHAR, rider VARCHAR)
|
Which Manufacturer has a Rider of daijiro kato?
|
SELECT time_retired FROM table_name_88 WHERE manufacturer = "yamaha" AND rider = "garry mccoy"
|
CREATE TABLE table_name_88 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR)
|
Which Time/Retired has a Manufacturer of yamaha, and a Rider of garry mccoy?
|
SELECT college_junior_club_team__league_ FROM table_name_25 WHERE round < 2 AND nationality = "united states"
|
CREATE TABLE table_name_25 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)
|
What is the name of the team with round less than 2, and the nationality is the United States?
|
SELECT position FROM table_name_15 WHERE player = "john carlson"
|
CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR)
|
What position does John Carlson play?
|
SELECT high_rebounds FROM table_name_33 WHERE game = 5
|
CREATE TABLE table_name_33 (high_rebounds VARCHAR, game VARCHAR)
|
Who had the highest rebounds on game 5?
|
SELECT COUNT(overall) FROM table_name_39 WHERE round > 7 AND pick < 7
|
CREATE TABLE table_name_39 (overall VARCHAR, round VARCHAR, pick VARCHAR)
|
How many Overall went in a round larger than 7 with a pick less than 7?
|
SELECT COUNT(rank) FROM table_name_33 WHERE events > 23 AND prize_money__$__ > 823 OFFSET 783
|
CREATE TABLE table_name_33 (rank VARCHAR, events VARCHAR, prize_money__$__ VARCHAR)
|
What is the rank for the player with events greater than 23 and prize money in excess of $823,783?
|
SELECT MAX(prize_money__) AS $__ FROM table_name_16 WHERE rank = 1
|
CREATE TABLE table_name_16 (prize_money__ INTEGER, rank VARCHAR)
|
What is the prize money for the player ranked 1?
|
SELECT MIN(round) FROM table_name_82 WHERE event = "kotc 25: flaming fury"
|
CREATE TABLE table_name_82 (round INTEGER, event VARCHAR)
|
What was the lowest round for the KOTC 25: Flaming Fury event?
|
SELECT opponent FROM table_name_82 WHERE event = "kotc 25: flaming fury"
|
CREATE TABLE table_name_82 (opponent VARCHAR, event VARCHAR)
|
Who was the opponent for the KOTC 25: Flaming Fury event?
|
SELECT opponent FROM table_name_12 WHERE round > 1 AND event = "wmma 1: mccorkle vs. heden"
|
CREATE TABLE table_name_12 (opponent VARCHAR, round VARCHAR, event VARCHAR)
|
Who was the opponent in the WMMA 1: McCorkle vs. Heden event that went more than 1 round?
|
SELECT res FROM table_name_83 WHERE record = "25-15"
|
CREATE TABLE table_name_83 (res VARCHAR, record VARCHAR)
|
What was the result when his record was 25-15?
|
SELECT position FROM table_name_22 WHERE round < 6 AND nationality = "denmark"
|
CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, nationality VARCHAR)
|
What is Position, when Round is less than 6, and when Nationality is "Denmark"?
|
SELECT position FROM table_name_31 WHERE nationality = "canada" AND round > 3
|
CREATE TABLE table_name_31 (position VARCHAR, nationality VARCHAR, round VARCHAR)
|
What is Position, when Nationality is "Canada", and when Round is greater than 3?
|
SELECT COUNT(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "kelowna rockets ( whl )"
|
CREATE TABLE table_name_83 (round VARCHAR, college_junior_club_team__league_ VARCHAR)
|
What is the total number of Round, when College/Junior/Club Team (League) is "Kelowna Rockets ( WHL )"?
|
SELECT round FROM table_name_21 WHERE record = "15-5"
|
CREATE TABLE table_name_21 (round VARCHAR, record VARCHAR)
|
What round did the fight last when Mikhail Ilyukhin's record was 15-5?
|
SELECT method FROM table_name_10 WHERE round = "1" AND res = "win" AND record = "13-5"
|
CREATE TABLE table_name_10 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)
|
What method did Mikhail Ilyukhin win the fight in round 1 when his record was 13-5?
|
SELECT method FROM table_name_92 WHERE record = "4-0"
|
CREATE TABLE table_name_92 (method VARCHAR, record VARCHAR)
|
What was the method of resolution when Mikhail Ilyukhin's record was 4-0?
|
SELECT date FROM table_name_97 WHERE score = "123-112"
|
CREATE TABLE table_name_97 (date VARCHAR, score VARCHAR)
|
When was the score 123-112?
|
SELECT opponent FROM table_name_63 WHERE score = "95-118"
|
CREATE TABLE table_name_63 (opponent VARCHAR, score VARCHAR)
|
Who did they play when the score was 95-118?
|
SELECT opponent FROM table_name_11 WHERE score = "95-114"
|
CREATE TABLE table_name_11 (opponent VARCHAR, score VARCHAR)
|
Who did they play when the score was 95-114?
|
SELECT date FROM table_name_38 WHERE score = "92-134"
|
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
|
When was the score 92-134?
|
SELECT score FROM table_name_71 WHERE record = "2-32"
|
CREATE TABLE table_name_71 (score VARCHAR, record VARCHAR)
|
When they were 2-32 what did they score?
|
SELECT MAX(to_par) FROM table_name_24 WHERE total < 290
|
CREATE TABLE table_name_24 (to_par INTEGER, total INTEGER)
|
When the total was smaller than 290, what was the highest To par?
|
SELECT COUNT(to_par) FROM table_name_4 WHERE player = "lee trevino"
|
CREATE TABLE table_name_4 (to_par VARCHAR, player VARCHAR)
|
What is the total number of To par for Lee Trevino?
|
SELECT SUM(to_par) FROM table_name_59 WHERE finish = "t11"
|
CREATE TABLE table_name_59 (to_par INTEGER, finish VARCHAR)
|
What is the sum of To par when the Finish is t11?
|
SELECT AVG(runs) FROM table_name_21 WHERE player = "donald bradman"
|
CREATE TABLE table_name_21 (runs INTEGER, player VARCHAR)
|
What was Donald Bradman's average runs?
|
SELECT MAX(runs) FROM table_name_45 WHERE matches > 5
|
CREATE TABLE table_name_45 (runs INTEGER, matches INTEGER)
|
What was the highest amount of runs for more than 5 matches?
|
SELECT MIN(shot_pct) FROM table_name_2 WHERE blank_ends > 6
|
CREATE TABLE table_name_2 (shot_pct INTEGER, blank_ends INTEGER)
|
What is the lowest Shot Pct., when Blank Ends is greater than 6?
|
SELECT shot_pct FROM table_name_67 WHERE stolen_ends = 2
|
CREATE TABLE table_name_67 (shot_pct VARCHAR, stolen_ends VARCHAR)
|
What is Shot Pct., when Stolen Ends is 2?
|
SELECT COUNT(ends_won) FROM table_name_92 WHERE province = "saskatchewan" AND stolen_ends < 6
|
CREATE TABLE table_name_92 (ends_won VARCHAR, province VARCHAR, stolen_ends VARCHAR)
|
What is the total number of Ends Won, when Province is "Saskatchewan", and when Stolen Ends is less than 6?
|
SELECT date FROM table_name_28 WHERE away_team = "perth wildcats"
|
CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR)
|
On what date were Perth Wildcats the away team?
|
SELECT date FROM table_name_84 WHERE score = "121-113"
|
CREATE TABLE table_name_84 (date VARCHAR, score VARCHAR)
|
On what date was the score 121-113?
|
SELECT date FROM table_name_64 WHERE home_team = "adelaide 36ers"
|
CREATE TABLE table_name_64 (date VARCHAR, home_team VARCHAR)
|
On what date was Adelaide 36ers the home team?
|
SELECT report FROM table_name_6 WHERE venue = "townsville entertainment centre"
|
CREATE TABLE table_name_6 (report VARCHAR, venue VARCHAR)
|
Which report is for Townsville Entertainment Centre?
|
SELECT home_team FROM table_name_7 WHERE score = "85-101"
|
CREATE TABLE table_name_7 (home_team VARCHAR, score VARCHAR)
|
Which home team had a score of 85-101?
|
SELECT Box AS score FROM table_name_21 WHERE home_team = "melbourne tigers"
|
CREATE TABLE table_name_21 (Box VARCHAR, home_team VARCHAR)
|
What was the box core for the Melbourne Tigers?
|
SELECT author FROM table_name_42 WHERE featuring = "leela, the master, kraals"
|
CREATE TABLE table_name_42 (author VARCHAR, featuring VARCHAR)
|
who is the author when featuring is leela, the master, kraals?
|
SELECT author FROM table_name_73 WHERE title = "destination: nerva"
|
CREATE TABLE table_name_73 (author VARCHAR, title VARCHAR)
|
who is the author when the title is destination: nerva?
|
SELECT featuring FROM table_name_18 WHERE title = "energy of the daleks"
|
CREATE TABLE table_name_18 (featuring VARCHAR, title VARCHAR)
|
who is featuring when the title is energy of the daleks?
|
SELECT title FROM table_name_71 WHERE featuring = "leela" AND series_sorted = "4s/b"
|
CREATE TABLE table_name_71 (title VARCHAR, featuring VARCHAR, series_sorted VARCHAR)
|
what is the title when the featuring is leela and series sorted is 4s/b?
|
SELECT opponent FROM table_name_52 WHERE december = 2
|
CREATE TABLE table_name_52 (opponent VARCHAR, december VARCHAR)
|
Can you tell me the Opponent that has the December of 2?
|
SELECT AVG(december) FROM table_name_18 WHERE opponent = "@ toronto maple leafs"
|
CREATE TABLE table_name_18 (december INTEGER, opponent VARCHAR)
|
Can you tell me the average December rhat has the Opponent of @ toronto maple leafs?
|
SELECT score FROM table_name_55 WHERE december = 10
|
CREATE TABLE table_name_55 (score VARCHAR, december VARCHAR)
|
Can you tell me the Score that has the December of 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.