sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT year, SUM(COUNT(*)) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings'
CREATE TABLE INST, Here is a database schema( table schema);
For each year, bin the year into day of the week interval, and return the total number of times the team Boston Red Stockings won in the postseasons using a line chart.It is not neccessary to use all the tables.
SELECT MAX(bronze) FROM table_name_79 WHERE total < 1
CREATE TABLE INST, Here is a database schema( table schema);
How many bronze medals for the nation with less than 1 total?It is not neccessary to use all the tables.
SELECT uk_broadcast_date FROM table_name_72 WHERE presenter = "chris bonington"
CREATE TABLE INST, Here is a database schema( table schema);
What is the UK broadcast date of the episode where Chris Bonington was the presenter?It is not neccessary to use all the tables.
SELECT 1894 WSU 10–0 Moscow FROM table WHERE 1893 No game = 1963 WSU* 14–10 Pullman
CREATE TABLE INST, Here is a database schema( table schema);
When 1963 wsu* 14–10 pullman is the 1893 no game what is the 1894 wsu 10–0 moscow?.It is not neccessary to use all the tables.
SELECT AVG Bronze FROM table WHERE Rank = 3 AND Total > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Bronze for rank 3 and total is more than 8?.It is not neccessary to use all the tables.
SELECT Delivery FROM table WHERE Name = quince
CREATE TABLE INST, Here is a database schema( table schema);
Which Delivery has a Name of quince?.It is not neccessary to use all the tables.
SELECT record FROM table_name_11 WHERE game = 34
CREATE TABLE INST, Here is a database schema( table schema);
What is game 34's record?It is not neccessary to use all the tables.
SELECT COUNT Rank FROM table WHERE Silver > 2 AND Bronze < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many teams won more than 2 silver medals and fewer than 2 Bronze medals?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Record = 17-25
CREATE TABLE INST, Here is a database schema( table schema);
Which of the opponents has a record of 17-25?.It is not neccessary to use all the tables.
SELECT decision FROM table_name_20 WHERE visitor = "buffalo"
CREATE TABLE INST, Here is a database schema( table schema);
What is the decision when Buffalo was the visitor?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Opponent = @ athletics AND Record = 76-57
CREATE TABLE INST, Here is a database schema( table schema);
Which score has an Opponent of @ athletics, and a Record of 76-57?.It is not neccessary to use all the tables.
SELECT SUM Belyando FROM table WHERE Nebo > 2,522 AND Year > 2001
CREATE TABLE INST, Here is a database schema( table schema);
After 2001, what is the sum of Belyando that have a Nebo greater than 2,522?.It is not neccessary to use all the tables.
SELECT position_in_1999 FROM table_name_71 WHERE venue = "central, gomel"
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the team that played at the venue Central Gomel?It is not neccessary to use all the tables.
SELECT MIN Sept. 1943 FROM table WHERE Late 1943 = 78000
CREATE TABLE INST, Here is a database schema( table schema);
What is the least september 1943 when late 1943 is 78000.It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE Record = 18-14
CREATE TABLE INST, Here is a database schema( table schema);
What is the high rebounds with a record that is 18-14?.It is not neccessary to use all the tables.
SELECT SUM(played) FROM table_name_63 WHERE against > 37 AND lost = 15 AND points < 11
CREATE TABLE INST, Here is a database schema( table schema);
How much Played has an Against larger than 37 and a Lost of 15 and Points smaller than 11?It is not neccessary to use all the tables.
SELECT date FROM table_name_17 WHERE venue = "victoria park"
CREATE TABLE INST, Here is a database schema( table schema);
When did the VFL pay at Victoria Park?It is not neccessary to use all the tables.
SELECT district FROM table_name_98 WHERE first_elected = 2000 AND party = "republican"
CREATE TABLE INST, Here is a database schema( table schema);
What district was a republican first elected in 2000?It is not neccessary to use all the tables.
SELECT COUNT(runner_up_a) FROM table_22754310_1 WHERE constituency = "Perambalur"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of runner up a for perambalurIt is not neccessary to use all the tables.
SELECT visitor FROM table_name_78 WHERE score = "0-4"
CREATE TABLE INST, Here is a database schema( table schema);
Which Visitor has a Score of 0-4?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Team 2 = al-ain
CREATE TABLE INST, Here is a database schema( table schema);
Team 2 Al-Ain played in what venue?.It is not neccessary to use all the tables.
SELECT away_team FROM table_14312471_1 WHERE home_team = "Carlton"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team when Carlton was the home team?It is not neccessary to use all the tables.
SELECT Li-FeS 2 FROM table WHERE Type = nominal voltage
CREATE TABLE INST, Here is a database schema( table schema);
What is Li-FeS 2, when Type is Nominal Voltage?.It is not neccessary to use all the tables.
SELECT MAX Bronze FROM table WHERE Silver < 0
CREATE TABLE INST, Here is a database schema( table schema);
What's the biggest Bronze that has less than 0 Silvers?.It is not neccessary to use all the tables.
SELECT location FROM table_name_6 WHERE name = "newington international airport"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Location for the newington international airport?It is not neccessary to use all the tables.
SELECT domestic_box_office FROM table_2203760_4 WHERE film = "House on Haunted Hill"
CREATE TABLE INST, Here is a database schema( table schema);
What was the domestic box office for "House on Haunted Hill"?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-3162')) AND STRFTIME('%y', allergy.allergytime) >= '2105'
CREATE TABLE INST, Here is a database schema( table schema);
has patient 035-3162 been having any allergy since 2105?It is not neccessary to use all the tables.
SELECT first_season_in_first_division FROM table_name_63 WHERE first_season_after_most_recent_promotion = "1959" AND name = "alianza"
CREATE TABLE INST, Here is a database schema( table schema);
When was Alianza's first season in first division with a promotion after 1959?It is not neccessary to use all the tables.
SELECT First broadcast FROM table WHERE Episode = 02x07
CREATE TABLE INST, Here is a database schema( table schema);
When was episode 02x07 first broadcast?.It is not neccessary to use all the tables.
SELECT "Assists" FROM table_59213 WHERE "Player" = 'steve walker'
CREATE TABLE INST, Here is a database schema( table schema);
How many assists did Steve Walker have?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Circuit = Silverstone
CREATE TABLE INST, Here is a database schema( table schema);
What date was the Silverstone circuit driven? .It is not neccessary to use all the tables.
SELECT MAX Bush# FROM table WHERE Others% = 1.57%
CREATE TABLE INST, Here is a database schema( table schema);
what is the maximum bush# with others% being 1.57%.It is not neccessary to use all the tables.
SELECT 2001 FROM table_name_26 WHERE 1999 = "bmw m67d39 3.9l v8 e38 740d"
CREATE TABLE INST, Here is a database schema( table schema);
Which car won the same award in 2001 that the bmw m67d39 3.9l v8 e38 740d won in 1999?It is not neccessary to use all the tables.
SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'rdw')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CUR...
CREATE TABLE INST, Here is a database schema( table schema);
what is the average hospital cost that would involve a rdw lab test last year?It is not neccessary to use all the tables.
SELECT Result, COUNT(Result) FROM music_festival GROUP BY Result ORDER BY COUNT(Result) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Plot the number of result by grouped by result as a bar graph, and sort by the Y in descending.It is not neccessary to use all the tables.
SELECT Mountains classification FROM table WHERE Stage = 17
CREATE TABLE INST, Here is a database schema( table schema);
What is the mountains classification when stage is 17?.It is not neccessary to use all the tables.
SELECT time FROM table_name_66 WHERE rider = "anthony west"
CREATE TABLE INST, Here is a database schema( table schema);
Which time has a Rider of anthony west?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Team Defense Rank > 3 AND Year < 1992 AND Team Performance = lost super bowl xxv
CREATE TABLE INST, Here is a database schema( table schema);
What was the position of the player whose team lost super bowl xxv before 1992, with a team defense rank larger than 3?.It is not neccessary to use all the tables.
SELECT method FROM table_name_88 WHERE round = "1" AND record = "10–2"
CREATE TABLE INST, Here is a database schema( table schema);
Round of 1 and a Record of 10–2 had what method?It is not neccessary to use all the tables.
SELECT weight__kg_ FROM table_15926991_1 WHERE jockey = "D. Nikolic"
CREATE TABLE INST, Here is a database schema( table schema);
What is the entry for weight in kilograms of jockey D. Nikolic?It is not neccessary to use all the tables.
SELECT absorb__nm_ FROM table_name_40 WHERE color = "orange"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Absorbtion (in nanometers) of the color Orange?It is not neccessary to use all the tables.
SELECT AVG(draw) FROM table_name_74 WHERE artist = "maggie toal"
CREATE TABLE INST, Here is a database schema( table schema);
What was the draw of Maggie Toal?It is not neccessary to use all the tables.
SELECT result FROM table_26977890_1 WHERE combatants_b = "Royal Navy"
CREATE TABLE INST, Here is a database schema( table schema);
With the Royal Navy as Combatants B, what was the result?It is not neccessary to use all the tables.
SELECT City FROM table WHERE Expected Completion = 2017
CREATE TABLE INST, Here is a database schema( table schema);
Which city expects their project completion in 2017?.It is not neccessary to use all the tables.
SELECT name_of_mill FROM table_name_24 WHERE type = "grondzeiler"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name of the Grondzeiler Mill?It is not neccessary to use all the tables.
SELECT market_share FROM table_23801721_1 WHERE technology = "CDMA EVDO GSM EDGE HSPA+"
CREATE TABLE INST, Here is a database schema( table schema);
What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+?It is not neccessary to use all the tables.
SELECT D 48 √ FROM table WHERE D 50 O = d 31
CREATE TABLE INST, Here is a database schema( table schema);
What is the D48 when the D 50 O is d 31?.It is not neccessary to use all the tables.
SELECT persian FROM table_name_92 WHERE romani = "duj"
CREATE TABLE INST, Here is a database schema( table schema);
What Persian word(s) has the same meaning as the Romani word duj?It is not neccessary to use all the tables.
SELECT AVG Date FROM table WHERE Opponent = detroit red wings
CREATE TABLE INST, Here is a database schema( table schema);
What is the average date of the game with the Detroit Red Wings as the opponent?.It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_91 WHERE post = "designer"
CREATE TABLE INST, Here is a database schema( table schema);
In what year has a Post of designer?It is not neccessary to use all the tables.
SELECT "Height (f)" FROM table_73574 WHERE "Player" = 'Demond Greene'
CREATE TABLE INST, Here is a database schema( table schema);
Name the height of demond greeneIt is not neccessary to use all the tables.
SELECT MAX(percentage) FROM table_name_66 WHERE total_blocks > 361
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest percentage when there are more than 361 blocks?It is not neccessary to use all the tables.
SELECT Current rank FROM table WHERE Ring name = kimurayama mamoru
CREATE TABLE INST, Here is a database schema( table schema);
What is Current Rank, when Ring Name is Kimurayama Mamoru?.It is not neccessary to use all the tables.
SELECT Performance comparison FROM table WHERE 80 St. Regis = 360
CREATE TABLE INST, Here is a database schema( table schema);
What is every performance comparison when 80 St. Regis is 360?.It is not neccessary to use all the tables.
SELECT SUM(round) FROM table_name_74 WHERE selection = 165
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds had a selection of 165?It is not neccessary to use all the tables.
SELECT competition_description FROM table_name_94 WHERE rank_qualifying = "1st" AND apparatus = "ball"
CREATE TABLE INST, Here is a database schema( table schema);
What competition had a Rank-Qualifying of 1st and a ball apparatus?It is not neccessary to use all the tables.
SELECT SUM Money ( $ ) FROM table WHERE Country = united states AND Player = sam snead
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Money of the game that was played in the United States with Sam Snead as a player?.It is not neccessary to use all the tables.
SELECT COUNT Party FROM table WHERE Incumbent = Charles R. Crisp
CREATE TABLE INST, Here is a database schema( table schema);
How many parties were represented for Charles R. Crisp?.It is not neccessary to use all the tables.
SELECT MAX(weight__kg_) FROM table_2062148_4
CREATE TABLE INST, Here is a database schema( table schema);
Name the most weightIt is not neccessary to use all the tables.
SELECT SUM(cultural_and_educational_panel) FROM table_name_90 WHERE industrial_and_commercial_panel = 0 AND agricultural_panel > 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0?It is not neccessary to use all the tables.
SELECT Employee (Real name) FROM table WHERE Pick # > 10 AND Brand (to) = raw
CREATE TABLE INST, Here is a database schema( table schema);
what is the employee (real name) when the pick # is higher than 10 and the brand (to) is raw?.It is not neccessary to use all the tables.
SELECT COUNT # FROM table WHERE Date = April 23
CREATE TABLE INST, Here is a database schema( table schema);
How many different numbers are there for the game played on April 23?.It is not neccessary to use all the tables.
SELECT Directed by FROM table WHERE Title = "The Reunion Job"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the director of the episode titled "The Reunion Job"?.It is not neccessary to use all the tables.
SELECT score FROM table_name_69 WHERE date = "april 23"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Score for the Date of April 23?It is not neccessary to use all the tables.
SELECT venue FROM table_name_26 WHERE opposing_teams = "argentina" AND status = "test match"
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue where Argentina was the opposing team in a test match?It is not neccessary to use all the tables.
SELECT MAX The Year FROM table WHERE Division > 3
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Division larger than 3?.It is not neccessary to use all the tables.
SELECT year_built FROM table_name_54 WHERE current_status = "tbsc" AND boat_builder = "j. jones, trearddur bay"
CREATE TABLE INST, Here is a database schema( table schema);
What year did J. Jones trearddur bay build a boat with a current status of tbsc?It is not neccessary to use all the tables.
SELECT COUNT Week FROM table WHERE Result = l 21-19
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has a Result of l 21-19?.It is not neccessary to use all the tables.
SELECT dob FROM table_name_5 WHERE surname = "biddle"
CREATE TABLE INST, Here is a database schema( table schema);
When is Biddle's DOB?It is not neccessary to use all the tables.
SELECT candidates FROM table_1342370_39 WHERE district = "South Carolina 2"
CREATE TABLE INST, Here is a database schema( table schema);
who is the candidate in district south carolina 2?It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_name_13 WHERE college = "cornell"
CREATE TABLE INST, Here is a database schema( table schema);
What is cornell's lowest pick number?It is not neccessary to use all the tables.
SELECT Leader's Team FROM table WHERE Race = ronde van vlaanderen
CREATE TABLE INST, Here is a database schema( table schema);
In the Ronde Van Vlaanderen race what is the leader's team?.It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Club/province = meralomas AND Player = david biddle
CREATE TABLE INST, Here is a database schema( table schema);
Which position has a club of Meralomas and a player named David Biddle?.It is not neccessary to use all the tables.
SELECT MIN(avg) FROM table_name_43 WHERE player = "kevin swayne" AND long > 7
CREATE TABLE INST, Here is a database schema( table schema);
How many yards did kevin swayne average with a long carry over 7?It is not neccessary to use all the tables.
SELECT tries_for FROM table_12828723_5 WHERE tries_against = "33"
CREATE TABLE INST, Here is a database schema( table schema);
What was the tries for with tries against at 33?It is not neccessary to use all the tables.
SELECT C_{low} FROM table WHERE C_{high} = 12.0
CREATE TABLE INST, Here is a database schema( table schema);
What's the C_{low} value when C_{high} is 12.0?.It is not neccessary to use all the tables.
SELECT MIN Game FROM table WHERE Record = 8-3
CREATE TABLE INST, Here is a database schema( table schema);
Name the least game for 8-3.It is not neccessary to use all the tables.
SELECT delegate FROM table_27050336_7 WHERE committee = "Judiciary" AND party = "Democratic" AND counties_represented = "Montgomery"
CREATE TABLE INST, Here is a database schema( table schema);
For democratic party countries represented is montgomery and where committee is judiciary mention all the delegate name.It is not neccessary to use all the tables.
SELECT Surpassed by FROM table WHERE Year < 1925 AND Period = 6 years
CREATE TABLE INST, Here is a database schema( table schema);
I need the surpassed for years before 1925 and period of 6 years.It is not neccessary to use all the tables.
SELECT catalogue_no FROM table_name_12 WHERE format = "cd (limited edition steel-box)" AND country = "germany"
CREATE TABLE INST, Here is a database schema( table schema);
what is the catalogue no when the format is cd (limited edition steel-box) and the country is germany?It is not neccessary to use all the tables.
SELECT "Rank" FROM table_24191 WHERE "Viewers (in millions)" = '14.80'
CREATE TABLE INST, Here is a database schema( table schema);
Name the rank for 14.80 viewersIt is not neccessary to use all the tables.
SELECT Nationality FROM table WHERE Pick # = 179
CREATE TABLE INST, Here is a database schema( table schema);
What was the nationality of player picked no. 179?.It is not neccessary to use all the tables.
SELECT Republican ticket FROM table WHERE Communist ticket = elizabeth gurley flynn
CREATE TABLE INST, Here is a database schema( table schema);
Who's the Republican ticket with a Communist ticket of elizabeth gurley flynn?.It is not neccessary to use all the tables.
SELECT COUNT Drawn FROM table WHERE Points 1 = 51 AND Lost > 5
CREATE TABLE INST, Here is a database schema( table schema);
How much Drawn has Points 1 of 51, and a Lost larger than 5?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_29 WHERE venue = "corio oval"
CREATE TABLE INST, Here is a database schema( table schema);
In the match as corio oval who was the away team?It is not neccessary to use all the tables.
SELECT MIN(attendance) FROM table_17120964_8 WHERE man_of_the_match = "Neil Liddiard"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance at the game where Neil Liddiard was Man of the Match?It is not neccessary to use all the tables.
SELECT COUNT(outgoing_manager) FROM table_27225944_3 WHERE team = "Rijeka"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of outgoing manager for rijekaIt is not neccessary to use all the tables.
SELECT SUM(inversions) FROM table_name_89 WHERE opened = "april 20, 2002"
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of inversions for opened of april 20 2002It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_8 WHERE silver < 1 AND gold = 0 AND nation = "switzerland" AND bronze < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Total when the value for Silver is less than 1 when the value for Gold is 0 when the Nation is Switzerland and when the value for Bronze is 2?It is not neccessary to use all the tables.
SELECT Height (cm) FROM table WHERE Country = Guatemala
CREATE TABLE INST, Here is a database schema( table schema);
How tall is the contestant from Guatemala?.It is not neccessary to use all the tables.
SELECT "Venue" FROM table_69626 WHERE "Year" < '1991'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the venue that was used before 1991?It is not neccessary to use all the tables.
SELECT Users.Id FROM Users, Badges WHERE Badges.UserId = Users.Id AND (Badges.Name = 'android')
CREATE TABLE INST, Here is a database schema( table schema);
People who has both iOS and Android badges.It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE City = melfi
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the stadium for the city of melfi?.It is not neccessary to use all the tables.
SELECT COUNT Location Attendance FROM table WHERE Date = December 29
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of attendance where the date is december 29?.It is not neccessary to use all the tables.
SELECT Year Retired FROM table WHERE Fuel Propulsion = diesel AND Length = 40' AND Numbers (Quantity Ordered) = 3701-3729 (29 buses)
CREATE TABLE INST, Here is a database schema( table schema);
What year was the diesel fuel propulsion, with a length of 40', and numbers (quanity ordered) of 3701-3729 (29 buses), retired?.It is not neccessary to use all the tables.
SELECT Date of Exit FROM table WHERE Chart = Dutch Albums Top 100
CREATE TABLE INST, Here is a database schema( table schema);
What is the exit date for the Dutch Albums Top 100 Chart?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_56 WHERE venue = "arden street oval"
CREATE TABLE INST, Here is a database schema( table schema);
Which team's home is the Arden Street Oval?It is not neccessary to use all the tables.
SELECT MIN No. FROM table WHERE School/Club Team = BYU
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of school/club teams held by BYU?.It is not neccessary to use all the tables.
SELECT Car FROM table WHERE Driver = Mark Higgins
CREATE TABLE INST, Here is a database schema( table schema);
what is the type of vehicle driven by mark higgins.It is not neccessary to use all the tables.
SELECT points_against FROM table_name_27 WHERE club = "cwmllynfell rfc"
CREATE TABLE INST, Here is a database schema( table schema);
Name the points against for cwmllynfell rfcIt is not neccessary to use all the tables.