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