instruction stringlengths 0 1.06k | input stringlengths 33 7.14k | response stringlengths 2 4.44k | source stringclasses 25
values | text stringlengths 302 8.5k |
|---|---|---|---|---|
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)" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which highschool has senior (rs) for the year? ### Input: CREATE TABLE table_22496344_1 (
high_school VARCHAR,
year ... |
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' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many bronze medals for the nation with less than 1 total? ### Input: CREATE TABLE table_57826 (
"Rank" real,
"Na... |
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" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the championship for winner and judy tegart dalton lesley turner bowrey ### Input: CREATE TABLE table_2009095_2 (
c... |
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 | sede | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Most viewed posts by tag w/o tag in post title. ### Input: CREATE TABLE Comments (
Id number,
PostId number,
Sco... |
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' | wikisql | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the time when ss12 is stage? ### Input: CREATE TABLE table_24485 (
"Day" text,
"Stage" text,
"Time (EET)... |
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" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: count the number of patients whose year of death is less than or equal to 2131 and procedure icd9 code is 9907? ### Input: C... |
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" | sql_create_context | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the styled used to defeat the opponent within the time frame of 32:32? ### Input: CREATE TABLE table_18598175_2 (
... |
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" | mimicsql_data | Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: provide the number of patients whose diagnoses icd9 code is 60000? ### Input: CREATE TABLE procedures (
subject_id text,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.