answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT venue FROM table_name_92 WHERE away_team = "essendon"
|
CREATE TABLE table_name_92 (venue VARCHAR, away_team VARCHAR)
|
At what venue did the Essendon team play as an away team?
|
SELECT home_team FROM table_name_98 WHERE venue = "junction oval"
|
CREATE TABLE table_name_98 (home_team VARCHAR, venue VARCHAR)
|
Who was the home team for the game played at Junction Oval?
|
SELECT home_team AS score FROM table_name_59 WHERE away_team = "geelong"
|
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
|
What was the score of the home team when the away team was Geelong?
|
SELECT away_team FROM table_name_77 WHERE home_team = "south melbourne"
|
CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR)
|
What was the away team when the home team was South Melbourne?
|
SELECT home_team FROM table_name_10 WHERE venue = "junction oval"
|
CREATE TABLE table_name_10 (home_team VARCHAR, venue VARCHAR)
|
What was the name of the home team playing at the Junction Oval venue?
|
SELECT COUNT(established) FROM table_name_86 WHERE club = "lehigh valley storm"
|
CREATE TABLE table_name_86 (established VARCHAR, club VARCHAR)
|
What is the total number of the established club of Lehigh Valley Storm?
|
SELECT league FROM table_name_96 WHERE sport = "baseball"
|
CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR)
|
What is the name of a league in the sport of baseball?
|
SELECT venue FROM table_name_55 WHERE sport = "soccer" AND club = "pennsylvania stoners"
|
CREATE TABLE table_name_55 (venue VARCHAR, sport VARCHAR, club VARCHAR)
|
What venue does the soccer team Pennsylvania Stoners play in?
|
SELECT AVG(game__number) FROM table_name_67 WHERE date = "march 4"
|
CREATE TABLE table_name_67 (game__number INTEGER, date VARCHAR)
|
What game number was played on March 4?
|
SELECT record FROM table_name_69 WHERE visitor = "buffalo"
|
CREATE TABLE table_name_69 (record VARCHAR, visitor VARCHAR)
|
What is the record when the visitor is Buffalo?
|
SELECT COUNT(attendance) FROM table_name_4 WHERE result = "l 35-17"
|
CREATE TABLE table_name_4 (attendance VARCHAR, result VARCHAR)
|
Tell me the number of attendance that has a result of l 35-17
|
SELECT attendance FROM table_name_60 WHERE week > 10 AND result = "l 22-21"
|
CREATE TABLE table_name_60 (attendance VARCHAR, week VARCHAR, result VARCHAR)
|
I want the attendance for week larger than 10 and result of l 22-21
|
SELECT COUNT(attendance) FROM table_name_60 WHERE result = "t 24-24" AND week < 2
|
CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, week VARCHAR)
|
Name for me the total number in attendance for week before 2 and result of t 24-24
|
SELECT MAX(attendance) FROM table_name_64 WHERE opponent = "chicago bears"
|
CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR)
|
I want the greatest attendance when the opponent is the chicago bears
|
SELECT AVG(attendance) FROM table_name_16 WHERE visitor = "phoenix"
|
CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR)
|
What is the average attendance for a game against Phoenix?
|
SELECT home FROM table_name_78 WHERE decision = "legace" AND visitor = "st. louis" AND date = "february 22"
|
CREATE TABLE table_name_78 (home VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR)
|
What was the home team in the February 22 game that Legace played in for the St. Louis Blues?
|
SELECT home_team FROM table_name_65 WHERE away_team = "carlton"
|
CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)
|
Who was Carlton's home team opponent?
|
SELECT away_team AS score FROM table_name_68 WHERE venue = "lake oval"
|
CREATE TABLE table_name_68 (away_team VARCHAR, venue VARCHAR)
|
Who was the away team at Lake Oval?
|
SELECT away_team FROM table_name_8 WHERE home_team = "south melbourne"
|
CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR)
|
Who was South Melbourne's away team opponent?
|
SELECT MAX(grid) FROM table_name_89 WHERE laps = 27
|
CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR)
|
What is the high grid with 27 laps?
|
SELECT MAX(grid) FROM table_name_4 WHERE time_retired = "+6 laps" AND laps < 69
|
CREATE TABLE table_name_4 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
|
What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?
|
SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030
|
CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR)
|
What's the total number of copies sold for the single that sold 206,030 in the first week?
|
SELECT MAX(release_date) FROM table_name_3 WHERE label = "ariola" AND country = "spain"
|
CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR, country VARCHAR)
|
What was the latest release date for Ariola in Spain?
|
SELECT release_format FROM table_name_48 WHERE release_date > 1979
|
CREATE TABLE table_name_48 (release_format VARCHAR, release_date INTEGER)
|
What type of format was released after 1979?
|
SELECT SUM(release_date) FROM table_name_3 WHERE label = "epic"
|
CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR)
|
On what date did Epic label start its release?
|
SELECT games FROM table_name_36 WHERE rebounds < 270 AND rank < 5
|
CREATE TABLE table_name_36 (games VARCHAR, rebounds VARCHAR, rank VARCHAR)
|
Which game had less than 270 rebounds and a rank lower than 5?
|
SELECT SUM(games) FROM table_name_20 WHERE name = "curtis borchardt" AND rebounds > 274
|
CREATE TABLE table_name_20 (games INTEGER, name VARCHAR, rebounds VARCHAR)
|
Which game did Curtis Borchardt play with more than 274 rebounds?
|
SELECT team FROM table_name_70 WHERE rebounds < 275 AND games < 34 AND name = "curtis borchardt"
|
CREATE TABLE table_name_70 (team VARCHAR, name VARCHAR, rebounds VARCHAR, games VARCHAR)
|
In game 34 Curtis Borchardt played on which team with less than 275 rebounds?
|
SELECT rebounds FROM table_name_73 WHERE rank = 4
|
CREATE TABLE table_name_73 (rebounds VARCHAR, rank VARCHAR)
|
How many rebounds occurred in a rank 4 game?
|
SELECT games FROM table_name_88 WHERE name = "bud eley"
|
CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR)
|
Which game did was Bud Eley a player in?
|
SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc"
|
CREATE TABLE table_name_80 (games INTEGER, team VARCHAR, rank VARCHAR, rebounds VARCHAR)
|
Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?
|
SELECT grid FROM table_name_6 WHERE driver = "johnny herbert"
|
CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR)
|
What is the grid for johnny herbert?
|
SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "dharma productions" AND year < 2013
|
CREATE TABLE table_name_43 (rank INTEGER, studio_s_ VARCHAR, year VARCHAR)
|
Tell me the average rank for dharma productions before 2013
|
SELECT AVG(year) FROM table_name_33 WHERE rank = 4
|
CREATE TABLE table_name_33 (year INTEGER, rank VARCHAR)
|
Name the average year for 4 rank
|
SELECT MIN(rank) FROM table_name_99 WHERE year = 2013 AND studio_s_ = "red chillies entertainment"
|
CREATE TABLE table_name_99 (rank INTEGER, year VARCHAR, studio_s_ VARCHAR)
|
Name the lowest rank for red chillies entertainment for 2013
|
SELECT date FROM table_name_27 WHERE away_team = "richmond"
|
CREATE TABLE table_name_27 (date VARCHAR, away_team VARCHAR)
|
Which date did richmond play as away?
|
SELECT SUM(rank) FROM table_name_52 WHERE wins = 5 AND events < 32
|
CREATE TABLE table_name_52 (rank INTEGER, wins VARCHAR, events VARCHAR)
|
What is the rank for the player with 5 wins and under 32 events?
|
SELECT issue_price FROM table_name_46 WHERE artist = "john mardon" AND year = 2000 AND mintage = "included in steam buggy"
|
CREATE TABLE table_name_46 (issue_price VARCHAR, mintage VARCHAR, artist VARCHAR, year VARCHAR)
|
What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.
|
SELECT theme FROM table_name_86 WHERE year = 2002 AND artist = "dan fell"
|
CREATE TABLE table_name_86 (theme VARCHAR, year VARCHAR, artist VARCHAR)
|
What is the theme of the Year 2002 which was created by Artist Dan Fell?
|
SELECT artist FROM table_name_81 WHERE year < 2002 AND mintage = "41,828"
|
CREATE TABLE table_name_81 (artist VARCHAR, year VARCHAR, mintage VARCHAR)
|
What artist had a mintage of 41,828 before year 2002?
|
SELECT issue_price FROM table_name_36 WHERE mintage = "31,997"
|
CREATE TABLE table_name_36 (issue_price VARCHAR, mintage VARCHAR)
|
A mintage of 31,997 has what issue price?
|
SELECT Control AS trailers FROM table_name_71 WHERE motors = "52"
|
CREATE TABLE table_name_71 (Control VARCHAR, motors VARCHAR)
|
Tell me the control trailers for 52 motors
|
SELECT trailers FROM table_name_48 WHERE year = "1931" AND builder = "mccw"
|
CREATE TABLE table_name_48 (trailers VARCHAR, year VARCHAR, builder VARCHAR)
|
I want the trailers for 1931 and builder of mccw
|
SELECT Control AS trailers FROM table_name_45 WHERE year = "1931" AND builder = "grcw"
|
CREATE TABLE table_name_45 (Control VARCHAR, year VARCHAR, builder VARCHAR)
|
I want the control trailers for 1931 with builder of grcw
|
SELECT trailers FROM table_name_92 WHERE motors = "145"
|
CREATE TABLE table_name_92 (trailers VARCHAR, motors VARCHAR)
|
I want the trailers for motors of 145
|
SELECT SUM(wins) FROM table_name_77 WHERE top_5 < 1
|
CREATE TABLE table_name_77 (wins INTEGER, top_5 INTEGER)
|
Tell me the sum of wins for top 5 less than 1
|
SELECT AVG(events) FROM table_name_17 WHERE top_10 < 4
|
CREATE TABLE table_name_17 (events INTEGER, top_10 INTEGER)
|
I want the average events for top 10 less than 4
|
SELECT MAX(cuts_made) FROM table_name_99 WHERE top_5 < 3 AND top_10 > 4
|
CREATE TABLE table_name_99 (cuts_made INTEGER, top_5 VARCHAR, top_10 VARCHAR)
|
Name the highest cuts made when top 5 is less than 3 and top ten is more than 4
|
SELECT MAX(top_25) FROM table_name_84 WHERE events > 20 AND top_10 > 21
|
CREATE TABLE table_name_84 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)
|
I want the most top 25 when events are more than 20 and top 10 is more than 21
|
SELECT SUM(attendance) FROM table_name_40 WHERE date = "april 28"
|
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR)
|
What was the Attendance on April 28?
|
SELECT released FROM table_name_64 WHERE dvd_name = "escape to river cottage"
|
CREATE TABLE table_name_64 (released VARCHAR, dvd_name VARCHAR)
|
What was escape to river cottage released?
|
SELECT dvd_name FROM table_name_61 WHERE duration = "2 hours 22 minutes"
|
CREATE TABLE table_name_61 (dvd_name VARCHAR, duration VARCHAR)
|
What DVD has a time of 2 hours 22 minutes?
|
SELECT date FROM table_name_14 WHERE week = 7
|
CREATE TABLE table_name_14 (date VARCHAR, week VARCHAR)
|
What was the date for the game in week 7?
|
SELECT date FROM table_name_54 WHERE attendance = "78,431"
|
CREATE TABLE table_name_54 (date VARCHAR, attendance VARCHAR)
|
On what date was the attendance of the crowd 78,431?
|
SELECT date FROM table_name_28 WHERE home = "columbus"
|
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR)
|
What was the date of the Capitals game when Columbus was the home team?
|
SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations"
|
CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR)
|
The 2002 African Cup of Nations was held on what date?
|
SELECT competition FROM table_name_51 WHERE venue = "stade fernand fournier, arles"
|
CREATE TABLE table_name_51 (competition VARCHAR, venue VARCHAR)
|
Which competition took place at Stade Fernand Fournier, Arles?
|
SELECT COUNT(crowd) FROM table_name_83 WHERE away_team = "fitzroy"
|
CREATE TABLE table_name_83 (crowd VARCHAR, away_team VARCHAR)
|
What was the attendance of the game where fitzroy was the away team?
|
SELECT artist FROM table_name_80 WHERE theme = "400th anniversary of quebec"
|
CREATE TABLE table_name_80 (artist VARCHAR, theme VARCHAR)
|
Which artist created the silver dollar for the 400th anniversary of Quebec?
|
SELECT year FROM table_name_25 WHERE artist = "royal canadian mint staff"
|
CREATE TABLE table_name_25 (year VARCHAR, artist VARCHAR)
|
Which year did the Royal Canadian Mint Staff create a silver dollar?
|
SELECT mintage FROM table_name_93 WHERE artist = "suzanne duranceau"
|
CREATE TABLE table_name_93 (mintage VARCHAR, artist VARCHAR)
|
How many coins by Suzanne Duranceau were minted?
|
SELECT method FROM table_name_72 WHERE round < 3 AND res = "nc"
|
CREATE TABLE table_name_72 (method VARCHAR, round VARCHAR, res VARCHAR)
|
What was the method for the resolution of nc where the fight lasted less than 3 rounds?
|
SELECT opponent FROM table_name_95 WHERE round < 4 AND event = "ufc 90"
|
CREATE TABLE table_name_95 (opponent VARCHAR, round VARCHAR, event VARCHAR)
|
Who was the opponent during the UFC 90 event with a fight that lasted less than 4 rounds?
|
SELECT method FROM table_name_33 WHERE event = "ufc 160"
|
CREATE TABLE table_name_33 (method VARCHAR, event VARCHAR)
|
What was the method for the resolution of the fight at UFC 160?
|
SELECT league FROM table_name_48 WHERE date = "5 october 1997"
|
CREATE TABLE table_name_48 (league VARCHAR, date VARCHAR)
|
What is the league on 5 October 1997?
|
SELECT season FROM table_name_50 WHERE date = "30 october 1977"
|
CREATE TABLE table_name_50 (season VARCHAR, date VARCHAR)
|
Which season was on 30 October 1977?
|
SELECT season FROM table_name_1 WHERE match = "roma-napoli" AND date = "12 september 1993"
|
CREATE TABLE table_name_1 (season VARCHAR, match VARCHAR, date VARCHAR)
|
What season had the Roma-Napoli match on 12 September 1993?
|
SELECT club_province FROM table_name_28 WHERE caps > 18 AND position = "fly-half"
|
CREATE TABLE table_name_28 (club_province VARCHAR, caps VARCHAR, position VARCHAR)
|
What club/province for the player with over 18 caps and plays the fly-half?
|
SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 16
|
CREATE TABLE table_name_14 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
|
What driver has less than 18 laps and a grid number under 16?
|
SELECT constructor FROM table_name_5 WHERE laps > 70 AND time_retired = "+12.535"
|
CREATE TABLE table_name_5 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR)
|
Who constructed the car with laps more than 70 and a time/retired of +12.535?
|
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+1 lap" AND driver = "alexander wurz" AND grid < 14
|
CREATE TABLE table_name_52 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
|
What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap.
|
SELECT home_team FROM table_name_54 WHERE away_team = "footscray"
|
CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR)
|
Who was Footscray's opponent on June 15th of 1968?
|
SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township"
|
CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR)
|
What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association?
|
SELECT pole_position FROM table_name_87 WHERE race = "belgian grand prix"
|
CREATE TABLE table_name_87 (pole_position VARCHAR, race VARCHAR)
|
What was the pole position for the belgian grand prix?
|
SELECT race AS Winner FROM table_name_53 WHERE race = "australian grand prix"
|
CREATE TABLE table_name_53 (race VARCHAR)
|
Who won the australian grand prix?
|
SELECT pole_position FROM table_name_39 WHERE location = "jerez"
|
CREATE TABLE table_name_39 (pole_position VARCHAR, location VARCHAR)
|
What was the pole position for jerez?
|
SELECT enzyme FROM table_name_66 WHERE disorder = "ornithine transcarbamylase deficiency"
|
CREATE TABLE table_name_66 (enzyme VARCHAR, disorder VARCHAR)
|
What is the enzyme involved in the disorder of Ornithine Transcarbamylase deficiency?
|
SELECT measurements FROM table_name_15 WHERE disorder = "ornithine transcarbamylase deficiency"
|
CREATE TABLE table_name_15 (measurements VARCHAR, disorder VARCHAR)
|
What lab measurements can help diagnosie ornithine transcarbamylase deficiency?
|
SELECT abb FROM table_name_30 WHERE disorder = "carbamoyl phosphate synthetase i deficiency"
|
CREATE TABLE table_name_30 (abb VARCHAR, disorder VARCHAR)
|
What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency?
|
SELECT venue FROM table_name_67 WHERE home_team = "melbourne"
|
CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR)
|
what is the venue when the home team is melbourne?
|
SELECT date FROM table_name_26 WHERE home_team = "st kilda"
|
CREATE TABLE table_name_26 (date VARCHAR, home_team VARCHAR)
|
what is the date when the home team is st kilda?
|
SELECT date FROM table_name_47 WHERE venue = "junction oval"
|
CREATE TABLE table_name_47 (date VARCHAR, venue VARCHAR)
|
what is the date when the venue is junction oval?
|
SELECT home_team AS score FROM table_name_24 WHERE venue = "mcg"
|
CREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR)
|
What is the home team score when played at mcg?
|
SELECT away_team FROM table_name_41 WHERE venue = "junction oval"
|
CREATE TABLE table_name_41 (away_team VARCHAR, venue VARCHAR)
|
who is the away team when played at junction oval?
|
SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = "1.8 20v t"
|
CREATE TABLE table_name_84 (top_speed__km_h_ INTEGER, model VARCHAR)
|
What is the top speed of the model 1.8 20v t?
|
SELECT max_torque__nm__at_rpm FROM table_name_82 WHERE model = "1.4 16v"
|
CREATE TABLE table_name_82 (max_torque__nm__at_rpm VARCHAR, model VARCHAR)
|
What is the max torque of model 1.4 16v?
|
SELECT rounds FROM table_name_64 WHERE driver = "ken wharton"
|
CREATE TABLE table_name_64 (rounds VARCHAR, driver VARCHAR)
|
How many rounds did Ken Wharton go?
|
SELECT driver FROM table_name_56 WHERE chassis = "166 c 500"
|
CREATE TABLE table_name_56 (driver VARCHAR, chassis VARCHAR)
|
What driver has a 166 c 500 chassis?
|
SELECT name FROM table_name_17 WHERE decile = "3" AND roll < 310 AND area = "onehunga"
|
CREATE TABLE table_name_17 (name VARCHAR, area VARCHAR, decile VARCHAR, roll VARCHAR)
|
What is the Onehunga school with a decile 3 and smaller than 310 rolls?
|
SELECT authority FROM table_name_38 WHERE area = "ellerslie" AND decile = "7"
|
CREATE TABLE table_name_38 (authority VARCHAR, area VARCHAR, decile VARCHAR)
|
What is the authority status of the school in Ellerslie with a decile of 7?
|
SELECT MAX(roll) FROM table_name_12 WHERE authority = "state" AND name = "sylvia park school"
|
CREATE TABLE table_name_12 (roll INTEGER, authority VARCHAR, name VARCHAR)
|
What is the biggest roll number of Sylvia Park School, which has a state authority?
|
SELECT name FROM table_name_41 WHERE decile = "1" AND authority = "state" AND area = "otahuhu"
|
CREATE TABLE table_name_41 (name VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR)
|
What is the name of the school with a decile of 1, a state authority, and located in Otahuhu?
|
SELECT special_notes FROM table_name_56 WHERE year < 2009
|
CREATE TABLE table_name_56 (special_notes VARCHAR, year INTEGER)
|
What is the special notes value for years under 2009?
|
SELECT COUNT(year) FROM table_name_39 WHERE theme = "toronto maple leafs" AND issue_price = 24.95
|
CREATE TABLE table_name_39 (year VARCHAR, theme VARCHAR, issue_price VARCHAR)
|
How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95?
|
SELECT winner FROM table_name_51 WHERE circuit = "winton motor raceway"
|
CREATE TABLE table_name_51 (winner VARCHAR, circuit VARCHAR)
|
Who was the winner for the Winton Motor Raceway circuit?
|
SELECT team FROM table_name_47 WHERE race_title = "mallala"
|
CREATE TABLE table_name_47 (team VARCHAR, race_title VARCHAR)
|
What was the team that held the race title of Mallala?
|
SELECT driver FROM table_name_60 WHERE laps < 9 AND grid = 13
|
CREATE TABLE table_name_60 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
|
Name the driver for Laps less than 9 and a grid of 13
|
SELECT winners FROM table_name_16 WHERE runners_up = "rosenborg"
|
CREATE TABLE table_name_16 (winners VARCHAR, runners_up VARCHAR)
|
Who was the winner in the competition in which the runner-up was Rosenborg?
|
SELECT years FROM table_name_57 WHERE runners_up = "odd grenland"
|
CREATE TABLE table_name_57 (years VARCHAR, runners_up VARCHAR)
|
What was the year of the competition in which Odd Grenland was the runner-up?
|
SELECT winners FROM table_name_44 WHERE runners_up = "lillestrøm" AND third = "lyn"
|
CREATE TABLE table_name_44 (winners VARCHAR, runners_up VARCHAR, third VARCHAR)
|
Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up?
|
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.