input stringlengths 0 1.06k | schema stringlengths 33 7.14k | output stringlengths 2 4.44k |
|---|---|---|
Which highschool has senior (rs) for the year? | CREATE TABLE table_22496344_1 (
high_school VARCHAR,
year VARCHAR
) | SELECT high_school FROM table_22496344_1 WHERE year = "Senior (RS)" |
How many bronze medals for the nation with less than 1 total? | CREATE TABLE table_57826 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Bronze") FROM table_57826 WHERE "Total" < '1' |
Name the championship for winner and judy tegart dalton lesley turner bowrey | CREATE TABLE table_2009095_2 (
championship VARCHAR,
outcome VARCHAR,
opponents VARCHAR
) | SELECT COUNT(championship) FROM table_2009095_2 WHERE outcome = "Winner" AND opponents = "Judy Tegart Dalton Lesley Turner Bowrey" |
Most viewed posts by tag w/o tag in post title. | CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE... | SELECT Id AS "post_link", Tags, ViewCount, CreationDate, Title FROM Posts WHERE LastActivityDate > DATEADD(m, -12, GETDATE()) AND Tags LIKE '<##Tag##>' AND NOT Title LIKE '<##Tag##>' AND NOT Title LIKE '<##ExcludeTitle##>' ORDER BY ViewCount DESC |
What is the time when ss12 is stage? | CREATE TABLE table_24485 (
"Day" text,
"Stage" text,
"Time (EET)" text,
"Name" text,
"Length" text,
"Winner" text,
"Time" text,
"Avg. spd." text,
"Rally leader" text
) | SELECT "Time" FROM table_24485 WHERE "Stage" = 'SS12' |
count the number of patients whose year of death is less than or equal to 2131 and procedure icd9 code is 9907? | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2131.0" AND procedures.icd9_code = "9907" |
What was the styled used to defeat the opponent within the time frame of 32:32? | CREATE TABLE table_18598175_2 (
method_of_elimination VARCHAR,
time VARCHAR
) | SELECT method_of_elimination FROM table_18598175_2 WHERE time = "32:32" |
provide the number of patients whose diagnoses icd9 code is 60000? | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "60000" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.