sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT Stuart FROM table WHERE Songs = "We Got Married"
CREATE TABLE INST, Here is a database schema( table schema);
How many instruments did Stuart play on "We Got Married"?.It is not neccessary to use all the tables.
SELECT MIN(enrollment) FROM table_27961684_1 WHERE team_name = "Pioneers"
CREATE TABLE INST, Here is a database schema( table schema);
How many people enrolled for the institute with the Pioneers?It is not neccessary to use all the tables.
SELECT novelty FROM table_name_70 WHERE location = "usa" AND name = "coryloides"
CREATE TABLE INST, Here is a database schema( table schema);
What novelty has USA as the location and coryloides as the name?It is not neccessary to use all the tables.
SELECT SUM(to_par) FROM table_name_52 WHERE player = "meg mallon" AND total > 157
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the to par of player meg mallon who had a total greater than 157?It is not neccessary to use all the tables.
SELECT Together We Can Do More FROM table WHERE Democratic Coalition = René Alinco ( PPD )
CREATE TABLE INST, Here is a database schema( table schema);
Who is the together we can do more when democratic coalition is rené alinco ( ppd )?.It is not neccessary to use all the tables.
SELECT COUNT(headquarters) FROM table_1682026_7 WHERE company = "HSBC"
CREATE TABLE INST, Here is a database schema( table schema);
How many headquarters are there listed for HSBC?It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Home team = st kilda
CREATE TABLE INST, Here is a database schema( table schema);
What did St Kilda score when they were the home team?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_23114705_7 WHERE nz_viewers__thousand_ = "456.58"
CREATE TABLE INST, Here is a database schema( table schema);
What was the air date of the episod that had 456.58 thousand viewers?It is not neccessary to use all the tables.
SELECT venue FROM table_name_33 WHERE against > 8 AND opposing_teams = "ireland"
CREATE TABLE INST, Here is a database schema( table schema);
What is the venue of the match with more than 8 against and ireland as the opposing team?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Date = jun 17, 1973
CREATE TABLE INST, Here is a database schema( table schema);
What was the name of the tournament played on Jun 17, 1973?.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Result = 6th AND Venue = munich, west germany
CREATE TABLE INST, Here is a database schema( table schema);
What year is the result 6th in munich, west germany?.It is not neccessary to use all the tables.
SELECT "Driver" FROM table_65994 WHERE "Year" < '1905'
CREATE TABLE INST, Here is a database schema( table schema);
Which driver had a year under 1905?It is not neccessary to use all the tables.
SELECT Qual FROM table WHERE Laps < 68
CREATE TABLE INST, Here is a database schema( table schema);
What is the Qual with less than 68 laps?.It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Event = deep - 30 impact
CREATE TABLE INST, Here is a database schema( table schema);
Where was the Deep - 30 Impact event held?.It is not neccessary to use all the tables.
SELECT COUNT Week FROM table WHERE Record = 3-6
CREATE TABLE INST, Here is a database schema( table schema);
In which week was the game against a team with a record of 3-6 played?.It is not neccessary to use all the tables.
SELECT COUNT School/Club Team FROM table WHERE Years for Jazz = 2010-11
CREATE TABLE INST, Here is a database schema( table schema);
How many schools are listed for the player who played the years for Jazz in 2010-11?.It is not neccessary to use all the tables.
SELECT Floors FROM table WHERE Location = aston
CREATE TABLE INST, Here is a database schema( table schema);
How many floors did the tallest building in Aston have?.It is not neccessary to use all the tables.
SELECT player FROM table_name_36 WHERE to_par < 5 AND score = 70 - 72 = 142
CREATE TABLE INST, Here is a database schema( table schema);
Which Player has a To Par smaller than 5 and a Score of 70-72=142?It is not neccessary to use all the tables.
SELECT R 53 FROM table WHERE D 41 = r 21
CREATE TABLE INST, Here is a database schema( table schema);
I want the R 53 of D 41 of r 21.It is not neccessary to use all the tables.
SELECT celebrity FROM table_name_53 WHERE exited = "day 19" AND famous_for = "ex busted member and tv presenter"
CREATE TABLE INST, Here is a database schema( table schema);
Which celebrity who was famous for being the ex busted member and TV presenter exited on day 19?It is not neccessary to use all the tables.
SELECT Torque FROM table WHERE Model = S7 4.0 TFSI quattro
CREATE TABLE INST, Here is a database schema( table schema);
What is the s7 4.0 tfsi quattro engine torque?.It is not neccessary to use all the tables.
SELECT Money ( $ ) FROM table WHERE Place = t8 AND Score = 74-72-75-71=292
CREATE TABLE INST, Here is a database schema( table schema);
What was the money when the place was t8 and the score was 74-72-75-71=292?.It is not neccessary to use all the tables.
SELECT Age as of 1 February 2014 FROM table WHERE Name = dorothy peel
CREATE TABLE INST, Here is a database schema( table schema);
What is the Age of dorothy Peel as of 1 February 2014 ?.It is not neccessary to use all the tables.
SELECT date FROM table_name_86 WHERE number_ & _name = "no. 37817"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date with identifying number of No. 37817?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Driver = Dick Hutcherson
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of year for dick hutcherson.It is not neccessary to use all the tables.
SELECT team FROM table_name_96 WHERE wins = 0
CREATE TABLE INST, Here is a database schema( table schema);
Wins of 0 involves what team?It is not neccessary to use all the tables.
SELECT MAX(total) FROM table_name_62 WHERE silver = 1 AND gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest total medals when there were 0 gold medals and 1 silver?It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE No. in series = 113
CREATE TABLE INST, Here is a database schema( table schema);
When did the 113 episode air?.It is not neccessary to use all the tables.
SELECT mark FROM table_name_51 WHERE points > 813 AND country = "united states" AND react > 0.152
CREATE TABLE INST, Here is a database schema( table schema);
What mark has over 813 points in the United States and a 0.152 react?It is not neccessary to use all the tables.
SELECT set_1 FROM table_name_77 WHERE set_2 = "26–24"
CREATE TABLE INST, Here is a database schema( table schema);
Which Set 1 has a Set 2 of 26–24?It is not neccessary to use all the tables.
SELECT rank FROM table_24431264_18 WHERE withdrew_due_to = "right wrist surgery"
CREATE TABLE INST, Here is a database schema( table schema);
List the rank of the player that left due to right wrist surgery?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Country = united states AND Player = hale irwin
CREATE TABLE INST, Here is a database schema( table schema);
What's the to par for Hale Irwin of the United States?.It is not neccessary to use all the tables.
SELECT AVG(crowd) FROM table_name_91 WHERE venue = "western oval"
CREATE TABLE INST, Here is a database schema( table schema);
What's the average crowd size when the venue is western oval?It is not neccessary to use all the tables.
SELECT Races FROM table WHERE Points = 8
CREATE TABLE INST, Here is a database schema( table schema);
How many races did he do in the year he had 8 points?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54'
CREATE TABLE INST, Here is a database schema( table schema);
How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_50 WHERE date = "jul 31" AND score = "w 5-1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponent for jul 31 and score of w 5-1It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Season # < 10 AND Directed by = milan cheylov AND Original air date = september 29, 1997
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the show with less than 10 seasons that aired on September 29, 1997 and is directed by Milan Cheylov?.It is not neccessary to use all the tables.
SELECT Blocks FROM table WHERE Points = Zach Randolph (24)
CREATE TABLE INST, Here is a database schema( table schema);
Who are the blockers where points are scored by Zach Randolph (24)?.It is not neccessary to use all the tables.
SELECT alternate FROM table_name_38 WHERE second = "magnus swartling"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the alternate for Magnus Swartling as Second?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = february 16
CREATE TABLE INST, Here is a database schema( table schema);
what is the score on february 16?.It is not neccessary to use all the tables.
SELECT block_a FROM table_name_93 WHERE toshizo = "shuji kondo"
CREATE TABLE INST, Here is a database schema( table schema);
Name the block A for shuji kondoIt is not neccessary to use all the tables.
SELECT Order # FROM table WHERE Theme = 1960s
CREATE TABLE INST, Here is a database schema( table schema);
Name the order number for 1960s.It is not neccessary to use all the tables.
SELECT date FROM table_name_78 WHERE venue = "kardinia park"
CREATE TABLE INST, Here is a database schema( table schema);
When was there a game at Kardinia Park?It is not neccessary to use all the tables.
SELECT Notes FROM table WHERE Country = finland
CREATE TABLE INST, Here is a database schema( table schema);
What are the Notes of the Country of finland?.It is not neccessary to use all the tables.
SELECT record FROM table_name_38 WHERE date = "november 12"
CREATE TABLE INST, Here is a database schema( table schema);
What was the team's record on November 12?It is not neccessary to use all the tables.
SELECT Home Team FROM table WHERE Road Team = boston AND Date = april 20
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team on April 20 against Boston?.It is not neccessary to use all the tables.
SELECT date FROM table_name_48 WHERE home_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
If fitzroy was the home team what date did they play?It is not neccessary to use all the tables.
SELECT MAX Byes FROM table WHERE Losses = 6 AND Draws > 0
CREATE TABLE INST, Here is a database schema( table schema);
When losses is 6 and draws is more than 0, what is the greatest byes?.It is not neccessary to use all the tables.
SELECT state FROM table_name_34 WHERE reason_for_termination = "retirement" AND active_service = "1926–1928"
CREATE TABLE INST, Here is a database schema( table schema);
Which state has a Reason for termination of retirement, and an Active service of 1926 1928?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Loss = peavy (4–3)
CREATE TABLE INST, Here is a database schema( table schema);
Loss of peavy (4–3) is what score?.It is not neccessary to use all the tables.
SELECT team FROM table_name_48 WHERE founded = "1970"
CREATE TABLE INST, Here is a database schema( table schema);
Which team was founded in 1970?It is not neccessary to use all the tables.
SELECT MAX # 100 FROM table WHERE Season = 1991 AND Against = surrey
CREATE TABLE INST, Here is a database schema( table schema);
Which # 100 has a Season of 1991, and an Against of surrey?.It is not neccessary to use all the tables.
SELECT tenure FROM table_name_75 WHERE actor_actress = "nadine garner"
CREATE TABLE INST, Here is a database schema( table schema);
What years were actress Nadine Garner on the show?It is not neccessary to use all the tables.
SELECT Incumbent FROM table WHERE District = PA-8
CREATE TABLE INST, Here is a database schema( table schema);
Who is the incumbent of district pa-8?.It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_72 WHERE round_1 = "70" AND money__$_ > 500 OFFSET 000
CREATE TABLE INST, Here is a database schema( table schema);
Round 1 of 70 and a Money ($) larger than 500000 has the highest year?It is not neccessary to use all the tables.
SELECT Club FROM table WHERE 2007–08 result = 3rd in 3.hnl south
CREATE TABLE INST, Here is a database schema( table schema);
What club has 3rd in 3.hnl south as the 2007-08 result?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Date = 12 november 2006
CREATE TABLE INST, Here is a database schema( table schema);
What tournament happened on 12 november 2006?.It is not neccessary to use all the tables.
SELECT Away captain FROM table WHERE Venue = the oval
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Away Captain at The Oval?.It is not neccessary to use all the tables.
SELECT score FROM table_name_68 WHERE opponent = "marquette"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for the game against Marquette?It is not neccessary to use all the tables.
SELECT "Region" FROM table_75092 WHERE "Catalog" = '576 096-2'
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the region for catalog of 576 096-2It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Tie no = 15
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for the tie number 15?.It is not neccessary to use all the tables.
SELECT MAX Byes FROM table WHERE South West DFL = heathmere AND Wins > 11
CREATE TABLE INST, Here is a database schema( table schema);
When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?.It is not neccessary to use all the tables.
SELECT famous_for FROM table_14345690_4 WHERE finished = "9th"
CREATE TABLE INST, Here is a database schema( table schema);
Name who was famous for finished in 9thIt is not neccessary to use all the tables.
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of the ships that have more than one captain.It is not neccessary to use all the tables.
SELECT date FROM table_name_68 WHERE circuit = "monza"
CREATE TABLE INST, Here is a database schema( table schema);
When was the Monza circuit?It is not neccessary to use all the tables.
SELECT Driver FROM table WHERE Grid < 14 AND Laps < 53 AND Time/Retired = collision AND Constructor = ferrari
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari?.It is not neccessary to use all the tables.
SELECT place FROM table_name_12 WHERE score < 69
CREATE TABLE INST, Here is a database schema( table schema);
WHich Places have a score smaller than 69?It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_90 WHERE nominee = "lesli margherita"
CREATE TABLE INST, Here is a database schema( table schema);
In what year was Lesli Margherita nominated?It is not neccessary to use all the tables.
SELECT Population density (per km²) FROM table WHERE Population (2006) = 84
CREATE TABLE INST, Here is a database schema( table schema);
What population density (per km) that has 84 as the population (2006)?.It is not neccessary to use all the tables.
SELECT laps FROM table_name_41 WHERE driver = "jackie oliver"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps did Jackie Oliver do?It is not neccessary to use all the tables.
SELECT Pair FROM table WHERE Date = october 14, 2008 AND Dance = samba
CREATE TABLE INST, Here is a database schema( table schema);
Who danced the Samba on October 14, 2008?.It is not neccessary to use all the tables.
SELECT record FROM table_name_44 WHERE date = "may 8"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record on May 8?It is not neccessary to use all the tables.
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY COUNT(*)
CREATE TABLE INST, Here is a database schema( table schema);
How many students are from each city, and which cities have more than one cities Plot them as bar chart, and I want to list y axis in asc order.It is not neccessary to use all the tables.
SELECT a.Id AS "post_link", a.Score FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id WHERE a.CreationDate != a.CommunityOwnedDate AND q.CommunityOwnedDate IS NULL AND NOT a.CommunityOwnedDate IS NULL AND q.PostTypeId = 1 AND a.PostTypeId = 2 ORDER BY a.Score
CREATE TABLE INST, Here is a database schema( table schema);
Posts made CW after their creation.It is not neccessary to use all the tables.
SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY AVG(Height) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Draw a bar chart of sex versus mean height, order by the y axis in descending.It is not neccessary to use all the tables.
SELECT Europe FROM table WHERE Japan = january 28, 2010
CREATE TABLE INST, Here is a database schema( table schema);
Tell me europe for japan of january 28, 2010.It is not neccessary to use all the tables.
SELECT enterprise FROM table_name_1 WHERE datacenter = "yes" AND features = "memory modules: hot replacement"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Enterprise for teh memory modules: hot replacement Feature that has a Datacenter of Yes?It is not neccessary to use all the tables.
SELECT Festival_Name FROM festival_detail ORDER BY YEAR DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of the three most recent festivals.It is not neccessary to use all the tables.
SELECT "Location" FROM table_11764 WHERE "Delivery" = 'barge' AND "Name" = 'scaevola'
CREATE TABLE INST, Here is a database schema( table schema);
What Location has a Delivery of barge and the Name of scaevola?It is not neccessary to use all the tables.
SELECT Rounds FROM table WHERE Constructor = ducati AND Rider = mika kallio
CREATE TABLE INST, Here is a database schema( table schema);
What rounds did rider Mika Kallio with a Ducati constructor have?.It is not neccessary to use all the tables.
SELECT artist FROM table_name_79 WHERE percentage = "11.32%"
CREATE TABLE INST, Here is a database schema( table schema);
Which Artist has a Percentage of 11.32%?It is not neccessary to use all the tables.
SELECT date FROM table_name_64 WHERE home = "toronto"
CREATE TABLE INST, Here is a database schema( table schema);
What date did the team play home in Toronto?It is not neccessary to use all the tables.
SELECT COUNT Bronze FROM table WHERE Nation = jamaica (jam) AND Total < 7
CREATE TABLE INST, Here is a database schema( table schema);
How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7?.It is not neccessary to use all the tables.
SELECT SUM To par FROM table WHERE Score = 76-77-74-75=302
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the to par with a 76-77-74-75=302 score?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 3-6 4-6
CREATE TABLE INST, Here is a database schema( table schema);
When was the score 3-6 4-6?.It is not neccessary to use all the tables.
SELECT "Played" FROM table_576 WHERE "Club" = 'Tumble RFC'
CREATE TABLE INST, Here is a database schema( table schema);
What was the played with club tumble rfc?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Position = 14th
CREATE TABLE INST, Here is a database schema( table schema);
What season had a 14th position?.It is not neccessary to use all the tables.
SELECT date FROM table_name_88 WHERE opponent = "oakland raiders"
CREATE TABLE INST, Here is a database schema( table schema);
What date was the opponents the Oakland Raiders?It is not neccessary to use all the tables.
SELECT them_two__the_two_ FROM table_1015914_24 WHERE we_two = "ngalbelpa"
CREATE TABLE INST, Here is a database schema( table schema);
What is them two (the two) when we two is ngalbelpa?It is not neccessary to use all the tables.
SELECT MIN(february) FROM table_name_52 WHERE record = "37-13-4" AND game < 54
CREATE TABLE INST, Here is a database schema( table schema);
What is the earliest February date with a record of 37-13-4 in a game earlier than 54?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Crowd > 18,704 AND Away team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
When the Away team of essendon played and the Crowd was larger than 18,704 people, which Date did this take place on?.It is not neccessary to use all the tables.
SELECT Time FROM table WHERE Team = 348cc k4 honda AND Speed = 97.743mph
CREATE TABLE INST, Here is a database schema( table schema);
What is the time of the rider from the 348cc K4 Honda team with a speed of 97.743mph?.It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Goals > 0 AND Apps < 33
CREATE TABLE INST, Here is a database schema( table schema);
What Season has Goals greater than 0 and less than 33 Apps?.It is not neccessary to use all the tables.
SELECT airport FROM table_name_68 WHERE iata = "kuf"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the airport with an IATA of KUF?It is not neccessary to use all the tables.
SELECT Grid FROM table WHERE Manufacturer = ducati AND Laps < 22
CREATE TABLE INST, Here is a database schema( table schema);
What grid is Ducati with fewer than 22 laps?.It is not neccessary to use all the tables.
SELECT Id AS "post_link", CreationDate FROM Posts WHERE PostTypeId = 1 AND Tags LIKE LOWER('%hard-science%') ORDER BY CreationDate DESC LIMIT 5000
CREATE TABLE INST, Here is a database schema( table schema);
Find questions with one specific tag.It is not neccessary to use all the tables.
SELECT opponents FROM table_name_12 WHERE venue = "domnarvsvallen"
CREATE TABLE INST, Here is a database schema( table schema);
When the game was played at Domnarvsvallen who were the opponents?It is not neccessary to use all the tables.
SELECT Listed FROM table WHERE Built = 1864
CREATE TABLE INST, Here is a database schema( table schema);
What is the date Listed of the Bridge Built in 1864?.It is not neccessary to use all the tables.
SELECT date FROM table_name_2 WHERE tie_no = "5"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of tie number 5?It is not neccessary to use all the tables.
SELECT COUNT(extra_points) FROM table_25642873_2 WHERE player = "na"
CREATE TABLE INST, Here is a database schema( table schema);
How many extra points catagories are there for the na player?It is not neccessary to use all the tables.