answer stringlengths 32 484 | context stringlengths 27 489 | question stringlengths 12 244 |
|---|---|---|
SELECT MIN(wins) FROM table_name_46 WHERE rank > 6 AND first_win = "1950 british grand prix" | CREATE TABLE table_name_46 (wins INTEGER, rank VARCHAR, first_win VARCHAR) | What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix? |
SELECT wins FROM table_name_47 WHERE rank > 16 AND latest_win = "1967 belgian grand prix" | CREATE TABLE table_name_47 (wins VARCHAR, rank VARCHAR, latest_win VARCHAR) | What is the rank 16 wins with the latest win at the 1967 Belgian Grand Prix? |
SELECT MIN(pick) FROM table_name_99 WHERE position = "defensive back" AND school = "drake" | CREATE TABLE table_name_99 (pick INTEGER, position VARCHAR, school VARCHAR) | What's the lowest pick for a defensive back at Drake? |
SELECT MIN(pick) FROM table_name_11 WHERE player = "terry jones" | CREATE TABLE table_name_11 (pick INTEGER, player VARCHAR) | What's terry jones' lowest pick? |
SELECT position FROM table_name_52 WHERE player = "gerald carter" | CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR) | What position does gerald carter play? |
SELECT player FROM table_name_44 WHERE position = "guard" AND school = "wisconsin" | CREATE TABLE table_name_44 (player VARCHAR, position VARCHAR, school VARCHAR) | Who is the guard for Wisconsin? |
SELECT player FROM table_name_31 WHERE nationality = "usa" AND pick = 33 | CREATE TABLE table_name_31 (player VARCHAR, nationality VARCHAR, pick VARCHAR) | Which player is Pick 33 and has a Nationality of USA? |
SELECT nationality FROM table_name_94 WHERE pick < 33 AND school_club_team = "vanderbilt" | CREATE TABLE table_name_94 (nationality VARCHAR, pick VARCHAR, school_club_team VARCHAR) | What is the nationality of the player who has a pick lower than 33 and a School/Club Team of Vanderbilt? |
SELECT nationality FROM table_name_15 WHERE nba_team = "phoenix suns" AND pick = 52 | CREATE TABLE table_name_15 (nationality VARCHAR, nba_team VARCHAR, pick VARCHAR) | What is the nationality of the player who had the pick of 52 and plays for the NBA team of Phoenix Suns? |
SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = "1" AND flt_apps = "0 (1)" | CREATE TABLE table_name_61 (league_apps VARCHAR, fa_cup_apps VARCHAR, flt_apps VARCHAR) | How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)? |
SELECT date FROM table_name_53 WHERE away_team = "st kilda" | CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR) | What day did St Kilda play as the away team? |
SELECT 2007 FROM table_name_12 WHERE 2011 = "a" AND 2009 = "q2" | CREATE TABLE table_name_12 (Id VARCHAR) | What's the value for 2007 when 2011 is a and 2009 is q2? |
SELECT MAX(league_goals) FROM table_name_67 WHERE total_goals < 1 AND fa_cup_goals > 0 | CREATE TABLE table_name_67 (league_goals INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR) | Tell me the highest league goals with total goals less than 1 and FA cups more than 0 |
SELECT SUM(fa_cup_goals) FROM table_name_59 WHERE name = "david mirfin" AND total_goals < 1 | CREATE TABLE table_name_59 (fa_cup_goals INTEGER, name VARCHAR, total_goals VARCHAR) | I want to know the sum of fa cup goals for david mirfin and total goals less than 1 |
SELECT league_apps FROM table_name_35 WHERE league_goals < 2 AND position = "df" AND fa_cup_apps = "5" | CREATE TABLE table_name_35 (league_apps VARCHAR, fa_cup_apps VARCHAR, league_goals VARCHAR, position VARCHAR) | Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5 |
SELECT video FROM table_name_75 WHERE channel = 14.2 | CREATE TABLE table_name_75 (video VARCHAR, channel VARCHAR) | What is the video ratio on channel 14.2? |
SELECT network FROM table_name_80 WHERE aspect = "4:3" AND psip_short_name = "qvc" | CREATE TABLE table_name_80 (network VARCHAR, aspect VARCHAR, psip_short_name VARCHAR) | What network has an aspect of 4:3 and a PSIP Short Name of qvc? |
SELECT psip_short_name FROM table_name_58 WHERE network = "ion life" | CREATE TABLE table_name_58 (psip_short_name VARCHAR, network VARCHAR) | What is ion life network's PSIP Short Name? |
SELECT SUM(channel) FROM table_name_65 WHERE network = "qubo" | CREATE TABLE table_name_65 (channel INTEGER, network VARCHAR) | What is the sum of channels for qubo network? |
SELECT deaths FROM table_name_34 WHERE name = "eseta" | CREATE TABLE table_name_34 (deaths VARCHAR, name VARCHAR) | How many deaths did eseta cause? |
SELECT date FROM table_name_65 WHERE away_team = "carlton" | CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR) | What was the date when the away team was Carlton? |
SELECT date FROM table_name_44 WHERE home_team = "hawthorn" | CREATE TABLE table_name_44 (date VARCHAR, home_team VARCHAR) | When the home team was hawthorn, what was the date? |
SELECT away_team AS score FROM table_name_91 WHERE away_team = "geelong" | CREATE TABLE table_name_91 (away_team VARCHAR) | What did Geelong score as the away team? |
SELECT date FROM table_name_85 WHERE home_team = "footscray" | CREATE TABLE table_name_85 (date VARCHAR, home_team VARCHAR) | What date did the home team of footscray play? |
SELECT club_team FROM table_name_72 WHERE nationality = "canada" AND overall = 188 | CREATE TABLE table_name_72 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR) | Name the club team for overall of 188 for canada |
SELECT nationality FROM table_name_66 WHERE overall = 74 | CREATE TABLE table_name_66 (nationality VARCHAR, overall VARCHAR) | Name the nationality of the player with an overall of 74 |
SELECT MAX(aug_2013) FROM table_name_27 WHERE nov_2011 < 968 AND jul_2012 = 31 AND jun_2011 > 30 | CREATE TABLE table_name_27 (aug_2013 INTEGER, jun_2011 VARCHAR, nov_2011 VARCHAR, jul_2012 VARCHAR) | What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30? |
SELECT AVG(apr_2013) FROM table_name_76 WHERE jun_2011 < 14 | CREATE TABLE table_name_76 (apr_2013 INTEGER, jun_2011 INTEGER) | What is the average Apr 2013 with a Jun 2011 less than 14? |
SELECT AVG(feb_2013) FROM table_name_31 WHERE feb_2010 = "37" AND nov_2012 < 32 | CREATE TABLE table_name_31 (feb_2013 INTEGER, feb_2010 VARCHAR, nov_2012 VARCHAR) | What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32? |
SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935 | CREATE TABLE table_name_19 (nov_2012 VARCHAR, jun_2013 VARCHAR, aug_2011 VARCHAR) | What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935? |
SELECT COUNT(grid) FROM table_name_71 WHERE time_retired = "+1:03.741" AND laps > 44 | CREATE TABLE table_name_71 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) | What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44? |
SELECT home_team AS score FROM table_name_89 WHERE venue = "brunswick street oval" | CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR) | What did the home team at Brunswick Street Oval score? |
SELECT high_rebounds FROM table_name_35 WHERE high_assists = "a. johnson (6)" | CREATE TABLE table_name_35 (high_rebounds VARCHAR, high_assists VARCHAR) | Who had the highest rebounds of the game with A. Johnson (6) as the highest assist? |
SELECT high_rebounds FROM table_name_55 WHERE high_assists = "a. johnson (14)" | CREATE TABLE table_name_55 (high_rebounds VARCHAR, high_assists VARCHAR) | Who had the highest rebounds of the game with A. Johnson (14) as the highest assists? |
SELECT opponent FROM table_name_16 WHERE date = "august 30" | CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR) | Who was the opponent on August 30? |
SELECT score FROM table_name_82 WHERE date = "august 8" | CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR) | What was the score on August 8? |
SELECT COUNT(pick) FROM table_name_52 WHERE player = "kenny evans" | CREATE TABLE table_name_52 (pick VARCHAR, player VARCHAR) | How many picks included Kenny Evans? |
SELECT COUNT(pick) FROM table_name_95 WHERE college = "letran" | CREATE TABLE table_name_95 (pick VARCHAR, college VARCHAR) | How many picks went to College of Letran? |
SELECT player FROM table_name_5 WHERE pba_team = "red bull thunder" | CREATE TABLE table_name_5 (player VARCHAR, pba_team VARCHAR) | Which player has a PBA team of Red Bull Thunder? |
SELECT event FROM table_name_98 WHERE year = 1971 AND result = "6th" | CREATE TABLE table_name_98 (event VARCHAR, year VARCHAR, result VARCHAR) | In which event did he place 6th in 1971? |
SELECT MIN(year) FROM table_name_3 WHERE result = "2nd" AND venue = "izmir, turkey" | CREATE TABLE table_name_3 (year INTEGER, result VARCHAR, venue VARCHAR) | When was the first year he placed 2nd in Izmir, Turkey? |
SELECT result FROM table_name_58 WHERE year = 1970 | CREATE TABLE table_name_58 (result VARCHAR, year VARCHAR) | How did he place in 1970? |
SELECT COUNT(attendance) FROM table_name_83 WHERE date = "may 29" | CREATE TABLE table_name_83 (attendance VARCHAR, date VARCHAR) | How many were in Attendance on the Date May 29? |
SELECT record FROM table_name_15 WHERE date = "may 8" | CREATE TABLE table_name_15 (record VARCHAR, date VARCHAR) | What was the Record on the Date May 8? |
SELECT home FROM table_name_16 WHERE date = "april 14, 2008" | CREATE TABLE table_name_16 (home VARCHAR, date VARCHAR) | Who was the home team at the game played on April 14, 2008? |
SELECT votes FROM table_name_51 WHERE notes = "lost to incumbent vic gilliam" | CREATE TABLE table_name_51 (votes VARCHAR, notes VARCHAR) | How many votes were cast when the notes reported lost to incumbent vic gilliam? |
SELECT candidate FROM table_name_57 WHERE race = "state representative, hd18" | CREATE TABLE table_name_57 (candidate VARCHAR, race VARCHAR) | Who is the candidate in Race for State representative, hd18? |
SELECT club_province FROM table_name_27 WHERE caps > 45 AND position = "prop" | CREATE TABLE table_name_27 (club_province VARCHAR, caps VARCHAR, position VARCHAR) | What club/province does the prop player with over 45 caps play for? |
SELECT opponent FROM table_name_46 WHERE arena = "staples center" | CREATE TABLE table_name_46 (opponent VARCHAR, arena VARCHAR) | Who was the opponent at the Staples Center? |
SELECT arena FROM table_name_33 WHERE opponent = "sharks" | CREATE TABLE table_name_33 (arena VARCHAR, opponent VARCHAR) | In what arena was the game against the Sharks played? |
SELECT label FROM table_name_86 WHERE format = "lp" | CREATE TABLE table_name_86 (label VARCHAR, format VARCHAR) | What is the label with the LP format? |
SELECT date FROM table_name_99 WHERE label = "4ad" AND format = "cd (reissue)" | CREATE TABLE table_name_99 (date VARCHAR, label VARCHAR, format VARCHAR) | What date had a 4ad label and a CD (reissue) format? |
SELECT country FROM table_name_66 WHERE catalogue__number = "cad 4011" | CREATE TABLE table_name_66 (country VARCHAR, catalogue__number VARCHAR) | Which country had a cad 4011 catalogue #? |
SELECT date FROM table_name_66 WHERE country = "japan" | CREATE TABLE table_name_66 (date VARCHAR, country VARCHAR) | Which date was for Japan? |
SELECT label FROM table_name_88 WHERE country = "united states" | CREATE TABLE table_name_88 (label VARCHAR, country VARCHAR) | What is the label on the United States? |
SELECT date FROM table_name_37 WHERE catalogue__number = "cocy-80093" | CREATE TABLE table_name_37 (date VARCHAR, catalogue__number VARCHAR) | What is the date with the catalogue # cocy-80093? |
SELECT category FROM table_name_72 WHERE nomination = "danson tang" | CREATE TABLE table_name_72 (category VARCHAR, nomination VARCHAR) | What category was danson tang nominated? |
SELECT SUM(year) FROM table_name_52 WHERE category = "best improved singer (躍進歌手)" | CREATE TABLE table_name_52 (year INTEGER, category VARCHAR) | What was the total number of years than had best improved singer (躍進歌手)? |
SELECT constructor FROM table_name_49 WHERE grid > 19 AND time_retired = "suspension" | CREATE TABLE table_name_49 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) | Who constructed the car with a grid over 19 that retired due to suspension? |
SELECT driver FROM table_name_79 WHERE grid = 9 | CREATE TABLE table_name_79 (driver VARCHAR, grid VARCHAR) | What driver has a 9 grid total? |
SELECT chassis FROM table_name_48 WHERE season = "1982" | CREATE TABLE table_name_48 (chassis VARCHAR, season VARCHAR) | What was the winning car's chassis for the 1982 season? |
SELECT team FROM table_name_8 WHERE chassis = "dallara f302" AND champion = "bastian kolmsee" | CREATE TABLE table_name_8 (team VARCHAR, chassis VARCHAR, champion VARCHAR) | Which team, with champion Bastian Kolmsee, used a Dallara f302 for the chassis? |
SELECT chassis FROM table_name_4 WHERE engine = "volkswagen" AND season = "2010" | CREATE TABLE table_name_4 (chassis VARCHAR, engine VARCHAR, season VARCHAR) | What chassis was the car with the Volkswagen engine built on in 2010? |
SELECT engine FROM table_name_86 WHERE team = "korten motorsport" | CREATE TABLE table_name_86 (engine VARCHAR, team VARCHAR) | Which engine did Korten Motorsport use? |
SELECT champion FROM table_name_28 WHERE engine = "ford" AND season = "1971" | CREATE TABLE table_name_28 (champion VARCHAR, engine VARCHAR, season VARCHAR) | Who was the champion that drove the car with the Ford engine in 1971? |
SELECT season FROM table_name_40 WHERE team = "lotus" AND champion = "jimmy eriksson" | CREATE TABLE table_name_40 (season VARCHAR, team VARCHAR, champion VARCHAR) | In which season did Jimmy Eriksson win the championship for Team Lotus? |
SELECT name FROM table_name_49 WHERE goals = 6 | CREATE TABLE table_name_49 (name VARCHAR, goals VARCHAR) | Which name had 6 goals? |
SELECT MAX(goals) FROM table_name_50 WHERE transfer_fee = "£0.8m" | CREATE TABLE table_name_50 (goals INTEGER, transfer_fee VARCHAR) | What is the largest goal number when the transfer fee was £0.8m? |
SELECT location FROM table_name_61 WHERE leagues = "a1 women's - handball" | CREATE TABLE table_name_61 (location VARCHAR, leagues VARCHAR) | What is the location of a1 women's - handball? |
SELECT COUNT(capacity) FROM table_name_8 WHERE venue = "nop aquatic centre" AND established > 1929 | CREATE TABLE table_name_8 (capacity VARCHAR, venue VARCHAR, established VARCHAR) | What is the capacity at the nop aquatic centre, established after 1929? |
SELECT COUNT(capacity) FROM table_name_93 WHERE leagues = "b national - basketball" | CREATE TABLE table_name_93 (capacity VARCHAR, leagues VARCHAR) | What is the capacity for b national - basketball? |
SELECT week FROM table_name_47 WHERE opponent = "minnesota vikings" | CREATE TABLE table_name_47 (week VARCHAR, opponent VARCHAR) | What game week did the Buccaneers play against the Minnesota Vikings? |
SELECT week FROM table_name_67 WHERE record = "0-5" | CREATE TABLE table_name_67 (week VARCHAR, record VARCHAR) | What game week did the buccaneers have a record of 0-5? |
SELECT record FROM table_name_9 WHERE date = "december 4, 1983" | CREATE TABLE table_name_9 (record VARCHAR, date VARCHAR) | What is the record of the buccaneers on December 4, 1983? |
SELECT AVG(attendance) FROM table_name_5 WHERE visitor = "ottawa" | CREATE TABLE table_name_5 (attendance INTEGER, visitor VARCHAR) | What was the attendance at the game against Ottawa? |
SELECT MAX(attendance) FROM table_name_83 WHERE home = "detroit" | CREATE TABLE table_name_83 (attendance INTEGER, home VARCHAR) | What was the highest attendance at a Detroit home game? |
SELECT AVG(attendance) FROM table_name_46 WHERE home = "florida" AND visitor = "montreal" | CREATE TABLE table_name_46 (attendance INTEGER, home VARCHAR, visitor VARCHAR) | What was the attendance of the Florida vs. Montreal game? |
SELECT condition FROM table_name_75 WHERE prothrombin_time = "unaffected" AND bleeding_time = "prolonged" AND partial_thromboplastin_time = "unaffected" AND platelet_count = "decreased or unaffected" | CREATE TABLE table_name_75 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) | I want to know the condition with Prothrombin time of unaffected and bleeding time of prolonged with partial thromboplastin time of unaffected with platelet count of decreased or unaffected |
SELECT condition FROM table_name_41 WHERE bleeding_time = "prolonged" AND platelet_count = "decreased or unaffected" | CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, platelet_count VARCHAR) | I want the condition that has a prolonged bleeding time and a platelet count of decreased or unaffected |
SELECT prothrombin_time FROM table_name_49 WHERE partial_thromboplastin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "factor xii deficiency" | CREATE TABLE table_name_49 (prothrombin_time VARCHAR, condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR) | I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor |
SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = "prolonged" AND bleeding_time = "unaffected" | CREATE TABLE table_name_41 (condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR) | I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time |
SELECT icao FROM table_name_86 WHERE airport = "antalya airport" | CREATE TABLE table_name_86 (icao VARCHAR, airport VARCHAR) | What is the ICAO for Antalya Airport? |
SELECT iata FROM table_name_39 WHERE airport = "leonardo da vinci-fiumicino airport" | CREATE TABLE table_name_39 (iata VARCHAR, airport VARCHAR) | What is the IATA of Leonardo da Vinci-Fiumicino Airport? |
SELECT country FROM table_name_68 WHERE iata = "blq" | CREATE TABLE table_name_68 (country VARCHAR, iata VARCHAR) | What country is the IATA BLQ located in? |
SELECT iata FROM table_name_8 WHERE airport = "madrid-barajas airport" | CREATE TABLE table_name_8 (iata VARCHAR, airport VARCHAR) | What is the IATA of Madrid-Barajas Airport? |
SELECT city FROM table_name_84 WHERE icao = "lirf" | CREATE TABLE table_name_84 (city VARCHAR, icao VARCHAR) | Which city has the ICAO of LIRF? |
SELECT city FROM table_name_27 WHERE airport = "naples airport" | CREATE TABLE table_name_27 (city VARCHAR, airport VARCHAR) | Which city is Naples Airport located in? |
SELECT ryuji_hijikata FROM table_name_39 WHERE taka_michinoku = "hayashi (28:05)" | CREATE TABLE table_name_39 (ryuji_hijikata VARCHAR, taka_michinoku VARCHAR) | Tell me the Ryuji Hijikata for TAKA Michinoku of Hayashi (28:05) |
SELECT ryuji_hijikata FROM table_name_72 WHERE block_a = "ryuji hijikata" | CREATE TABLE table_name_72 (ryuji_hijikata VARCHAR, block_a VARCHAR) | Tell me the Ryuji Hijikata for Block A of Ryuji Hijikata |
SELECT away_team AS score FROM table_name_49 WHERE away_team = "south melbourne" | CREATE TABLE table_name_49 (away_team VARCHAR) | When South Melbourne was the Away Team, what was their score? |
SELECT away_team AS score FROM table_name_23 WHERE away_team = "south melbourne" | CREATE TABLE table_name_23 (away_team VARCHAR) | Tell me the away team score for away team of south melbourne |
SELECT away_team AS score FROM table_name_82 WHERE venue = "vfl park" | CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR) | I want to know the away team score for vfl park venue |
SELECT COUNT(track) FROM table_name_21 WHERE translation = "the fallen angel" | CREATE TABLE table_name_21 (track VARCHAR, translation VARCHAR) | Name the total number of tracks for of the fallen angel |
SELECT driver FROM table_name_55 WHERE chassis = "193" AND rounds = "14" | CREATE TABLE table_name_55 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR) | What driver went 14 rounds with a 193 Chassis? |
SELECT engine FROM table_name_31 WHERE chassis = "fa13b fa14" AND driver = "aguri suzuki" | CREATE TABLE table_name_31 (engine VARCHAR, chassis VARCHAR, driver VARCHAR) | What engine was used when Aguri Suzuki drove the FA13B FA14 Chassis? |
SELECT entrant FROM table_name_46 WHERE rounds = "all" AND driver = "jean alesi" | CREATE TABLE table_name_46 (entrant VARCHAR, rounds VARCHAR, driver VARCHAR) | Who was the entrant for all the round with Jean Alesi? |
SELECT engine FROM table_name_12 WHERE driver = "riccardo patrese" | CREATE TABLE table_name_12 (engine VARCHAR, driver VARCHAR) | What engine did Riccardo Patrese use? |
SELECT venue FROM table_name_53 WHERE home_team = "footscray" | CREATE TABLE table_name_53 (venue VARCHAR, home_team VARCHAR) | If the home team was footscray which venue did they play it? |
SELECT home_team AS score FROM table_name_27 WHERE home_team = "footscray" | CREATE TABLE table_name_27 (home_team VARCHAR) | When the home team was footscray what did they score? |
SELECT home_team AS score FROM table_name_78 WHERE home_team = "north melbourne" | CREATE TABLE table_name_78 (home_team VARCHAR) | When the home team north melbourne was playing what did they 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.