sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT College FROM table WHERE Pick > 101 AND Position = punter
CREATE TABLE INST, Here is a database schema( table schema);
What school did the punter picked after 101 attend?.It is not neccessary to use all the tables.
SELECT MAX(SHARE), MIN(SHARE) FROM performance WHERE TYPE <> "Live final"
CREATE TABLE INST, Here is a database schema( table schema);
What are the maximum and minimum share of performances whose type is not "Live final".It is not neccessary to use all the tables.
SELECT rank FROM table_name_41 WHERE lane = 4
CREATE TABLE INST, Here is a database schema( table schema);
What rank was the swimmer in lane 4?It is not neccessary to use all the tables.
SELECT year FROM table_23548160_1 WHERE driver = "Randy Lewis"
CREATE TABLE INST, Here is a database schema( table schema);
What year did Randy Lewis drive?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = a AND Opponent = celtic
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the match at venue A with the celtic as the opponent?.It is not neccessary to use all the tables.
SELECT Current status FROM table WHERE Livery = network south-east
CREATE TABLE INST, Here is a database schema( table schema);
What's the Current Status of Livery of the Network South-East?.It is not neccessary to use all the tables.
SELECT Pick # FROM table WHERE Position = DE
CREATE TABLE INST, Here is a database schema( table schema);
What is the pick # for the position de?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Circuit = portland international raceway
CREATE TABLE INST, Here is a database schema( table schema);
When was the circuit portland international raceway?.It is not neccessary to use all the tables.
SELECT champion FROM table_name_33 WHERE year = "1981"
CREATE TABLE INST, Here is a database schema( table schema);
What champion has 1981 as the year?It is not neccessary to use all the tables.
SELECT year FROM table_12043148_2 WHERE glos_ & _wilts = "Gloucester City Winget"
CREATE TABLE INST, Here is a database schema( table schema);
what is the year where glos & wilts is gloucester city winget?It is not neccessary to use all the tables.
SELECT "Callsign" FROM table_1766 WHERE "Location" = 'Cebu'
CREATE TABLE INST, Here is a database schema( table schema);
What is the callsign for the Cebu station?It is not neccessary to use all the tables.
SELECT partner FROM table_2259502_2 WHERE score = "7-5, 2-6, [6-10]"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the partners in games where the score was 7-5 2-6 [6-10]?It is not neccessary to use all the tables.
SELECT november_3 FROM table_25284864_3 WHERE june_10_11 = "147"
CREATE TABLE INST, Here is a database schema( table schema);
What is the November 3 result when June 10-11 is 147?It is not neccessary to use all the tables.
SELECT MIN Distance (m) FROM table WHERE Shuttle Time (seconds) = 6.86
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance (in meters) when the shuttle time is 6.86 seconds?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_17 WHERE result = "t7-7"
CREATE TABLE INST, Here is a database schema( table schema);
What is the attendance for the t7-7 result?It is not neccessary to use all the tables.
SELECT Pole Position FROM table WHERE Race = belgian grand prix
CREATE TABLE INST, Here is a database schema( table schema);
What was the pole position for the belgian grand prix?.It is not neccessary to use all the tables.
SELECT MAX(facility_id) FROM table_name_15 WHERE city_of_license = "springfield, ma" AND erp___power_w < 230
CREATE TABLE INST, Here is a database schema( table schema);
Which Facility ID has a City of license of springfield ma and a ERP / Power W smaller than 230?It is not neccessary to use all the tables.
SELECT second FROM table_name_41 WHERE third = "nikolina petric"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Second with Nikolina Petric as Third?It is not neccessary to use all the tables.
SELECT COUNT(result) FROM table_1342233_3 WHERE incumbent = "Albert Rains"
CREATE TABLE INST, Here is a database schema( table schema);
what the the end number where albert rains was runningIt is not neccessary to use all the tables.
SELECT country FROM table_name_40 WHERE of_1 = "locotenent"
CREATE TABLE INST, Here is a database schema( table schema);
What country has OF-1 Locotenent?It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE Visiting Team = los angeles raiders
CREATE TABLE INST, Here is a database schema( table schema);
At which stadium did the Los Angeles Raiders play as the visiting team?.It is not neccessary to use all the tables.
SELECT Owner FROM table WHERE Entered service (T) = 30 october 1956
CREATE TABLE INST, Here is a database schema( table schema);
Who owns the locomotive that entered service on 30 October 1956?.It is not neccessary to use all the tables.
SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and attribute ID of the attribute definitions with attribute value 0.It is not neccessary to use all the tables.
SELECT score FROM table_name_91 WHERE home_team = "sunderland"
CREATE TABLE INST, Here is a database schema( table schema);
what is the score when the home team is sunderland?It is not neccessary to use all the tables.
SELECT high_assists FROM table_17340355_6 WHERE score = "W 106–104 (OT)"
CREATE TABLE INST, Here is a database schema( table schema);
Who made high points on games of score w 106–104 (ot)It is not neccessary to use all the tables.
SELECT COUNT("station") FROM table_203_839 WHERE "opened" < 1926
CREATE TABLE INST, Here is a database schema( table schema);
how many stations opened before 1926 ?It is not neccessary to use all the tables.
SELECT Tuesday FROM table WHERE Location = Millhopper
CREATE TABLE INST, Here is a database schema( table schema);
what's the tuesday time with location being millhopper.It is not neccessary to use all the tables.
SELECT Elevated FROM table WHERE Cardinalatial order and title = cardinal-deacon of s. giorgio in velabro
CREATE TABLE INST, Here is a database schema( table schema);
When was Cardinal-Deacon of S. Giorgio in Velabro elevated?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Final Score = 24-34
CREATE TABLE INST, Here is a database schema( table schema);
The final score was 24-34 on what date?.It is not neccessary to use all the tables.
SELECT TV Station FROM table WHERE Romaji Title = tokkyuu tanaka sangou
CREATE TABLE INST, Here is a database schema( table schema);
What is the TV Station of the episode with a Romaji Title of Tokkyuu Tanaka Sangou?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_13 WHERE partner = "iryna bremond"
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome when the partner was Iryna Bremond?It is not neccessary to use all the tables.
SELECT notes FROM table_name_89 WHERE venue = "barcelona, spain"
CREATE TABLE INST, Here is a database schema( table schema);
Which Notes has a Venue of barcelona spain?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Points against = 43
CREATE TABLE INST, Here is a database schema( table schema);
WHich Team that has Points against of 43?.It is not neccessary to use all the tables.
SELECT Total# FROM table WHERE Director = Roger Goldby
CREATE TABLE INST, Here is a database schema( table schema);
How many of the episodes have Roger Goldby as the director?.It is not neccessary to use all the tables.
SELECT player FROM table_name_73 WHERE team = "dakota wizards"
CREATE TABLE INST, Here is a database schema( table schema);
What player plays for the Dakota Wizards?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Year(s) Won = 1988
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Country that has the Year(s) Won of 1988?.It is not neccessary to use all the tables.
SELECT PA FROM table WHERE Skip = Colleen Jones
CREATE TABLE INST, Here is a database schema( table schema);
What is the PA when the skip is Colleen Jones?.It is not neccessary to use all the tables.
SELECT position FROM table_10812938_4 WHERE cfl_team = "Hamilton Tiger-Cats (via Ottawa)"
CREATE TABLE INST, Here is a database schema( table schema);
What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.short_title = "Liver transplant NEC"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose death status is 0 and procedure short title is liver transplant nec?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 7.6 (48)
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game played where the away team has a score of 7.6 (48)?.It is not neccessary to use all the tables.
SELECT Round FROM table WHERE Record = 8-2
CREATE TABLE INST, Here is a database schema( table schema);
What round had a record of 8-2?.It is not neccessary to use all the tables.
SELECT Song FROM table WHERE Volume:Issue = 5:16
CREATE TABLE INST, Here is a database schema( table schema);
Volume:Issue of 5:16 has what song listed?.It is not neccessary to use all the tables.
SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'
CREATE TABLE INST, Here is a database schema( table schema);
Find the titles of all movies not reviewed by Chris Jackson.It is not neccessary to use all the tables.
SELECT Route/Via. FROM table WHERE Train name = Parasuram Express
CREATE TABLE INST, Here is a database schema( table schema);
What is the route/via when the train name is Parasuram Express?.It is not neccessary to use all the tables.
SELECT date FROM table_name_55 WHERE matches < 32 AND round = "fifth round proper"
CREATE TABLE INST, Here is a database schema( table schema);
What is Date when Matches is less than 32 and when Round is Fifth Round Proper?It is not neccessary to use all the tables.
SELECT record FROM table_name_8 WHERE head_coach = "steve spurrier"
CREATE TABLE INST, Here is a database schema( table schema);
What was the record of the team with head coach Steve Spurrier?It is not neccessary to use all the tables.
SELECT MAX(pick) FROM table_name_15 WHERE position = "defensive end"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest pick for the position of defensive end?It is not neccessary to use all the tables.
SELECT COUNT Grid FROM table WHERE Time/Retired = +1:03.741 AND Laps > 44
CREATE TABLE INST, Here is a database schema( table schema);
What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44?.It is not neccessary to use all the tables.
SELECT tournament FROM table_name_75 WHERE winner = "nadal" AND "nadal" = 16
CREATE TABLE INST, Here is a database schema( table schema);
What tournament did Nadal win and had a nadal of 16?It is not neccessary to use all the tables.
SELECT Method FROM table WHERE Opponent = chris herring
CREATE TABLE INST, Here is a database schema( table schema);
Which method took place against Chris Herring?.It is not neccessary to use all the tables.
SELECT AVG Laps FROM table WHERE Grid = 11
CREATE TABLE INST, Here is a database schema( table schema);
What were the average laps on a grid of 11?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT dog_id) FROM Treatments
CREATE TABLE INST, Here is a database schema( table schema);
How many dogs went through any treatments?It is not neccessary to use all the tables.
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'inject/infus nesiritide') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15107 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1)
CREATE TABLE INST, Here is a database schema( table schema);
count the number of times during the last hospital encounter that patient 15107 had received inject/infus nesiritide procedures.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Score = 6–4, 2–6, 3–6
CREATE TABLE INST, Here is a database schema( table schema);
What was the Surface when the Score was 6–4, 2–6, 3–6?.It is not neccessary to use all the tables.
SELECT stadium FROM table_name_81 WHERE city = "debrecen"
CREATE TABLE INST, Here is a database schema( table schema);
What stadium is in the city of Debrecen?It is not neccessary to use all the tables.
SELECT result FROM table_name_58 WHERE date = "october 8, 1985"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result on October 8 1985?It is not neccessary to use all the tables.
SELECT score FROM table_name_20 WHERE visitor = "chicago black hawks" AND date = "march 24"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE SCORE WITH VISITORS CHICAGO BLACK HAWKS ON MARCH 24?It is not neccessary to use all the tables.
SELECT college FROM table_name_92 WHERE position = "linebacker" AND school = "lessburg high school"
CREATE TABLE INST, Here is a database schema( table schema);
Which college has a linebacker from Lessburg High School?It is not neccessary to use all the tables.
SELECT position FROM table_name_65 WHERE jersey_number_s_ = "22"
CREATE TABLE INST, Here is a database schema( table schema);
What position does the player with jersey number 22 play?It is not neccessary to use all the tables.
SELECT Date of vacancy FROM table WHERE Table = Pre-season AND Team = Liverpool
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of vacancy for the Liverpool team with a table named pre-season?.It is not neccessary to use all the tables.
SELECT result FROM table_name_92 WHERE score = "58-6"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the match that had a score of 58-6?It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Date = 2 december 1974
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the surface of 2 december 1974.It is not neccessary to use all the tables.
SELECT cores FROM table_2467150_2 WHERE tdp = "17 W"
CREATE TABLE INST, Here is a database schema( table schema);
What is every value for cores if TDP is 17 W?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_16388478_4 WHERE home_team = "Fremantle"
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team score where the home team is Fremantle?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Pick # < 223 AND Position = defensive end
CREATE TABLE INST, Here is a database schema( table schema);
Which Player has a Pick # lower than 223 and a Defensive End Position?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Original air date = May15,2008
CREATE TABLE INST, Here is a database schema( table schema);
What is the title when original air date is may15,2008?.It is not neccessary to use all the tables.
SELECT AVG Feb 2013 FROM table WHERE Feb 2010 = 37 AND Nov 2012 < 32
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32?.It is not neccessary to use all the tables.
SELECT player FROM table_name_86 WHERE round < 6 AND college_junior_club_team = "hull olympiques (qmjhl)"
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Player that has the Round smaller than 6 and the College/Junior/Club Team of hull olympiques (qmjhl)?It is not neccessary to use all the tables.
SELECT city FROM table_18159601_1 WHERE charter_date = "December 4, 2011"
CREATE TABLE INST, Here is a database schema( table schema);
in which city was charter date december 4, 2011It is not neccessary to use all the tables.
SELECT MAX(administrative_panel) FROM table_name_14 WHERE cultural_and_educational_panel = 2 AND industrial_and_commercial_panel > 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest administrative panel with a cultural and educational panel of 2 plus an industrial and commercial panel larger than 4?It is not neccessary to use all the tables.
SELECT school FROM table_21995420_6 WHERE stunts = "48"
CREATE TABLE INST, Here is a database schema( table schema);
What is every school with stunts of 48?It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_20 WHERE bronze = "aimo tepsell"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE YEAR WITH A BRONZE OF AIMO TEPSELL?It is not neccessary to use all the tables.
SELECT other FROM table_name_35 WHERE margin_of_error = "± 3%"
CREATE TABLE INST, Here is a database schema( table schema);
what is the percent for other when the margin of error is ± 3%?It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Tries For = 21
CREATE TABLE INST, Here is a database schema( table schema);
What is the Points with a Tries For that is 21?.It is not neccessary to use all the tables.
SELECT away_team FROM table_name_22 WHERE venue = "brunswick street oval"
CREATE TABLE INST, Here is a database schema( table schema);
What away team is playing at the Brunswick Street Oval Venue?It is not neccessary to use all the tables.
SELECT 2010 FROM table_name_9 WHERE 2011 = "qf"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2010 with a qf in 2011?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = victoria park
CREATE TABLE INST, Here is a database schema( table schema);
Which Home team has a Venue of victoria park?.It is not neccessary to use all the tables.
SELECT MAX Draws FROM table WHERE Losses > 8 AND Wins < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the draw when the losses were more than 8 and less than 2 wins?.It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Find the least value of attendance?.It is not neccessary to use all the tables.
SELECT SUM(evening_gown) FROM table_name_84 WHERE interview = 9.22 AND preliminaries > 9.057
CREATE TABLE INST, Here is a database schema( table schema);
What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057?It is not neccessary to use all the tables.
SELECT place FROM table_name_77 WHERE country = "united states" AND player = "john daly"
CREATE TABLE INST, Here is a database schema( table schema);
Where is john daly of united states from?It is not neccessary to use all the tables.
SELECT COUNT Material collected FROM table WHERE ISBN = 978-1401221935
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number for material collected for 978-1401221935.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Loss = lary (10-12)
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the game has a loss of Lary (10-12)?.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away side when collingwood is at home?.It is not neccessary to use all the tables.
SELECT Cylinder size FROM table WHERE Number built = 88
CREATE TABLE INST, Here is a database schema( table schema);
What was the cylinder size of this engine that was made with only 88 pieces?.It is not neccessary to use all the tables.
SELECT Headphone Model FROM table WHERE Succeeded by = sr325
CREATE TABLE INST, Here is a database schema( table schema);
What is the headphone model which was succeeded by sr325?.It is not neccessary to use all the tables.
SELECT Band FROM table WHERE Year > 2011
CREATE TABLE INST, Here is a database schema( table schema);
What band has a year above 2011?.It is not neccessary to use all the tables.
SELECT AVG Poles FROM table WHERE Points = n/a
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE AVERAGE POLES WITH POINTS N/A?.It is not neccessary to use all the tables.
SELECT MAX(Serial) AS number FROM table_29002641_1 WHERE scrapped = "Feb 1994"
CREATE TABLE INST, Here is a database schema( table schema);
Name the most serial number for feb 1994It is not neccessary to use all the tables.
SELECT Skip FROM table WHERE Country = canada
CREATE TABLE INST, Here is a database schema( table schema);
What was Canada's skip?.It is not neccessary to use all the tables.
SELECT "Result" FROM table_23045 WHERE "Theme" = '1980s'
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for 1980sIt is not neccessary to use all the tables.
SELECT SUM W(OT) FROM table WHERE L(GWS)* = 3 AND L(OT) > 1
CREATE TABLE INST, Here is a database schema( table schema);
How many OT wins associated with a L(GWS)* of 3, and a L(OT) larger than 1?.It is not neccessary to use all the tables.
SELECT november_3 FROM table_25216791_3 WHERE january_15_16 = "January 15, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
What was the data on November 3 if the data on January 15-16 is January 15 2010?It is not neccessary to use all the tables.
SELECT Seasons FROM table WHERE Country / Region = Poland
CREATE TABLE INST, Here is a database schema( table schema);
How many seasons did the show run in Poland?.It is not neccessary to use all the tables.
SELECT MAX(contestants) FROM table_25214321_1 WHERE runner_up = "Monique Evans"
CREATE TABLE INST, Here is a database schema( table schema);
How many contestants were there when the runner-up was Monique Evans?It is not neccessary to use all the tables.
SELECT Season FROM table WHERE Against = did not qualify for uefa competitions
CREATE TABLE INST, Here is a database schema( table schema);
Which season did not qualify for UEFA competitions?.It is not neccessary to use all the tables.
SELECT attendance FROM table_name_48 WHERE date = "august 2"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance on August 2?It is not neccessary to use all the tables.
SELECT MAX(round) FROM table_10361625_1 WHERE overall = 83
CREATE TABLE INST, Here is a database schema( table schema);
What is the greatest round of overall 83?It is not neccessary to use all the tables.
SELECT "Crowd" FROM table_55612 WHERE "Away team" = 'richmond'
CREATE TABLE INST, Here is a database schema( table schema);
How big was the crowd of away team Richmond?It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Venue = lake oval
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team at Lake Oval?.It is not neccessary to use all the tables.