answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '021-111547') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '021-111547') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day') | what are the new prescriptions of patient 021-111547 of today compared to the prescription yesterday? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime 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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) |
SELECT record FROM table_23186738_6 WHERE team = "Golden State" | Name the record for golden state | CREATE TABLE table_23186738_6 (record VARCHAR, team VARCHAR) |
SELECT MAX(insurgents) FROM table_21636599_1 WHERE total_per_period = 602 | How many insurgents have 602 as the total per period? | CREATE TABLE table_21636599_1 (insurgents INTEGER, total_per_period VARCHAR) |
SELECT MIN(ansi_code) FROM table_18600760_13 | What is the smallest ansi code? | CREATE TABLE table_18600760_13 (
ansi_code INTEGER
) |
SELECT COUNT(high_points) FROM table_23186738_6 WHERE record = "5-17" | Name the number of high points for record 5-17 | CREATE TABLE table_23186738_6 (high_points VARCHAR, record VARCHAR) |
SELECT MAX(security_forces) FROM table_21636599_1 | How many security forces? | CREATE TABLE table_21636599_1 (security_forces INTEGER) |
SELECT "NFL Team" FROM table_27359 WHERE "College" = 'North Texas State' | What are the NFL Teams in College North Texas State? | CREATE TABLE table_27359 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) |
SELECT record FROM table_23186738_6 WHERE team = "Houston" | Name the record for houston | CREATE TABLE table_23186738_6 (record VARCHAR, team VARCHAR) |
SELECT COUNT(insurgents) FROM table_21636599_1 WHERE period = "2003" | How many insurgents have 2003 as a period? | CREATE TABLE table_21636599_1 (insurgents VARCHAR, period VARCHAR) |
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '003-50177' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '003-50177' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatmentname = 'antibiotics - cephalosporin' AND STRFTIME('%y', treatment.treatmenttime) >= '2102' | since 2102 patient 003-50177 has undergone antibiotics - cephalosporin in other hospitals? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) |
SELECT MIN(cardinal_points) FROM table_23192661_3 WHERE record = "19-4" | Name the cardinal points for 19-4 record | CREATE TABLE table_23192661_3 (cardinal_points INTEGER, record VARCHAR) |
SELECT position FROM table_2169966_2 WHERE avg_start = "16.8" | What position did he finish in the year his average start was 16.8? | CREATE TABLE table_2169966_2 (position VARCHAR, avg_start VARCHAR) |
SELECT "Date" FROM table_51165 WHERE "Game" < '58' AND "Team" = 'boston' | WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON? | CREATE TABLE table_51165 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT location FROM table_23192661_3 WHERE record = "2-1" | Name the location for 2-1 record | CREATE TABLE table_23192661_3 (location VARCHAR, record VARCHAR) |
SELECT winnings FROM table_2169966_2 WHERE top_10 = 14 | What were his winnings when he had 14 top 10s? | CREATE TABLE table_2169966_2 (winnings VARCHAR, top_10 VARCHAR) |
SELECT "Round 4" FROM table_40927 WHERE "Round 6+" = 'triple' AND "Round 5" = 'triple' AND "Round 3" = 'single' | What is Round 4 when Round 6+ is triple, Round 5 is triple and Round 3 is single? | CREATE TABLE table_40927 (
"From" real,
"Goal" text,
"Round 1" text,
"Round 2" text,
"Round 3" text,
"Round 4" text,
"Round 5" text,
"Round 6+" text
) |
SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11 | Name the total number of step 6 for 11 gs grade | CREATE TABLE table_2319437_1 (step_6 VARCHAR, gs_grade VARCHAR) |
SELECT COUNT(avg_finish) FROM table_2169966_2 WHERE avg_start = "20.7" | How many years did he have an average start of 20.7? | CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR) |
SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Iran%' ORDER BY Reputation DESC LIMIT 200 | Top 200 users from Iran. Lists the top 200 users (ranked by reputation) that are located in Iran according to their profile information. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
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 PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskResultTypes (
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 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 VoteTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name 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 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 Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
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 PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
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
)
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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
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 PostTypes (
Id number,
Name text
) |
SELECT score_in_final FROM table_23197088_4 WHERE championship = "Moscow" | such as are entire the rating of closing where championship is moscow | CREATE TABLE table_23197088_4 (score_in_final VARCHAR, championship VARCHAR) |
SELECT avg_finish FROM table_2169966_2 WHERE avg_start = "27.7" | What was his average finish when his average start was 27.7? | CREATE TABLE table_2169966_2 (avg_finish VARCHAR, avg_start VARCHAR) |
SELECT DISTINCT start_station_name FROM trip WHERE duration < 100 | What are all the different start station names for a trip that lasted less than 100? | CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
)
CREATE TABLE station (
id number,
name text,
lat number,
long number,
dock_count number,
city text,
installation_date text
)
CREATE TABLE weather (
date text,
max_temperature_f number,
mean_temperature_f number,
min_temperature_f number,
max_dew_point_f number,
mean_dew_point_f number,
min_dew_point_f number,
max_humidity number,
mean_humidity number,
min_humidity number,
max_sea_level_pressure_inches number,
mean_sea_level_pressure_inches number,
min_sea_level_pressure_inches number,
max_visibility_miles number,
mean_visibility_miles number,
min_visibility_miles number,
max_wind_speed_mph number,
mean_wind_speed_mph number,
max_gust_speed_mph number,
precipitation_inches number,
cloud_cover number,
events text,
wind_dir_degrees number,
zip_code number
)
CREATE TABLE status (
station_id number,
bikes_available number,
docks_available number,
time text
) |
SELECT COUNT(score_in_final) FROM table_23197088_4 WHERE opponents_in_final = "Alexandra Fusai Nathalie Tauziat" | as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat | CREATE TABLE table_23197088_4 (score_in_final VARCHAR, opponents_in_final VARCHAR) |
SELECT isin FROM table_21692771_1 WHERE coupon = "1.02" AND amount_issued_[€] = "447,000,000" | What is the ISIN that has a coupon of 1.02 and a value issued of 447,000,000? | CREATE TABLE table_21692771_1 (isin VARCHAR, coupon VARCHAR, amount_issued_ VARCHAR, € VARCHAR) |
SELECT "Date" FROM table_10432 WHERE "Home team" = 'richmond' | What is the date when Richmond was the home team? | CREATE TABLE table_10432 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT opponents_in_final FROM table_23197088_4 WHERE championship = "Zürich" | what are every one of the rivals in conclusive where title is zürich | CREATE TABLE table_23197088_4 (opponents_in_final VARCHAR, championship VARCHAR) |
SELECT isin FROM table_21692771_1 WHERE amount_issued_[€] = "223,000,000" | What is the ISIN that has an amount issued of 223,000,000? | CREATE TABLE table_21692771_1 (isin VARCHAR, amount_issued_ VARCHAR, € VARCHAR) |
SELECT "Area in 1000km\u00b2 (1930)" FROM table_279 WHERE "Voivodeship Separate city" = 'lubelskie' | List all areas within 1000 km in the city of Lubelskie? | CREATE TABLE table_279 (
"car plates (since 1937)" text,
"Voivodeship Separate city" text,
"Capital" text,
"Area in 1000km\u00b2 (1930)" text,
"Population in 1000 (1931)" text
) |
SELECT score_in_final FROM table_23197088_4 WHERE championship = "Rome" | what are all the score in conclusive where title is rome | CREATE TABLE table_23197088_4 (score_in_final VARCHAR, championship VARCHAR) |
SELECT maturity FROM table_21692771_1 WHERE coupon = "0.726" | What is the maturity that has a coupon of exactly 0.726? | CREATE TABLE table_21692771_1 (maturity VARCHAR, coupon VARCHAR) |
SELECT AVG(events) FROM table_name_60 WHERE player = "tom kite" AND earnings___$__ < 760 OFFSET 405 | Which Events have a Player of tom kite, and Earnings ($) smaller than 760,405? | CREATE TABLE table_name_60 (
events INTEGER,
player VARCHAR,
earnings___$__ VARCHAR
) |
SELECT MAX(10 AS _3_bbl_d__2008_) FROM table_23195_5 WHERE present_share = "1.7%" | Name the most 10 3 bbl/d (2008) for present share being 1.7% | CREATE TABLE table_23195_5 (present_share VARCHAR) |
SELECT coupon FROM table_21692771_1 WHERE issuer = "COMMERZBANK AG" | What is the coupon that has an issuer of Commerzbank AG? | CREATE TABLE table_21692771_1 (coupon VARCHAR, issuer VARCHAR) |
SELECT detroit__dtw_ FROM table_1637981_7 WHERE grand_rapids__grr_ = "$377.29" | When Grand Rapids's fare was $377.29, what is the fare to Detroit? | CREATE TABLE table_1637981_7 (
detroit__dtw_ VARCHAR,
grand_rapids__grr_ VARCHAR
) |
SELECT present_share FROM table_23195_5 WHERE producing_nation = "Australia" | Name the present share for australia | CREATE TABLE table_23195_5 (present_share VARCHAR, producing_nation VARCHAR) |
SELECT maturity FROM table_21692771_1 WHERE isin = "DE000A0BVBN3" | What is the maturity date of the ISIN labeled DE000A0BVBN3? | CREATE TABLE table_21692771_1 (maturity VARCHAR, isin VARCHAR) |
SELECT surface FROM table_name_3 WHERE opponent = "marcos baghdatis" | What was the surface for the opponent Marcos Baghdatis? | CREATE TABLE table_name_3 (
surface VARCHAR,
opponent VARCHAR
) |
SELECT location_attendance FROM table_23211041_10 WHERE team = "Utah" | Name the location attendance for utah | CREATE TABLE table_23211041_10 (location_attendance VARCHAR, team VARCHAR) |
SELECT isin FROM table_21692771_1 WHERE maturity = "3/11/2011" | What is the ISIN associated with the maturity date of 3/11/2011? | CREATE TABLE table_21692771_1 (isin VARCHAR, maturity VARCHAR) |
SELECT AVG(rank) FROM table_name_59 WHERE group = "a" AND athlete = "yanina karolchyk" AND result > 18 | What is the average rank for Group A athlete Yanina Karolchyk, and a result higher than 18? | CREATE TABLE table_name_59 (
rank INTEGER,
result VARCHAR,
group VARCHAR,
athlete VARCHAR
) |
SELECT COUNT(game) FROM table_23211041_5 WHERE team = "Houston" | How many games were played against houston? | CREATE TABLE table_23211041_5 (game VARCHAR, team VARCHAR) |
SELECT report FROM table_2175685_1 WHERE average_speed__mph_ = "87.599" | What was the report when the average speed (mph) was 87.599? | CREATE TABLE table_2175685_1 (report VARCHAR, average_speed__mph_ VARCHAR) |
SELECT MIN(finish) FROM table_name_45 WHERE year > 1978 AND manufacturer = "buick" AND start < 3 | What is the smallest finish time for a race where start was less than 3, buick was the manufacturer, and the race was held after 1978? | CREATE TABLE table_name_45 (
finish INTEGER,
start VARCHAR,
year VARCHAR,
manufacturer VARCHAR
) |
SELECT team FROM table_23211041_5 WHERE date = "November 24" | What team was played on november 24? | CREATE TABLE table_23211041_5 (team VARCHAR, date VARCHAR) |
SELECT team FROM table_2175685_1 WHERE race_time = "3:12:30" | What team won when the race time was 3:12:30? | CREATE TABLE table_2175685_1 (team VARCHAR, race_time VARCHAR) |
SELECT "Division" FROM table_66952 WHERE "Playoffs" = 'did not qualify' AND "League" = 'usl pdl' AND "Regular Season" = '7th, southeast' | What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast? | CREATE TABLE table_66952 (
"Year" real,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) |
SELECT high_points FROM table_23211041_5 WHERE game = 4 | Who had the most points in game 4? | CREATE TABLE table_23211041_5 (high_points VARCHAR, game VARCHAR) |
SELECT miles__km_ FROM table_2175685_1 WHERE average_speed__mph_ = "103.145" | How many miles (km) were driven when the average speed (mph) was 103.145? | CREATE TABLE table_2175685_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "20" AND prescriptions.drug = "NEO*IV*Fat Emulsion" | give me the number of patients whose days of hospital stay is greater than 20 and drug name is neo*iv*fat emulsion? | 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 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 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
) |
SELECT high_points FROM table_23211041_5 WHERE team = "New York" | Who had the highest points against new york? | CREATE TABLE table_23211041_5 (high_points VARCHAR, team VARCHAR) |
SELECT series FROM table_21795846_1 WHERE position = "12th" | If the position is 12th, what was the series? | CREATE TABLE table_21795846_1 (series VARCHAR, position VARCHAR) |
SELECT bleeding_time FROM table_238124_1 WHERE condition = "Glanzmann's thrombasthenia" | What is the bleeding time for glanzmann's thrombasthenia? | CREATE TABLE table_238124_1 (
bleeding_time VARCHAR,
condition VARCHAR
) |
SELECT syrian_christians FROM table_23214055_2 WHERE district = "Thiruvananthapuram" | Name the syrian christians for thiruvananthapuram | CREATE TABLE table_23214055_2 (syrian_christians VARCHAR, district VARCHAR) |
SELECT COUNT(podiums) FROM table_21795846_1 WHERE position = "9th" | If the position is 9th, what is the total podiums number? | CREATE TABLE table_21795846_1 (podiums VARCHAR, position VARCHAR) |
SELECT "Qualifying end date" FROM table_26464 WHERE "Qualifying start date" = 'Qualifying start date' | What is the qualifying end date when the qualifying start date is qualifying start date? | CREATE TABLE table_26464 (
"Confederation" text,
"Teams started" text,
"Teams that have secured qualification" text,
"Teams that can still qualify" text,
"Teams that have been eliminated" text,
"Remaining places in finals" text,
"Total places in finals" text,
"Qualifying start date" text,
"Qualifying end date" text
) |
SELECT ezhavas FROM table_23214055_2 WHERE muslims = "5.4" | Name the ezhavas for muslims being 5.4 | CREATE TABLE table_23214055_2 (ezhavas VARCHAR, muslims VARCHAR) |
SELECT position FROM table_21795846_1 WHERE points = 16 | If there is 16 points, what was the position? | CREATE TABLE table_21795846_1 (position VARCHAR, points VARCHAR) |
SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sepsis' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1) - (SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sepsis' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 JOIN patient ON t2.uniquepid = patient.uniquepid WHERE t2.diagnosistime < patient.hospitaladmittime AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND DATETIME(patient.hospitaladmittime) BETWEEN DATETIME(t2.diagnosistime) AND DATETIME(t2.diagnosistime, '+2 month')) | how many patients were diagnosed with sepsis and they didn't return to the hospital in a year before within 2 months? | 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime 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 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 time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) |
SELECT ezhavas FROM table_23214055_2 WHERE syrian_christians = "26.2" | Name the ezhavas and syrian christians being 26.2 | CREATE TABLE table_23214055_2 (ezhavas VARCHAR, syrian_christians VARCHAR) |
SELECT COUNT(points) FROM table_21795650_1 WHERE series = "Formula Renault 2.0 Italy" | What is the point total for the Formula Renault 2.0 Italy series? | CREATE TABLE table_21795650_1 (points VARCHAR, series VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program, program_course, semester WHERE program_course.course_id = course.course_id AND program_course.course_id = course.course_id AND program.name LIKE '%CS%' AND program.program_id = program_course.program_id AND semester.semester = 'Winter' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | For CS majors , name the classes that are available this Winter . | CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
) |
SELECT syrian_christians FROM table_23214055_2 WHERE district = "Kollam" | Name the syrian christians for kollam | CREATE TABLE table_23214055_2 (syrian_christians VARCHAR, district VARCHAR) |
SELECT MIN(f_laps) FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series" | What is the minimum number of f/laps in the Italian Formula Renault 2.0 Winter Series? | CREATE TABLE table_21795650_1 (f_laps INTEGER, series VARCHAR) |
SELECT score FROM table_name_34 WHERE total_points = 50 | What was the score where the total points was 50? | CREATE TABLE table_name_34 (
score VARCHAR,
total_points VARCHAR
) |
SELECT district FROM table_23214055_2 WHERE others = "18.3" | Name the district for others being 18.3 | CREATE TABLE table_23214055_2 (district VARCHAR, others VARCHAR) |
SELECT poles FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series" | How many poles were there in the Italian Formula Renault 2.0 Winter Series? | CREATE TABLE table_21795650_1 (poles VARCHAR, series VARCHAR) |
SELECT elevator FROM table_name_50 WHERE elevated = "september 21, 1179" | What is the Elevator of the Elected Elevated on September 21, 1179? | CREATE TABLE table_name_50 (
elevator VARCHAR,
elevated VARCHAR
) |
SELECT district FROM table_23214055_2 WHERE nairs = "8.2" | Name the district for nairs 8.2 | CREATE TABLE table_23214055_2 (district VARCHAR, nairs VARCHAR) |
SELECT podiums FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series" | How many podiums were there in the Italian Formula Renault 2.0 Winter Series? | CREATE TABLE table_21795650_1 (podiums VARCHAR, series VARCHAR) |
SELECT TOP(15) AS Id, FavoriteCount AS Votes, CommentCount AS Answers, ViewCount AS Views, Title FROM Posts WHERE NOT Title IS NULL ORDER BY Score DESC | 1) Top 15 Posts, Ranked. Show post id, FavoriteCount (use column label votes), CommentCount (label:answers), ViewCount (label: views), and title | 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 PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
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 Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskResultTypes (
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 PostTags (
PostId number,
TagId number
)
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 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
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
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 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId 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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
) |
SELECT COUNT(2005 AS _06_points) FROM table_23215145_2 WHERE total_points = 5 | If the total points is 5, what is the 2005-2006 points total number? | CREATE TABLE table_23215145_2 (total_points VARCHAR) |
SELECT position FROM table_21795650_1 WHERE races = 16 | What was the highest position for the person who performed in 16 races? | CREATE TABLE table_21795650_1 (position VARCHAR, races VARCHAR) |
SELECT AVG("Game") FROM table_69496 WHERE "Attendance" > '55,189' | Attendance larger than 55,189 is which average game? | CREATE TABLE table_69496 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
) |
SELECT MIN(2006 AS _07_points) FROM table_23215145_2 WHERE team = "Overmach Parma" | What is the 2006-2007 points minimum is the team is Overmach Parma? | CREATE TABLE table_23215145_2 (team VARCHAR) |
SELECT team FROM table_21795650_1 WHERE podiums = 4 | What team had 4 podiums? | CREATE TABLE table_21795650_1 (team VARCHAR, podiums VARCHAR) |
SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-9636' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'ptt' | during the current hospital visit how many times did patient 016-9636 get a ptt test? | 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
) |
SELECT 2005 AS _06_points FROM table_23215145_2 WHERE team = "Worcester" | If the team is Worcester, what is the 2005-2006 points? | CREATE TABLE table_23215145_2 (team VARCHAR) |
SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = "My Magic" | Name the year for is my magic | CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT SUM("Overall") FROM table_32200 WHERE "Player" = 'charles white' AND "Round" < '1' | What is the total overall in round 1, in which Charles White was a player? | CREATE TABLE table_32200 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
) |
SELECT COUNT(2006 AS _07_points) FROM table_23215145_2 WHERE team = "Saracens" | What is the 2006-2007 points total number if the team is Saracens? | CREATE TABLE table_23215145_2 (team VARCHAR) |
SELECT year__ceremony_ FROM table_21790203_1 WHERE language_s_ = "Japanese" | Name the year for japanese | CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, language_s_ VARCHAR) |
SELECT MIN("Total Passengers (millions) 2011\u201312") FROM table_62659 WHERE "Annual entry/exit (millions) 2011\u201312" = '36.609' | What's the lowest number of total passengers (millions) for an annual entry/exit of 36.609? | CREATE TABLE table_62659 (
"Rank" real,
"Railway Station" text,
"Annual entry/exit (millions) 2011\u201312" real,
"Annual interchanges (millions) 2011\u201312" real,
"Total Passengers (millions) 2011\u201312" real,
"Location" text,
"Number of Platforms" real
) |
SELECT season FROM table_23224961_1 WHERE oberpfalz = "SpVgg Vohenstrauß" | When spvgg vohenstrauß is the oberpfalz what is the season? | CREATE TABLE table_23224961_1 (season VARCHAR, oberpfalz VARCHAR) |
SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous" | Name the result for already famous | CREATE TABLE table_21790203_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT ABS((SELECT "flash size" FROM table_204_416 WHERE "chip" = 'at90s8515') - (SELECT "flash size" FROM table_204_416 WHERE "chip" = 'at90s4414')) | what is the flash size difference in the at90s8515 chip and the at90s4414 ? | CREATE TABLE table_204_416 (
id number,
"chip" text,
"flash size" text,
"eeprom" number,
"sram" number,
"frequency\n[mhz]" number,
"package" text
) |
SELECT niederbayern FROM table_23224961_1 WHERE oberbayern_b = "ESV Ingolstadt" | When esv ingolstadt is the oberbayern b what is the niederbayern? | CREATE TABLE table_23224961_1 (niederbayern VARCHAR, oberbayern_b VARCHAR) |
SELECT result FROM table_21790203_1 WHERE language_s_ = "Japanese" | Name the result for japanese | CREATE TABLE table_21790203_1 (result VARCHAR, language_s_ VARCHAR) |
SELECT "Score" FROM table_57402 WHERE "Date" = 'december 5' | Name the score for december 5 | CREATE TABLE table_57402 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) |
SELECT schwaben FROM table_23224961_1 WHERE oberbayern_a = "Wacker Burghausen" | When wacker burghausen is the oberbayern a what is the schwaben? | CREATE TABLE table_23224961_1 (schwaben VARCHAR, oberbayern_a VARCHAR) |
SELECT MAX(top_5) FROM table_2182573_2 WHERE avg_start = "28.5" | What was the best top five result when the average start is 28.5? | CREATE TABLE table_2182573_2 (top_5 INTEGER, avg_start VARCHAR) |
SELECT AVG(crowd) FROM table_name_29 WHERE away_team = "hawthorn" | What is the average crowd to watch Hawthorn as the away team? | CREATE TABLE table_name_29 (
crowd INTEGER,
away_team VARCHAR
) |
SELECT oberpfalz FROM table_23224961_1 WHERE oberbayern_a = "FC Oberau" | When fc oberau is the oberbayern a what is the oberpfalz? | CREATE TABLE table_23224961_1 (oberpfalz VARCHAR, oberbayern_a VARCHAR) |
SELECT avg_finish FROM table_2182573_2 WHERE year = 2007 | What was the average finish in 2007? | CREATE TABLE table_2182573_2 (avg_finish VARCHAR, year VARCHAR) |
SELECT 2002 FROM table_name_69 WHERE 2007 = "8–4" | 2007 of 8 4 is involved in what 2002? | CREATE TABLE table_name_69 (
Id VARCHAR
) |
SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "TuS Rosenberg" | When tus rosenberg is the oberpfalz what is the oberbayern b? | CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR) |
SELECT MIN(poles) FROM table_2182573_2 WHERE year = 1996 | How many poles were there in 1996? | CREATE TABLE table_2182573_2 (poles INTEGER, year VARCHAR) |
SELECT MAX(attendance) FROM table_17360840_9 WHERE opponent = "Ottawa Senators" AND record = "24-35-17" | What was the attendance when the opposing team was the Ottawa Senators and the record was 24-35-17? | CREATE TABLE table_17360840_9 (
attendance INTEGER,
opponent VARCHAR,
record VARCHAR
) |
SELECT oberbayern_b FROM table_23224961_1 WHERE oberpfalz = "FC Schwandorf" | When fc schwandorf is the oberpfalz what is the oberbayern b? | CREATE TABLE table_23224961_1 (oberbayern_b VARCHAR, oberpfalz VARCHAR) |
SELECT avg_finish FROM table_2190919_3 WHERE team_s_ = "#21/#07 SS-Green Light Racing" | With team #21/#07 ss-green light racing, what was the average finish number? | CREATE TABLE table_2190919_3 (avg_finish VARCHAR, team_s_ VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-38992') AND patient.unitdischargetime IS NULL) AND vitalperiodic.sao2 < 93.0 AND NOT vitalperiodic.sao2 IS NULL ORDER BY vitalperiodic.observationtime LIMIT 1 | when was the first time patient 013-38992 was having less than 93.0 sao2 on the current icu visit? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
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 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
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.