answer stringlengths 32 484 | context stringlengths 27 489 | question stringlengths 12 244 |
|---|---|---|
SELECT COUNT(grid) FROM table_name_86 WHERE driver = "bob evans" AND laps < 68 | CREATE TABLE table_name_86 (grid VARCHAR, driver VARCHAR, laps VARCHAR) | Tell me the total number of Grid for Bob Evans and Laps less than 68 |
SELECT constructor FROM table_name_52 WHERE laps < 17 AND grid > 11 AND driver = "alan jones" | CREATE TABLE table_name_52 (constructor VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) | Tell me constructor for Laps less than 17 and Grid more than 11 for alan jones |
SELECT SUM(laps) FROM table_name_7 WHERE grid < 11 AND driver = "jean-pierre jarier" | CREATE TABLE table_name_7 (laps INTEGER, grid VARCHAR, driver VARCHAR) | I want the sum of Laps with Grid less than 11 for jean-pierre jarier |
SELECT constructor FROM table_name_39 WHERE time_retired = "brakes" AND grid < 14 | CREATE TABLE table_name_39 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR) | I want the constructor for brakes and grid less than 14 |
SELECT COUNT(episodes) FROM table_name_22 WHERE season_no = 1 | CREATE TABLE table_name_22 (episodes VARCHAR, season_no VARCHAR) | How may episodes did season 1 have? |
SELECT chassis FROM table_name_41 WHERE entrant = "larrousse f1" AND driver = "aguri suzuki" | CREATE TABLE table_name_41 (chassis VARCHAR, entrant VARCHAR, driver VARCHAR) | Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1? |
SELECT entrant FROM table_name_70 WHERE rounds = "16" AND constructor = "ferrari" | CREATE TABLE table_name_70 (entrant VARCHAR, rounds VARCHAR, constructor VARCHAR) | What was the entrant in round 16 were Ferrari was the constructor? |
SELECT country FROM table_name_71 WHERE icao = "zgha" | CREATE TABLE table_name_71 (country VARCHAR, icao VARCHAR) | Tell me the country with ICAO of zgha |
SELECT icao FROM table_name_51 WHERE city = "xi'an" | CREATE TABLE table_name_51 (icao VARCHAR, city VARCHAR) | I want the ICAO for city of xi'an |
SELECT iata FROM table_name_32 WHERE icao = "zgkl" | CREATE TABLE table_name_32 (iata VARCHAR, icao VARCHAR) | I want the IATA for ICAO of zgkl |
SELECT region FROM table_name_28 WHERE icao = "vmmc" | CREATE TABLE table_name_28 (region VARCHAR, icao VARCHAR) | I want the region for ICAO of vmmc |
SELECT MAX(grid) FROM table_name_29 WHERE time_retired = "+ 3 laps" AND laps < 57 | CREATE TABLE table_name_29 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) | What is the high grid number for a Time/Retired of + 3 laps, and a Laps smaller than 57? |
SELECT constructor FROM table_name_66 WHERE time_retired = "1:36:38.887" | CREATE TABLE table_name_66 (constructor VARCHAR, time_retired VARCHAR) | Who built the car that has a Time/Retired of 1:36:38.887? |
SELECT leading_scorer FROM table_name_99 WHERE date = "9 january 2008" | CREATE TABLE table_name_99 (leading_scorer VARCHAR, date VARCHAR) | Who was the leading scorer on 9 January 2008? |
SELECT SUM(played) FROM table_name_2 WHERE club = "barcelona b" AND wins < 11 | CREATE TABLE table_name_2 (played INTEGER, club VARCHAR, wins VARCHAR) | What is the number played for the Barcelona B club, with wins under 11? |
SELECT MAX(draws) FROM table_name_29 WHERE points = "20-18" AND wins < 4 | CREATE TABLE table_name_29 (draws INTEGER, points VARCHAR, wins VARCHAR) | What was the biggest draws, for wins under 4, and points of 20-18? |
SELECT AVG(goals_against) FROM table_name_68 WHERE goals_for > 35 AND goal_difference = 20 | CREATE TABLE table_name_68 (goals_against INTEGER, goals_for VARCHAR, goal_difference VARCHAR) | What is the average of goals against, where overall goals are more than 35 and the goal difference is 20? |
SELECT SUM(crowd) FROM table_name_41 WHERE away_team = "richmond" | CREATE TABLE table_name_41 (crowd INTEGER, away_team VARCHAR) | What is the Crowd number for the Away team of Richmond? |
SELECT home_team AS score FROM table_name_31 WHERE venue = "glenferrie oval" | CREATE TABLE table_name_31 (home_team VARCHAR, venue VARCHAR) | What is the Home team score for the Venue named Glenferrie Oval? |
SELECT MIN(crowd) FROM table_name_96 WHERE venue = "princes park" | CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR) | What is the smallest Crowd number for the Venue named Princes Park? |
SELECT notes FROM table_name_72 WHERE method = "points" AND event = "adcc 2001 absolute" AND result = "loss" | CREATE TABLE table_name_72 (notes VARCHAR, result VARCHAR, method VARCHAR, event VARCHAR) | Tell me the notes with method of points and event of adcc 2001 absolute with result of loss |
SELECT MIN(date) FROM table_name_59 WHERE result = "win" AND method = "points" AND notes = "opening round" | CREATE TABLE table_name_59 (date INTEGER, notes VARCHAR, result VARCHAR, method VARCHAR) | Tell me the lowest date for result of win and method of points with notes of opening round |
SELECT result FROM table_name_65 WHERE notes = "quarter-finals" AND event = "adcc 2001 absolute" | CREATE TABLE table_name_65 (result VARCHAR, notes VARCHAR, event VARCHAR) | Name the result with notes of quarter-finals and event of adcc 2001 absolute |
SELECT event FROM table_name_16 WHERE method = "points" AND notes = "opening round" | CREATE TABLE table_name_16 (event VARCHAR, method VARCHAR, notes VARCHAR) | I want the event for method of points with notes of opening round |
SELECT COUNT(wins) FROM table_name_71 WHERE events < 22 AND rank < 3 | CREATE TABLE table_name_71 (wins VARCHAR, events VARCHAR, rank VARCHAR) | How many win total which has the rank smaller than 3 and events smaller than 22 |
SELECT denomination FROM table_name_5 WHERE location = "mt lawley" | CREATE TABLE table_name_5 (denomination VARCHAR, location VARCHAR) | What denomination is mt lawley? |
SELECT day_boarding FROM table_name_84 WHERE location = "mt lawley" | CREATE TABLE table_name_84 (day_boarding VARCHAR, location VARCHAR) | Is mt lawley day or boarding? |
SELECT AVG(founded) FROM table_name_6 WHERE location = "claremont" | CREATE TABLE table_name_6 (founded INTEGER, location VARCHAR) | What is the average year founded for schools in claremont? |
SELECT away_team FROM table_name_32 WHERE home_team = "north melbourne" | CREATE TABLE table_name_32 (away_team VARCHAR, home_team VARCHAR) | When north melbourne was the home team who was the Away team? |
SELECT away_team FROM table_name_88 WHERE home_team = "collingwood" | CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) | When collingwood played as the home team who was the away team? |
SELECT home_team FROM table_name_52 WHERE away_team = "south melbourne" | CREATE TABLE table_name_52 (home_team VARCHAR, away_team VARCHAR) | When the Away team was south melbourne what was the home team? |
SELECT AVG(lowest) FROM table_name_24 WHERE average < 307 | CREATE TABLE table_name_24 (lowest INTEGER, average INTEGER) | What is the lowest attendance for a stadium that has an average smaller than 307? |
SELECT away_team AS score FROM table_name_64 WHERE home_team = "south melbourne" | CREATE TABLE table_name_64 (away_team VARCHAR, home_team VARCHAR) | When the home team was South Melbourne, what did the away team score? |
SELECT AVG(rank) FROM table_name_15 WHERE bronze < 13 AND total = 11 AND gold > 4 | CREATE TABLE table_name_15 (rank INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR) | What is the average rank of a country with less than 13 bronze medals, a total of 11 medals, and more than 4 gold? |
SELECT MIN(bronze) FROM table_name_58 WHERE silver = 9 AND total > 13 AND gold > 13 | CREATE TABLE table_name_58 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR) | What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has? |
SELECT MAX(silver) FROM table_name_6 WHERE total > 95 | CREATE TABLE table_name_6 (silver INTEGER, total INTEGER) | What is the highest number of silvers a team with more than 95 total medals has? |
SELECT MAX(total) FROM table_name_96 WHERE gold < 15 AND bronze < 5 AND rank > 10 | CREATE TABLE table_name_96 (total INTEGER, rank VARCHAR, gold VARCHAR, bronze VARCHAR) | What is the highest total medals a team with less than 15 gold, less than 5 bronze, and a rank larger than 10 has? |
SELECT home_team FROM table_name_95 WHERE venue = "glenferrie oval" | CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR) | Who is the home team who plays at Glenferrie Oval? |
SELECT away_team AS score FROM table_name_29 WHERE away_team = "carlton" | CREATE TABLE table_name_29 (away_team VARCHAR) | What did the away team Carlton score? |
SELECT position FROM table_name_58 WHERE tries > 4 AND points = 20 AND player = "lee gilmour" | CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR, tries VARCHAR, points VARCHAR) | What position did Lee Gilmour play while having more than 4 Tries and 20 points? |
SELECT host FROM table_name_29 WHERE ratings = "9.4/27" | CREATE TABLE table_name_29 (host VARCHAR, ratings VARCHAR) | Who was the host that garnered ratings of 9.4/27? |
SELECT lap_by_lap FROM table_name_29 WHERE year < 1994 AND ratings = "8.0/21" | CREATE TABLE table_name_29 (lap_by_lap VARCHAR, year VARCHAR, ratings VARCHAR) | Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21? |
SELECT host FROM table_name_30 WHERE ratings = "9.6/26" | CREATE TABLE table_name_30 (host VARCHAR, ratings VARCHAR) | Who was the host that garnered ratings of 9.6/26? |
SELECT ratings FROM table_name_83 WHERE host = "chris economaki" AND viewers = "12.3 million" | CREATE TABLE table_name_83 (ratings VARCHAR, host VARCHAR, viewers VARCHAR) | What were the ratings for host Chris Economaki who had 12.3 million viewers? |
SELECT network FROM table_name_74 WHERE host = "ken squier" AND viewers = "13.9 million" | CREATE TABLE table_name_74 (network VARCHAR, host VARCHAR, viewers VARCHAR) | Who was the network who had Ken Squier as a host and 13.9 million viewers? |
SELECT MIN(attendance) FROM table_name_1 WHERE date = "february 5" | CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR) | What was the lowest Attendance for Games played on the Date of February 5? |
SELECT SUM(attendance) FROM table_name_61 WHERE visitor = "chicago" | CREATE TABLE table_name_61 (attendance INTEGER, visitor VARCHAR) | What was the total Attendance for Games while Chicago was the visiting Team? |
SELECT pole_position FROM table_name_30 WHERE fastest_lap = "rubens barrichello" AND round > 11 | CREATE TABLE table_name_30 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR) | What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11? |
SELECT grand_prix FROM table_name_58 WHERE winning_driver = "david coulthard" AND pole_position = "michael schumacher" AND round < 9 | CREATE TABLE table_name_58 (grand_prix VARCHAR, round VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) | Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9? |
SELECT fastest_lap FROM table_name_32 WHERE pole_position = "david coulthard" AND winning_driver = "michael schumacher" | CREATE TABLE table_name_32 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) | Who had the fastest lap when David Coulthard had pole position and Michael Schumacher as a winning driver. |
SELECT fastest_lap FROM table_name_36 WHERE grand_prix = "australian grand prix" | CREATE TABLE table_name_36 (fastest_lap VARCHAR, grand_prix VARCHAR) | Who had the fastest lap at the Australian Grand Prix? |
SELECT team_2 FROM table_name_46 WHERE team_1 = "la nuova piovese (veneto a)" | CREATE TABLE table_name_46 (team_2 VARCHAR, team_1 VARCHAR) | Tell me the team 2 for team 1 being la nuova piovese (veneto a) |
SELECT team_1 FROM table_name_8 WHERE team_2 = "civitavecchiese (latium a)" | CREATE TABLE table_name_8 (team_1 VARCHAR, team_2 VARCHAR) | Tell me the team 1 for team 2 being civitavecchiese (latium a) |
SELECT 1 AS st_leg FROM table_name_55 WHERE team_1 = "budoni (sardinia)" | CREATE TABLE table_name_55 (team_1 VARCHAR) | Tell me the 1st leg for team being budoni (Sardinia) |
SELECT attendance FROM table_name_88 WHERE location = "busch stadium (ii)" AND time = "3:54" | CREATE TABLE table_name_88 (attendance VARCHAR, location VARCHAR, time VARCHAR) | How many attended the game at Busch Stadium (ii) when the time was 3:54? |
SELECT date FROM table_name_56 WHERE game > 6 | CREATE TABLE table_name_56 (date VARCHAR, game INTEGER) | What dates were the games after game 6 played? |
SELECT 1977 FROM table_name_9 WHERE 1972 = "grand slam tournaments" | CREATE TABLE table_name_9 (Id VARCHAR) | What is the 1977 value that had Grand Slam Tournaments in 1972? |
SELECT tournament FROM table_name_13 WHERE 1976 = "grand slam tournaments" | CREATE TABLE table_name_13 (tournament VARCHAR) | What is the tournament that had Grand Slam Tournaments in 1976? |
SELECT 1976 FROM table_name_35 WHERE tournament = "australian open" | CREATE TABLE table_name_35 (tournament VARCHAR) | What is the 1976 value of the Australian Open? |
SELECT 1977 FROM table_name_65 WHERE 1974 = "a" | CREATE TABLE table_name_65 (Id VARCHAR) | What is the 1977 value that has a 1974 a value? |
SELECT week FROM table_name_87 WHERE record = "4-10" | CREATE TABLE table_name_87 (week VARCHAR, record VARCHAR) | Which week led to a record of 4-10? |
SELECT week FROM table_name_91 WHERE opponent = "san diego chargers" | CREATE TABLE table_name_91 (week VARCHAR, opponent VARCHAR) | Which week was the game against the San Diego Chargers? |
SELECT height FROM table_name_93 WHERE hometown = "huntington, wv" | CREATE TABLE table_name_93 (height VARCHAR, hometown VARCHAR) | What is the height of the player who is from Huntington, WV? |
SELECT school FROM table_name_45 WHERE hometown = "chicago, il" | CREATE TABLE table_name_45 (school VARCHAR, hometown VARCHAR) | What school is the player who has a hometown of Chicago, IL from? |
SELECT college FROM table_name_67 WHERE school = "south medford high school" | CREATE TABLE table_name_67 (college VARCHAR, school VARCHAR) | Which college is the player from South Medford High School headed to? |
SELECT school FROM table_name_68 WHERE college = "duke" | CREATE TABLE table_name_68 (school VARCHAR, college VARCHAR) | Which school is the player who is headed to Duke from? |
SELECT hometown FROM table_name_83 WHERE college = "duke" | CREATE TABLE table_name_83 (hometown VARCHAR, college VARCHAR) | What is the hometown of the player who is headed to Duke? |
SELECT louise FROM table_name_83 WHERE dainty_june = "tracy venner" | CREATE TABLE table_name_83 (louise VARCHAR, dainty_june VARCHAR) | Who was Louise when Tracy Venner was Dainty June? |
SELECT dainty_june FROM table_name_5 WHERE louise = "tammy blanchard" | CREATE TABLE table_name_5 (dainty_june VARCHAR, louise VARCHAR) | Who was Dainty June when Tammy Blanchard was Louise? |
SELECT dainty_june FROM table_name_27 WHERE herbie = "boyd gaines" | CREATE TABLE table_name_27 (dainty_june VARCHAR, herbie VARCHAR) | Who was Dainty June when Boyd Gaines was Herbie? |
SELECT productions FROM table_name_53 WHERE rose = "angela lansbury" AND herbie = "barrie ingham" | CREATE TABLE table_name_53 (productions VARCHAR, rose VARCHAR, herbie VARCHAR) | What production had Angela Lansbury as Rose and Barrie Ingham as Herbie? |
SELECT rose FROM table_name_60 WHERE productions = "1975 broadway revival" | CREATE TABLE table_name_60 (rose VARCHAR, productions VARCHAR) | Who was rose in the 1975 Broadway Revival? |
SELECT productions FROM table_name_96 WHERE herbie = "rex robbins" | CREATE TABLE table_name_96 (productions VARCHAR, herbie VARCHAR) | Which production had Rex Robbins as Herbie? |
SELECT date FROM table_name_50 WHERE venue = "vfl park" | CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR) | On what date was the venue VFL Park? |
SELECT date FROM table_name_92 WHERE home_team = "footscray" | CREATE TABLE table_name_92 (date VARCHAR, home_team VARCHAR) | What date did Footscray play at home? |
SELECT home_team AS score FROM table_name_10 WHERE away_team = "geelong" | CREATE TABLE table_name_10 (home_team VARCHAR, away_team VARCHAR) | What did the home team score when they played the away team of Geelong? |
SELECT MIN(pick) FROM table_name_5 WHERE team = "boston celtics" | CREATE TABLE table_name_5 (pick INTEGER, team VARCHAR) | What was the lowest pick number for the Boston Celtics? |
SELECT visitor FROM table_name_98 WHERE date = "23 november 2007" | CREATE TABLE table_name_98 (visitor VARCHAR, date VARCHAR) | Who is the visitor team on 23 November 2007? |
SELECT leading_scorer FROM table_name_61 WHERE date = "20 november 2007" | CREATE TABLE table_name_61 (leading_scorer VARCHAR, date VARCHAR) | Who is the leading scorer of the game on 20 November 2007? |
SELECT overall FROM table_name_49 WHERE player = "petter ronnquist" | CREATE TABLE table_name_49 (overall VARCHAR, player VARCHAR) | When was petter ronnquist picked? |
SELECT venue FROM table_name_96 WHERE result = "1β0" | CREATE TABLE table_name_96 (venue VARCHAR, result VARCHAR) | Which venue has a Result of 1β0? |
SELECT venue FROM table_name_98 WHERE result = "1β2" | CREATE TABLE table_name_98 (venue VARCHAR, result VARCHAR) | Which venue has a Result of 1β2? |
SELECT MAX(scored) FROM table_name_59 WHERE result = "1β1" AND date = "4 march 2001" | CREATE TABLE table_name_59 (scored INTEGER, result VARCHAR, date VARCHAR) | What is the highest score with a Result of 1β1 on 4 march 2001? |
SELECT result FROM table_name_70 WHERE competition = "2003 eaff championship preliminary" AND date = "2 march 2003" | CREATE TABLE table_name_70 (result VARCHAR, competition VARCHAR, date VARCHAR) | What is the result of 2003 eaff championship preliminary on 2 march 2003? |
SELECT engine FROM table_name_44 WHERE driver = "luigi villoresi" | CREATE TABLE table_name_44 (engine VARCHAR, driver VARCHAR) | I want the engine for luigi villoresi |
SELECT chassis FROM table_name_34 WHERE entrant = "ecurie lutetia" | CREATE TABLE table_name_34 (chassis VARCHAR, entrant VARCHAR) | I want the chassis for entrant of ecurie lutetia |
SELECT date FROM table_name_8 WHERE venue = "princes park" | CREATE TABLE table_name_8 (date VARCHAR, venue VARCHAR) | What date was the game played at princes park? |
SELECT away_team AS score FROM table_name_83 WHERE venue = "vfl park" | CREATE TABLE table_name_83 (away_team VARCHAR, venue VARCHAR) | What was the score of the away team when the game was played at vfl park? |
SELECT kaz_hayashi FROM table_name_43 WHERE block_a = "bushi" | CREATE TABLE table_name_43 (kaz_hayashi VARCHAR, block_a VARCHAR) | Name the kaz hayashi for block A being bushi |
SELECT minoru FROM table_name_38 WHERE block_a = "koji kanemoto" | CREATE TABLE table_name_38 (minoru VARCHAR, block_a VARCHAR) | Name the minoru for block A being koji kanemoto |
SELECT bushi FROM table_name_45 WHERE kenny_omega = "yang (7:27)" | CREATE TABLE table_name_45 (bushi VARCHAR, kenny_omega VARCHAR) | Name the BUSHI when it has kenny omega of yang (7:27) |
SELECT bushi FROM table_name_50 WHERE kaz_hayashi = "kai (14:01)" | CREATE TABLE table_name_50 (bushi VARCHAR, kaz_hayashi VARCHAR) | Name the BUSHI that has kaz hayashi of kai (14:01) |
SELECT kaz_hayashi FROM table_name_49 WHERE bushi = "yang (9:43)" | CREATE TABLE table_name_49 (kaz_hayashi VARCHAR, bushi VARCHAR) | Name the Kaz Hayashi which has BUSHI of yang (9:43) |
SELECT winning_driver FROM table_name_25 WHERE race = "dutch grand prix" | CREATE TABLE table_name_25 (winning_driver VARCHAR, race VARCHAR) | Who was the winning driver for the Dutch Grand Prix? |
SELECT song FROM table_name_23 WHERE year < 2013 AND music_director = "yuvan shankar raja" AND film = "billa ii" | CREATE TABLE table_name_23 (song VARCHAR, film VARCHAR, year VARCHAR, music_director VARCHAR) | Tell me the song with year before 2013 and music director of yuvan shankar raja and film of billa ii |
SELECT title FROM table_name_13 WHERE original_air_date = "march 19, 1998" | CREATE TABLE table_name_13 (title VARCHAR, original_air_date VARCHAR) | What title aired on March 19, 1998? |
SELECT directed_by FROM table_name_1 WHERE production_code = "k2708" | CREATE TABLE table_name_1 (directed_by VARCHAR, production_code VARCHAR) | Who directed the show with the production code k2708? |
SELECT season__number FROM table_name_52 WHERE series__number = 81 | CREATE TABLE table_name_52 (season__number VARCHAR, series__number VARCHAR) | What is the season for series 81? |
SELECT date FROM table_name_4 WHERE venue = "lake oval" | CREATE TABLE table_name_4 (date VARCHAR, venue VARCHAR) | On what date was a match played at Lake Oval? |
SELECT away_team AS score FROM table_name_62 WHERE home_team = "collingwood" | CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR) | At the home game in Collingwood, how much did the away team score? |
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.