answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT title FROM table_name_23 WHERE presentation_of_credentials = "april 24, 1884"
|
CREATE TABLE table_name_23 (title VARCHAR, presentation_of_credentials VARCHAR)
|
Name the title with presentation of credentials of april 24, 1884
|
SELECT presentation_of_credentials FROM table_name_45 WHERE appointed_by = "grover cleveland" AND representative = "charles w. buck"
|
CREATE TABLE table_name_45 (presentation_of_credentials VARCHAR, appointed_by VARCHAR, representative VARCHAR)
|
Name the presentation of credentials for appointed by of grover cleveland and representative of charles w. buck
|
SELECT title FROM table_name_62 WHERE presentation_of_credentials = "april 10, 1907"
|
CREATE TABLE table_name_62 (title VARCHAR, presentation_of_credentials VARCHAR)
|
Name the title with presentation of credentials of april 10, 1907
|
SELECT title FROM table_name_65 WHERE termination_of_mission = "february 24, 1828"
|
CREATE TABLE table_name_65 (title VARCHAR, termination_of_mission VARCHAR)
|
Name the title with termination of mission of february 24, 1828
|
SELECT title FROM table_name_24 WHERE termination_of_mission = "april 10, 1939"
|
CREATE TABLE table_name_24 (title VARCHAR, termination_of_mission VARCHAR)
|
Name the title with termination of mission of april 10, 1939
|
SELECT termination_of_mission FROM table_name_18 WHERE appointed_by = "woodrow wilson" AND representative = "benton mcmillin"
|
CREATE TABLE table_name_18 (termination_of_mission VARCHAR, appointed_by VARCHAR, representative VARCHAR)
|
Name the termination of mission for woodrow wilson appointed by and representative of benton mcmillin
|
SELECT MAX(points_gained) FROM table_name_57 WHERE fans_took = "907" AND miles_[one_way] > 44.9
|
CREATE TABLE table_name_57 (points_gained INTEGER, fans_took VARCHAR, miles_ VARCHAR, one_way VARCHAR)
|
What is the highest points gained of the match where fans took 907 and there were more than 44.9 miles one way?
|
SELECT SUM(points_gained) FROM table_name_36 WHERE fans_took = "403 [sunday]"
|
CREATE TABLE table_name_36 (points_gained INTEGER, fans_took VARCHAR)
|
What is the points gained of the match where fans took 403 [sunday]?
|
SELECT team FROM table_name_71 WHERE fans_took = "288"
|
CREATE TABLE table_name_71 (team VARCHAR, fans_took VARCHAR)
|
Which team had fans took of 288?
|
SELECT years FROM table_name_99 WHERE ranking = 1
|
CREATE TABLE table_name_99 (years VARCHAR, ranking VARCHAR)
|
What years had a ranking of 1?
|
SELECT nationality FROM table_name_25 WHERE goals = 50 AND ranking = 3
|
CREATE TABLE table_name_25 (nationality VARCHAR, goals VARCHAR, ranking VARCHAR)
|
What is the nationality of the person with 50 goals and rank 3?
|
SELECT status FROM table_name_58 WHERE name = "joon-hyung park 박준형"
|
CREATE TABLE table_name_58 (status VARCHAR, name VARCHAR)
|
What was the status of joon-hyung park 박준형?
|
SELECT name FROM table_name_80 WHERE style = "ballet" AND status = "original cast"
|
CREATE TABLE table_name_80 (name VARCHAR, style VARCHAR, status VARCHAR)
|
Who had a ballet style with original cast?
|
SELECT first_performance FROM table_name_80 WHERE status = "replacement cast"
|
CREATE TABLE table_name_80 (first_performance VARCHAR, status VARCHAR)
|
When was the first performance with a replacement cast?
|
SELECT MAX(year) FROM table_name_43 WHERE chassis = "tyrrell 018" AND points < 3
|
CREATE TABLE table_name_43 (year INTEGER, chassis VARCHAR, points VARCHAR)
|
What is the latest year for the Tyrrell 018 Chassis that has less than 3 points?
|
SELECT entrant FROM table_name_42 WHERE engine = "honda v6" AND chassis = "lotus 99t"
|
CREATE TABLE table_name_42 (entrant VARCHAR, engine VARCHAR, chassis VARCHAR)
|
Which entrant has a Honda V6 engine and a Lotus 99t chassis?
|
SELECT best FROM table_name_4 WHERE matches > 11 AND runs = 1088
|
CREATE TABLE table_name_4 (best VARCHAR, matches VARCHAR, runs VARCHAR)
|
Name the best when runs of 1088 and matches more than 11
|
SELECT MAX(runs) FROM table_name_68 WHERE wickets = 66 AND matches < 13
|
CREATE TABLE table_name_68 (runs INTEGER, wickets VARCHAR, matches VARCHAR)
|
Name the most runs for wickets of 66 and matches less than 13
|
SELECT score FROM table_name_29 WHERE opponent = "san diego padres" AND record = "11-23"
|
CREATE TABLE table_name_29 (score VARCHAR, opponent VARCHAR, record VARCHAR)
|
What is the score of the game with the San Diego Padres as the opponent and a record of 11-23?
|
SELECT date FROM table_name_16 WHERE record = "14-31"
|
CREATE TABLE table_name_16 (date VARCHAR, record VARCHAR)
|
What is the date of the game with a record of 14-31?
|
SELECT date FROM table_name_90 WHERE record = "17-31"
|
CREATE TABLE table_name_90 (date VARCHAR, record VARCHAR)
|
What is the date of the game with a 17-31 record?
|
SELECT record FROM table_name_70 WHERE date = "13 may"
|
CREATE TABLE table_name_70 (record VARCHAR, date VARCHAR)
|
What is the record of the game on 13 May?
|
SELECT AVG(attendance) FROM table_name_63 WHERE week = 15
|
CREATE TABLE table_name_63 (attendance INTEGER, week VARCHAR)
|
What was average attendance during week 15?
|
SELECT MIN(week) FROM table_name_75 WHERE result = "t 17–17"
|
CREATE TABLE table_name_75 (week INTEGER, result VARCHAR)
|
What's the smallest week that had a result of t 17–17?
|
SELECT opponent FROM table_name_69 WHERE week = 12
|
CREATE TABLE table_name_69 (opponent VARCHAR, week VARCHAR)
|
Who was the opponent in week 12?
|
SELECT current_club FROM table_name_36 WHERE year_born > 1983 AND height < 2.12 AND position = "forward"
|
CREATE TABLE table_name_36 (current_club VARCHAR, position VARCHAR, year_born VARCHAR, height VARCHAR)
|
What is the current club of the Forward who was born after 1983 and who has a height under 2.12?
|
SELECT position FROM table_name_30 WHERE height > 2.12
|
CREATE TABLE table_name_30 (position VARCHAR, height INTEGER)
|
What is the position of the player who is taller than 2.12?
|
SELECT no_vote FROM table_name_48 WHERE state = "north dakota"
|
CREATE TABLE table_name_48 (no_vote VARCHAR, state VARCHAR)
|
How many no votes did North Dakota have?
|
SELECT date FROM table_name_92 WHERE state = "colorado"
|
CREATE TABLE table_name_92 (date VARCHAR, state VARCHAR)
|
What was the date for Colorado?
|
SELECT no_vote FROM table_name_31 WHERE date = "1998" AND state = "alaska"
|
CREATE TABLE table_name_31 (no_vote VARCHAR, date VARCHAR, state VARCHAR)
|
How many no votes from Alaska in 1998?
|
SELECT yes_vote FROM table_name_73 WHERE date = "2006" AND state = "tennessee"
|
CREATE TABLE table_name_73 (yes_vote VARCHAR, date VARCHAR, state VARCHAR)
|
How many positive votes for Tennessee in 2006?
|
SELECT name_of_the_song FROM table_name_82 WHERE kind_of_the_song = "opening theme" AND drama = "revolving doors of vengeance"
|
CREATE TABLE table_name_82 (name_of_the_song VARCHAR, kind_of_the_song VARCHAR, drama VARCHAR)
|
What is the name of the song that is part of the opening theme and has a drama of the revolving doors of vengeance?
|
SELECT SUM(floors) FROM table_name_15 WHERE street_address = "32 n. main street"
|
CREATE TABLE table_name_15 (floors INTEGER, street_address VARCHAR)
|
How many floors are there at 32 n. main street?
|
SELECT completed FROM table_name_64 WHERE rank = "9"
|
CREATE TABLE table_name_64 (completed VARCHAR, rank VARCHAR)
|
When did the rank 9 building got completed?
|
SELECT party FROM table_name_46 WHERE governments = "24"
|
CREATE TABLE table_name_46 (party VARCHAR, governments VARCHAR)
|
Which party has 24 governments?
|
SELECT governments FROM table_name_43 WHERE term_start = "24 september 1984"
|
CREATE TABLE table_name_43 (governments VARCHAR, term_start VARCHAR)
|
What governments did the minister with a term start on 24 September 1984 have?
|
SELECT term_end FROM table_name_37 WHERE party = "national religious party" AND minister = "shlomo-yisrael ben-meir"
|
CREATE TABLE table_name_37 (term_end VARCHAR, party VARCHAR, minister VARCHAR)
|
When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?
|
SELECT minister FROM table_name_71 WHERE term_end = "10 march 1974"
|
CREATE TABLE table_name_71 (minister VARCHAR, term_end VARCHAR)
|
Who is the minister with a term end on 10 March 1974?
|
SELECT points_classification FROM table_name_65 WHERE team_classification = "predictor-lotto" AND stage = "1"
|
CREATE TABLE table_name_65 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
|
Name the points classification for predictor-lotto and stage 1
|
SELECT points_classification FROM table_name_66 WHERE team_classification = "quick step-innergetic" AND stage = "7"
|
CREATE TABLE table_name_66 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
|
Name the points classification for quick step-innergetic with stage 7
|
SELECT stage FROM table_name_22 WHERE winner = "robbie mcewen"
|
CREATE TABLE table_name_22 (stage VARCHAR, winner VARCHAR)
|
Name the stgae with winner of robbie mcewen
|
SELECT winner FROM table_name_96 WHERE general_classification = "nick nuyens" AND stage = "2"
|
CREATE TABLE table_name_96 (winner VARCHAR, general_classification VARCHAR, stage VARCHAR)
|
Name the winner for nick nuyens for general classification and stage of 2
|
SELECT team_classification FROM table_name_47 WHERE stage = "6"
|
CREATE TABLE table_name_47 (team_classification VARCHAR, stage VARCHAR)
|
Name the team classification for stage of 6
|
SELECT power__kw_ FROM table_name_44 WHERE location = "davao"
|
CREATE TABLE table_name_44 (power__kw_ VARCHAR, location VARCHAR)
|
What is the Davao's power (kW)?
|
SELECT branding FROM table_name_35 WHERE callsign = "dxre"
|
CREATE TABLE table_name_35 (branding VARCHAR, callsign VARCHAR)
|
What is the brand of DXRE?
|
SELECT power__kw_ FROM table_name_74 WHERE location = "davao"
|
CREATE TABLE table_name_74 (power__kw_ VARCHAR, location VARCHAR)
|
What is the power (kW) of Davao?
|
SELECT callsign FROM table_name_81 WHERE power__kw_ = "5kw" AND location = "cagayan de oro"
|
CREATE TABLE table_name_81 (callsign VARCHAR, power__kw_ VARCHAR, location VARCHAR)
|
What is the callsign of Cagayan de Oro with 5kW?
|
SELECT callsign FROM table_name_23 WHERE power__kw_ = "5kw" AND branding = "sonshine radio cotabato"
|
CREATE TABLE table_name_23 (callsign VARCHAR, power__kw_ VARCHAR, branding VARCHAR)
|
What is the callsign of the 5kW Sonshine Radio Cotabato?
|
SELECT AVG(runs) FROM table_name_70 WHERE innings = 40 AND not_outs > 6
|
CREATE TABLE table_name_70 (runs INTEGER, innings VARCHAR, not_outs VARCHAR)
|
What's the average amount of Runs that has 40 innings, and Not outs larger than 6?
|
SELECT COUNT(innings) FROM table_name_68 WHERE runs = 1598 AND matches < 41
|
CREATE TABLE table_name_68 (innings VARCHAR, runs VARCHAR, matches VARCHAR)
|
What's the total Innings that has Runs of 1598, and Matches less than 41?
|
SELECT venue FROM table_name_12 WHERE year = 2008 AND notes = "2:13:10"
|
CREATE TABLE table_name_12 (venue VARCHAR, year VARCHAR, notes VARCHAR)
|
What venue held the event in 2008 that has 2:13:10 in the notes?
|
SELECT discoverer FROM table_name_43 WHERE museum = "burpee museum of natural history"
|
CREATE TABLE table_name_43 (discoverer VARCHAR, museum VARCHAR)
|
Who discovered the specimen at the Burpee Museum of Natural History?
|
SELECT museum AS city FROM table_name_28 WHERE discoverer = "jane solem"
|
CREATE TABLE table_name_28 (museum VARCHAR, discoverer VARCHAR)
|
What is the city of the Museum that houses the specimen discovered by Jane Solem?
|
SELECT museum AS city FROM table_name_48 WHERE name = "sue"
|
CREATE TABLE table_name_48 (museum VARCHAR, name VARCHAR)
|
What city has the museum that holds the Sue specimen?
|
SELECT name FROM table_name_57 WHERE roll = "637"
|
CREATE TABLE table_name_57 (name VARCHAR, roll VARCHAR)
|
With what Name does the Roll of 637 belong?
|
SELECT authority FROM table_name_4 WHERE roll = "70"
|
CREATE TABLE table_name_4 (authority VARCHAR, roll VARCHAR)
|
Which is the Authority that has a Roll of 70?
|
SELECT years FROM table_name_91 WHERE decile = "6"
|
CREATE TABLE table_name_91 (years VARCHAR, decile VARCHAR)
|
The Decile of 6 has which corresponding Years?
|
SELECT award FROM table_name_78 WHERE director_s_ = "candida scott knight"
|
CREATE TABLE table_name_78 (award VARCHAR, director_s_ VARCHAR)
|
Name the award for candida scott knight
|
SELECT recipient FROM table_name_94 WHERE award = "£6,947" AND film = "jamaica"
|
CREATE TABLE table_name_94 (recipient VARCHAR, award VARCHAR, film VARCHAR)
|
Name the recipient for jamaica and award of £6,947
|
SELECT film FROM table_name_98 WHERE award = "£3,740"
|
CREATE TABLE table_name_98 (film VARCHAR, award VARCHAR)
|
Name the film for award of £3,740
|
SELECT director_s_ FROM table_name_81 WHERE recipient = "maya vision international ltd"
|
CREATE TABLE table_name_81 (director_s_ VARCHAR, recipient VARCHAR)
|
Name the director for maya vision international ltd
|
SELECT film FROM table_name_66 WHERE award = "£3,386"
|
CREATE TABLE table_name_66 (film VARCHAR, award VARCHAR)
|
Name the film for award of £3,386
|
SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 2004
|
CREATE TABLE table_name_4 (venue VARCHAR, position VARCHAR, year VARCHAR)
|
Name the venue for 2004 and position of 25th
|
SELECT venue FROM table_name_1 WHERE position = "27th"
|
CREATE TABLE table_name_1 (venue VARCHAR, position VARCHAR)
|
Name the venue for 27th position
|
SELECT score FROM table_name_24 WHERE competition = "2005 fifa confederations cup" AND result = "draw"
|
CREATE TABLE table_name_24 (score VARCHAR, competition VARCHAR, result VARCHAR)
|
What was the score of the draw in the 2005 FIFA Confederations Cup?
|
SELECT MAX(peroutka) FROM table_name_69 WHERE others = 46 AND electors < 15
|
CREATE TABLE table_name_69 (peroutka INTEGER, others VARCHAR, electors VARCHAR)
|
What is the highest Peroutka with 46 others, and less than 15 electors?
|
SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990"
|
CREATE TABLE table_name_20 (year VARCHAR)
|
Who came in 3rd place in 1990?
|
SELECT class AS pos FROM table_name_71 WHERE team = "jml team panoz"
|
CREATE TABLE table_name_71 (class VARCHAR, team VARCHAR)
|
Which class Pos has a Team of jml team panoz?
|
SELECT class AS pos FROM table_name_25 WHERE year > 1997 AND team = "corvette racing" AND class = "gt1" AND laps = 327
|
CREATE TABLE table_name_25 (class VARCHAR, laps VARCHAR, year VARCHAR, team VARCHAR)
|
Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps?
|
SELECT final FROM table_name_11 WHERE no5 = "simara"
|
CREATE TABLE table_name_11 (final VARCHAR, no5 VARCHAR)
|
What is the final result of the team that has Simara as No.5?
|
SELECT winning_driver FROM table_name_25 WHERE second_driver = "jimmy bryan"
|
CREATE TABLE table_name_25 (winning_driver VARCHAR, second_driver VARCHAR)
|
Which Winning Driver has a Second Driver of jimmy bryan?
|
SELECT AVG(cars_entered) FROM table_name_53 WHERE third_driver = "manny ayulo"
|
CREATE TABLE table_name_53 (cars_entered INTEGER, third_driver VARCHAR)
|
How many average Cars Entered have a Third Driver of manny ayulo?
|
SELECT MAX(cars_entered) FROM table_name_69 WHERE season = 1958
|
CREATE TABLE table_name_69 (cars_entered INTEGER, season VARCHAR)
|
What are the largest Cars Entered with a Season of 1958?
|
SELECT MAX(season) FROM table_name_2 WHERE third_driver = "jimmy davies"
|
CREATE TABLE table_name_2 (season INTEGER, third_driver VARCHAR)
|
What is the largest season with a Third Driver of jimmy davies?
|
SELECT MAX(cars_entered) FROM table_name_33 WHERE winning_driver = "rodger ward" AND season < 1959
|
CREATE TABLE table_name_33 (cars_entered INTEGER, winning_driver VARCHAR, season VARCHAR)
|
What are the largest Cars Entered with a Winning Driver of rodger ward, and a Season smaller than 1959?
|
SELECT engine FROM table_name_66 WHERE chassis = "brabham bt58" AND points > 2
|
CREATE TABLE table_name_66 (engine VARCHAR, chassis VARCHAR, points VARCHAR)
|
What engine with more than 2 points has Brabham bt58 as Chassis?
|
SELECT COUNT(points) FROM table_name_71 WHERE engine = "judd v8" AND year = 1989
|
CREATE TABLE table_name_71 (points VARCHAR, engine VARCHAR, year VARCHAR)
|
How many points did Judd v8 has in 1989?
|
SELECT AVG(year) FROM table_name_79 WHERE entrant = "sasol jordan yamaha"
|
CREATE TABLE table_name_79 (year INTEGER, entrant VARCHAR)
|
How many years has Sasol Jordan Yamaha as an Entrant?
|
SELECT record FROM table_name_30 WHERE loss = "williams (3-1)"
|
CREATE TABLE table_name_30 (record VARCHAR, loss VARCHAR)
|
What was the record for the game that had a loss of Williams (3-1)?
|
SELECT score FROM table_name_98 WHERE loss = "embree (1-2)"
|
CREATE TABLE table_name_98 (score VARCHAR, loss VARCHAR)
|
What was the score of the game that had a loss of Embree (1-2)?
|
SELECT 2007 FROM table_name_55 WHERE tournament = "olympic games"
|
CREATE TABLE table_name_55 (tournament VARCHAR)
|
What shows for 2007 at the Olympic Games as tournament.
|
SELECT 2009 FROM table_name_5 WHERE 2012 = "1r"
|
CREATE TABLE table_name_5 (Id VARCHAR)
|
What shows for 2009 when the 2012 is 1R?
|
SELECT 2010 FROM table_name_50 WHERE 2009 = "q1"
|
CREATE TABLE table_name_50 (Id VARCHAR)
|
What is the 2010 when the 2009 shows Q1?
|
SELECT gross_revenue__2011_ FROM table_name_8 WHERE state = "mo"
|
CREATE TABLE table_name_8 (gross_revenue__2011_ VARCHAR, state VARCHAR)
|
What is the gross revenue in 2011 for MO?
|
SELECT state FROM table_name_30 WHERE venue = "tsukisamu dome"
|
CREATE TABLE table_name_30 (state VARCHAR, venue VARCHAR)
|
Which state has the venue Tsukisamu dome?
|
SELECT city FROM table_name_92 WHERE gross_revenue__2011_ = "$739,578"
|
CREATE TABLE table_name_92 (city VARCHAR, gross_revenue__2011_ VARCHAR)
|
Which city had a gross revenue in 2011 of $739,578?
|
SELECT gross_revenue__2011_ FROM table_name_28 WHERE gross_revenue__1982_ = "$1,988,047"
|
CREATE TABLE table_name_28 (gross_revenue__2011_ VARCHAR, gross_revenue__1982_ VARCHAR)
|
What is the gross revenue in 2011 with a gross revenue in 1982 of $1,988,047?
|
SELECT grid FROM table_name_96 WHERE driver = "mark webber"
|
CREATE TABLE table_name_96 (grid VARCHAR, driver VARCHAR)
|
What was the grid when the driver was Mark Webber?
|
SELECT driver FROM table_name_1 WHERE constructor = "renault" AND time_retired = "+38.600"
|
CREATE TABLE table_name_1 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR)
|
Who was the driver, when the constructor was Renault, and when the Time/Retired was +38.600?
|
SELECT laps FROM table_name_73 WHERE time_retired = "+1:00.003"
|
CREATE TABLE table_name_73 (laps VARCHAR, time_retired VARCHAR)
|
How many laps were there when the Time/Retired was +1:00.003?
|
SELECT laps FROM table_name_45 WHERE time_retired = "+14.403"
|
CREATE TABLE table_name_45 (laps VARCHAR, time_retired VARCHAR)
|
How many laps were there when the Time/Retired was +14.403?
|
SELECT driver FROM table_name_10 WHERE laps = "35"
|
CREATE TABLE table_name_10 (driver VARCHAR, laps VARCHAR)
|
Who was the driver when there were 35 laps?
|
SELECT laps FROM table_name_7 WHERE constructor = "renault" AND driver = "fernando alonso"
|
CREATE TABLE table_name_7 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)
|
How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso?
|
SELECT street_address FROM table_name_74 WHERE name = "new york life insurance building"
|
CREATE TABLE table_name_74 (street_address VARCHAR, name VARCHAR)
|
What's the Street address with a Name of New York Life Insurance building?
|
SELECT years_as_tallest FROM table_name_12 WHERE street_address = "324 e. 11th street"
|
CREATE TABLE table_name_12 (years_as_tallest VARCHAR, street_address VARCHAR)
|
What's the Years as tallest with a Street address of 324 E. 11th Street?
|
SELECT height_feet___m FROM table_name_40 WHERE street_address = "2345 grand avenue"
|
CREATE TABLE table_name_40 (height_feet___m VARCHAR, street_address VARCHAR)
|
What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue?
|
SELECT AVG(capacity) FROM table_name_40 WHERE city = "london" AND enrollment < 30 OFFSET 000
|
CREATE TABLE table_name_40 (capacity INTEGER, city VARCHAR, enrollment VARCHAR)
|
What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000?
|
SELECT player FROM table_name_25 WHERE score = 69 - 70 = 139
|
CREATE TABLE table_name_25 (player VARCHAR, score VARCHAR)
|
Who had a score of 69-70=139?
|
SELECT score FROM table_name_30 WHERE result = "5–0"
|
CREATE TABLE table_name_30 (score VARCHAR, result VARCHAR)
|
What was the score of the game that had a result of 5–0?
|
SELECT AVG(heat) FROM table_name_99 WHERE time = "2:23.95"
|
CREATE TABLE table_name_99 (heat INTEGER, time VARCHAR)
|
What is the heat number of the athlete who finished in 2:23.95?
|
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.