question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
If the Venue was princes park, which Date did the game take place on?
CREATE TABLE table_name_58 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_58 WHERE venue = "princes park"
What is the average rank of one who is at 76 laps?
CREATE TABLE table_name_98 (rank INTEGER, laps VARCHAR)
SELECT AVG(rank) FROM table_name_98 WHERE laps = 76
What is the average grid number for cars that retired due to engine failure before 18 laps?
CREATE TABLE table_name_69 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_69 WHERE time_retired = "engine" AND laps < 18
What is the time/retired for jo siffert with a grid under 11?
CREATE TABLE table_name_45 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_45 WHERE grid < 11 AND driver = "jo siffert"
What driver has under 19 laps and a grid under 10?
CREATE TABLE table_name_89 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_89 WHERE laps < 19 AND grid < 10
Where was the game that the attendance was 24,694?
CREATE TABLE table_name_99 (game INTEGER, attendance VARCHAR)
SELECT MIN(game) FROM table_name_99 WHERE attendance = 24 OFFSET 694
What was the attendance on September 11?
CREATE TABLE table_name_10 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_10 WHERE date = "september 11"
Who had more than 3 wins?
CREATE TABLE table_name_47 (winner VARCHAR, win__number INTEGER)
SELECT winner FROM table_name_47 WHERE win__number > 3
How many league cup goals for tyrone thompson with 0 FLT goals?
CREATE TABLE table_name_46 (league_cup_goals INTEGER, name VARCHAR, flt_goals VARCHAR)
SELECT MIN(league_cup_goals) FROM table_name_46 WHERE name = "tyrone thompson" AND flt_goals > 0
How many goals for the FW with 0 FA cup appearances and over 0 playoff goals?
CREATE TABLE table_name_14 (league_goals INTEGER, playoff_goals VARCHAR, position VARCHAR, fa_cup_apps VARCHAR)
SELECT MIN(league_goals) FROM table_name_14 WHERE position = "fw" AND fa_cup_apps = "0" AND playoff_goals > 0
I want to know the third with runner of paris saint-germain and edition less than 5
CREATE TABLE table_name_40 (third VARCHAR, runner_up VARCHAR, edition VARCHAR)
SELECT third FROM table_name_40 WHERE runner_up = "paris saint-germain" AND edition < 5
I want the sum of year for edition more than 4 and winners of new york red bulls
CREATE TABLE table_name_93 (year INTEGER, edition VARCHAR, winner VARCHAR)
SELECT SUM(year) FROM table_name_93 WHERE edition > 4 AND winner = "new york red bulls"
Tell me the lowest edition for winner of arsenal and third of celtic
CREATE TABLE table_name_13 (edition INTEGER, winner VARCHAR, third VARCHAR)
SELECT MIN(edition) FROM table_name_13 WHERE winner = "arsenal" AND third = "celtic"
What is total orders for goals of 239?
CREATE TABLE table_name_77 (order VARCHAR, goals VARCHAR)
SELECT COUNT(order) FROM table_name_77 WHERE goals = 239
Who had an order of 907 and more than 1 game?
CREATE TABLE table_name_67 (name VARCHAR, games VARCHAR, order VARCHAR)
SELECT name FROM table_name_67 WHERE games > 1 AND order = 907
What seasons had 288 games and more than 100 goals?
CREATE TABLE table_name_88 (seasons VARCHAR, goals VARCHAR, games VARCHAR)
SELECT seasons FROM table_name_88 WHERE goals > 100 AND games = 288
What is the low goal for orders more than 939 during Seasons of 1996 – 2001?
CREATE TABLE table_name_17 (goals INTEGER, seasons VARCHAR, order VARCHAR)
SELECT MIN(goals) FROM table_name_17 WHERE seasons = "1996 – 2001" AND order > 939
What was the Record for the game on October 30?
CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_8 WHERE date = "october 30"
When was the game played against a visiting team from Philadelphia?
CREATE TABLE table_name_65 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_65 WHERE visitor = "philadelphia"
What was the score when the home team, Toronto, played against New Jersey?
CREATE TABLE table_name_62 (score VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT score FROM table_name_62 WHERE visitor = "new jersey" AND home = "toronto"
When was the home game for the NY Islanders?
CREATE TABLE table_name_20 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_20 WHERE home = "ny islanders"
Who was the home team for the game played on November 2, 2007?
CREATE TABLE table_name_69 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_69 WHERE date = "november 2, 2007"
What is silver when gold is 1 and the rank is less than 3 for japan?
CREATE TABLE table_name_77 (silver VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT silver FROM table_name_77 WHERE gold = 1 AND rank < 3 AND nation = "japan"
What is the rank for the total less than 1?
CREATE TABLE table_name_34 (rank INTEGER, total INTEGER)
SELECT AVG(rank) FROM table_name_34 WHERE total < 1
What is the gold when the total is less than 2, and rank is 3 and Canada is the nation?
CREATE TABLE table_name_29 (gold VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)
SELECT gold FROM table_name_29 WHERE total < 2 AND rank = 3 AND nation = "canada"
What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100 Van Ness Avenue?
CREATE TABLE table_name_6 (floors INTEGER, name VARCHAR, rank VARCHAR, year VARCHAR)
SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = "100 van ness avenue"
What is the name of the building that has more than 31 floors and built prior to 1964?
CREATE TABLE table_name_91 (name VARCHAR, floors VARCHAR, year VARCHAR)
SELECT name FROM table_name_91 WHERE floors > 31 AND year < 1964
Who was the away team at the game played at Lake Oval?
CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_67 WHERE venue = "lake oval"
What was the home team score for the game played against Collingwood?
CREATE TABLE table_name_24 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_24 WHERE away_team = "collingwood"
Who was the team with the smallest crowd at the Princes Park venue?
CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_73 WHERE venue = "princes park"
what is the size km² when the density hab/km is 8,321?
CREATE TABLE table_name_52 (size_km² INTEGER, density_hab_km VARCHAR)
SELECT SUM(size_km²) FROM table_name_52 WHERE density_hab_km = 8 OFFSET 321
What is the score for the away team at Victoria Park?
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_24 WHERE venue = "victoria park"
When did Carlton play as the home team?
CREATE TABLE table_name_60 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_60 WHERE home_team = "carlton"
What was the original air date when ed horowitz wrote it?
CREATE TABLE table_name_89 (original_airdate VARCHAR, written_by VARCHAR)
SELECT original_airdate FROM table_name_89 WHERE written_by = "ed horowitz"
Name the episode number that aired on july 23, 2000
CREATE TABLE table_name_34 (episode__number VARCHAR, original_airdate VARCHAR)
SELECT episode__number FROM table_name_34 WHERE original_airdate = "july 23, 2000"
How many draws for avia band with over 22 points?
CREATE TABLE table_name_87 (draw VARCHAR, points VARCHAR, artist VARCHAR)
SELECT COUNT(draw) FROM table_name_87 WHERE points > 22 AND artist = "avia band"
What's the total earnings ($) with more than two wins and a rank less than 2?
CREATE TABLE table_name_1 (earnings___ VARCHAR, wins VARCHAR, rank VARCHAR)
SELECT COUNT(earnings___) AS $__ FROM table_name_1 WHERE wins > 2 AND rank < 2
Who's ranked less than 2?
CREATE TABLE table_name_32 (player VARCHAR, rank INTEGER)
SELECT player FROM table_name_32 WHERE rank < 2
What did the away team score at Moorabbin oval?
CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_38 WHERE venue = "moorabbin oval"
What was the attendance at the game played at Moorabbin Oval?
CREATE TABLE table_name_78 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_78 WHERE venue = "moorabbin oval"
What is the wheel arrangement of the locomotive with number 6 or 4?
CREATE TABLE table_name_95 (wheel_arrangement VARCHAR, number VARCHAR)
SELECT wheel_arrangement FROM table_name_95 WHERE number = "6 or 4"
What is the boiler pressure for the Hesperus model?
CREATE TABLE table_name_58 (boiler_pressure VARCHAR, name VARCHAR)
SELECT boiler_pressure FROM table_name_58 WHERE name = "hesperus"
What are the driving wheels of the model built in 1883?
CREATE TABLE table_name_51 (driving_wheels VARCHAR, date_built VARCHAR)
SELECT driving_wheels FROM table_name_51 WHERE date_built = "1883"
What year was the wheel arrangement 0-6-0 and a class 302?
CREATE TABLE table_name_76 (year_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)
SELECT year_made FROM table_name_76 WHERE wheel_arrangement = "0-6-0" AND class = "302"
How many have a class of 330?
CREATE TABLE table_name_97 (quantity_made VARCHAR, class VARCHAR)
SELECT quantity_made FROM table_name_97 WHERE class = "330"
What comments are made in 1875?
CREATE TABLE table_name_64 (comments VARCHAR, year_made VARCHAR)
SELECT comments FROM table_name_64 WHERE year_made = "1875"
Which artist's work is the butterfly Tiger Swallowtail?
CREATE TABLE table_name_16 (artist VARCHAR, butterfly VARCHAR)
SELECT artist FROM table_name_16 WHERE butterfly = "tiger swallowtail"
Which artist uses a finish of selective gold plating?
CREATE TABLE table_name_29 (artist VARCHAR, finish VARCHAR)
SELECT artist FROM table_name_29 WHERE finish = "selective gold plating"
What mintage earlier than the year 2006 has the butterfly great spangled fritillary.
CREATE TABLE table_name_15 (mintage VARCHAR, year VARCHAR, butterfly VARCHAR)
SELECT mintage FROM table_name_15 WHERE year < 2006 AND butterfly = "great spangled fritillary"
What is the date for Europe?
CREATE TABLE table_name_32 (date VARCHAR, region VARCHAR)
SELECT date FROM table_name_32 WHERE region = "europe"
Which team played away at Victoria park?
CREATE TABLE table_name_78 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_78 WHERE venue = "victoria park"
When the record was 4-4, how many people attended?
CREATE TABLE table_name_64 (attendance VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_64 WHERE record = "4-4"
When they were playing the detroit lions at tampa stadium, what was the score?
CREATE TABLE table_name_49 (result VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_49 WHERE game_site = "tampa stadium" AND opponent = "detroit lions"
Which date did 64,443 people attend a game?
CREATE TABLE table_name_47 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_47 WHERE attendance = "64,443"
what is the highest rank with a total less than 1?
CREATE TABLE table_name_68 (rank INTEGER, total INTEGER)
SELECT MAX(rank) FROM table_name_68 WHERE total < 1
what is the average bronze when gold is 1, the nation is hungary and the rank is less than 3?
CREATE TABLE table_name_96 (bronze INTEGER, rank VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT AVG(bronze) FROM table_name_96 WHERE gold = 1 AND nation = "hungary" AND rank < 3
How many times was the total more than 1, the nation was east germany and silver was more than 1?
CREATE TABLE table_name_25 (bronze VARCHAR, silver VARCHAR, total VARCHAR, nation VARCHAR)
SELECT COUNT(bronze) FROM table_name_25 WHERE total > 1 AND nation = "east germany" AND silver > 1
what is the average rank when the nation is east germany and silver is more than 1?
CREATE TABLE table_name_27 (rank INTEGER, nation VARCHAR, silver VARCHAR)
SELECT AVG(rank) FROM table_name_27 WHERE nation = "east germany" AND silver > 1
Where did carlton play while away?
CREATE TABLE table_name_98 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_98 WHERE away_team = "carlton"
What was the top crowd when essendon played away?
CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_75 WHERE away_team = "essendon"
I want the date of appointment for manner of departure being sacked
CREATE TABLE table_name_91 (date_of_appointment VARCHAR, manner_of_departure VARCHAR)
SELECT date_of_appointment FROM table_name_91 WHERE manner_of_departure = "sacked"
I want the manner of departure for 1 june 2007
CREATE TABLE table_name_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT manner_of_departure FROM table_name_2 WHERE date_of_appointment = "1 june 2007"
I want the outgoing manager for craig brewster
CREATE TABLE table_name_40 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT outgoing_manager FROM table_name_40 WHERE replaced_by = "craig brewster"
I want the team for replaced by mark mcghee
CREATE TABLE table_name_95 (team VARCHAR, replaced_by VARCHAR)
SELECT team FROM table_name_95 WHERE replaced_by = "mark mcghee"
I want the outgoing manager for 19 february
CREATE TABLE table_name_57 (outgoing_manager VARCHAR, date_of_appointment VARCHAR)
SELECT outgoing_manager FROM table_name_57 WHERE date_of_appointment = "19 february"
I want the team with replaced by being csaba lászló
CREATE TABLE table_name_24 (team VARCHAR, replaced_by VARCHAR)
SELECT team FROM table_name_24 WHERE replaced_by = "csaba lászló"
With which association did estribillo ii run as Horse 1?
CREATE TABLE table_name_30 (association VARCHAR, horse_1 VARCHAR)
SELECT association FROM table_name_30 WHERE horse_1 = "estribillo ii"
Which horse was Horse 1 when rené guzmán raced with the mulchén association?
CREATE TABLE table_name_32 (horse_1 VARCHAR, rider_1 VARCHAR, association VARCHAR)
SELECT horse_1 FROM table_name_32 WHERE rider_1 = "rené guzmán" AND association = "mulchén"
Who was the second rider when papayero raced as Horse 1 in the city of rancagua?
CREATE TABLE table_name_2 (rider_2 VARCHAR, city VARCHAR, horse_1 VARCHAR)
SELECT rider_2 FROM table_name_2 WHERE city = "rancagua" AND horse_1 = "papayero"
What was the period for 1896?
CREATE TABLE table_name_67 (period VARCHAR, year VARCHAR)
SELECT period FROM table_name_67 WHERE year = 1896
Tell me the height which has a surpassed by of book tower
CREATE TABLE table_name_2 (height_feet_m VARCHAR, surpassed_by VARCHAR)
SELECT height_feet_m FROM table_name_2 WHERE surpassed_by = "book tower"
I need the surpassed for years before 1925 and period of 6 years
CREATE TABLE table_name_57 (surpassed_by VARCHAR, year VARCHAR, period VARCHAR)
SELECT surpassed_by FROM table_name_57 WHERE year < 1925 AND period = "6 years"
Hawthorn played as an Away team in which venue?
CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_56 WHERE away_team = "hawthorn"
Who was the nominee having a Tony award?
CREATE TABLE table_name_16 (nominee VARCHAR, award VARCHAR)
SELECT nominee FROM table_name_16 WHERE award = "tony award"
What was the year Bernadette Peters was a nominee for the Tony award?
CREATE TABLE table_name_67 (year INTEGER, award VARCHAR, nominee VARCHAR)
SELECT SUM(year) FROM table_name_67 WHERE award = "tony award" AND nominee = "bernadette peters"
Which category was Michael Stewart a nominee in?
CREATE TABLE table_name_4 (category VARCHAR, nominee VARCHAR)
SELECT category FROM table_name_4 WHERE nominee = "michael stewart"
What was the rank in the 2009 Hanoi Games?
CREATE TABLE table_name_75 (rank VARCHAR, games VARCHAR)
SELECT rank FROM table_name_75 WHERE games = "2009 hanoi"
What is the label of the album titled 與你相逢 and released in 1994?
CREATE TABLE table_name_63 (label_s_ VARCHAR, year_of_release VARCHAR, title VARCHAR)
SELECT label_s_ FROM table_name_63 WHERE year_of_release = 1994 AND title = "與你相逢"
What is the earliest year of release for the album labelled 艺能动音?
CREATE TABLE table_name_93 (year_of_release INTEGER, label_s_ VARCHAR)
SELECT MIN(year_of_release) FROM table_name_93 WHERE label_s_ = "艺能动音"
Tell me the name in polish for radom seat
CREATE TABLE table_name_36 (name_in_polish VARCHAR, seat VARCHAR)
SELECT name_in_polish FROM table_name_36 WHERE seat = "radom"
Tell me the population for gubernia łomżyńska
CREATE TABLE table_name_79 (population VARCHAR, _in_thousands VARCHAR, __1905__ VARCHAR, name_in_polish VARCHAR)
SELECT population, _in_thousands, __1905__ FROM table_name_79 WHERE name_in_polish = "gubernia łomżyńska"
What is the promotion when the arena was the venue and the event of legends of the arena?
CREATE TABLE table_name_4 (promotion VARCHAR, venue VARCHAR, event VARCHAR)
SELECT promotion FROM table_name_4 WHERE venue = "the arena" AND event = "legends of the arena"
What is the name of the inductee for the ecw arena?
CREATE TABLE table_name_56 (inductee_s_ VARCHAR, venue VARCHAR)
SELECT inductee_s_ FROM table_name_56 WHERE venue = "ecw arena"
What is the promotion when the event was Acid-fest?
CREATE TABLE table_name_7 (promotion VARCHAR, event VARCHAR)
SELECT promotion FROM table_name_7 WHERE event = "acid-fest"
What is the location when the event was November reign?
CREATE TABLE table_name_84 (location VARCHAR, event VARCHAR)
SELECT location FROM table_name_84 WHERE event = "november reign"
What even was Jerry Lynn the inductee?
CREATE TABLE table_name_16 (event VARCHAR, inductee_s_ VARCHAR)
SELECT event FROM table_name_16 WHERE inductee_s_ = "jerry lynn"
What is the namesake of Ayashe at a longitude less than 270.7, latitude more than -47.1, and a diameter less than 7.2?
CREATE TABLE table_name_87 (named VARCHAR, name VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR)
SELECT named AS after FROM table_name_87 WHERE longitude < 270.7 AND latitude > -47.1 AND diameter__km_ < 7.2 AND name = "ayashe"
Tell me the opponent that had a result of l 27-20
CREATE TABLE table_name_84 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_84 WHERE result = "l 27-20"
What was the game site for week 14?
CREATE TABLE table_name_87 (game_site VARCHAR, week VARCHAR)
SELECT game_site FROM table_name_87 WHERE week = "14"
Name the week when the result was l 38-17
CREATE TABLE table_name_61 (week VARCHAR, result VARCHAR)
SELECT week FROM table_name_61 WHERE result = "l 38-17"
Name the date when 33,307 attended
CREATE TABLE table_name_20 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_20 WHERE attendance = "33,307"
Who used the Ford Cosworth DFV 3.0 v8 engine in rounds 3-12, with a G tire?
CREATE TABLE table_name_22 (driver VARCHAR, tyre VARCHAR, engine VARCHAR, rounds VARCHAR)
SELECT driver FROM table_name_22 WHERE engine = "ford cosworth dfv 3.0 v8" AND rounds = "3-12" AND tyre = "g"
Which driver was in all rounds as an entrant of Motor Racing Developments?
CREATE TABLE table_name_6 (driver VARCHAR, rounds VARCHAR, entrant VARCHAR)
SELECT driver FROM table_name_6 WHERE rounds = "all" AND entrant = "motor racing developments"
Motor Racing Developments used which tire in rounds 3-12?
CREATE TABLE table_name_58 (tyre VARCHAR, entrant VARCHAR, rounds VARCHAR)
SELECT tyre FROM table_name_58 WHERE entrant = "motor racing developments" AND rounds = "3-12"
Which engine was on a car with G tires, a chassis model of 003 002 004 005 006, driven by Jackie Stewart?
CREATE TABLE table_name_98 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, chassis VARCHAR)
SELECT engine FROM table_name_98 WHERE tyre = "g" AND chassis = "003 002 004 005 006" AND driver = "jackie stewart"
What was the result on the wild card?
CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_74 WHERE week = "wild card"
What date was the week 17 game played on?
CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_62 WHERE week = "17"
What was the attendance on week 12?
CREATE TABLE table_name_8 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_8 WHERE week = "12"
What was the result on December 31, 2005?
CREATE TABLE table_name_68 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_68 WHERE date = "december 31, 2005"
What was the date of the game at Lake Oval?
CREATE TABLE table_name_17 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_17 WHERE venue = "lake oval"