answer stringlengths 32 484 | context stringlengths 27 489 | question stringlengths 12 244 |
|---|---|---|
SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = "21 november 1582" | CREATE TABLE table_name_22 (birth VARCHAR, ceased_to_be_duke_of_girona VARCHAR) | WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582? |
SELECT birth FROM table_name_2 WHERE death = "october 1389" | CREATE TABLE table_name_2 (birth VARCHAR, death VARCHAR) | WHAT IS THE BIRTH DATE WITH A DEATH OF OCTOBER 1389? |
SELECT COUNT(laps) FROM table_name_54 WHERE rider = "aleix espargaro" | CREATE TABLE table_name_54 (laps VARCHAR, rider VARCHAR) | What is the total number of Laps, when Ride is Aleix Espargaro? |
SELECT county FROM table_name_72 WHERE name = "howard street tunnel" | CREATE TABLE table_name_72 (county VARCHAR, name VARCHAR) | What is the County of Howard Street Tunnel? |
SELECT location FROM table_name_58 WHERE built = "1869" | CREATE TABLE table_name_58 (location VARCHAR, built VARCHAR) | What is the Location of the Bridge Built in 1869? |
SELECT listed FROM table_name_77 WHERE county = "washington" AND name = "b & o bridge" | CREATE TABLE table_name_77 (listed VARCHAR, county VARCHAR, name VARCHAR) | What is the date Listed of the B & O Bridge in Washington? |
SELECT listed FROM table_name_46 WHERE built = "ca.1876" | CREATE TABLE table_name_46 (listed VARCHAR, built VARCHAR) | What is the date Listed of the Bridge Built CA.1876? |
SELECT listed FROM table_name_79 WHERE built = "1864" | CREATE TABLE table_name_79 (listed VARCHAR, built VARCHAR) | What is the date Listed of the Bridge Built in 1864? |
SELECT COUNT(draw) FROM table_name_9 WHERE televotes > 1761 AND song = "ils sont lΓ " AND place < 2 | CREATE TABLE table_name_9 (draw VARCHAR, place VARCHAR, televotes VARCHAR, song VARCHAR) | What is the total number of Draw(s), when Televotes is greater than 1761, when Song is "Ils Sont LΓ ", and when Place is less than 2? |
SELECT MIN(place) FROM table_name_50 WHERE televotes = 15424 | CREATE TABLE table_name_50 (place INTEGER, televotes VARCHAR) | What is the lowest Place, when Televotes is 15424? |
SELECT AVG(place) FROM table_name_14 WHERE song = "dis oui" | CREATE TABLE table_name_14 (place INTEGER, song VARCHAR) | What is the average Place, when Song is "Dis Oui"? |
SELECT to_club FROM table_name_52 WHERE transfer_fee = "free" AND pos = "df" | CREATE TABLE table_name_52 (to_club VARCHAR, transfer_fee VARCHAR, pos VARCHAR) | What club received a DF player for free? |
SELECT player FROM table_name_99 WHERE to_club = "reggina" | CREATE TABLE table_name_99 (player VARCHAR, to_club VARCHAR) | Which player was transferred to Reggina? |
SELECT exit_date FROM table_name_19 WHERE transfer_fee = "free" AND to_club = "reggina" | CREATE TABLE table_name_19 (exit_date VARCHAR, transfer_fee VARCHAR, to_club VARCHAR) | What is the exit date of the player transferred to Reggina for free? |
SELECT MIN(position) FROM table_name_23 WHERE country = "germany" AND pilot = "mario kiessling" | CREATE TABLE table_name_23 (position INTEGER, country VARCHAR, pilot VARCHAR) | What is the lowest position of pilot mario kiessling from Germany? |
SELECT AVG(position) FROM table_name_31 WHERE points < 11 AND pilot = "petr krejcirik" | CREATE TABLE table_name_31 (position INTEGER, points VARCHAR, pilot VARCHAR) | What is the average position of pilot petr krejcirik, who has less than 11 points? |
SELECT career_sr FROM table_name_43 WHERE 1985 = "1r" | CREATE TABLE table_name_43 (career_sr VARCHAR) | What is the career SR with a 1r in 1985? |
SELECT tournament FROM table_name_81 WHERE 1983 = "3r" | CREATE TABLE table_name_81 (tournament VARCHAR) | What tournament has a 3r in 1983? |
SELECT 1980 FROM table_name_48 WHERE 1984 = "1r" AND 1981 = "1r" | CREATE TABLE table_name_48 (Id VARCHAR) | What is the 1980 value with a 1r in 1984 and a 1r in 1981? |
SELECT finish FROM table_name_52 WHERE country = "australia" | CREATE TABLE table_name_52 (finish VARCHAR, country VARCHAR) | What is the finish of Australia? |
SELECT total FROM table_name_63 WHERE to_par = "+4" | CREATE TABLE table_name_63 (total VARCHAR, to_par VARCHAR) | What is the total with a +4 to par? |
SELECT country FROM table_name_57 WHERE to_par = "+3" | CREATE TABLE table_name_57 (country VARCHAR, to_par VARCHAR) | What country has a +3 to par? |
SELECT MIN(year) FROM table_name_56 WHERE artist = "every little thing" AND rank < 10 | CREATE TABLE table_name_56 (year INTEGER, artist VARCHAR, rank VARCHAR) | What was the first year that the artist of every little thing ranked lower than 10? |
SELECT championship FROM table_name_8 WHERE runner_s__up = "louise suggs" AND margin = "3 strokes" | CREATE TABLE table_name_8 (championship VARCHAR, runner_s__up VARCHAR, margin VARCHAR) | Which Championship was louise suggs the runner-up by 3 strokes? |
SELECT MAX(year) FROM table_name_49 WHERE runner_s__up = "kathy whitworth" | CREATE TABLE table_name_49 (year INTEGER, runner_s__up VARCHAR) | When was the most recent year that kathy whitworth was the runner-up? |
SELECT winning_score FROM table_name_75 WHERE championship = "u.s. women's open" AND margin = "5 strokes" | CREATE TABLE table_name_75 (winning_score VARCHAR, championship VARCHAR, margin VARCHAR) | What was the winning score in the u.s. women's open that was won by 5 strokes? |
SELECT record FROM table_name_86 WHERE high_rebounds = "marcus camby (15)" AND high_assists = "baron davis (7)" | CREATE TABLE table_name_86 (record VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR) | What is Record, when High Rebounds is "Marcus Camby (15)", and when High Assists is "Baron Davis (7)"? |
SELECT game FROM table_name_48 WHERE team = "philadelphia" | CREATE TABLE table_name_48 (game VARCHAR, team VARCHAR) | What is Game, when Team is "Philadelphia" |
SELECT high_assists FROM table_name_83 WHERE team = "@ milwaukee" | CREATE TABLE table_name_83 (high_assists VARCHAR, team VARCHAR) | What is High Assists, when Team is "@ Milwaukee"? |
SELECT SUM(tie_no) FROM table_name_89 WHERE away_team = "chelsea" | CREATE TABLE table_name_89 (tie_no INTEGER, away_team VARCHAR) | What was the tie number for the round against visiting opponent Chelsea? |
SELECT tie_no FROM table_name_53 WHERE away_team = "newcastle united" | CREATE TABLE table_name_53 (tie_no VARCHAR, away_team VARCHAR) | What was the tie number for the round against visiting opponent Newcastle United? |
SELECT date FROM table_name_29 WHERE home_team = "millwall" | CREATE TABLE table_name_29 (date VARCHAR, home_team VARCHAR) | What date was Millwall the home team? |
SELECT date FROM table_name_36 WHERE away_team = "leeds united" | CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR) | What date was Leeds United the away team? |
SELECT score FROM table_name_38 WHERE away_team = "bolton wanderers" | CREATE TABLE table_name_38 (score VARCHAR, away_team VARCHAR) | What was the score when Bolton Wanderers were the away team? |
SELECT SUM(events) FROM table_name_47 WHERE tournament = "u.s. open" AND top_25 < 1 | CREATE TABLE table_name_47 (events INTEGER, tournament VARCHAR, top_25 VARCHAR) | What is the total of events when the tournament was U.S. Open and the Top-25 was less than 1? |
SELECT SUM(wins) FROM table_name_40 WHERE top_25 = 3 AND cuts_made < 5 | CREATE TABLE table_name_40 (wins INTEGER, top_25 VARCHAR, cuts_made VARCHAR) | How many total wins have 3 as the Top-35 and less than 5 cuts made? |
SELECT MIN(top_10) FROM table_name_32 WHERE tournament = "the open championship" AND wins > 0 | CREATE TABLE table_name_32 (top_10 INTEGER, tournament VARCHAR, wins VARCHAR) | What is the minimum Top-10 when the Open Championship was the tournament and the wins greater than 0? |
SELECT MIN(top_10) FROM table_name_43 WHERE wins > 0 | CREATE TABLE table_name_43 (top_10 INTEGER, wins INTEGER) | With wins greater than 0 what is the minimum Top-10? |
SELECT SUM(top_25) FROM table_name_23 WHERE events < 0 | CREATE TABLE table_name_23 (top_25 INTEGER, events INTEGER) | What is the total Top-25 when the events were less than 0? |
SELECT player FROM table_name_24 WHERE country = "united states" AND score = 71 - 75 = 146 | CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR, score VARCHAR) | Who is the player from the United States with a score of 71-75=146? |
SELECT player FROM table_name_56 WHERE score = 77 - 68 = 145 | CREATE TABLE table_name_56 (player VARCHAR, score VARCHAR) | Who is the player with a 77-68=145 score? |
SELECT country FROM table_name_21 WHERE score = 76 - 68 = 144 | CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR) | What is the country with a 76-68=144 score? |
SELECT player FROM table_name_68 WHERE place = "t8" AND score = 75 - 71 = 146 | CREATE TABLE table_name_68 (player VARCHAR, place VARCHAR, score VARCHAR) | Who is the player in t8 place with a 75-71=146 score? |
SELECT to_par FROM table_name_50 WHERE country = "united states" AND place = "t1" AND score = 76 - 68 = 144 | CREATE TABLE table_name_50 (to_par VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR) | What is the to par of the player from the United States with a place of t1 and a 76-68=144 score? |
SELECT country FROM table_name_32 WHERE to_par = "+2" AND player = "lee trevino" | CREATE TABLE table_name_32 (country VARCHAR, to_par VARCHAR, player VARCHAR) | What is the country of player lee trevino, who has a to par of +2? |
SELECT pilot_s_ FROM table_name_43 WHERE location = "lake dumbleyung" | CREATE TABLE table_name_43 (pilot_s_ VARCHAR, location VARCHAR) | Who was the pilot at lake dumbleyung? |
SELECT speed FROM table_name_87 WHERE location = "coniston water" AND pilot_s_ = "malcolm campbell" | CREATE TABLE table_name_87 (speed VARCHAR, location VARCHAR, pilot_s_ VARCHAR) | How fast was the speed during the record set at Coniston Water that was piloted by Malcolm Campbell? |
SELECT home FROM table_name_36 WHERE away = "1β1" | CREATE TABLE table_name_36 (home VARCHAR, away VARCHAR) | Which Home has an Away of 1β1? |
SELECT away FROM table_name_99 WHERE season = "2007β08" | CREATE TABLE table_name_99 (away VARCHAR, season VARCHAR) | Which Away has a Season of 2007β08? |
SELECT season FROM table_name_94 WHERE away = "1β2" | CREATE TABLE table_name_94 (season VARCHAR, away VARCHAR) | Which Season has an Away of 1β2? |
SELECT away FROM table_name_41 WHERE home = "1β0" | CREATE TABLE table_name_41 (away VARCHAR, home VARCHAR) | Which Away has a Home of 1β0? |
SELECT season FROM table_name_77 WHERE league = "bezirksliga" | CREATE TABLE table_name_77 (season VARCHAR, league VARCHAR) | Which Season has a League of bezirksliga? |
SELECT season FROM table_name_24 WHERE home = "0β1" | CREATE TABLE table_name_24 (season VARCHAR, home VARCHAR) | Which Season has a Home of 0β1? |
SELECT venue FROM table_name_16 WHERE date = "2003" | CREATE TABLE table_name_16 (venue VARCHAR, date VARCHAR) | What was the Venue in 2003? |
SELECT competition FROM table_name_27 WHERE score = "3β3" | CREATE TABLE table_name_27 (competition VARCHAR, score VARCHAR) | What Competition had a Score of 3β3? |
SELECT MIN(round) FROM table_name_18 WHERE opponent = "rolando delgado" | CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR) | Name the lowest Round with Opponent of rolando delgado? |
SELECT COUNT(round) FROM table_name_73 WHERE location = "liverpool , england" | CREATE TABLE table_name_73 (round VARCHAR, location VARCHAR) | Name the total number of Round in liverpool , england? |
SELECT event FROM table_name_62 WHERE location = "chandigarh , india" | CREATE TABLE table_name_62 (event VARCHAR, location VARCHAR) | Which Event is in chandigarh , india? |
SELECT player FROM table_name_58 WHERE year > 2007 AND college_high_school_club = "arizona" | CREATE TABLE table_name_58 (player VARCHAR, year VARCHAR, college_high_school_club VARCHAR) | Who is the player with a year later than 2007 and the college/high school/club of Arizona? |
SELECT MIN(year) FROM table_name_89 WHERE position = "c" AND player = "gary bergen" | CREATE TABLE table_name_89 (year INTEGER, position VARCHAR, player VARCHAR) | What is the earliest year of c position player gary bergen? |
SELECT round FROM table_name_66 WHERE position = "sf/sg" AND year > 1965 AND player = "sly williams" | CREATE TABLE table_name_66 (round VARCHAR, player VARCHAR, position VARCHAR, year VARCHAR) | What round is sf/sg player sly williams from a year after 1965 from? |
SELECT round FROM table_name_37 WHERE position = "pf" AND year = 1996 AND college_high_school_club = "mississippi state" | CREATE TABLE table_name_37 (round VARCHAR, college_high_school_club VARCHAR, position VARCHAR, year VARCHAR) | What is the round of the pf position player from 1996 and the college/high school/club mississippi state? |
SELECT score FROM table_name_93 WHERE visitor = "montreal canadiens" AND points = 5 | CREATE TABLE table_name_93 (score VARCHAR, visitor VARCHAR, points VARCHAR) | Which Score has a Visitor of montreal canadiens, and Points of 5? |
SELECT date FROM table_name_99 WHERE home = "montreal canadiens" AND points > 9 AND decision = "price" | CREATE TABLE table_name_99 (date VARCHAR, decision VARCHAR, home VARCHAR, points VARCHAR) | Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price? |
SELECT score FROM table_name_97 WHERE home_team = "notts county" | CREATE TABLE table_name_97 (score VARCHAR, home_team VARCHAR) | What is the score for the home team Notts County? |
SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = "#8" AND share = 12 | CREATE TABLE table_name_62 (episode VARCHAR, share VARCHAR, viewers__millions_ VARCHAR, weekly_rank VARCHAR) | Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12? |
SELECT 2012 FROM table_name_3 WHERE 2009 = "mini" | CREATE TABLE table_name_3 (Id VARCHAR) | What is the 2012 with a mini in 2009? |
SELECT 2013 FROM table_name_5 WHERE 2009 = "virgin" | CREATE TABLE table_name_5 (Id VARCHAR) | What is the 2013 with virgin in 2009? |
SELECT MAX(rank) FROM table_name_95 WHERE 2009 = "xbox" | CREATE TABLE table_name_95 (rank INTEGER) | What is the highest rank of the 2009 xbox? |
SELECT 2010 FROM table_name_72 WHERE rank > 15 AND 2011 = "maserati" | CREATE TABLE table_name_72 (rank VARCHAR) | What is the 2010 with a rank higher than 15 and a 2011 maserati? |
SELECT record FROM table_name_70 WHERE points = 23 AND visitor = "chicago" | CREATE TABLE table_name_70 (record VARCHAR, points VARCHAR, visitor VARCHAR) | What is the record with 23 points and a visitor of Chicago? |
SELECT tied FROM table_name_84 WHERE "venue" = "venue" | CREATE TABLE table_name_84 (tied VARCHAR) | What venue had a tie? |
SELECT score FROM table_name_59 WHERE place = "t3" AND country = "spain" | CREATE TABLE table_name_59 (score VARCHAR, place VARCHAR, country VARCHAR) | What was the score in Spain T3? |
SELECT score FROM table_name_53 WHERE place = "t1" AND player = "lee trevino" | CREATE TABLE table_name_53 (score VARCHAR, place VARCHAR, player VARCHAR) | What score did Lee Trevino get in T1? |
SELECT player FROM table_name_45 WHERE score = 71 - 72 = 143 AND country = "spain" | CREATE TABLE table_name_45 (player VARCHAR, country VARCHAR, score VARCHAR) | Which player had the score 71-72=143 in Spain? |
SELECT score FROM table_name_42 WHERE to_par = "+1" AND player = "curtis strange" | CREATE TABLE table_name_42 (score VARCHAR, to_par VARCHAR, player VARCHAR) | When curtis strange had a to par +1, what was his score? |
SELECT player FROM table_name_45 WHERE country = "zimbabwe" | CREATE TABLE table_name_45 (player VARCHAR, country VARCHAR) | Who is the player for Zimbabwe? |
SELECT country FROM table_name_28 WHERE player = "greg norman" | CREATE TABLE table_name_28 (country VARCHAR, player VARCHAR) | What country is Greg Norman from? |
SELECT country FROM table_name_93 WHERE player = "bob tway" | CREATE TABLE table_name_93 (country VARCHAR, player VARCHAR) | What country is Bob Tway from? |
SELECT MAX(starts) FROM table_name_49 WHERE year = 2007 AND avg_start > 17.6 | CREATE TABLE table_name_49 (starts INTEGER, year VARCHAR, avg_start VARCHAR) | What was the highest number of starts in 2007 when the average start was over 17.6? |
SELECT wins FROM table_name_92 WHERE third = "1" AND points < 572 AND races < 16 | CREATE TABLE table_name_92 (wins VARCHAR, races VARCHAR, third VARCHAR, points VARCHAR) | What is the number of wins when the number of third was 1, points were less than 572 and had less than 16 races? |
SELECT res FROM table_name_49 WHERE competition = "friendly match" | CREATE TABLE table_name_49 (res VARCHAR, competition VARCHAR) | What was the result for the friendly match competition? |
SELECT team__number1 FROM table_name_17 WHERE res = "0-3" | CREATE TABLE table_name_17 (team__number1 VARCHAR, res VARCHAR) | What was the team #1 for the match that had a result of 0-3? |
SELECT 2010 AS _population_density FROM table_name_83 WHERE municipio = "ponce" | CREATE TABLE table_name_83 (municipio VARCHAR) | what is the 2010 population density for municipio ponce? |
SELECT category FROM table_name_86 WHERE nominated_for = "tween academy: class of 2012" | CREATE TABLE table_name_86 (category VARCHAR, nominated_for VARCHAR) | What's the category for the tween academy: class of 2012 nomination? |
SELECT COUNT(year) FROM table_name_47 WHERE award_giving_body = "famas awards" | CREATE TABLE table_name_47 (year VARCHAR, award_giving_body VARCHAR) | How many years was famas awards the award giving body? |
SELECT result FROM table_name_34 WHERE category = "best actor in a supporting role" | CREATE TABLE table_name_34 (result VARCHAR, category VARCHAR) | What's the result for the category of best actor in a supporting role? |
SELECT record FROM table_name_99 WHERE date = "december 17" | CREATE TABLE table_name_99 (record VARCHAR, date VARCHAR) | Which Record has a Date of december 17? |
SELECT streak FROM table_name_38 WHERE team = "new york knicks" | CREATE TABLE table_name_38 (streak VARCHAR, team VARCHAR) | Which Streak has a Team of new york knicks? |
SELECT date FROM table_name_43 WHERE record = "21β10" | CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR) | Which Date has a Record of 21β10? |
SELECT team FROM table_name_74 WHERE record = "17β8" | CREATE TABLE table_name_74 (team VARCHAR, record VARCHAR) | Which Team has a Record of 17β8? |
SELECT date FROM table_name_63 WHERE score = "102β113" | CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR) | Which Date has a Score of 102β113? |
SELECT game FROM table_name_80 WHERE streak = "loss 1" AND score = "110β111" | CREATE TABLE table_name_80 (game VARCHAR, streak VARCHAR, score VARCHAR) | Which Game has a Streak of loss 1, and a Score of 110β111? |
SELECT name FROM table_name_83 WHERE nat = "sco" AND transfer_window = "summer" AND moving_to = "greenock morton" | CREATE TABLE table_name_83 (name VARCHAR, moving_to VARCHAR, nat VARCHAR, transfer_window VARCHAR) | What is the name of the player who is Sco and moving to greenock morton in the summer? |
SELECT moving_to FROM table_name_17 WHERE name = "rory loy" | CREATE TABLE table_name_17 (moving_to VARCHAR, name VARCHAR) | Where is rory loy moving to? |
SELECT transfer_fee FROM table_name_23 WHERE name = "rory loy" | CREATE TABLE table_name_23 (transfer_fee VARCHAR, name VARCHAR) | What is the transfer fee for rory loy? |
SELECT date FROM table_name_89 WHERE visitor = "toronto" | CREATE TABLE table_name_89 (date VARCHAR, visitor VARCHAR) | What is the date of the game with toronto as the visitor? |
SELECT date FROM table_name_99 WHERE points < 35 AND home = "chicago" | CREATE TABLE table_name_99 (date VARCHAR, points VARCHAR, home VARCHAR) | What is the date of the game with less than 35 points and chicago as the home team? |
SELECT date FROM table_name_32 WHERE home = "pittsburgh" AND visitor = "boston" | CREATE TABLE table_name_32 (date VARCHAR, home VARCHAR, visitor VARCHAR) | What is the date of the game with pittsburgh as the home team and boston as the visitor team? |
SELECT record FROM table_name_77 WHERE home = "pittsburgh" AND points = 35 | CREATE TABLE table_name_77 (record VARCHAR, home VARCHAR, points VARCHAR) | What is the record of the game with 35 points and pittsburgh as the home team? |
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.