sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT "Second member" FROM table_60787 WHERE "First member" = 'rt hon. edward stanley'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the second member when RT Hon. Edward Stanley is the first member?It is not neccessary to use all the tables.
SELECT AVG(attendance) FROM table_name_95 WHERE week = 8
CREATE TABLE INST, Here is a database schema( table schema);
What was the Attendance on Week 8?It is not neccessary to use all the tables.
SELECT rate_change___percentage_ FROM table_25316812_1 WHERE rate_limit__p_ = "82.86"
CREATE TABLE INST, Here is a database schema( table schema);
What is the rate change % when the rate limit is 82.86?It is not neccessary to use all the tables.
SELECT MIN(draws) FROM table_name_63 WHERE position = 16 AND goals_against < 58
CREATE TABLE INST, Here is a database schema( table schema);
Which Draws have a Position of 16 and less than 58 Goals against?It is not neccessary to use all the tables.
SELECT Award FROM table WHERE Year < 2005
CREATE TABLE INST, Here is a database schema( table schema);
What award did they win before 2005?.It is not neccessary to use all the tables.
SELECT MAX Lane FROM table WHERE Rank < 6 AND Nationality = poland
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest lane for the poland swimmer who ranked under 6?.It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE Team = San Juan Jabloteh
CREATE TABLE INST, Here is a database schema( table schema);
San Juan Jabloteh calls which stadium home?.It is not neccessary to use all the tables.
SELECT district FROM table_name_54 WHERE constituency_number = "98"
CREATE TABLE INST, Here is a database schema( table schema);
What district has 98 constituencies?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Last eruption or growth episode = 1986
CREATE TABLE INST, Here is a database schema( table schema);
What countries have had eruptions of growth episodes in 1986?.It is not neccessary to use all the tables.
SELECT AVG Game FROM table WHERE Record = 20-12
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of games with a record of 20-12?.It is not neccessary to use all the tables.
SELECT votes___percentage_ FROM table_name_14 WHERE episode = "1x03"
CREATE TABLE INST, Here is a database schema( table schema);
What is Votes (%) when Episode is "1x03"?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_75 WHERE score = "139-119"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team for the game with a score of 139-119?It is not neccessary to use all the tables.
SELECT Id AS "post_link", Tags FROM Posts WHERE LENGTH(Body) < 100 AND PostTypeId = 1 AND ClosedDate IS NULL AND DeletionDate IS NULL AND CommunityOwnedDate IS NULL AND AnswerCount = 0 AND CommentCount > 0 AND FavoriteCount > 0
CREATE TABLE INST, Here is a database schema( table schema);
Short Favorited Commented Questions with no Answers.It is not neccessary to use all the tables.
SELECT runner_s__up FROM table_name_42 WHERE tournament = "atlantic city classic"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the runner-up of Atlantic city classic?It is not neccessary to use all the tables.
SELECT replaced_by FROM table_name_11 WHERE date_of_vacancy = "3 march 2009"
CREATE TABLE INST, Here is a database schema( table schema);
Who was hired to fill the spot that became vacant on 3 March 2009?It is not neccessary to use all the tables.
SELECT MIN(runs) FROM table_name_83 WHERE name = "clem hill" AND inns > 126
CREATE TABLE INST, Here is a database schema( table schema);
Name of clem hill and Inns larger than 126 has the lowest runs?It is not neccessary to use all the tables.
SELECT Casualties FROM table WHERE Circumstances = ied
CREATE TABLE INST, Here is a database schema( table schema);
How many casualties were from the IED circumstance?.It is not neccessary to use all the tables.
SELECT COUNT Written by FROM table WHERE U.S. viewers (millions) = 12.72
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were watched by 12.72 million U.S. viewers?.It is not neccessary to use all the tables.
SELECT date FROM table_name_85 WHERE partnering = "laura golarsa"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game that was played against Laura Golarsa?It is not neccessary to use all the tables.
SELECT "driver" FROM table_203_452 WHERE "pos" = (SELECT "pos" FROM table_203_452 WHERE "driver" = 'will power') + 1
CREATE TABLE INST, Here is a database schema( table schema);
who finished after will power ?It is not neccessary to use all the tables.
SELECT position FROM table_name_38 WHERE team = "sahara force india f1 team" AND points = "46"
CREATE TABLE INST, Here is a database schema( table schema);
What Position is Team Sahara Force india f1 team with 46 Points?It is not neccessary to use all the tables.
SELECT Player_name FROM player ORDER BY Votes DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player with the largest number of votes?It is not neccessary to use all the tables.
SELECT place FROM table_name_16 WHERE score = 67
CREATE TABLE INST, Here is a database schema( table schema);
What is the Place of the Player with a Score of 67?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND prescriptions.drug = "Epoetin Alfa"
CREATE TABLE INST, Here is a database schema( table schema);
How many patients are of white-russian ethnicity and treated with drug epoetin alfa?It is not neccessary to use all the tables.
SELECT Region FROM table WHERE Label = emi AND Format = 4 x vinyl AND Catalog number = 560 6111
CREATE TABLE INST, Here is a database schema( table schema);
What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111?.It is not neccessary to use all the tables.
SELECT co_drivers FROM table_name_92 WHERE pos = "dnf" AND year < 2011 AND team = "racing organisation course"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the co-drivers for the Racing Organisation Course team in years before 2011 who had a position of DNF?It is not neccessary to use all the tables.
SELECT AVG(capacity) FROM table_name_97 WHERE stadium = "rod laver arena"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average capacity that has rod laver arena as the stadium?It is not neccessary to use all the tables.
SELECT 2005 FROM table_name_29 WHERE 2002 = "a" AND 2010 = "3r"
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2005 figure when 2002 is A and 2010 is 3R?It is not neccessary to use all the tables.
SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Show the transaction type code that occurs the fewest times.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Attendance > 16,571 AND Loss = mcdowell (0-1)
CREATE TABLE INST, Here is a database schema( table schema);
Which score has an Attendance larger than 16,571, and a Loss of mcdowell (0-1)?.It is not neccessary to use all the tables.
SELECT MAX(passenger_fleet) FROM table_name_77 WHERE airline_holding = "wizz air" AND current_destinations < 83
CREATE TABLE INST, Here is a database schema( table schema);
For an airline of Wizz Air and fewer than 83 destinations what is the highest passenger fleet?It is not neccessary to use all the tables.
SELECT Finish FROM table WHERE Country = south africa
CREATE TABLE INST, Here is a database schema( table schema);
What is Finish, when Country is "South Africa"?.It is not neccessary to use all the tables.
SELECT time FROM table_name_28 WHERE away_team = "mutual team b"
CREATE TABLE INST, Here is a database schema( table schema);
What was the time for the match with away team Mutual Team B?It is not neccessary to use all the tables.
SELECT headphone_model FROM table_1601027_1 WHERE us_msrp = "$150"
CREATE TABLE INST, Here is a database schema( table schema);
Which headphone models correspond to the US MSRP of $150?It is not neccessary to use all the tables.
SELECT MIN Attendance FROM table WHERE Date = december 3, 1944
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest attendance number for December 3, 1944?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Result = 3-0
CREATE TABLE INST, Here is a database schema( table schema);
What venue has a Result of 3-0?.It is not neccessary to use all the tables.
SELECT * FROM table_dev_6 WHERE hypertension = 1 OR systolic_blood_pressure_sbp > 140 OR diastolic_blood_pressure_dbp > 90
CREATE TABLE INST, Here is a database schema( table schema);
uncontrolled hypertension ( resting blood pressure > 140 / 90 )It is not neccessary to use all the tables.
SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = "Bandon" AND townland = "Lissagroom"
CREATE TABLE INST, Here is a database schema( table schema);
How many acres does the area of Lissagroom with Bandon as its poor law union cover?It is not neccessary to use all the tables.
SELECT partial_thromboplastin_time FROM table_221653_1 WHERE prothrombin_time = "Prolonged" AND bleeding_time = "Prolonged"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for partial thromboplastin time when prothrombin time and bleeding time are prolonged?It is not neccessary to use all the tables.
SELECT Trofeo Fast Team FROM table WHERE Stage = 19
CREATE TABLE INST, Here is a database schema( table schema);
What is the Trofeo Fast Team when stage is 19?.It is not neccessary to use all the tables.
SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes DESC
CREATE TABLE INST, Here is a database schema( table schema);
I want to see trend of the number of date of notes by date of notes, order X in descending order.It is not neccessary to use all the tables.
SELECT worldwide_gross FROM table_name_68 WHERE rank = 16
CREATE TABLE INST, Here is a database schema( table schema);
What is the Worldwide Gross of the Film with a Rank of 16?It is not neccessary to use all the tables.
SELECT Ethnic group FROM table WHERE Buddhist = 0.19%
CREATE TABLE INST, Here is a database schema( table schema);
Name the ethnic group with a buddhist of 0.19%.It is not neccessary to use all the tables.
SELECT high_assists FROM table_name_7 WHERE game = 3
CREATE TABLE INST, Here is a database schema( table schema);
What was the highest assists for game 3?It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE U.S. viewers (millions) = 23.9
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code for the episode that had 23.9 million u.s. viewers?.It is not neccessary to use all the tables.
SELECT position FROM table_name_54 WHERE school_country = "arkansas"
CREATE TABLE INST, Here is a database schema( table schema);
What position does the player from arkansas play?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Points = 26
CREATE TABLE INST, Here is a database schema( table schema);
Which team has 26 points?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Bronze > 3
CREATE TABLE INST, Here is a database schema( table schema);
When bronze is more than 3, what is the rank?.It is not neccessary to use all the tables.
SELECT Tie no FROM table WHERE Home team = west ham united
CREATE TABLE INST, Here is a database schema( table schema);
What is the Tie Number when the home team was West Ham United?.It is not neccessary to use all the tables.
SELECT "Home team" FROM table_33490 WHERE "Away team" = 'collingwood'
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team that played Collingwood?It is not neccessary to use all the tables.
SELECT SUM(points) FROM table_name_80 WHERE chassis = "maserati 250f" AND entrant = "officine alfieri maserati"
CREATE TABLE INST, Here is a database schema( table schema);
Name the sum of points for chassis of maserati 250f and entrant of officine alfieri maseratiIt is not neccessary to use all the tables.
SELECT MAX(round) FROM table_name_54 WHERE player = "ken irvin"
CREATE TABLE INST, Here is a database schema( table schema);
What round was Ken Irvin drafted?It is not neccessary to use all the tables.
SELECT firefox FROM table_name_95 WHERE chrome = "23.90%"
CREATE TABLE INST, Here is a database schema( table schema);
What was the percentage of firefox was chrome was 23.90%It is not neccessary to use all the tables.
SELECT SUM(year) FROM table_name_9 WHERE location = "koror, palau"
CREATE TABLE INST, Here is a database schema( table schema);
In what Year is the Location of the Festival Koror Palau?It is not neccessary to use all the tables.
SELECT Institution FROM table WHERE Founded = 1950
CREATE TABLE INST, Here is a database schema( table schema);
Name the school that was founded in 1950.It is not neccessary to use all the tables.
SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte'
CREATE TABLE INST, Here is a database schema( table schema);
Find the names of customers who never ordered product Latte.It is not neccessary to use all the tables.
SELECT proto_austronesian FROM table_15568886_14 WHERE proto_oceanic = "*pine, *papine"
CREATE TABLE INST, Here is a database schema( table schema);
Name the proto-austrronesian for *pine *papineIt is not neccessary to use all the tables.
SELECT "Border" FROM table_57201 WHERE "Background colour" = 'yellow' AND "Shape" = 'triangular'
CREATE TABLE INST, Here is a database schema( table schema);
Which sign had a yellow background and a triangular shape?It is not neccessary to use all the tables.
SELECT Governor, COUNT(Governor) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 GROUP BY Governor
CREATE TABLE INST, Here is a database schema( table schema);
A bar chart for finding the number of the parties associated with the delegates from district 1. Who served as governors of the parties?It is not neccessary to use all the tables.
SELECT frequency FROM table_name_15 WHERE socket = "socket 370" AND model_number = "c3 1.4a"
CREATE TABLE INST, Here is a database schema( table schema);
Which Frequency has a Socket of socket 370 and a Model Number of c3 1.4a?It is not neccessary to use all the tables.
SELECT outcome FROM table_name_70 WHERE date = "6 october 2013"
CREATE TABLE INST, Here is a database schema( table schema);
Name the outcome on 6 october 2013It is not neccessary to use all the tables.
SELECT school FROM table_name_73 WHERE season_outcome = "loss in first round of div. i playoffs"
CREATE TABLE INST, Here is a database schema( table schema);
Name the school for Season Outcome of loss in first round of div. i playoffsIt is not neccessary to use all the tables.
SELECT MIN(2002 AS _population) FROM table_13764346_1
CREATE TABLE INST, Here is a database schema( table schema);
What is the smallest population recorded back in 2002?It is not neccessary to use all the tables.
SELECT AVG q > 1 FROM table WHERE q > 1.2 < 3,028 AND q > 1.4 = 51 AND q > 1.05 > 18,233
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean q > 1 with a q > 1.2 less than 3,028, and a q > 1.4 of 51, and a q > 1.05 greater than 18,233?.It is not neccessary to use all the tables.
SELECT name FROM table_name_38 WHERE reported_age = "111 years, 66 days"
CREATE TABLE INST, Here is a database schema( table schema);
Who has a reported age of 111 years 66 days?It is not neccessary to use all the tables.
SELECT COUNT Publisher FROM table WHERE Hardcover = ISBN 193700788X
CREATE TABLE INST, Here is a database schema( table schema);
How many publishers put out isbn 193700788x?.It is not neccessary to use all the tables.
SELECT Finish FROM table WHERE Laps = 51
CREATE TABLE INST, Here is a database schema( table schema);
What is the finish with 51 laps?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Player = josé maría olazábal
CREATE TABLE INST, Here is a database schema( table schema);
What is josé maría olazábal's country?.It is not neccessary to use all the tables.
SELECT year FROM table_name_82 WHERE role_episode = "david duchovny"
CREATE TABLE INST, Here is a database schema( table schema);
what is the year when the role/episode is david duchovny?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE To par = +1 AND Country = united states AND Score = 71-70=141
CREATE TABLE INST, Here is a database schema( table schema);
What is Player, when To Par is "+1", when Country is "United States", and when Score is "71-70=141"?.It is not neccessary to use all the tables.
SELECT Wheelbase (mm/inch) FROM table WHERE Model Designation = 97G00
CREATE TABLE INST, Here is a database schema( table schema);
What's the wheelbase (in mm/inch) of the model with model designation 97G00?.It is not neccessary to use all the tables.
SELECT writer_s_ FROM table_25800134_4 WHERE season__number = 15
CREATE TABLE INST, Here is a database schema( table schema);
Who was the writer of episode 15?It is not neccessary to use all the tables.
SELECT MAX Laps FROM table WHERE Driver = joe nemechek
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest number of laps completed by driver Joe Nemechek?.It is not neccessary to use all the tables.
SELECT electronvolt FROM table_name_44 WHERE joule = "3,600"
CREATE TABLE INST, Here is a database schema( table schema);
How many electronvolts is 3600 joules?It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Manager = marty berghammer / nick allen
CREATE TABLE INST, Here is a database schema( table schema);
Manager of marty berghammer / nick allen is what year?.It is not neccessary to use all the tables.
SELECT stepping FROM table_name_25 WHERE release_date = "june 5, 2007"
CREATE TABLE INST, Here is a database schema( table schema);
What is the stepping for the processor released June 5 2007?It is not neccessary to use all the tables.
SELECT 2 AS nd_party FROM table_name_53 WHERE election = "1885"
CREATE TABLE INST, Here is a database schema( table schema);
What 2nd Party has an Election of 1885?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Rank = 1 AND Total < 11
CREATE TABLE INST, Here is a database schema( table schema);
Which Silver has a Rank of 1, and a Total smaller than 11?.It is not neccessary to use all the tables.
SELECT Loss FROM table WHERE Score = 9-1
CREATE TABLE INST, Here is a database schema( table schema);
What was the Loss that had a Score of 9-1?.It is not neccessary to use all the tables.
SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = "4.4%"
CREATE TABLE INST, Here is a database schema( table schema);
How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Day 1 = 3:18.513
CREATE TABLE INST, Here is a database schema( table schema);
Which team had 3:18.513 on day 1?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_13 WHERE score = "3 - 2" AND decision = "raycroft" AND record = "25-29-1"
CREATE TABLE INST, Here is a database schema( table schema);
What was the opponent when the score was 3 - 2 and the decision was Raycroft with a record of 25-29-1?It is not neccessary to use all the tables.
SELECT week_2 FROM table_name_90 WHERE week_4 = "diane deluna"
CREATE TABLE INST, Here is a database schema( table schema);
When Diane Deluna was the cyber girl in week 4 who was the cyber girl in week 2?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2132.0" AND diagnoses.icd9_code = "7098"
CREATE TABLE INST, Here is a database schema( table schema);
How many of the patients diagnosed with icd9 code 7098 died in or before the year 2132?It is not neccessary to use all the tables.
SELECT AVG(year) FROM table_name_93 WHERE competition = "olympic games" AND venue = "atlanta, united states"
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Competition of olympic games and a Venue of atlanta united states?It is not neccessary to use all the tables.
SELECT School FROM table WHERE Player = rodney purvis
CREATE TABLE INST, Here is a database schema( table schema);
Which school did player Rodney Purvis belong to?.It is not neccessary to use all the tables.
SELECT COUNT(province) FROM table_16489766_2 WHERE chinese = "重庆"
CREATE TABLE INST, Here is a database schema( table schema);
What province has the Chinese translation 重庆?It is not neccessary to use all the tables.
SELECT name FROM table_name_59 WHERE pick = 5 AND round < 25 AND position = "ot" AND college = "boston college"
CREATE TABLE INST, Here is a database schema( table schema);
What name has 5 as the pick, a round less than 25, ot as the position, at boston college?It is not neccessary to use all the tables.
SELECT authors FROM table_name_65 WHERE name = "malasaurus"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the author for the malasaurus?It is not neccessary to use all the tables.
SELECT record FROM table_name_63 WHERE date = "january 7"
CREATE TABLE INST, Here is a database schema( table schema);
on january 7 what is the record?It is not neccessary to use all the tables.
SELECT COUNT(race_3_winner) FROM table_22905641_2 WHERE race_2_winner = "Mitch Evans"
CREATE TABLE INST, Here is a database schema( table schema);
How many race 3 winners were there when Mitch Evans won race 2?It is not neccessary to use all the tables.
SELECT Total FROM table WHERE Silver = 0 AND Competitors = 31
CREATE TABLE INST, Here is a database schema( table schema);
What was the Total the Year Yugoslavia had 0 Silver medals and 31 Competitors?.It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Original air date = 10January2008
CREATE TABLE INST, Here is a database schema( table schema);
If the Original Air Date is 10January2008, what directors released on that date?.It is not neccessary to use all the tables.
SELECT * FROM table_dev_28 WHERE hba1c > 6.5 AND hemoglobin_a1c_hba1c < 9 AND metformin = 1
CREATE TABLE INST, Here is a database schema( table schema);
hba1c at screening 6.5 % to 9 % for patients on metforminIt is not neccessary to use all the tables.
SELECT party FROM table_1342292_2 WHERE incumbent = "William B. Bankhead"
CREATE TABLE INST, Here is a database schema( table schema);
what's the party with incumbent being william b. bankheadIt is not neccessary to use all the tables.
SELECT MIN Swimsuit FROM table WHERE Interview < 8.56 AND Evening gown > 8.54
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest swimsuit score where the contestant scored less than 8.56 in the interview and greater than 8.54 in the evening gown?.It is not neccessary to use all the tables.
SELECT MIN Floors FROM table WHERE Built > 1970 AND Name = nv building 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Floors, when Built is greater than 1970, and when Name is NV Building 3?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM BOOKINGS
CREATE TABLE INST, Here is a database schema( table schema);
How many bookings do we have?It is not neccessary to use all the tables.
SELECT Route/Via. FROM table WHERE Destination = Guruvayur
CREATE TABLE INST, Here is a database schema( table schema);
What is the route for the destination of guruvayur?.It is not neccessary to use all the tables.
SELECT OpinionWay 5/18/09 FROM table WHERE Ipsos 5/16/09 = 11%
CREATE TABLE INST, Here is a database schema( table schema);
Which OpinionWay 5/18/09 has an Ipsos 5/16/09 of 11%?.It is not neccessary to use all the tables.