sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT(episode) FROM table_24212608_1 WHERE broadcast_date = 2010
CREATE TABLE INST, Here is a database schema( table schema);
How many episodes were broadcast in 2010?It is not neccessary to use all the tables.
SELECT Place FROM table WHERE Player = davis love iii
CREATE TABLE INST, Here is a database schema( table schema);
Where is the player Davis Love III?.It is not neccessary to use all the tables.
SELECT COUNT Tonnage (GRT) FROM table WHERE Nationality = united kingdom AND Date = 27 june 1941
CREATE TABLE INST, Here is a database schema( table schema);
How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941?.It is not neccessary to use all the tables.
SELECT date FROM table_name_23 WHERE scorers = "parkinson"
CREATE TABLE INST, Here is a database schema( table schema);
what is the date when scorers is parkinson?It is not neccessary to use all the tables.
SELECT time FROM table_name_83 WHERE opponent = "takaichi hirayama"
CREATE TABLE INST, Here is a database schema( table schema);
At what time did the opponent Takaichi Hirayama have an event?It is not neccessary to use all the tables.
SELECT SUM Diameter (km) FROM table WHERE Latitude = 62.7n
CREATE TABLE INST, Here is a database schema( table schema);
COunt the sum of Diameter (km) which has a Latitude of 62.7n?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_81 WHERE record = "0-1"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent with a 0-1 record?It is not neccessary to use all the tables.
SELECT home FROM table_name_33 WHERE opponent = "marek dupnitsa"
CREATE TABLE INST, Here is a database schema( table schema);
What is the home score with marek dupnitsa as opponent?It is not neccessary to use all the tables.
SELECT Winning Team FROM table WHERE Date = may 12
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winning team on May 12?.It is not neccessary to use all the tables.
SELECT visitor FROM table_name_80 WHERE home = "miami" AND date = "november 4"
CREATE TABLE INST, Here is a database schema( table schema);
Which Visitor was there when the Home game was played in Miami on November 4?It is not neccessary to use all the tables.
SELECT COUNT Bullet Tip Color FROM table WHERE Other Features = Blue band on case base
CREATE TABLE INST, Here is a database schema( table schema);
How many bullet tips colors had other features of a blue band on case base?.It is not neccessary to use all the tables.
SELECT date FROM table_name_70 WHERE away_team = "west ham united"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was the away team West Ham United?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Home team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What was the away score when the home team was Melbourne?.It is not neccessary to use all the tables.
SELECT model_type FROM table_20866024_2 WHERE model_designation = "97500"
CREATE TABLE INST, Here is a database schema( table schema);
What model type has model designation 97500?It is not neccessary to use all the tables.
SELECT Airdate FROM table WHERE BBC One Weekly Ranking = 14
CREATE TABLE INST, Here is a database schema( table schema);
What date did the episode with a weekly ranking of 14 air?.It is not neccessary to use all the tables.
SELECT t2.drugname FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-53416') AND diagnosis.diagnosisname = 'hypovolemic shock' AND STRFTIME('%y-%m', diagnosis.diagnosistime) = '2105-05') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-53416') AND STRFTIME('%y-%m', medication.drugstarttime) = '2105-05') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t1.diagnosistime, 'start of day') = DATETIME(t2.drugstarttime, 'start of day')
CREATE TABLE INST, Here is a database schema( table schema);
what was the name of the drug prescribed to patient 030-53416 after having been diagnosed with hypovolemic shock in 05/2105 in the same day?It is not neccessary to use all the tables.
SELECT Surname FROM table WHERE First = donovan
CREATE TABLE INST, Here is a database schema( table schema);
What is donovan's surname?.It is not neccessary to use all the tables.
SELECT allergytype FROM Allergy_type WHERE allergy = "Cat"
CREATE TABLE INST, Here is a database schema( table schema);
What is the type of allergy Cat?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_62 WHERE date = "november 1, 1942"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance on November 1 1942?It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_46 WHERE nation = "germany" AND bronze < 56
CREATE TABLE INST, Here is a database schema( table schema);
How many total medals for germany with under 56 bronzes?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Artist = tangorodrim AND Cat. # = fsr006
CREATE TABLE INST, Here is a database schema( table schema);
What is the title of the record with an artist of Tangorodrim, category number FSR006?.It is not neccessary to use all the tables.
SELECT Stamp duty reserve tax FROM table WHERE over Total Tax Revenue (in %) = 0.79
CREATE TABLE INST, Here is a database schema( table schema);
What is the stamp duty reserve tax when the percentage over total tax revenue is 0.79?.It is not neccessary to use all the tables.
SELECT Municipality FROM table WHERE Barangay = poblacion
CREATE TABLE INST, Here is a database schema( table schema);
In which municipality is Barangay Poblacion?.It is not neccessary to use all the tables.
SELECT T2.Name, T2.Score FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White"
CREATE TABLE INST, Here is a database schema( table schema);
What are the names and scores of wines that are made of white color grapes?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Name = circe shell
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of attack of the Circe Shell Ship?.It is not neccessary to use all the tables.
SELECT Vote FROM table WHERE Air date = May 5, 2005
CREATE TABLE INST, Here is a database schema( table schema);
What was the vote tally on the episode aired May 5, 2005?.It is not neccessary to use all the tables.
SELECT high_points FROM table_11960196_3 WHERE game = 5
CREATE TABLE INST, Here is a database schema( table schema);
Who did the high points of game 5?It is not neccessary to use all the tables.
SELECT City FROM table WHERE Series = tamra's oc wedding
CREATE TABLE INST, Here is a database schema( table schema);
Which City has a Series of Tamra's oc wedding?.It is not neccessary to use all the tables.
SELECT record FROM table_name_50 WHERE visitor = "edmonton oilers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the game where the visitor team is the Edmonton Oilers?It is not neccessary to use all the tables.
SELECT Leader FROM table WHERE % of seats = spoilt votes
CREATE TABLE INST, Here is a database schema( table schema);
Which Leader has Spoilt Votes as % of Seats?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Distance = 2000m
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the race that was a 2000m distance?.It is not neccessary to use all the tables.
SELECT Club name FROM table WHERE Basis for team song = "Wee Deoch an Doris"
CREATE TABLE INST, Here is a database schema( table schema);
Which team has a song based on "wee deoch an doris"?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Tournament = belgrade
CREATE TABLE INST, Here is a database schema( table schema);
The tournament in Belgrade had what as a score?.It is not neccessary to use all the tables.
SELECT township FROM table_18600760_7 WHERE ansi_code = 1036632
CREATE TABLE INST, Here is a database schema( table schema);
If the ansi code is 1036632 what is the name of the township?It is not neccessary to use all the tables.
SELECT MIN First elected FROM table WHERE Incumbent = Ron Kind
CREATE TABLE INST, Here is a database schema( table schema);
When was the first election in the district whose incumbent is Ron Kind?.It is not neccessary to use all the tables.
SELECT l2_cache FROM table_name_54 WHERE model_number = "pentium ii 350"
CREATE TABLE INST, Here is a database schema( table schema);
What is L2 Cache when Model Number is Pentium II 350?It is not neccessary to use all the tables.
SELECT Affiliation FROM table WHERE Nickname = dukes
CREATE TABLE INST, Here is a database schema( table schema);
Who is affiliated with the Dukes?.It is not neccessary to use all the tables.
SELECT loss FROM table_name_52 WHERE date = "september 8"
CREATE TABLE INST, Here is a database schema( table schema);
Who did the team lose to on September 8?It is not neccessary to use all the tables.
SELECT SUM(overall) FROM table_name_55 WHERE round = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the overall sum of round 3?It is not neccessary to use all the tables.
SELECT "No. in series" FROM table_1865 WHERE "Directed by" = 'John Banas'
CREATE TABLE INST, Here is a database schema( table schema);
How many series did John Banas direct?It is not neccessary to use all the tables.
SELECT Losing BP FROM table WHERE Lost = 19 AND Club = newport saracens rfc
CREATE TABLE INST, Here is a database schema( table schema);
Name the Losing BP of Newport Saracens RFC and has a Lost of 19..It is not neccessary to use all the tables.
SELECT place FROM table_name_48 WHERE player = "justin leonard"
CREATE TABLE INST, Here is a database schema( table schema);
Which Place has a Player of justin leonard?It is not neccessary to use all the tables.
SELECT COUNT(pick) FROM table_name_51 WHERE college = "hawaii" AND overall < 122
CREATE TABLE INST, Here is a database schema( table schema);
How many Picks have a College of hawaii and an Overall smaller than 122?It is not neccessary to use all the tables.
SELECT seasons FROM table_name_45 WHERE percentage = "13.56%"
CREATE TABLE INST, Here is a database schema( table schema);
Which season has a percentage of 13.56%?It is not neccessary to use all the tables.
SELECT COUNT Notes FROM table WHERE Fight = Devon Alexander vs. Shawn Porter
CREATE TABLE INST, Here is a database schema( table schema);
How many notes are there for the Devon Alexander vs. Shawn Porter fight?.It is not neccessary to use all the tables.
SELECT COUNT(points) FROM table_13282157_3 WHERE country = "South Korea"
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of points for south koreaIt is not neccessary to use all the tables.
SELECT frequency FROM table_name_65 WHERE format = "country" AND owner = "jim pattison group"
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency for the country station owned by Jim Pattison Group?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_2941848_2 WHERE s_field_reporter = "Steve Lyons"
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest year with field reporter Steve Lyons?It is not neccessary to use all the tables.
SELECT COUNT("Attendance") FROM table_37664 WHERE "Date" = 'june 24'
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of attendance on june 24It is not neccessary to use all the tables.
SELECT class FROM table_name_72 WHERE manufacturer = "eastleigh works" AND year_made = "1914" AND year_s__withdrawn = "1959"
CREATE TABLE INST, Here is a database schema( table schema);
What is the class of the locomotive with an Eastleigh Works manufacturer made in 1914 and withdrawn in 1959?It is not neccessary to use all the tables.
SELECT Losing bonus FROM table WHERE Drawn = 1 AND Lost = 13
CREATE TABLE INST, Here is a database schema( table schema);
What is the losing bonus with 1 draw and 13 losses?.It is not neccessary to use all the tables.
SELECT Reason for change FROM table WHERE District = Washington 3rd
CREATE TABLE INST, Here is a database schema( table schema);
What is every reason for change for the Washington 3rd District?.It is not neccessary to use all the tables.
SELECT MIN(1 AS st__m_) FROM table_name_28 WHERE nationality = "aut" AND points > 273.5
CREATE TABLE INST, Here is a database schema( table schema);
Which 1st (m) is the lowest one that has a Nationality of aut and Points larger than 273.5?It is not neccessary to use all the tables.
SELECT Population FROM table WHERE County = tioga
CREATE TABLE INST, Here is a database schema( table schema);
What is the population of Tioga county?.It is not neccessary to use all the tables.
SELECT MAX(no_in_season) FROM table_21165255_1 WHERE production_code = 4300062
CREATE TABLE INST, Here is a database schema( table schema);
Name the number in season for 4300062It is not neccessary to use all the tables.
SELECT Paper Type FROM table WHERE Date of Issue = 26 july 2007
CREATE TABLE INST, Here is a database schema( table schema);
What is the paper type that the one that was issued on 26 july 2007 done on?.It is not neccessary to use all the tables.
SELECT AVG(apps) FROM table_name_64 WHERE country = "indonesia" AND goals < 1000
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Apps of indonesia with Goals smaller than 1000?It is not neccessary to use all the tables.
SELECT semifinalists FROM table_30018460_1 WHERE country_territory = "Peru"
CREATE TABLE INST, Here is a database schema( table schema);
How many semifinalists where from peru?It is not neccessary to use all the tables.
SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10
CREATE TABLE INST, Here is a database schema( table schema);
What are the ids and names of the battles that led to more than 10 people killed in total.It is not neccessary to use all the tables.
SELECT state FROM Owners INTERSECT SELECT state FROM Professionals
CREATE TABLE INST, Here is a database schema( table schema);
Which states have both owners and professionals living there?It is not neccessary to use all the tables.
SELECT country FROM table_name_13 WHERE score = 71 - 74 - 70 = 215
CREATE TABLE INST, Here is a database schema( table schema);
What is Country when Score is 71-74-70=215?It is not neccessary to use all the tables.
SELECT result FROM table_name_10 WHERE nominated_work = "neil finn"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result for work made by Neil Finn?It is not neccessary to use all the tables.
SELECT model FROM table_name_51 WHERE chipset = "intel q43"
CREATE TABLE INST, Here is a database schema( table schema);
What model number had a chipset of intel q43?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 0 – 2
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Score of 0 – 2?.It is not neccessary to use all the tables.
SELECT MIN Wins FROM table WHERE Against > 1282 AND Losses < 14
CREATE TABLE INST, Here is a database schema( table schema);
How many wins for the team with more than 1282 against and fewer than 14 losses?.It is not neccessary to use all the tables.
SELECT "Win #" FROM table_54365 WHERE "Season" = '2004-05'
CREATE TABLE INST, Here is a database schema( table schema);
How many wins were there in 2004-05?It is not neccessary to use all the tables.
SELECT Dance FROM table WHERE Worst dancer(s) = marissa jaret winokur
CREATE TABLE INST, Here is a database schema( table schema);
Which dance has the worst dancer(s) as marissa jaret winokur?.It is not neccessary to use all the tables.
SELECT president FROM table_name_37 WHERE head_coach = "mark wakeling"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the President of the team that has the Head Coach Mark Wakeling?It is not neccessary to use all the tables.
SELECT COUNT FSB (MHz) FROM table WHERE Model = 7140N
CREATE TABLE INST, Here is a database schema( table schema);
How many different FSB are there for the 7140N model?.It is not neccessary to use all the tables.
SELECT points FROM table_1676073_13 WHERE points_difference = "+119"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total points when the point difference is +119?It is not neccessary to use all the tables.
SELECT player FROM table_name_51 WHERE pl_gp > 0
CREATE TABLE INST, Here is a database schema( table schema);
What player has a number of playoff games played greater than 0?It is not neccessary to use all the tables.
SELECT score FROM table_name_51 WHERE to_par < 2
CREATE TABLE INST, Here is a database schema( table schema);
When To par was less than 2 what was the score?It is not neccessary to use all the tables.
SELECT COUNT(perfect_stem) FROM table_12784134_24 WHERE short_stem = "jo"
CREATE TABLE INST, Here is a database schema( table schema);
Name the perfect stem for joIt is not neccessary to use all the tables.
SELECT last FROM table_name_72 WHERE total > 26 AND first = "january 2001"
CREATE TABLE INST, Here is a database schema( table schema);
What is the last when the first was January 2001 and more than 26 total?It is not neccessary to use all the tables.
SELECT winery FROM wine ORDER BY score LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Which winery is the wine that has the highest score from?It is not neccessary to use all the tables.
SELECT vote FROM table_16976547_2 WHERE eliminated = "Gigit"
CREATE TABLE INST, Here is a database schema( table schema);
Name the vote for gigitIt is not neccessary to use all the tables.
SELECT location FROM table_1973816_2 WHERE institution = "Southern Vermont College"
CREATE TABLE INST, Here is a database schema( table schema);
Where is Southern Vermont College located?It is not neccessary to use all the tables.
SELECT Singapore Cup FROM table WHERE S-League = 5 (14)
CREATE TABLE INST, Here is a database schema( table schema);
What is the Singapore Cup when the S-League is 5 (14)?.It is not neccessary to use all the tables.
SELECT Position in 1999 FROM table 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 COUNT(tigrinya) FROM table_26919_6 WHERE arabic = "χams-"
CREATE TABLE INST, Here is a database schema( table schema);
Name the tigrinya for χams-It is not neccessary to use all the tables.
SELECT points FROM table_22056184_1 WHERE poles = 1
CREATE TABLE INST, Here is a database schema( table schema);
How many points when pole are 1?It is not neccessary to use all the tables.
SELECT Women's doubles FROM table WHERE Men's doubles = no competition AND Men's singles = arthur chatschatourow
CREATE TABLE INST, Here is a database schema( table schema);
Who won the Women's doubles the year that there was no competition in the Men's doubles and Arthur Chatschatourow won the Men's singles?.It is not neccessary to use all the tables.
SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t4.diagnosistime) > 3 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.uniquepid, t2.diagnosistime FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'pancreatitis - with pseudocyst formation' GROUP BY patient.uniquepid HAVING MIN(diagnosis.diagnosistime) = diagnosis.diagnosistime) AS t1) AS t2 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'metoprolol tartrate 25 mg tablet') AS t3 ON t2.uniquepid = t3.uniquepid WHERE t2.diagnosistime < t3.drugstarttime) AS t4 JOIN patient ON t4.uniquepid = patient.uniquepid
CREATE TABLE INST, Here is a database schema( table schema);
among patients who were prescribed metoprolol tartrate 25 mg tablet after having been diagnosed with pancreatitis - with pseudocyst formation calculate the three year survival rate.It is not neccessary to use all the tables.
SELECT DISTINCT T1.driverid, T1.nationality FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds > 100000
CREATE TABLE INST, Here is a database schema( table schema);
Find all the distinct id and nationality of drivers who have had laptime more than 100000 milliseconds?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = hrazdan stadium, yerevan, armenia
CREATE TABLE INST, Here is a database schema( table schema);
What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia?.It is not neccessary to use all the tables.
SELECT british FROM table_name_55 WHERE letter = "o /oʊ/"
CREATE TABLE INST, Here is a database schema( table schema);
What is the British letter with o /oʊ/?It is not neccessary to use all the tables.
SELECT constituency_number FROM table_name_37 WHERE name = "udaipura"
CREATE TABLE INST, Here is a database schema( table schema);
How many constituents does udaipura have?It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Date = bye
CREATE TABLE INST, Here is a database schema( table schema);
Name the week for date of bye.It is not neccessary to use all the tables.
SELECT Spike FROM table WHERE 2008 club = d.c.
CREATE TABLE INST, Here is a database schema( table schema);
What is the spike for the club of d.c. in 2008?.It is not neccessary to use all the tables.
SELECT Highest position FROM table WHERE Artist = Frankie Avalon
CREATE TABLE INST, Here is a database schema( table schema);
what's the highest position with artbeingt being frankie avalon.It is not neccessary to use all the tables.
SELECT MAX Game FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest game number?.It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_71 WHERE opponent = "green bay packers"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Week of the game against Green Bay Packers?It is not neccessary to use all the tables.
SELECT COUNT(opponent) FROM table_21197135_1 WHERE record = "6-0"
CREATE TABLE INST, Here is a database schema( table schema);
How many opponents were there when the record was 6-0?It is not neccessary to use all the tables.
SELECT SUM(attendance) FROM table_name_34 WHERE opponent = "rockies" AND record = "32-30"
CREATE TABLE INST, Here is a database schema( table schema);
How much Attendance has an Opponent of rockies and a Record of 32-30?It is not neccessary to use all the tables.
SELECT format FROM table_name_10 WHERE catalog = "alca-9196"
CREATE TABLE INST, Here is a database schema( table schema);
What formated cataloged alca-9196?It is not neccessary to use all the tables.
SELECT MIN Silver FROM table WHERE Overall < 67 AND Team = saami AND Gold < 5
CREATE TABLE INST, Here is a database schema( table schema);
what is the least silver when overall is less than 67, team is saami and gold is less than 5?.It is not neccessary to use all the tables.
SELECT Production code FROM table WHERE Written by = Cathryn Humphris
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code of the episode written by Cathryn Humphris?.It is not neccessary to use all the tables.
SELECT COUNT Events FROM table WHERE Points = 3031
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of events for 3031.It is not neccessary to use all the tables.
SELECT competition FROM table_name_43 WHERE date = "26 jan 2005"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Competition On 26 jan 2005It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Lane < 3 AND Rank = 8
CREATE TABLE INST, Here is a database schema( table schema);
for the rank of 8 and lane less than 3 what is the name?.It is not neccessary to use all the tables.