answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT 2006 FROM table_name_7 WHERE 1990 = "grand slam tournaments" | What shows for 2006 when 1999 is Grand Slam Tournaments? | CREATE TABLE table_name_7 (Id VARCHAR) |
SELECT voice_actor__japanese_ FROM table_1410384_1 WHERE character_name = "Goku" | who is the the voice actor (japanese) with character name being goku | CREATE TABLE table_1410384_1 (voice_actor__japanese_ VARCHAR, character_name VARCHAR) |
SELECT COUNT("player") FROM table_203_611 WHERE "hr" > 600 | how many players hit more than 600 runs in their career ? | CREATE TABLE table_203_611 (
id number,
"player" text,
"hr" number,
"date reached 500 hr" text,
"team" text,
"seasons played" text
) |
SELECT 2006 FROM table_name_65 WHERE 2000 = "1r" AND 1996 = "a" AND tournament = "cincinnati masters" | What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters? | CREATE TABLE table_name_65 (tournament VARCHAR) |
SELECT COUNT(national_titles) FROM table_14115168_4 WHERE school = "Peru State College" | how many big wins does peru state college have | CREATE TABLE table_14115168_4 (national_titles VARCHAR, school VARCHAR) |
SELECT home_team AS score FROM table_name_10 WHERE away_team = "north melbourne" | What did the team score at home in north melbourne? | CREATE TABLE table_name_10 (
home_team VARCHAR,
away_team VARCHAR
) |
SELECT tournament FROM table_name_61 WHERE 1990 = "olympic games" | What is the Tournament when the 1990 is Olympic Games? | CREATE TABLE table_name_61 (tournament VARCHAR) |
SELECT school FROM table_14115168_4 WHERE national_titles = 14 | which school has 14 large championships | CREATE TABLE table_14115168_4 (school VARCHAR, national_titles VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND demographic.dob_year < "2110" | count the number of hispanic or latino patients who were born before 2110. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... |
SELECT location FROM table_name_59 WHERE record = "0-1" | Which Location has a Record of 0-1? | CREATE TABLE table_name_59 (location VARCHAR, record VARCHAR) |
SELECT MIN(national_titles) FROM table_14115168_4 WHERE school = "Concordia University" | how many overall championships does concordia university have | CREATE TABLE table_14115168_4 (national_titles INTEGER, school VARCHAR) |
SELECT COUNT(bronze) FROM table_name_67 WHERE silver > 8 AND total = 50 | What is the total number of bronze medals of the team with more than 8 silvers and a total of 50 medals? | CREATE TABLE table_name_67 (
bronze VARCHAR,
silver VARCHAR,
total VARCHAR
) |
SELECT record FROM table_name_4 WHERE method = "technical submission (rear naked choke)" | What is Record, when Method is "Technical Submission (Rear Naked Choke)"? | CREATE TABLE table_name_4 (record VARCHAR, method VARCHAR) |
SELECT duration FROM table_14118521_1 WHERE mission = "STS-87" | what's the duration with mission being sts-87 | CREATE TABLE table_14118521_1 (duration VARCHAR, mission VARCHAR) |
SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '012-25893' AND DATETIME(patient.hospitaldischargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaldischargetime DESC LIMIT 1 | when was patient 012-25893 last discharged this year from the hospital? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... |
SELECT SUM(round) FROM table_name_79 WHERE method = "submission (banana split)" | What is the sum of Round(s), when Method is "Submission (Banana Split)"? | CREATE TABLE table_name_79 (round INTEGER, method VARCHAR) |
SELECT edo_flight FROM table_14118521_1 WHERE duration = "17 days, 15 hours, 53 minutes, 18 seconds" | what's the edo flight with duration being 17 days, 15 hours, 53 minutes, 18 seconds | CREATE TABLE table_14118521_1 (edo_flight VARCHAR, duration VARCHAR) |
SELECT position FROM table_name_18 WHERE nominated_work = "la quinta esencia" AND award = "best cd coverbox" | What was the position that the nominated work La Quinta Esencia, which also won an award for best CD coverbox, won? | CREATE TABLE table_name_18 (
position VARCHAR,
nominated_work VARCHAR,
award VARCHAR
) |
SELECT time FROM table_name_85 WHERE event = "gcm: demolition 1" | What is Time, when Event is "GCM: Demolition 1"? | CREATE TABLE table_name_85 (time VARCHAR, event VARCHAR) |
SELECT primary_payload_s_ FROM table_14118521_1 WHERE launch_date = "July 8, 1994" | what's the primary payload(s) with launch date being july 8, 1994 | CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, launch_date VARCHAR) |
SELECT p.Id FROM Posts AS p WHERE p.Body LIKE '%<br>%' AND p.PostTypeId = 1 ORDER BY p.Id DESC LIMIT 128 | Question bodies containing a <br> tag.. | CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CR... |
SELECT COUNT(year_set) FROM table_name_73 WHERE event = "100m freestyle" | What year had a 100m freestyle event? | CREATE TABLE table_name_73 (year_set VARCHAR, event VARCHAR) |
SELECT mission FROM table_14118521_1 WHERE primary_payload_s_ = "Spacelab Life Sciences-2" | what's the mission with primary payload(s) being spacelab life sciences-2 | CREATE TABLE table_14118521_1 (mission VARCHAR, primary_payload_s_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "75261" | count the number of patients with diagnoses icd9 code 75261. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... |
SELECT event FROM table_name_77 WHERE long_course_short_course = "short course" AND year_set = 2010 | What event had a short course in 2010? | CREATE TABLE table_name_77 (event VARCHAR, long_course_short_course VARCHAR, year_set VARCHAR) |
SELECT shuttle FROM table_14118521_1 WHERE primary_payload_s_ = "United States Microgravity Laboratory-1" | what's the shuttle with primary payload(s) being united states microgravity laboratory-1 | CREATE TABLE table_14118521_1 (shuttle VARCHAR, primary_payload_s_ VARCHAR) |
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT outputevents.itemid FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8016)) AND DATETIME(outputevents.charttime... | what was the name of the output that patient 8016 got first on 11/27/this year? | CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
s... |
SELECT COUNT(year_set) FROM table_name_24 WHERE long_course_short_course = "short course" AND time = "7:51.80" | What year did a short course have a time of 7:51.80? | CREATE TABLE table_name_24 (year_set VARCHAR, long_course_short_course VARCHAR, time VARCHAR) |
SELECT COUNT(primary_payload_s_) FROM table_14118521_1 WHERE shuttle = "Columbia" AND duration = "13 days, 19 hours, 30 minutes, 4 seconds" | how many primary payload(s) with shuttle being columbia and duration being 13 days, 19 hours, 30 minutes, 4 seconds | CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, shuttle VARCHAR, duration VARCHAR) |
SELECT "Time/Retired" FROM table_58416 WHERE "Laps" = '22' AND "Grid" = '29' | What is the time/retired with 22 laps and a grid of 29? | CREATE TABLE table_58416 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT MAX(year_set) FROM table_name_67 WHERE event = "100m freestyle" | What was the latest year that had a 100m freestyle? | CREATE TABLE table_name_67 (year_set INTEGER, event VARCHAR) |
SELECT pts FROM table_14139408_1 WHERE team = "Kopron team Scot" | what's the pts with team being kopron team scot | CREATE TABLE table_14139408_1 (pts VARCHAR, team VARCHAR) |
SELECT AVG(round) FROM table_name_89 WHERE method = "tko (punches and elbows)" | What is the average round for the TKO (punches and elbows) method? | CREATE TABLE table_name_89 (
round INTEGER,
method VARCHAR
) |
SELECT place FROM table_name_54 WHERE draw = 3 | In what place was the song that had a draw of 3? | CREATE TABLE table_name_54 (place VARCHAR, draw VARCHAR) |
SELECT pts FROM table_14139408_1 WHERE position = "NC" | what's the pts with position being nc | CREATE TABLE table_14139408_1 (pts VARCHAR, position VARCHAR) |
SELECT demographic.days_stay, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "29541" | what is days of hospital stay and procedure long title of subject id 29541? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... |
SELECT MIN(points) FROM table_name_73 WHERE place = "7th" AND draw > 8 | What is the number of points for the 7th placed song with a draw greater than 8? | CREATE TABLE table_name_73 (points INTEGER, place VARCHAR, draw VARCHAR) |
SELECT pts FROM table_14139408_1 WHERE poles < 1.0 AND motorcycle = "Aprilia" AND class = "250cc" | what's the pts with poles being smaller than 1.0 and motorcycle being aprilia and class being 250cc | CREATE TABLE table_14139408_1 (pts VARCHAR, class VARCHAR, poles VARCHAR, motorcycle VARCHAR) |
SELECT "Winner" FROM table_25122 WHERE "Final Venue" = 'Kowloon Cricket Club' | Who was the winner if the final venue is Kowloon Cricket Club? | CREATE TABLE table_25122 (
"Details" text,
"Host Nation(s)" text,
"Final Venue" text,
"Winner" text,
"Result" text,
"Runner-up" text
) |
SELECT COUNT(points) FROM table_name_93 WHERE artist = "joe o'meara" | How many points did Joe O'Meara have? | CREATE TABLE table_name_93 (points VARCHAR, artist VARCHAR) |
SELECT poles FROM table_14139408_1 WHERE pts = "81" | what's the poles with pts being 81 | CREATE TABLE table_14139408_1 (poles VARCHAR, pts VARCHAR) |
SELECT COUNT("Channel TV ( DT )") FROM table_18792 WHERE "City of license /Market" = 'Austin, Texas' | How many channel tv (dt)s are in austin, texas? | CREATE TABLE table_18792 (
"City of license /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Owned since" text,
"Primary affiliation" text
) |
SELECT COUNT(points) FROM table_name_89 WHERE artist = "linda martin" | How many points did Linda Martin have? | CREATE TABLE table_name_89 (points VARCHAR, artist VARCHAR) |
SELECT COUNT(class) FROM table_14139408_1 WHERE poles > 1.0 | how many class with poles being bigger than 1.0 | CREATE TABLE table_14139408_1 (class VARCHAR, poles INTEGER) |
SELECT * FROM Posts, PostTypes WHERE Posts.PostTypeId = PostTypes.Id AND PostTypes.Id = 1 AND Posts.CreationDate BETWEEN '2015-03-08 00:00:00' AND '2015-03-08 23:59:59' ORDER BY Posts.ViewCount DESC LIMIT 50 | 50 most viewed questions on 2015-03-08 on Ask Ubuntu. | CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... |
SELECT score FROM table_name_39 WHERE week > 13 AND visitor = "montreal alouettes" | WHAT IS THE SCORE WITH A WEEK LARGER THAN 13, AND VISITOR TEAM MONTREAL ALOUETTES? | CREATE TABLE table_name_39 (score VARCHAR, week VARCHAR, visitor VARCHAR) |
SELECT position FROM table_14139408_1 WHERE team = "Skilled Racing team" | what's the position with team being skilled racing team | CREATE TABLE table_14139408_1 (position VARCHAR, team VARCHAR) |
SELECT icao FROM table_name_90 WHERE country = "india" AND iata = "trz" | What is the ICAO in India with IATA TRZ? | CREATE TABLE table_name_90 (
icao VARCHAR,
country VARCHAR,
iata VARCHAR
) |
SELECT AVG(week) FROM table_name_5 WHERE date = "july 25" | WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25? | CREATE TABLE table_name_5 (week INTEGER, date VARCHAR) |
SELECT defensive FROM table_14132239_3 WHERE month = "February" AND rookie = "Rhys Duch" | Who was the defensive award winner in February when the rookie award was given to Rhys Duch? | CREATE TABLE table_14132239_3 (defensive VARCHAR, month VARCHAR, rookie VARCHAR) |
SELECT name FROM table_name_67 WHERE country = "malaysia, kuala lumpur" AND index = "f8" | What is the name of the player from Malaysia, Kuala Lumpur in Index f8? | CREATE TABLE table_name_67 (
name VARCHAR,
country VARCHAR,
index VARCHAR
) |
SELECT tie_no FROM table_name_42 WHERE home_team = "crystal palace" | What was the tie for the Crystal Palace team? | CREATE TABLE table_name_42 (tie_no VARCHAR, home_team VARCHAR) |
SELECT offensive FROM table_14132239_3 WHERE overall = "Bob Watson" | Who was the offensive award winner the week when Bob Watson was given the overall award? | CREATE TABLE table_14132239_3 (offensive VARCHAR, overall VARCHAR) |
SELECT AVG("Round") FROM table_56076 WHERE "Overall" = '138' | What is the average round of a player with an overall of 138? | CREATE TABLE table_56076 (
"Round" real,
"Overall" text,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
) |
SELECT attendance FROM table_name_72 WHERE tie_no = "15" | What is the attendance for No. 15 tie? | CREATE TABLE table_name_72 (attendance VARCHAR, tie_no VARCHAR) |
SELECT defensive FROM table_14132239_3 WHERE rookie = "Daryl Veltman" AND offensive = "Mark Steenhuis" | Who was the defensive award winner when the rookie award was given to Daryl Veltman and the offensive award was given to Mark Steenhuis? | CREATE TABLE table_14132239_3 (defensive VARCHAR, rookie VARCHAR, offensive VARCHAR) |
SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY Team_Name | What is the relationship between Team_ID and ACC_Percent , and group by attribute Team_Name? | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... |
SELECT open_cup FROM table_name_30 WHERE division > 4 | WHich Open Cup has a Division larger than 4? | CREATE TABLE table_name_30 (open_cup VARCHAR, division INTEGER) |
SELECT rookie FROM table_14132239_3 WHERE transition = "Brodie Merrill" AND offensive = "Pat Maddalena" | Who won the rookie award the week the transition award was given to Brodie Merrill and the offensive award was given to Pat Maddalena? | CREATE TABLE table_14132239_3 (rookie VARCHAR, transition VARCHAR, offensive VARCHAR) |
SELECT "Record" FROM table_33978 WHERE "Home" = 'st. louis' | What is the record of the team with a St. Louis home? | CREATE TABLE table_33978 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) |
SELECT league FROM table_name_86 WHERE regular_season = "3rd, atlantic" | Name the League which has a Regular Season of 3rd, atlantic? | CREATE TABLE table_name_86 (league VARCHAR, regular_season VARCHAR) |
SELECT MIN(enrollment) FROM table_1414702_3 WHERE wiaa_classification = "3A" | What is the lowest enrollment value out of the enrollment values I'd the schools with a 3A WIAA clarification? | CREATE TABLE table_1414702_3 (enrollment INTEGER, wiaa_classification VARCHAR) |
SELECT team FROM table_name_98 WHERE coach = "unknown" AND location = "athelstone" | Which team has an unknown coach and location of Athelstone? | CREATE TABLE table_name_98 (
team VARCHAR,
coach VARCHAR,
location VARCHAR
) |
SELECT regular_season FROM table_name_19 WHERE division = 4 | WHICH Regular Season has a Division of 4? | CREATE TABLE table_name_19 (regular_season VARCHAR, division VARCHAR) |
SELECT wiaa_classification FROM table_1414702_3 WHERE high_school = "Oakland Alternative" | What is the WIAA classification of Oakland Alternative High School? | CREATE TABLE table_1414702_3 (wiaa_classification VARCHAR, high_school VARCHAR) |
SELECT "Enrollment" FROM table_3013 WHERE "Nickname" = 'Cougars' | Name the enrollment with cougars | CREATE TABLE table_3013 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Sport" text
) |
SELECT regular_season FROM table_name_64 WHERE league = "npsl" AND year = "2008" | WHICH Regular Season has a League of npsl, and a Year of 2008? | CREATE TABLE table_name_64 (regular_season VARCHAR, league VARCHAR, year VARCHAR) |
SELECT MAX(established) FROM table_1414702_3 WHERE high_school = "Mount Tahoma" | When was Mount Tahoma established? | CREATE TABLE table_1414702_3 (established INTEGER, high_school VARCHAR) |
SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE STRFTIME('%y', microbiologyevents.charttime) >= '2104' GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 4 | since 2104 what was the four most common specimen test? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_... |
SELECT playoffs FROM table_name_8 WHERE league = "npsl" AND open_cup = "did not enter" AND year = "2013" | NAME THE Playoffs that HAVE a League of npsl, and a Open Cup of did not enter, and a Year of 2013? | CREATE TABLE table_name_8 (playoffs VARCHAR, year VARCHAR, league VARCHAR, open_cup VARCHAR) |
SELECT notes FROM table_1414702_3 WHERE established = 1973 | What's the note about the school established in the year of 1973? | CREATE TABLE table_1414702_3 (notes VARCHAR, established VARCHAR) |
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-80884')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.ce... | count the number of times patient 006-80884 has had a output (ml)-chest tube #1 right lateral output since 08/2102. | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime t... |
SELECT AVG(february) FROM table_name_11 WHERE record = "18-26-10" AND game < 54 | What is the average February that has 18-26-10 as the record, with a game less than 54? | CREATE TABLE table_name_11 (february INTEGER, record VARCHAR, game VARCHAR) |
SELECT 4 AS th_district FROM table_14123513_5 WHERE year = 1924 | Who was in the 4th district in 1924? | CREATE TABLE table_14123513_5 (year VARCHAR) |
SELECT "Away team" FROM table_58272 WHERE "Home team" = 'richmond' | I want to see the away team the has a home team of richmond | CREATE TABLE table_58272 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT COUNT(february) FROM table_name_32 WHERE opponent = "montreal canadiens" AND record = "18-25-10" AND game > 53 | How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the record, with a game greater than 53? | CREATE TABLE table_name_32 (february VARCHAR, game VARCHAR, opponent VARCHAR, record VARCHAR) |
SELECT fte_teachers FROM table_1414743_1 WHERE school_level = "Middle" AND city = "Sunnyvale" | List all FTE middle school teachers in Sunnyvale. | CREATE TABLE table_1414743_1 (fte_teachers VARCHAR, school_level VARCHAR, city VARCHAR) |
SELECT record FROM table_name_80 WHERE date = "nov 13" | What's the record of the game on Nov 13? | CREATE TABLE table_name_80 (
record VARCHAR,
date VARCHAR
) |
SELECT surface FROM table_name_31 WHERE opponent = "selma babic" | what is the surface when the opponent is selma babic? | CREATE TABLE table_name_31 (surface VARCHAR, opponent VARCHAR) |
SELECT MAX(students) FROM table_1414743_1 WHERE pupil_teacher_ratio = "20.8" | What is the highest number of students with a teacher:student ratio of 20.8? | CREATE TABLE table_1414743_1 (students INTEGER, pupil_teacher_ratio VARCHAR) |
SELECT COUNT("protein") FROM table_203_589 WHERE "year identified" = 2012 | how many prions were identified in 2012 ? | CREATE TABLE table_203_589 (
id number,
"protein" text,
"natural host" text,
"normal function" text,
"prion state" text,
"prion phenotype" text,
"year identified" number
) |
SELECT surface FROM table_name_65 WHERE round = "gii play-offs" AND edition = "2009 fed cup europe/africa group ii" | what is the surface when the round is gii play-offs and the edition is 2009 fed cup europe/africa group ii? | CREATE TABLE table_name_65 (surface VARCHAR, round VARCHAR, edition VARCHAR) |
SELECT fte_teachers FROM table_1414743_1 WHERE pupil_teacher_ratio = "19" | How many FTE teachers are there when the student:teacher ration is 19? | CREATE TABLE table_1414743_1 (fte_teachers VARCHAR, pupil_teacher_ratio VARCHAR) |
SELECT "name" FROM table_203_671 WHERE "rank" = 'associate justice' AND "year appointed" = 2010 | who was the only associate justice appointed in 2010 ? | CREATE TABLE table_203_671 (
id number,
"name" text,
"rank" text,
"age" number,
"years until mandatory retirement" text,
"appointed by" text,
"year appointed" number
) |
SELECT date FROM table_name_99 WHERE surface = "clay" AND result = "6–7 (4–7) , 1–6" | what is the date when the surface is clay and the result is 6–7 (4–7) , 1–6? | CREATE TABLE table_name_99 (date VARCHAR, surface VARCHAR, result VARCHAR) |
SELECT congress FROM table_14158567_1 WHERE member_elect = "Richard P. Giles" | What edition of congress for member-elect richard p. giles? | CREATE TABLE table_14158567_1 (congress VARCHAR, member_elect VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "SINGLE" AND diagnoses.long_title = "Other chronic pulmonary heart diseases" | what is the number of patients whose marital status is single and diagnoses long title is other chronic pulmonary heart diseases? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... |
SELECT opponent FROM table_name_67 WHERE against = "norway" | who is the opponent when norway is against? | CREATE TABLE table_name_67 (opponent VARCHAR, against VARCHAR) |
SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas" | how many mean elevation with lowest point being gulf of mexico and state being texas | CREATE TABLE table_1416612_1 (mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR) |
SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-35134' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL OR... | what is the difference between the weights last measured on the first hospital visit compared to the first value measured on the first hospital visit of patient 006-35134? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
u... |
SELECT position FROM table_name_28 WHERE weight > 220 AND player = "travis knight" | What is Postion, when Weight is greater than 220, and when Player is "Travis Knight"? | CREATE TABLE table_name_28 (position VARCHAR, weight VARCHAR, player VARCHAR) |
SELECT highest_point FROM table_1416612_1 WHERE lowest_point = "Belle Fourche River at South Dakota border" | what's the highest point with lowest point being belle fourche river at south dakota border | CREATE TABLE table_1416612_1 (highest_point VARCHAR, lowest_point VARCHAR) |
SELECT "role" FROM table_200_1 WHERE "title" = 'the sixth sense' | what was the name of the girl on sixth sense played by mischa barton ? | CREATE TABLE table_200_1 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
) |
SELECT MIN(number) FROM table_name_48 WHERE college = "university of alabama" | What is the lowest Number, when College is "University of Alabama"? | CREATE TABLE table_name_48 (number INTEGER, college VARCHAR) |
SELECT lowest_elevation FROM table_1416612_1 WHERE highest_point = "Charles Mound" | what's the lowest elevation with highest point being charles mound | CREATE TABLE table_1416612_1 (lowest_elevation VARCHAR, highest_point VARCHAR) |
SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-44598' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hosp... | how many times was metoprolol tartrate (lopressor) inj 5 mg prescribed during their first hospital encounter for patient 030-44598. | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... |
SELECT COUNT(weight) FROM table_name_90 WHERE position = "forward/center" AND player = "othella harrington" AND number < 32 | What is the total number of Weight, when Position is "Forward/Center", when Player is "Othella Harrington", and when Number is less than 32? | CREATE TABLE table_name_90 (weight VARCHAR, number VARCHAR, position VARCHAR, player VARCHAR) |
SELECT lowest_point FROM table_1416612_1 WHERE highest_point = "Mount Greylock" | what's the lowest point with highest point being mount greylock | CREATE TABLE table_1416612_1 (lowest_point VARCHAR, highest_point VARCHAR) |
SELECT MAX("Losses") FROM table_12571 WHERE "Central Murray" = 'lake boga' AND "Wins" < '10' | What is the highest number of losses of the central murray of lake boga, which has less than 10 wins? | CREATE TABLE table_12571 (
"Central Murray" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) |
SELECT years_exp FROM table_name_94 WHERE height = "7-2" | What is Years Exp, when Height is "7-2"? | CREATE TABLE table_name_94 (years_exp VARCHAR, height VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.