answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT suffix FROM table_name_77 WHERE prefix = "thiocyanato- (-scn)"
CREATE TABLE table_name_77 (suffix VARCHAR, prefix VARCHAR)
Which item has the suffix containing thiocyanato- (-scn) as a prefix?
SELECT formula FROM table_name_7 WHERE chemical_class = "thial"
CREATE TABLE table_name_7 (formula VARCHAR, chemical_class VARCHAR)
Which formula has thial as a chemical class?
SELECT date FROM table_name_97 WHERE away_team = "fitzroy"
CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR)
If fitzroy is the Away team, what Date did they play?
SELECT home_team FROM table_name_89 WHERE date = "15 july 1967" AND away_team = "fitzroy"
CREATE TABLE table_name_89 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
When the Away team is fitzroy on the Date of 15 july 1967, what was the Home team playing?
SELECT venue FROM table_name_5 WHERE away_team = "st kilda"
CREATE TABLE table_name_5 (venue VARCHAR, away_team VARCHAR)
Which Venue has an Away team of st kilda?
SELECT AVG(place) FROM table_name_90 WHERE draw < 2
CREATE TABLE table_name_90 (place INTEGER, draw INTEGER)
What place has a draw smaller than 2?
SELECT launch_date__utc_ FROM table_name_32 WHERE cospar_id_satcat_№ = "1995-022a"
CREATE TABLE table_name_32 (launch_date__utc_ VARCHAR, cospar_id_satcat_№ VARCHAR)
What is the launch date of the satellite with a COSPAR ID of 1995-022a?
SELECT cospar_id_satcat_№ FROM table_name_20 WHERE launch_vehicle = "titan iv(401)a"
CREATE TABLE table_name_20 (cospar_id_satcat_№ VARCHAR, launch_vehicle VARCHAR)
What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle?
SELECT launch_designation FROM table_name_53 WHERE cospar_id_satcat_№ = "2009-001a"
CREATE TABLE table_name_53 (launch_designation VARCHAR, cospar_id_satcat_№ VARCHAR)
What is the launch designation of the satellite with a 2009-001a COSPAR ID?
SELECT launch_site FROM table_name_71 WHERE cospar_id_satcat_№ = "2003-041a"
CREATE TABLE table_name_71 (launch_site VARCHAR, cospar_id_satcat_№ VARCHAR)
What is the launch site of the satellite with a 2003-041a COSPAR ID?
SELECT construction_completed FROM table_name_1 WHERE cerclis_id = "ard092916188"
CREATE TABLE table_name_1 (construction_completed VARCHAR, cerclis_id VARCHAR)
What construction has a CERCLIS ID of ard092916188?
SELECT cerclis_id FROM table_name_16 WHERE deleted = "04/07/2008"
CREATE TABLE table_name_16 (cerclis_id VARCHAR, deleted VARCHAR)
What CERCLIS ID is Deleted of 04/07/2008?
SELECT construction_completed FROM table_name_48 WHERE listed = "09/08/1983" AND deleted = "–" AND name = "mid-south wood products"
CREATE TABLE table_name_48 (construction_completed VARCHAR, name VARCHAR, listed VARCHAR, deleted VARCHAR)
What construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products?
SELECT construction_completed FROM table_name_49 WHERE listed = "09/08/1983" AND name = "cecil lindsey"
CREATE TABLE table_name_49 (construction_completed VARCHAR, listed VARCHAR, name VARCHAR)
What is the Construction that has a Listed 09/08/1983, and a Name of cecil lindsey?
SELECT AVG(crowd) FROM table_name_63 WHERE venue = "kardinia park"
CREATE TABLE table_name_63 (crowd INTEGER, venue VARCHAR)
What was the attendance at Kardinia Park?
SELECT date FROM table_name_43 WHERE week = 16
CREATE TABLE table_name_43 (date VARCHAR, week VARCHAR)
What was the Date of Week 16?
SELECT date FROM table_name_85 WHERE home = "colorado"
CREATE TABLE table_name_85 (date VARCHAR, home VARCHAR)
What date was Colorado the home team?
SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28"
CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR)
What was the record for the game on November 28 when the decision was Backstrom?
SELECT home FROM table_name_26 WHERE record = "11–8–2"
CREATE TABLE table_name_26 (home VARCHAR, record VARCHAR)
What team was the home team when the record was 11–8–2?
SELECT score FROM table_name_10 WHERE home = "edmonton"
CREATE TABLE table_name_10 (score VARCHAR, home VARCHAR)
What was the score when Edmonton was the home team?
SELECT MAX(pl_gp) FROM table_name_97 WHERE pick__number > 159 AND reg_gp > 0
CREATE TABLE table_name_97 (pl_gp INTEGER, pick__number VARCHAR, reg_gp VARCHAR)
Tell me the highest PI GP with pick # greater than 159 and reg GP more than 0
SELECT home_team FROM table_name_34 WHERE away_team = "south melbourne"
CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR)
In the match where south melbourne was the away team, who was the home team?
SELECT team_2 FROM table_name_48 WHERE team_1 = "barcelona"
CREATE TABLE table_name_48 (team_2 VARCHAR, team_1 VARCHAR)
Which Team 2 faced Team 1 from Barcelona?
SELECT 1 AS st_leg FROM table_name_34 WHERE team_1 = "galatasaray"
CREATE TABLE table_name_34 (team_1 VARCHAR)
Which first leg had Galatasaray as Team 1?
SELECT event FROM table_name_8 WHERE time = "2:19"
CREATE TABLE table_name_8 (event VARCHAR, time VARCHAR)
What was the name of the Event with a time of 2:19?
SELECT location FROM table_name_76 WHERE opponent = "joe lauzon"
CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR)
Where was match which had Joe Lauzon as an opponent?
SELECT name FROM table_name_78 WHERE city = "frankfurt" AND years_as_tallest = "1990–1997"
CREATE TABLE table_name_78 (name VARCHAR, city VARCHAR, years_as_tallest VARCHAR)
What is the name of the building that was the tallest from 1990–1997 in Frankfurt?
SELECT MAX(height__ft_) FROM table_name_58 WHERE height__m_ < 122
CREATE TABLE table_name_58 (height__ft_ INTEGER, height__m_ INTEGER)
For a height less than 122 meters, what is the greatest height in feet?
SELECT MAX(height__ft_) FROM table_name_66 WHERE city = "cologne"
CREATE TABLE table_name_66 (height__ft_ INTEGER, city VARCHAR)
How high was the highest building in feet in the city of cologne?
SELECT MIN(height__ft_) FROM table_name_24 WHERE city = "frankfurt" AND height__m_ = 257 AND floors < 55
CREATE TABLE table_name_24 (height__ft_ INTEGER, floors VARCHAR, city VARCHAR, height__m_ VARCHAR)
What is the smallest height (ft) of a building in Frankfurt with a height (m) of 257 and less than 55 floors?
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850
CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR)
What is the height in meters for a building in Frankfurt that is 850 feet tall?
SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95
CREATE TABLE table_name_76 (mintage VARCHAR, theme VARCHAR, issue_price VARCHAR)
What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?
SELECT away_team AS score FROM table_name_39 WHERE away_team = "collingwood"
CREATE TABLE table_name_39 (away_team VARCHAR)
What was Collingwood's score in their away game?
SELECT venue FROM table_name_14 WHERE away_team = "geelong"
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
Where did Geelong play as the away team?
SELECT date FROM table_name_66 WHERE race_name = "i dessau autobahnspinne"
CREATE TABLE table_name_66 (date VARCHAR, race_name VARCHAR)
On what date was the I Dessau Autobahnspinne race?
SELECT winning_driver FROM table_name_8 WHERE circuit = "sachsenring"
CREATE TABLE table_name_8 (winning_driver VARCHAR, circuit VARCHAR)
Who was the winning driver in the Sachsenring circuit?
SELECT hometown FROM table_name_98 WHERE player = "terry mills"
CREATE TABLE table_name_98 (hometown VARCHAR, player VARCHAR)
Where is Terry Mills from?
SELECT date FROM table_name_24 WHERE race = "mexican grand prix"
CREATE TABLE table_name_24 (date VARCHAR, race VARCHAR)
When is the Mexican grand prix?
SELECT school FROM table_name_67 WHERE height = "6-8"
CREATE TABLE table_name_67 (school VARCHAR, height VARCHAR)
The person with a Height of 6-8 went to which School?
SELECT college FROM table_name_68 WHERE player = "dorian finney-smith"
CREATE TABLE table_name_68 (college VARCHAR, player VARCHAR)
What College did Player Dorian Finney-Smith play for?
SELECT player FROM table_name_66 WHERE height = "6-10" AND college = "lsu"
CREATE TABLE table_name_66 (player VARCHAR, height VARCHAR, college VARCHAR)
Which Player has a height of 6-10, and went to College at LSU?
SELECT school FROM table_name_41 WHERE player = "tyrone johnson"
CREATE TABLE table_name_41 (school VARCHAR, player VARCHAR)
Which School did Player Tyrone Johnson attend?
SELECT school FROM table_name_42 WHERE player = "tyrone johnson"
CREATE TABLE table_name_42 (school VARCHAR, player VARCHAR)
Which School did Player Tyrone Johnson attend?
SELECT rider FROM table_name_17 WHERE time = "1:23.32.41"
CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR)
Who had the time of 1:23.32.41?
SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph"
CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, speed VARCHAR)
What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph?
SELECT home_team FROM table_name_14 WHERE venue = "junction oval"
CREATE TABLE table_name_14 (home_team VARCHAR, venue VARCHAR)
What is the home team at the Junction Oval venue?
SELECT date FROM table_name_30 WHERE away_team = "richmond"
CREATE TABLE table_name_30 (date VARCHAR, away_team VARCHAR)
What is the date where the away team is Richmond?
SELECT circuit FROM table_name_53 WHERE fastest_lap = "john surtees" AND winning_driver = "john surtees"
CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.
SELECT winning_driver FROM table_name_59 WHERE circuit = "monza"
CREATE TABLE table_name_59 (winning_driver VARCHAR, circuit VARCHAR)
Name the winning driver with circuit of monza
SELECT pole_position FROM table_name_35 WHERE date = "8 september"
CREATE TABLE table_name_35 (pole_position VARCHAR, date VARCHAR)
Name the pole position for 8 september
SELECT winning_driver FROM table_name_45 WHERE race = "belgian grand prix"
CREATE TABLE table_name_45 (winning_driver VARCHAR, race VARCHAR)
Name the winning driver for belgian grand prix
SELECT circuit FROM table_name_97 WHERE race = "italian grand prix"
CREATE TABLE table_name_97 (circuit VARCHAR, race VARCHAR)
Name the circuit for italian grand prix
SELECT COUNT(grid) FROM table_name_3 WHERE driver = "giancarlo fisichella"
CREATE TABLE table_name_3 (grid VARCHAR, driver VARCHAR)
How many grid numbers were there for the driver Giancarlo Fisichella?
SELECT AVG(laps) FROM table_name_93 WHERE constructor = "ferrari" AND time_retired = "fuel pressure"
CREATE TABLE table_name_93 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR)
What is the mean number of laps for the constructor Ferrari when the time/retired was fuel pressure?
SELECT grid FROM table_name_20 WHERE driver = "michael schumacher"
CREATE TABLE table_name_20 (grid VARCHAR, driver VARCHAR)
What is the grid when the driver was Michael Schumacher?
SELECT SUM(laps) FROM table_name_99 WHERE grid = 7
CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR)
How many laps had a grid number of 7?
SELECT COUNT(laps) FROM table_name_1 WHERE grid < 17 AND driver = "giancarlo fisichella"
CREATE TABLE table_name_1 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella?
SELECT winning_driver FROM table_name_36 WHERE circuit = "monza"
CREATE TABLE table_name_36 (winning_driver VARCHAR, circuit VARCHAR)
Name the winning driver for circuit of monza
SELECT date FROM table_name_14 WHERE fastest_lap = "jody scheckter" AND race = "french grand prix"
CREATE TABLE table_name_14 (date VARCHAR, fastest_lap VARCHAR, race VARCHAR)
Tell me the date for jody scheckter being the fastest lap at the french grand prix
SELECT date FROM table_name_50 WHERE circuit = "interlagos"
CREATE TABLE table_name_50 (date VARCHAR, circuit VARCHAR)
Name the date for circuit of interlagos
SELECT event FROM table_name_74 WHERE opponent = "vinny magalhães"
CREATE TABLE table_name_74 (event VARCHAR, opponent VARCHAR)
What was the event for vinny magalhães?
SELECT date FROM table_name_9 WHERE opponent = "renato ferreira"
CREATE TABLE table_name_9 (date VARCHAR, opponent VARCHAR)
What was the date for renato ferreira?
SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate"
CREATE TABLE table_name_88 (event VARCHAR, date VARCHAR, opponent VARCHAR)
What was the event with leonardo chocolate in 2009?
SELECT result FROM table_name_14 WHERE date = 2009 AND opponent = "gerardi rinaldi"
CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR, opponent VARCHAR)
What was the result for the opponent being gerardi rinaldi in 2009?
SELECT eastern__number1 FROM table_name_23 WHERE week = 5
CREATE TABLE table_name_23 (eastern__number1 VARCHAR, week VARCHAR)
Tell me the eastern #1 for week of 5
SELECT eastern__number2 FROM table_name_23 WHERE western__number2 = "oakland"
CREATE TABLE table_name_23 (eastern__number2 VARCHAR, western__number2 VARCHAR)
Tell me the eastern #2 for western #2 of oakland
SELECT week FROM table_name_37 WHERE eastern__number2 = "houston"
CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR)
Tell me the wekk for eastern #2 of houston
SELECT home_team FROM table_name_74 WHERE away_team = "carlton"
CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR)
Which home team played against the away team Carlton?
SELECT venue FROM table_name_29 WHERE home_team = "collingwood"
CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR)
Where was the game played where the home team was Collingwood?
SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 603
CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER)
What is the home score with a crowd larger than 25,603?
SELECT date FROM table_name_41 WHERE home_team = "south melbourne"
CREATE TABLE table_name_41 (date VARCHAR, home_team VARCHAR)
What is the date of the home team from South Melbourne?
SELECT away_team AS score FROM table_name_88 WHERE home_team = "fitzroy"
CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR)
What is the score of the away team with the home team Fitzroy?
SELECT venue FROM table_name_63 WHERE away_team = "footscray"
CREATE TABLE table_name_63 (venue VARCHAR, away_team VARCHAR)
What venue did the away team footscray play at?
SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne"
CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR)
When melbourne was the away team, what was the lowest crowd turnout they had?
SELECT away_team FROM table_name_63 WHERE venue = "glenferrie oval"
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
Which away team plays at the venue glenferrie oval?
SELECT MIN(2005) FROM table_name_75 WHERE 2009 = 19 AND 2010 < 21
CREATE TABLE table_name_75 (Id VARCHAR)
Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19
SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3
CREATE TABLE table_name_85 (Id VARCHAR)
Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3
SELECT AVG(2008) FROM table_name_21 WHERE year = "beijing" AND 2005 > 2
CREATE TABLE table_name_21 (year VARCHAR)
Name the average 2008 for beijing and 2005 more than 2
SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31
CREATE TABLE table_name_45 (year VARCHAR)
Name the lowest 2008 for guizhou when 2005 is less than 31
SELECT SUM(2010) FROM table_name_53 WHERE 2000 = 17 AND 2005 > 16
CREATE TABLE table_name_53 (Id VARCHAR)
Name the sum of 2010 for 2000 of 17 and 2005 more than 16
SELECT SUM(crowd) FROM table_name_7 WHERE venue = "mcg"
CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR)
What is the total of crowd at Venue of mcg?
SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81
CREATE TABLE table_name_76 (region VARCHAR, area__km_2__ VARCHAR)
Tell me the number of regions with an area of 58.81
SELECT COUNT(rank) FROM table_name_63 WHERE bronze < 0
CREATE TABLE table_name_63 (rank VARCHAR, bronze INTEGER)
what is the rank when the bronze is less than 0?
SELECT MAX(rank) FROM table_name_83 WHERE bronze < 1 AND total < 1
CREATE TABLE table_name_83 (rank INTEGER, bronze VARCHAR, total VARCHAR)
what is the highest rank when the bronze is less than 1 and the total is less than 1?
SELECT MIN(silver) FROM table_name_70 WHERE gold < 0
CREATE TABLE table_name_70 (silver INTEGER, gold INTEGER)
what is the lowest amount of silver when the gold is less than 0?
SELECT AVG(gold) FROM table_name_5 WHERE rank > 5
CREATE TABLE table_name_5 (gold INTEGER, rank INTEGER)
what is the average number of gold when the rank is more than 5?
SELECT MAX(silver) FROM table_name_50 WHERE gold = 0 AND nation = "soviet union"
CREATE TABLE table_name_50 (silver INTEGER, gold VARCHAR, nation VARCHAR)
what is the highest amount of silver when gold is 0 for soviet union?
SELECT position FROM table_name_35 WHERE player = "adam rachel"
CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR)
What position does adam rachel play?
SELECT player FROM table_name_97 WHERE first_team_appearances > 1 AND first_team_goals = 32
CREATE TABLE table_name_97 (player VARCHAR, first_team_appearances VARCHAR, first_team_goals VARCHAR)
What player has over 1 first apperance and over 32 first team goals?
SELECT AVG(speed) FROM table_name_31 WHERE year < 1974 AND passengers > 1.73
CREATE TABLE table_name_31 (speed INTEGER, year VARCHAR, passengers VARCHAR)
What is the average speed for ships before 1974 with over 1.73 passengers?
SELECT COUNT(vessels) FROM table_name_11 WHERE ship_name = "aqua jewel"
CREATE TABLE table_name_11 (vessels VARCHAR, ship_name VARCHAR)
How many vessels are named aqua jewel?
SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = "baltimore city" AND delegate = "cheryl glenn"
CREATE TABLE table_name_40 (district VARCHAR, place_of_birth VARCHAR, delegate VARCHAR)
How many districts in Baltimore City does Cheryl Glenn dictate?
SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter"
CREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR)
Which party belongs to district 41, and is delegated by Jill P. Carter?
SELECT place_of_birth FROM table_name_31 WHERE took_office > 1982 AND district < 43 AND committee = "health and government operations"
CREATE TABLE table_name_31 (place_of_birth VARCHAR, committee VARCHAR, took_office VARCHAR, district VARCHAR)
Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee?
SELECT place_of_birth FROM table_name_24 WHERE committee = "judiciary" AND district = 43
CREATE TABLE table_name_24 (place_of_birth VARCHAR, committee VARCHAR, district VARCHAR)
Where was the delegate belonging to the Judiciary committee of district 43 born?
SELECT MAX(district) FROM table_name_30 WHERE delegate = "cheryl glenn" AND took_office > 2006
CREATE TABLE table_name_30 (district INTEGER, delegate VARCHAR, took_office VARCHAR)
What is the largest district for delegate Cheryl Glenn, that she had taken after 2006?
SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58
CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR)
What is the highest placing for marie mcneil / robert mccall, with less than 168.58?
SELECT date FROM table_name_25 WHERE home = "mavericks"
CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR)
What was the date of the Mavericks home game?
SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = "r fwd auto phase1"
CREATE TABLE table_name_12 (displacement__cc_ INTEGER, model VARCHAR)
What is the highest displacement value for the R Fwd Auto Phase1?
SELECT away_team FROM table_name_51 WHERE venue = "lake oval"
CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR)
What team played at lake oval while away?