answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT european FROM table_name_59 WHERE play_off = "relegated" | Which European has a Play-Off of relegated? | CREATE TABLE table_name_59 (european VARCHAR, play_off VARCHAR) |
SELECT "Notable for" FROM table_34689 WHERE "Connection with Australia" = 'born in australia' AND "Name" = 'rick springfield' | What is the person born in Australia, rick springfield notable for? | CREATE TABLE table_34689 (
"Name" text,
"Born \u2013 Died" text,
"Notable for" text,
"Connection with Australia" text,
"Connection with America" text
) |
SELECT overall FROM table_27069503_2 WHERE season = "2003-04" | What was the overall record for the Pandas in the 2003-04 season? | CREATE TABLE table_27069503_2 (overall VARCHAR, season VARCHAR) |
SELECT MIN(caps) FROM table_name_56 WHERE position = "fullback" AND date_of_birth__age_ = "13 april 1983" | What is the lowest number of caps of the fullback player born on 13 April 1983? | CREATE TABLE table_name_56 (caps INTEGER, position VARCHAR, date_of_birth__age_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2182" AND lab.fluid = "Blood" | what is the number of patients whose admission year is less than 2182 and lab test fluid is blood? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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 conf_record FROM table_27069503_2 WHERE overall = "33-4-1" | What was the conference record in the season where the Pandas had an overall record of 33-4-1? | CREATE TABLE table_27069503_2 (conf_record VARCHAR, overall VARCHAR) |
SELECT club_province FROM table_name_77 WHERE date_of_birth__age_ = "12 may 1984" | What is the club/province of the player born on 12 May 1984? | CREATE TABLE table_name_77 (club_province VARCHAR, date_of_birth__age_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.diagnosis = "SEPSIS" | provide the number of patients whose admission location is clinic referral/premature and primary disease is sepsis? | CREATE TABLE diagnoses (
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
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) |
SELECT coach FROM table_27069503_2 WHERE overall = "20-6-2" | Who was the coach of the Pandas when their overall record was 20-6-2? | CREATE TABLE table_27069503_2 (coach VARCHAR, overall VARCHAR) |
SELECT club_province FROM table_name_18 WHERE caps < 2 AND position = "wing" AND player = "alberto sgarbi" | What is the club/province of player Alberto Sgarbi, who played wing, with less than 2 caps? | CREATE TABLE table_name_18 (club_province VARCHAR, player VARCHAR, caps VARCHAR, position VARCHAR) |
SELECT january__°f_ FROM table_21980_1 WHERE location = "Corner Brook" | What were the January ( F) temperatures in the Corner Brook location? | CREATE TABLE table_21980_1 (
january__°f_ VARCHAR,
location VARCHAR
) |
SELECT conf_record FROM table_27069503_2 WHERE standings = "First" AND season = "2003-04" | What was the conference record for the Pandas when they were first in the standings in the 2003-04 season? | CREATE TABLE table_27069503_2 (conf_record VARCHAR, standings VARCHAR, season VARCHAR) |
SELECT games FROM table_name_91 WHERE event = "men's slalom" | What games have the event of Men's Slalom? | CREATE TABLE table_name_91 (games VARCHAR, event VARCHAR) |
SELECT AVG(Age) FROM manager | What is the average age for all managers? | CREATE TABLE manager (
Age INTEGER
) |
SELECT overall FROM table_27069503_2 WHERE conf_record = "4-1-1" | What was the overall record for the Pandas when their conference record was 4-1-1? | CREATE TABLE table_27069503_2 (overall VARCHAR, conf_record VARCHAR) |
SELECT event FROM table_name_60 WHERE games = "1976 innsbruck" | What were the events in the 1976 Innsbruck Games? | CREATE TABLE table_name_60 (event VARCHAR, games VARCHAR) |
SELECT time_retired FROM table_name_96 WHERE laps = 55 | what is the time/retired when the laps is 55? | CREATE TABLE table_name_96 (
time_retired VARCHAR,
laps VARCHAR
) |
SELECT season FROM table_27069503_2 WHERE conf_record = "15-1-1" | In what season was the conference record for the Pandas 15-1-1? | CREATE TABLE table_27069503_2 (season VARCHAR, conf_record VARCHAR) |
SELECT medal FROM table_name_1 WHERE event = "men's giant slalom" | What is the medal for the Men's Giant Slalom event? | CREATE TABLE table_name_1 (medal VARCHAR, event VARCHAR) |
SELECT location FROM greatermanchestercrime WHERE type LIKE "%Drug%" GROUP BY location ORDER BY COUNT(*) DESC LIMIT 1 | Which location has the top amount of 'Drugs' crime conducted? | CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
) |
SELECT COUNT(original_artist) FROM table_27075510_1 WHERE week__number = "Audition" | how many times is the week # is audition? | CREATE TABLE table_27075510_1 (original_artist VARCHAR, week__number VARCHAR) |
SELECT SUM(top_5) FROM table_name_76 WHERE events = 15 AND top_25 < 6 | In the tournament that has 15 events, and less than 6 top-25's, how many top-5's did he have? | CREATE TABLE table_name_76 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Age, Location, WebsiteUrl AS Wesbite, LastAccessDate AS Seen, CreationDate FROM Users WHERE Reputation >= '##MinimalReputation:int?1##' AND (UPPER(Location) LIKE UPPER('%Algeria%') OR UPPER(Location) LIKE UPPER('%Algerie%') OR UPPER(Location) LIKE UPPER('%Algiers%') OR UPPER(Location) LIKE UPPER('DZ') OR UPPER(Location) LIKE UPPER('% %')) ORDER BY Reputation DESC LIMIT 2000 | Best Algerian stack overflow users. | CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
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
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
) |
SELECT COUNT(episode) FROM table_27081956_1 WHERE series_no = 14 | How many episodes are numbered 14 in the series? | CREATE TABLE table_27081956_1 (episode VARCHAR, series_no VARCHAR) |
SELECT SUM(top_5) FROM table_name_59 WHERE top_10 = 3 AND events < 15 | In the tournament that had 3 Top-10's, and less than 15 events, how many Top-5's did the player have? | CREATE TABLE table_name_59 (top_5 INTEGER, top_10 VARCHAR, events VARCHAR) |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'tpn d11.5' AND d_items.linksto = 'inputevents_cv') AND DATETIME(inputevents_cv.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year'))) | what's the number of patients who had a tpn d11.5 intake a year before? | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
) |
SELECT format FROM table_2709_4 WHERE frequency = "105.5 FM" | What is the format of 105.5 fm? | CREATE TABLE table_2709_4 (format VARCHAR, frequency VARCHAR) |
SELECT MAX(wins) FROM table_name_20 WHERE tournament = "masters tournament" AND events < 15 | How many wins were in the Masters Tournament with less than 15 events? | CREATE TABLE table_name_20 (wins INTEGER, tournament VARCHAR, events VARCHAR) |
SELECT MIN("Area( acres )") FROM table_31495 WHERE "Townland" = 'Derrynanool' | What is the fewest area in Derrynanool townland? | CREATE TABLE table_31495 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
) |
SELECT target_city__market FROM table_2709_4 WHERE call_sign = "KLRJ" | What is the market for KLRJ? | CREATE TABLE table_2709_4 (target_city__market VARCHAR, call_sign VARCHAR) |
SELECT COUNT(wins) FROM table_name_28 WHERE top_25 > 6 AND cuts_made < 13 | In the tournament with more than 6 top-25's and less than 13 cuts made, how many wins were there? | CREATE TABLE table_name_28 (wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR) |
SELECT COUNT(mens_u20) FROM table_16724844_1 WHERE womens_40 = "Sydney Scorpions def North Queensland Cyclones" | How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones? | CREATE TABLE table_16724844_1 (
mens_u20 VARCHAR,
womens_40 VARCHAR
) |
SELECT format FROM table_2709_4 WHERE owner = "Dakota Broadcasting" | What is the format for the station owned by Dakota Broadcasting? | CREATE TABLE table_2709_4 (format VARCHAR, owner VARCHAR) |
SELECT father FROM table_name_98 WHERE husband = "william iv" | Which father had william iv as a husband? | CREATE TABLE table_name_98 (father VARCHAR, husband VARCHAR) |
SELECT "Winner" FROM table_60903 WHERE "Route" = 'mechelen > mechelen' | Who was the winner of the mechelen > mechelen route? | CREATE TABLE table_60903 (
"Stage" text,
"Route" text,
"Distance" text,
"Date" text,
"Winner" text
) |
SELECT team FROM table_27091128_2 WHERE replaced_by = "Ercan Ertemçöz" | What team's manager was replaced by Ercan Ertemçöz? | CREATE TABLE table_27091128_2 (team VARCHAR, replaced_by VARCHAR) |
SELECT death FROM table_name_82 WHERE image = "elisabeth of lorraine" | What is the death date of elisabeth of lorraine? | CREATE TABLE table_name_82 (death VARCHAR, image VARCHAR) |
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-4486')) AND medication.drugname IN ('morphine 4 mg/ml syringe : 1 ml syringe', 'chlorhexidine gluconate 0.12%', 'amlodipine 5 mg tab') AND DATETIME(medication.drugstarttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') | has patient 002-4486 been ordered chlorhexidine gluconate 0.12%, morphine 4 mg/ml syringe : 1 ml syringe, or amlodipine 5 mg tab during this month? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
) |
SELECT date_of_appointment FROM table_27091128_2 WHERE outgoing_manager = "Kadir Özcan" | What was the date of appointment for the manager replacing Kadir Özcan? | CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
SELECT ceased_to_be_duchess FROM table_name_34 WHERE birth = "9 october 1574" | Which duchess was born on 9 october 1574? | CREATE TABLE table_name_34 (ceased_to_be_duchess VARCHAR, birth VARCHAR) |
SELECT "4:30 pm" FROM table_61154 WHERE "noon" = 'local programs' AND "11:00 am" = 'local programs' | What is 4:30 pm, when Noon is 'Local Programs', and when 11:00 am is 'Local Programs'? | CREATE TABLE table_61154 (
"7:00 am" text,
"7:30 am" text,
"8:00 am" text,
"9:00 am" text,
"11:00 am" text,
"noon" text,
"12:30 pm" text,
"1:00 pm" text,
"1:30 pm" text,
"2:00 pm" text,
"3:00 pm" text,
"3:30 pm" text,
"4:00 pm" text,
"4:30 pm" text,
"5:00 pm" text,
"6:30 pm" text
) |
SELECT replaced_by FROM table_27091128_2 WHERE date_of_appointment = "08.06.2010" | Which manager was appointed on 08.06.2010? | CREATE TABLE table_27091128_2 (replaced_by VARCHAR, date_of_appointment VARCHAR) |
SELECT image FROM table_name_86 WHERE husband = "william iv" | Which image is of the woman married to william iv? | CREATE TABLE table_name_86 (image VARCHAR, husband VARCHAR) |
SELECT position FROM table_name_95 WHERE notes = "junior men individual 5.64km" | What position did the person finish in with a notes of junior men individual 5.64km? | CREATE TABLE table_name_95 (
position VARCHAR,
notes VARCHAR
) |
SELECT replaced_by FROM table_27091128_2 WHERE team = "Altay" | Who replaced the previous manager of Altay? | CREATE TABLE table_27091128_2 (replaced_by VARCHAR, team VARCHAR) |
SELECT husband FROM table_name_87 WHERE image = "renata of lorraine" | Who is the husband of the image of renata of lorraine? | CREATE TABLE table_name_87 (husband VARCHAR, image VARCHAR) |
SELECT COUNT("Production code") FROM table_1378 WHERE "Written by" = 'Jack Burditt & Robert Carlock' | How many episodes were written by Jack Burditt & Robert Carlock | CREATE TABLE table_1378 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"Production code" real
) |
SELECT date_of_appointment FROM table_27091128_2 WHERE replaced_by = "Ergün Penbe" | What was date of appointment for Ergün Penbe? | CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, replaced_by VARCHAR) |
SELECT husband FROM table_name_74 WHERE image = "marie of baden-sponheim" | Who was the husband of marie of baden-sponheim? | CREATE TABLE table_name_74 (husband VARCHAR, image VARCHAR) |
SELECT "type" FROM table_27953 WHERE "description" = 'Department of Industry and Public Works Amendment' | What was the type of ballot measure with the description of Department of Industry and Public Works Amendment? | CREATE TABLE table_27953 (
"meas. num" real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) |
SELECT MIN(overall_total) FROM table_27094070_4 WHERE team = "Omaha Nighthawks" | What is the overall total for the Omaha Nighthawks? | CREATE TABLE table_27094070_4 (overall_total INTEGER, team VARCHAR) |
SELECT visitor FROM table_name_30 WHERE home = "chicago" | Who was the visiting team at the Chicago home game? | CREATE TABLE table_name_30 (visitor VARCHAR, home VARCHAR) |
SELECT parking FROM table_2093995_1 WHERE city__neighborhood = "Van Nuys" AND stations = "Sepulveda" | How much parking is in Van Nuys at the Sepulveda station? | CREATE TABLE table_2093995_1 (
parking VARCHAR,
city__neighborhood VARCHAR,
stations VARCHAR
) |
SELECT team FROM table_27094070_4 WHERE home_avg = 18125 | Which team has the home average of 18125? | CREATE TABLE table_27094070_4 (team VARCHAR, home_avg VARCHAR) |
SELECT date FROM table_name_67 WHERE home = "colorado" | What was the date of the home game for Colorado? | CREATE TABLE table_name_67 (date VARCHAR, home VARCHAR) |
SELECT famous_title, age FROM artist ORDER BY age DESC | Please list the age and famous title of artists in descending order of age. | CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
)
CREATE TABLE artist (
artist_id number,
artist text,
age number,
famous_title text,
famous_release_date text
)
CREATE TABLE music_festival (
id number,
music_festival text,
date_of_ceremony text,
category text,
volume number,
result text
) |
SELECT MAX(home_total) FROM table_27094070_4 | What was the highest home total? | CREATE TABLE table_27094070_4 (home_total INTEGER) |
SELECT date FROM table_name_55 WHERE home = "st. louis" | What was the date of the game when St. Louis was the home team? | CREATE TABLE table_name_55 (date VARCHAR, home VARCHAR) |
SELECT AVG(laps) FROM table_name_92 WHERE manufacturer = "ktm" AND time_retired = "+56.440" AND grid < 11 | What was the average number of laps completed by KTM riders, with times of +56.440 and grid values under 11? | CREATE TABLE table_name_92 (
laps INTEGER,
grid VARCHAR,
manufacturer VARCHAR,
time_retired VARCHAR
) |
SELECT COUNT(overall_gms) FROM table_27094070_4 WHERE overall_avg = 12796 | How many games had an average of 12796? | CREATE TABLE table_27094070_4 (overall_gms VARCHAR, overall_avg VARCHAR) |
SELECT visitor FROM table_name_26 WHERE record = "51–12–4" | Who was the visiting team when the record was 51–12–4? | CREATE TABLE table_name_26 (visitor VARCHAR, record VARCHAR) |
SELECT network FROM table_name_80 WHERE premiere = "13 january 2009" | Tell me the network for 13 january 2009 | CREATE TABLE table_name_80 (
network VARCHAR,
premiere VARCHAR
) |
SELECT stage AS winner FROM table_27112708_2 WHERE team_classification = "LeTua Cycling Team" AND stage = 2 | Who was the stage winner of the letua cycling team on stage 2? | CREATE TABLE table_27112708_2 (stage VARCHAR, team_classification VARCHAR) |
SELECT date FROM table_name_87 WHERE home = "hartford" | What was the date of the home game for Hartford? | CREATE TABLE table_name_87 (date VARCHAR, home VARCHAR) |
SELECT website FROM table_name_27 WHERE name = "yamagata international documentary film festival" | What's the website for the yamagata international documentary film festival? | CREATE TABLE table_name_27 (
website VARCHAR,
name VARCHAR
) |
SELECT mountains_classification FROM table_27112708_2 WHERE stage = 3 | Which mountains classification is listed under stage 3? | CREATE TABLE table_27112708_2 (mountains_classification VARCHAR, stage VARCHAR) |
SELECT AVG(attendance_g) FROM table_name_93 WHERE pos = 8 AND season < 1999 | What is the average attendance for seasons before 1999 with pos of 8? | CREATE TABLE table_name_93 (attendance_g INTEGER, pos VARCHAR, season VARCHAR) |
SELECT replaced_by FROM table_name_74 WHERE date_of_appointment = "13 may 2009" | What is the name of the person that was appointed on 13 May 2009? | CREATE TABLE table_name_74 (
replaced_by VARCHAR,
date_of_appointment VARCHAR
) |
SELECT general_classification FROM table_27112708_2 WHERE stage = 4 | Who is listed under general classification on stage 4? | CREATE TABLE table_27112708_2 (general_classification VARCHAR, stage VARCHAR) |
SELECT socket FROM table_name_27 WHERE part_number_s_ = "adh2350iaa5do" | What is the socket for the processor with part number ADH2350IAA5DO? | CREATE TABLE table_name_27 (socket VARCHAR, part_number_s_ VARCHAR) |
SELECT "Away team" FROM table_10284 WHERE "Venue" = 'western oval' | Which away team's Venue is western oval? | CREATE TABLE table_10284 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT written_by FROM table_27117365_1 WHERE us_viewers__million_ = "7.70" | Who wrote the episodes with 7.70 u.s. viewers (million) ? | CREATE TABLE table_27117365_1 (written_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT multi_1 FROM table_name_46 WHERE model_number = "athlon x2 be-2400" | What is the multi 1 for the Athlon x2 BE-2400? | CREATE TABLE table_name_46 (multi_1 VARCHAR, model_number VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "62" AND diagnoses.short_title = "Esophageal reflux" | give me the number of patients whose age is less than 62 and diagnoses short title is esophageal reflux? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) |
SELECT original_air_date FROM table_27117365_1 WHERE us_viewers__million_ = "5.85" | What original air date has 5.85 u.s. viewers (million)? | CREATE TABLE table_27117365_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR) |
SELECT stepping FROM table_name_25 WHERE release_date = "june 5, 2007" | What is the stepping for the processor released June 5, 2007? | CREATE TABLE table_name_25 (stepping VARCHAR, release_date VARCHAR) |
SELECT image_quality FROM table_name_32 WHERE multiple_sessions = "x" AND authentication = "✓" AND date = "may 15, 2007" | what is the image quality when the multiple sessions is x, the authentication is and the date is may 15, 2007? | CREATE TABLE table_name_32 (
image_quality VARCHAR,
date VARCHAR,
multiple_sessions VARCHAR,
authentication VARCHAR
) |
SELECT title FROM table_27117365_1 WHERE no_in_season = 10 | What's the title in the number 10 in the season? | CREATE TABLE table_27117365_1 (title VARCHAR, no_in_season VARCHAR) |
SELECT v_core FROM table_name_29 WHERE stepping = "g1" AND frequency = "1900mhz" | What is the v-core for a stepping of G1 and frequency of 1900MHz? | CREATE TABLE table_name_29 (v_core VARCHAR, stepping VARCHAR, frequency VARCHAR) |
SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-4674')) AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | is patient 027-4674 ever diagnosed with anything during the last year? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
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,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
) |
SELECT date_of_vacancy FROM table_27133147_3 WHERE manner_of_departure = "Resigned" AND position_in_table = "10th" | If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy? | CREATE TABLE table_27133147_3 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR) |
SELECT english_name FROM table_name_43 WHERE stat = "7th cut" | What was the name in English that had a Stat of 7th cut? | CREATE TABLE table_name_43 (english_name VARCHAR, stat VARCHAR) |
SELECT race FROM table_name_83 WHERE time = "17:11.572" | Who holds the time of 17:11.572? | CREATE TABLE table_name_83 (
race VARCHAR,
time VARCHAR
) |
SELECT date_of_vacancy FROM table_27133147_3 WHERE incoming_head_coach = "Carlos Azenha" | If the incoming head coach is Carlos Azenha, what is the date of vacancy? | CREATE TABLE table_27133147_3 (date_of_vacancy VARCHAR, incoming_head_coach VARCHAR) |
SELECT winner FROM table_name_1 WHERE runner_up = "alberto mancini" | Who was the winner in the event with a runner-up of Alberto Mancini? | CREATE TABLE table_name_1 (winner VARCHAR, runner_up VARCHAR) |
SELECT "Directed by" FROM table_3099 WHERE "Title" = 'Hey Now Hey Now Perry''s Girlfriend''s Back' | Who directed 'hey now hey now perry'S girlfriend's back'? | CREATE TABLE table_3099 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) |
SELECT date_of_appointment FROM table_27133147_3 WHERE team = "União de Leiria" | If the team is união de leiria, what is the date of appointment? | CREATE TABLE table_27133147_3 (date_of_appointment VARCHAR, team VARCHAR) |
SELECT series FROM table_name_96 WHERE visitor = "st. louis" AND date = "april 18" | What was the series score when st. louis was away on april 18? | CREATE TABLE table_name_96 (series VARCHAR, visitor VARCHAR, date VARCHAR) |
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-31236')) AND STRFTIME('%y', treatment.treatmenttime) = '2101' ORDER BY treatment.treatmenttime LIMIT 1 | when was the first time patient 011-31236's procedure was performed in 2101? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
) |
SELECT 2003 FROM table_27146868_1 WHERE 1999 = "2.1" | What is 2003 when 1999 is 2.1? | CREATE TABLE table_27146868_1 (Id VARCHAR) |
SELECT decision FROM table_name_41 WHERE visitor = "philadelphia" | Who recorded the decision when philadelphia was away? | CREATE TABLE table_name_41 (decision VARCHAR, visitor VARCHAR) |
SELECT "Gloss" FROM table_22517 WHERE "International Alphabet of Sanskrit Transliteration" = 'Kumbha' | When kumbha is the international alphabet of sanskrit transliteration what is the gloss? | CREATE TABLE table_22517 (
"Number" real,
"Sanskrit" text,
"International Alphabet of Sanskrit Transliteration" text,
"Sanskrit gloss" text,
"Western name" text,
"Greek" text,
"Gloss" text,
"Tattva (Element)" text,
"Quality" text,
"Ruling Planet" text
) |
SELECT 2010 FROM table_27146868_1 WHERE 2003 = "5.6" | What is 2010 when 2003 is 5.6? | CREATE TABLE table_27146868_1 (Id VARCHAR) |
SELECT record FROM table_name_44 WHERE date = "september 30" | What was the home team's record on September 30? | CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) |
SELECT "Money ( \u00a3 )" FROM table_60214 WHERE "Score" = '68-67-69-71=275' | How much money does the player with a 68-67-69-71=275 score have? | CREATE TABLE table_60214 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
) |
SELECT greek_national_account FROM table_27146868_1 WHERE 1997 = "6.1" | What is the greek national account when 1997 is 6.1? | CREATE TABLE table_27146868_1 (greek_national_account VARCHAR) |
SELECT record FROM table_name_57 WHERE opponent = "twins" AND date = "september 25" | What was the home team's record when they played the Twins on September 25? | CREATE TABLE table_name_57 (record VARCHAR, opponent VARCHAR, date VARCHAR) |
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27038 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) | were any medications prescribed to patient 27038 when they came to the hospital last time? | CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
) |
SELECT 2006 FROM table_27146868_1 WHERE 1997 = "6.8" | What is 2006 when 1997 is 6.8? | CREATE TABLE table_27146868_1 (Id VARCHAR) |
SELECT record FROM table_name_50 WHERE opponent = "devil rays" AND date = "september 6" | What was the home team's record when they played the Devil Rays on September 6? | CREATE TABLE table_name_50 (record VARCHAR, opponent VARCHAR, date VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.