instruction stringlengths 0 1.06k | input stringlengths 33 7.14k | response stringlengths 2 4.44k | source stringclasses 25
values | text stringlengths 302 8.5k |
|---|---|---|---|---|
What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team? | CREATE TABLE table_43908 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
) | SELECT "Score" FROM table_43908 WHERE "Away team" = 'gold coast blaze' AND "Home team" = 'adelaide 36ers' | 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 was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?... |
In what year is the status of won? | CREATE TABLE table_name_72 (
year VARCHAR,
status VARCHAR
) | SELECT year FROM table_name_72 WHERE status = "won" | 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: In what year is the status of won? ### Input: CREATE TABLE table_name_72 (
year VARCHAR,
status VARCHAR
) ### Respon... |
What is the sum of number of wins that have earnings of more than ( )2,864,342 and money list rank of 3? | CREATE TABLE table_70144 (
"Year" text,
"Starts" real,
"Cuts made" real,
"Wins" real,
"Top 10" real,
"Top 25" real,
"Earnings (\u20ac)" real,
"Money list rank" real
) | SELECT SUM("Wins") FROM table_70144 WHERE "Earnings (\u20ac)" > '2,864,342' AND "Money list rank" = '3' | 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 sum of number of wins that have earnings of more than ( )2,864,342 and money list rank of 3? ### Input: CREATE T... |
what is the number of patients admitted to hospital since 2103? | 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 patient (
uniquepid text,
pati... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE STRFTIME('%y', patient.hospitaladmittime) >= '2103' | eicu | 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 number of patients admitted to hospital since 2103? ### Input: CREATE TABLE allergy (
allergyid number,
... |
what is the highest round when the overall is less than 17? | CREATE TABLE table_44649 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Round") FROM table_44649 WHERE "Overall" < '17' | 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 highest round when the overall is less than 17? ### Input: CREATE TABLE table_44649 (
"Round" real,
"Pic... |
What is Hasan Shah's hometown? | CREATE TABLE table_name_40 (
hometown VARCHAR,
name VARCHAR
) | SELECT hometown FROM table_name_40 WHERE name = "hasan shah" | 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 is Hasan Shah's hometown? ### Input: CREATE TABLE table_name_40 (
hometown VARCHAR,
name VARCHAR
) ### Response... |
list the top three most common drugs that patients are prescribed with during the same month after being diagnosed with hypocalcemia - due to rhabdomyolysis until 2 years ago. | 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,
intakeoutputtim... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypocalcemia - due to rhabdomyolysis' AND DATETIME... | eicu | 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: list the top three most common drugs that patients are prescribed with during the same month after being diagnosed with hypo... |
what is the record where the opponent is central connecticut? | CREATE TABLE table_73538 (
"Date" text,
"Opponent" text,
"Location" text,
"Irish Points" real,
"Opp. Points" real,
"Record" text
) | SELECT "Record" FROM table_73538 WHERE "Opponent" = 'Central Connecticut' | 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 record where the opponent is central connecticut? ### Input: CREATE TABLE table_73538 (
"Date" text,
"Op... |
What was the October 22 record? | CREATE TABLE table_29595 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"First Star" text,
"Decision" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Record" FROM table_29595 WHERE "Date" = 'October 22' | 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 was the October 22 record? ### Input: CREATE TABLE table_29595 (
"Game" real,
"Date" text,
"Opponent" text,... |
Which School has a Mascot of squires? | CREATE TABLE table_name_35 (
school VARCHAR,
mascot VARCHAR
) | SELECT school FROM table_name_35 WHERE mascot = "squires" | 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 School has a Mascot of squires? ### Input: CREATE TABLE table_name_35 (
school VARCHAR,
mascot VARCHAR
) ### R... |
What's the attendance when the week was more than 16? | CREATE TABLE table_name_95 (
attendance VARCHAR,
week INTEGER
) | SELECT attendance FROM table_name_95 WHERE week > 16 | 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's the attendance when the week was more than 16? ### Input: CREATE TABLE table_name_95 (
attendance VARCHAR,
we... |
did levaquin, dextrose 50 % in water (d50w) iv syringe, or d50 during this hospital encounter be prescribed to patient 018-20179? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number... | 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 = '018-20179' AND patient.hospitaldischargetime IS NULL)) AND medication.drug... | eicu | 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: did levaquin, dextrose 50 % in water (d50w) iv syringe, or d50 during this hospital encounter be prescribed to patient 018-2... |
At what times is 473 taught during the Summer terms ? | CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TAB... | SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offe... | advising | 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: At what times is 473 taught during the Summer terms ? ### Input: CREATE TABLE jobs (
job_id int,
job_title varchar,
... |
What is the time of songs that have the writer Aaron Schroeder and Wally Gold? | CREATE TABLE table_name_55 (
time VARCHAR,
writer_s_ VARCHAR
) | SELECT time FROM table_name_55 WHERE writer_s_ = "aaron schroeder and wally gold" | 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 is the time of songs that have the writer Aaron Schroeder and Wally Gold? ### Input: CREATE TABLE table_name_55 (
t... |
What was the tonnage of the Great Britain ship Batna? | CREATE TABLE table_32996 (
"Date" text,
"Ship" text,
"Nationality" text,
"Tonnage" real,
"Fate" text
) | SELECT "Tonnage" FROM table_32996 WHERE "Nationality" = 'great britain' AND "Ship" = 'batna' | 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 was the tonnage of the Great Britain ship Batna? ### Input: CREATE TABLE table_32996 (
"Date" text,
"Ship" text... |
What is the most points when the goals against are 354 and games less than 82? | CREATE TABLE table_6919 (
"Season" text,
"Games" real,
"Lost" real,
"Tied" real,
"Points" real,
"Goals for" real,
"Goals against" real,
"Coach" text
) | SELECT MAX("Points") FROM table_6919 WHERE "Goals against" = '354' AND "Games" < '82' | 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 most points when the goals against are 354 and games less than 82? ### Input: CREATE TABLE table_6919 (
"Sea... |
Which constructor has a race called I News of the World Trophy? | CREATE TABLE table_name_91 (
constructor VARCHAR,
race_name VARCHAR
) | SELECT constructor FROM table_name_91 WHERE race_name = "i news of the world trophy" | 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 constructor has a race called I News of the World Trophy? ### Input: CREATE TABLE table_name_91 (
constructor VARC... |
What was the maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team? | CREATE TABLE table_24865763_2 (
rnd INTEGER,
gt2_winning_team VARCHAR
) | SELECT MAX(rnd) FROM table_24865763_2 WHERE gt2_winning_team = "Marc Lieb Richard Lietz" | 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 maximum round where Marc Lieb Richard Lietz was on the GT2 Winning Team? ### Input: CREATE TABLE table_24865763... |
What is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin? | CREATE TABLE table_name_42 (
mintage INTEGER,
year VARCHAR,
theme VARCHAR
) | SELECT MAX(mintage) FROM table_name_42 WHERE year > 2006 AND theme = "ruby-throated hummingbird" | 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 is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin? ### Input: CREATE TABLE table_name_42 (
mint... |
Name the least yes for dublin south | CREATE TABLE table_1577 (
"Constituency" text,
"Electorate" real,
"Votes" real,
"Turnout" text,
"Yes" real,
"No" real,
"Spoilt" real,
"Percent Yes" text
) | SELECT MIN("Yes") FROM table_1577 WHERE "Constituency" = 'Dublin South' | 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: Name the least yes for dublin south ### Input: CREATE TABLE table_1577 (
"Constituency" text,
"Electorate" real,
... |
how many candidates with party being democratic and dbeingtrict being new york5 | CREATE TABLE table_18209 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("Candidates") FROM table_18209 WHERE "Party" = 'Democratic' AND "District" = 'New York5' | 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 candidates with party being democratic and dbeingtrict being new york5 ### Input: CREATE TABLE table_18209 (
"D... |
What is the height in ft for the rockets from 1973-78? | CREATE TABLE table_11734041_16 (
height_in_ft VARCHAR,
years_for_rockets VARCHAR
) | SELECT height_in_ft FROM table_11734041_16 WHERE years_for_rockets = "1973-78" | 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 is the height in ft for the rockets from 1973-78? ### Input: CREATE TABLE table_11734041_16 (
height_in_ft VARCHAR,... |
Name the high rebounds for charlotte | CREATE TABLE table_29729 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_29729 WHERE "Team" = 'Charlotte' | 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: Name the high rebounds for charlotte ### Input: CREATE TABLE table_29729 (
"Game" real,
"Date" text,
"Team" text... |
Who was the opponent at the Staples Center? | CREATE TABLE table_51557 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text,
"Arena" text
) | SELECT "Opponent" FROM table_51557 WHERE "Arena" = 'staples center' | 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: Who was the opponent at the Staples Center? ### Input: CREATE TABLE table_51557 (
"Date" text,
"Opponent" text,
... |
Which club has 1 runners-up with 0 winners and 2 third place earned? | CREATE TABLE table_50722 (
"Rank" real,
"Club" text,
"Winners" real,
"Runners-up" real,
"Third" real
) | SELECT "Club" FROM table_50722 WHERE "Runners-up" = '1' AND "Winners" = '0' AND "Third" = '2' | 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: Which club has 1 runners-up with 0 winners and 2 third place earned? ### Input: CREATE TABLE table_50722 (
"Rank" real,
... |
For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum of salary bin hire_date by weekday. | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | nvbench | 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: For those employees who did not have any job in the past, return a bar chart about the distribution of hire_date and the sum... |
First elected in 1807 1817 in what district? | CREATE TABLE table_2668336_17 (
district VARCHAR,
first_elected VARCHAR
) | SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817" | 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: First elected in 1807 1817 in what district? ### Input: CREATE TABLE table_2668336_17 (
district VARCHAR,
first_elec... |
List the problem id and log id which are assigned to the staff named Rylan Homenick. | CREATE TABLE problem_category_codes (
problem_category_code text,
problem_category_description text
)
CREATE TABLE problems (
problem_id number,
product_id number,
closure_authorised_by_staff_id number,
reported_by_staff_id number,
date_problem_reported time,
date_problem_closed time,
... | SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick" | spider | 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: List the problem id and log id which are assigned to the staff named Rylan Homenick. ### Input: CREATE TABLE problem_categor... |
Show the type of school and the number of buses for each type in a bar chart, show by the Type in ascending. | CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type... | SELECT Type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T2.Type ORDER BY Type | nvbench | 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: Show the type of school and the number of buses for each type in a bar chart, show by the Type in ascending. ### Input: CREA... |
What was the aggregate score that had a 1-2 second leg score? | CREATE TABLE table_78933 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
) | SELECT "Aggregate" FROM table_78933 WHERE "2nd leg" = '1-2' | 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 was the aggregate score that had a 1-2 second leg score? ### Input: CREATE TABLE table_78933 (
"Home (1st leg)" tex... |
What are the different card type codes? | CREATE TABLE customers (
customer_id number,
customer_first_name text,
customer_last_name text,
customer_address text,
customer_phone text,
customer_email text,
other_customer_details text
)
CREATE TABLE accounts (
account_id number,
customer_id number,
account_name text,
ot... | SELECT DISTINCT card_type_code FROM customers_cards | spider | 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 are the different card type codes? ### Input: CREATE TABLE customers (
customer_id number,
customer_first_name ... |
what is the type movinig to alianza atl tico? | CREATE TABLE table_name_28 (
type VARCHAR,
moving_to VARCHAR
) | SELECT type FROM table_name_28 WHERE moving_to = "alianza atlético" | 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 is the type movinig to alianza atl tico? ### Input: CREATE TABLE table_name_28 (
type VARCHAR,
moving_to VARCHA... |
what is maximum age of patients whose gender is m and insurance is self pay? | 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,... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.insurance = "Self Pay" | 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: what is maximum age of patients whose gender is m and insurance is self pay? ### Input: CREATE TABLE prescriptions (
sub... |
tell me the drug that was prescribed to patient 029-7028 for the last time in their first hospital encounter? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-7028' AND NOT patient.hospitaldischargetime IS NULL ORDER BY pa... | eicu | 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: tell me the drug that was prescribed to patient 029-7028 for the last time in their first hospital encounter? ### Input: CRE... |
How many maximum points did Curtis scored? | CREATE TABLE table_28031 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MAX("Points") FROM table_28031 WHERE "Player" = 'Curtis' | 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 maximum points did Curtis scored? ### Input: CREATE TABLE table_28031 (
"Player" text,
"Position" text,
... |
what team comes before confey | CREATE TABLE table_204_772 (
id number,
"team" text,
"county" text,
"wins" number,
"years won" number
) | SELECT "team" FROM table_204_772 WHERE id = (SELECT id FROM table_204_772 WHERE "team" = 'confey') - 1 | squall | 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 team comes before confey ### Input: CREATE TABLE table_204_772 (
id number,
"team" text,
"county" text,
... |
what is the most recent year gardnar mulloy played as a partner and score was 12 10, 8 10, 12 10, 6 2? | CREATE TABLE table_name_29 (
year INTEGER,
partner VARCHAR,
score VARCHAR
) | SELECT MAX(year) FROM table_name_29 WHERE partner = "gardnar mulloy" AND score = "12–10, 8–10, 12–10, 6–2" | 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 is the most recent year gardnar mulloy played as a partner and score was 12 10, 8 10, 12 10, 6 2? ### Input: CREATE TAB... |
At what stadium was the final score 31-28? | CREATE TABLE table_71510 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) | SELECT "Stadium" FROM table_71510 WHERE "Final Score" = '31-28' | 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: At what stadium was the final score 31-28? ### Input: CREATE TABLE table_71510 (
"Date" text,
"Visiting Team" text,
... |
Questions answered before they were asked. | 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 PostNotices (
Id number,
PostId number,
PostNot... | SELECT a.Id AS "post_link" FROM Posts AS q JOIN Posts AS a ON a.ParentId = q.Id WHERE q.CreationDate > a.CreationDate ORDER BY a.CreationDate 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: Questions answered before they were asked. ### Input: CREATE TABLE SuggestedEdits (
Id number,
PostId number,
Cr... |
what was the only tribunal to pronounce zero sentences ? | CREATE TABLE table_203_303 (
id number,
"tribunal" text,
"number of autos da fe" number,
"executions in persona" number,
"executions in effigie" number,
"penanced" number,
"total" number
) | SELECT "tribunal" FROM table_203_303 WHERE "total" = 0 | squall | 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 only tribunal to pronounce zero sentences ? ### Input: CREATE TABLE table_203_303 (
id number,
"tribuna... |
How many introductory phrases are there with 'the w rd' is 'unrequited gov'? | CREATE TABLE table_28001 (
"Episode #" real,
"The W\u00f8rd" text,
"Guest" text,
"Introductory phrase" text,
"Original airdate" text,
"Production code" real
) | SELECT COUNT("Introductory phrase") FROM table_28001 WHERE "The W\u00f8rd" = 'Unrequited Gov' | 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 introductory phrases are there with 'the w rd' is 'unrequited gov'? ### Input: CREATE TABLE table_28001 (
"Epis... |
what is the number of patients whose days of hospital stay is greater than 1 and diagnoses icd9 code is 3970? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "1" AND diagnoses.icd9_code = "3970" | 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: what is the number of patients whose days of hospital stay is greater than 1 and diagnoses icd9 code is 3970? ### Input: CRE... |
what was the total of the suprapubic urine output that patient 028-34632 had on the first icu visit? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-34632') AND NOT patient.unitdischargetime IS... | eicu | 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 total of the suprapubic urine output that patient 028-34632 had on the first icu visit? ### Input: CREATE TABLE... |
What was the Away Team of Blackpool's Home game? | CREATE TABLE table_40750 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text,
"Attendance" real
) | SELECT "Away team" FROM table_40750 WHERE "Home team" = 'blackpool' | 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 was the Away Team of Blackpool's Home game? ### Input: CREATE TABLE table_40750 (
"Tie no" text,
"Home team" te... |
Who wrote when the original airdate is April 5, 1987? | CREATE TABLE table_24864 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT "Written by" FROM table_24864 WHERE "Original air date" = 'April 5, 1987' | 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: Who wrote when the original airdate is April 5, 1987? ### Input: CREATE TABLE table_24864 (
"No. in series" real,
"T... |
At what venue did the match where the home team scored 8.6 (54) take place? | CREATE TABLE table_33293 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_33293 WHERE "Home team score" = '8.6 (54)' | 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: At what venue did the match where the home team scored 8.6 (54) take place? ### Input: CREATE TABLE table_33293 (
"Home ... |
is there any history of microbiology test results for patient 61751's bile during the last month? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
a... | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 61751) AND microbiologyevents.spec_type_desc = 'bile' AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 mon... | mimic_iii | 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: is there any history of microbiology test results for patient 61751's bile during the last month? ### Input: CREATE TABLE mi... |
What is Method, when Time is '3:20'? | CREATE TABLE table_58771 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Method" FROM table_58771 WHERE "Time" = '3:20' | 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 Method, when Time is '3:20'? ### Input: CREATE TABLE table_58771 (
"Res." text,
"Record" text,
"Opponent... |
What is the number of contestants who are 5'7' and exactly 26 years of age? | CREATE TABLE table_27692 (
"Country" text,
"Contestant" text,
"Age" real,
"Height (cm)" real,
"Height (ft)" text,
"Hometown" text
) | SELECT COUNT("Contestant") FROM table_27692 WHERE "Height (ft)" = '5''7' AND "Age" = '26' | 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 number of contestants who are 5'7' and exactly 26 years of age? ### Input: CREATE TABLE table_27692 (
"Count... |
What Rider has a Grid of 21? | CREATE TABLE table_50881 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Rider" FROM table_50881 WHERE "Grid" = '21' | 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 Rider has a Grid of 21? ### Input: CREATE TABLE table_50881 (
"Rider" text,
"Manufacturer" text,
"Laps" rea... |
If the Plain stop is , what is the Non- stop? | CREATE TABLE table_9325 (
"Articulatory class" text,
"Non- stop" text,
"Plain stop" text,
"Aspirated stop" text,
"\"Muddy\" voice" text
) | SELECT "Non- stop" FROM table_9325 WHERE "Plain stop" = 'ㄷ' | 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: If the Plain stop is , what is the Non- stop? ### Input: CREATE TABLE table_9325 (
"Articulatory class" text,
"Non- ... |
find the number of patients on additive type drug prescription who have diagnoses icd9 code 78791. | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "78791" AND prescriptions.drug_type = "ADDITIVE" | 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: find the number of patients on additive type drug prescription who have diagnoses icd9 code 78791. ### Input: CREATE TABLE d... |
WHAT POSITION IS 273? | CREATE TABLE table_name_26 (
position VARCHAR,
overall VARCHAR
) | SELECT position FROM table_name_26 WHERE overall = 273 | 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 POSITION IS 273? ### Input: CREATE TABLE table_name_26 (
position VARCHAR,
overall VARCHAR
) ### Response: SELE... |
What Secretary has a Social AO of lieke de boer? | CREATE TABLE table_name_12 (
secretary VARCHAR,
social_ao VARCHAR
) | SELECT secretary FROM table_name_12 WHERE social_ao = "lieke de boer" | 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 Secretary has a Social AO of lieke de boer? ### Input: CREATE TABLE table_name_12 (
secretary VARCHAR,
social_a... |
What is the year that has points larger than 20? | CREATE TABLE table_name_84 (
year VARCHAR,
points INTEGER
) | SELECT COUNT(year) FROM table_name_84 WHERE points > 20 | 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 is the year that has points larger than 20? ### Input: CREATE TABLE table_name_84 (
year VARCHAR,
points INTEGE... |
has patient 20441 ever had a arterial bp [diastolic] of greater than 73.0 when they came to the hospital first time? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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,
chartt... | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20441 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevents.itemid IN (... | mimic_iii | 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: has patient 20441 ever had a arterial bp [diastolic] of greater than 73.0 when they came to the hospital first time? ### Inp... |
provide the number of patients whose lab test name is potassium, urine and lab test result is abnormal. | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "Potassium, Urine" | 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 lab test name is potassium, urine and lab test result is abnormal. ### Input: CREATE TA... |
Find the address and staff number of the shops that do not have any happy hour. Visualize by bar chart. | CREATE TABLE shop (
Shop_ID int,
Address text,
Num_of_staff text,
Score real,
Open_Year text
)
CREATE TABLE member (
Member_ID int,
Name text,
Membership_card text,
Age int,
Time_of_purchase int,
Level_of_membership int,
Address text
)
CREATE TABLE happy_hour (
HH_I... | SELECT Address, Num_of_staff FROM shop WHERE NOT Shop_ID IN (SELECT Shop_ID FROM happy_hour) | nvbench | 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: Find the address and staff number of the shops that do not have any happy hour. Visualize by bar chart. ### Input: CREATE TA... |
indicate the daily maximum amount of heartrate for patient 002-4486 on the first icu visit. | 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,
... | SELECT MAX(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-4486') AND NOT patient.unitdischargetime IS NULL... | eicu | 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: indicate the daily maximum amount of heartrate for patient 002-4486 on the first icu visit. ### Input: CREATE TABLE allergy ... |
What's the release price of a processor that has a frequency of 3.2 ghz and 1 6.4 gt/s qpi I/O? | CREATE TABLE table_63644 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"Turbo" text,
"Cores" real,
"L2 cache" text,
"L3 cache" text,
"I/O bus" text,
"Mult." text,
"Memory" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" t... | SELECT "Release price ( USD )" FROM table_63644 WHERE "Frequency" = '3.2 ghz' AND "I/O bus" = '1 × 6.4 gt/s qpi' | 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's the release price of a processor that has a frequency of 3.2 ghz and 1 6.4 gt/s qpi I/O? ### Input: CREATE TABLE tabl... |
What is Website, when License is Apache License 2.0? | CREATE TABLE table_49047 (
"Source Version" text,
"Target Version" text,
"Last Release" text,
"License" text,
"Website" text
) | SELECT "Website" FROM table_49047 WHERE "License" = 'apache license 2.0' | 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 Website, when License is Apache License 2.0? ### Input: CREATE TABLE table_49047 (
"Source Version" text,
"T... |
Count the number of inpatient hospital admission patients who have neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues/bone marrow transplant as their primary disease. | 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 prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.diagnosis = "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\BONE MARROW TRANSPLANT" | 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 inpatient hospital admission patients who have neoplasm of uncertain behavior of other lymphatic and hem... |
how many competitors competed in the semifinal 2 ? | CREATE TABLE table_204_547 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"time" number,
"notes" text
) | SELECT COUNT("name") FROM table_204_547 | squall | 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 competitors competed in the semifinal 2 ? ### Input: CREATE TABLE table_204_547 (
id number,
"rank" number,... |
What is the average number of draws for Mortlake club when they have less than 0 wins? | CREATE TABLE table_64313 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT AVG("Draws") FROM table_64313 WHERE "Club" = 'mortlake' AND "Wins" < '0' | 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 average number of draws for Mortlake club when they have less than 0 wins? ### Input: CREATE TABLE table_64313 (... |
Which teacher will teach Lyric , Elegy , and Iambus this semester ? | 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 varch... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN semester... | advising | 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 teacher will teach Lyric , Elegy , and Iambus this semester ? ### Input: CREATE TABLE student (
student_id int,
... |
I want to know the HP model with a #HDD of 1 of sides of ds | CREATE TABLE table_name_68 (
hp_model VARCHAR,
_number_hdd VARCHAR,
sides VARCHAR
) | SELECT hp_model FROM table_name_68 WHERE _number_hdd = 1 AND sides = "ds" | 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: I want to know the HP model with a #HDD of 1 of sides of ds ### Input: CREATE TABLE table_name_68 (
hp_model VARCHAR,
... |
provide the number of patients whose marital status is widowed and lab test name is metamyelocytes? | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "WIDOWED" AND lab.label = "Metamyelocytes" | 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 marital status is widowed and lab test name is metamyelocytes? ### Input: CREATE TABLE ... |
Get me the number of patients with acidosis primary disease and have short title of procedure skin & subq dx proc nec. | 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 te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "ACIDOSIS" AND procedures.short_title = "Skin & subq dx proc NEC" | 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: Get me the number of patients with acidosis primary disease and have short title of procedure skin & subq dx proc nec. ### I... |
What kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and a Province of Silla of gangju? | CREATE TABLE table_7759 (
"Province of Silla" text,
"Administrative district" text,
"Pre-1009 province" text,
"Post-1009 province" text,
"Modern equivalent" text
) | SELECT "Modern equivalent" FROM table_7759 WHERE "Post-1009 province" = 'gyeongsang -do' AND "Administrative district" = 'jinju -mok' AND "Province of Silla" = 'gangju' | 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 kind of Modern equivalent has a Post-1009 province of gyeongsang -do, and a Administrative district of jinju -mok, and ... |
Who was the host of the premiere on November 10, 2007? | CREATE TABLE table_7052 (
"Country" text,
"Host" text,
"Channel" text,
"Premiere" text,
"Jackpot" text
) | SELECT "Host" FROM table_7052 WHERE "Premiere" = 'november 10, 2007' | 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: Who was the host of the premiere on November 10, 2007? ### Input: CREATE TABLE table_7052 (
"Country" text,
"Host" t... |
Name the replaced by for 8 july 2009 | CREATE TABLE table_2665 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Replaced by" FROM table_2665 WHERE "Date of appointment" = '8 July 2009' | 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: Name the replaced by for 8 july 2009 ### Input: CREATE TABLE table_2665 (
"Team" text,
"Outgoing manager" text,
... |
Which circuit was the atcc round 7 at? | CREATE TABLE table_61212 (
"Date" text,
"Series" text,
"Circuit" text,
"City / State" text,
"Winner" text,
"Team" text
) | SELECT "Circuit" FROM table_61212 WHERE "Series" = 'atcc round 7' | 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: Which circuit was the atcc round 7 at? ### Input: CREATE TABLE table_61212 (
"Date" text,
"Series" text,
"Circui... |
what was the last time that patient 022-98345 had volume (ml) propofol taken on 08/25/2102? | 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 vitalperiodi... | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-98345')) AND intakeoutput.cellpath LIKE '%intake%... | eicu | 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 last time that patient 022-98345 had volume (ml) propofol taken on 08/25/2102? ### Input: CREATE TABLE diagnosi... |
i would like a flight from WASHINGTON to BOSTON on 8 20 at 1524 | CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 20 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time... | atis | 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: i would like a flight from WASHINGTON to BOSTON on 8 20 at 1524 ### Input: CREATE TABLE month (
month_number int,
mo... |
show me flights from BALTIMORE to DALLAS | CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_lo... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALL... | atis | 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: show me flights from BALTIMORE to DALLAS ### Input: CREATE TABLE code_description (
code varchar,
description text
)... |
In Spring or Summer what courses are on offer that meet the Other requirement ? | CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
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_test... | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id... | advising | 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: In Spring or Summer what courses are on offer that meet the Other requirement ? ### Input: CREATE TABLE course_prerequisite ... |
What was the score for a no. 21 tie? | CREATE TABLE table_51039 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_51039 WHERE "Tie no" = '21' | 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 was the score for a no. 21 tie? ### Input: CREATE TABLE table_51039 (
"Tie no" text,
"Home team" text,
"Sco... |
what is the number of patients with hispanic/latino ethnicity and with diagnosis icd9 code 42741? | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND diagnoses.icd9_code = "42741" | 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: what is the number of patients with hispanic/latino ethnicity and with diagnosis icd9 code 42741? ### Input: CREATE TABLE la... |
Top SO users from NYC. | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate ti... | SELECT ROW_NUMBER() OVER (ORDER BY u.Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, u.Location FROM Users AS u JOIN Badges AS b ON u.Id = b.UserId WHERE b.Name = 'javascript' AND b.Class = 3 AND u.Reputation >= 1000 AND (LOWER(u.Location) LIKE '%nyc%' OR UPPER(Location) LIKE '%NY, NY%' OR LOWER(Location) L... | 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: Top SO users from NYC. ### Input: CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskRes... |
Which team has a home field at Glenferrie Oval? | CREATE TABLE table_32433 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_32433 WHERE "Venue" = 'glenferrie oval' | 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: Which team has a home field at Glenferrie Oval? ### Input: CREATE TABLE table_32433 (
"Home team" text,
"Home team s... |
What is Record, when Date is 'March 1'? | CREATE TABLE table_8365 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Record" FROM table_8365 WHERE "Date" = 'march 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: What is Record, when Date is 'March 1'? ### Input: CREATE TABLE table_8365 (
"Game" real,
"Date" text,
"Opponent... |
what is patient 027-82318's average value for cpk-mb index? | 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,
culturetake... | SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-82318')) AND lab.labname = 'cpk-mb index' | eicu | 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 patient 027-82318's average value for cpk-mb index? ### Input: CREATE TABLE medication (
medicationid number,
... |
What is the title of the first episode of the season that begin on february 27, 1954? | CREATE TABLE table_20317 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by:" text,
"Written by:" text,
"Original air date" text
) | SELECT "Title" FROM table_20317 WHERE "Original air date" = 'February 27, 1954' | 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 title of the first episode of the season that begin on february 27, 1954? ### Input: CREATE TABLE table_20317 (
... |
What is the date when Miranda Gore Browne was runner-up? | CREATE TABLE table_30849 (
"Series" real,
"Premiere" text,
"Finale" text,
"Runners-up" text,
"Winner" text
) | SELECT "Finale" FROM table_30849 WHERE "Runners-up" = 'Miranda Gore Browne' | 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 date when Miranda Gore Browne was runner-up? ### Input: CREATE TABLE table_30849 (
"Series" real,
"Premi... |
Who was the director for the film produced by River Films? | CREATE TABLE table_40914 (
"Title" text,
"Director" text,
"Producer" text,
"Production Cost" text,
"Singapore Gross" text
) | SELECT "Director" FROM table_40914 WHERE "Producer" = 'river films' | 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: Who was the director for the film produced by River Films? ### Input: CREATE TABLE table_40914 (
"Title" text,
"Dire... |
what is the number of patients with acute vascular insufficiency of intestine who are less than 50 years of age? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "50" AND diagnoses.long_title = "Acute vascular insufficiency of intestine" | 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: what is the number of patients with acute vascular insufficiency of intestine who are less than 50 years of age? ### Input: ... |
How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1? | CREATE TABLE table_8401 (
"Brigade" text,
"Staffing" text,
"Type" text,
"Location" text,
"Pumpers" real,
"Tankers" real,
"Telebooms" text,
"Platforms" text,
"Cars" text,
"Hazmat" text
) | SELECT COUNT("Pumpers") FROM table_8401 WHERE "Cars" = '1' AND "Staffing" = 'volunteer' AND "Brigade" = 'grovedale' AND "Tankers" < '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 Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1? ### In... |
Name the least frequency Mhz with call sign of k202ag | CREATE TABLE table_37040 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT MIN("Frequency MHz") FROM table_37040 WHERE "Call sign" = 'k202ag' | 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: Name the least frequency Mhz with call sign of k202ag ### Input: CREATE TABLE table_37040 (
"Call sign" text,
"Frequ... |
what is the highest gnis feature id# link a[ ] b[ ] when the name a[ ] is upper dewey lake dam? | CREATE TABLE table_14299 (
"Name A[\u203a ]" text,
"Dam or A[\u203a ] Reservoir" text,
"GNIS Feature ID # Link A[\u203a ] B[\u203a ]" real,
"Elevation A[\u203a ]" text,
"Borough or A[\u203a ] Census area" text
) | SELECT MAX("GNIS Feature ID # Link A[\u203a ] B[\u203a ]") FROM table_14299 WHERE "Name A[\u203a ]" = 'upper dewey lake dam' | 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 highest gnis feature id# link a[ ] b[ ] when the name a[ ] is upper dewey lake dam? ### Input: CREATE TABLE tabl... |
what are the cheapest round trip flights from DENVER to ATLANTA | CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.... | atis | 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 are the cheapest round trip flights from DENVER to ATLANTA ### Input: CREATE TABLE fare (
fare_id int,
from_air... |
what is the maximum lead margin on august 5, 2008? | CREATE TABLE table_72802 (
"Poll Source" text,
"Dates administered" text,
"Democrat: John Kerry" text,
"Republican: Jeff Beatty" text,
"Lead Margin" real
) | SELECT MAX("Lead Margin") FROM table_72802 WHERE "Dates administered" = 'August 5, 2008' | 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 maximum lead margin on august 5, 2008? ### Input: CREATE TABLE table_72802 (
"Poll Source" text,
"Dates ... |
Tell me the score of misa eguchi eri hozumi | CREATE TABLE table_name_62 (
score VARCHAR,
opponents VARCHAR
) | SELECT score FROM table_name_62 WHERE opponents = "misa eguchi eri hozumi" | 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: Tell me the score of misa eguchi eri hozumi ### Input: CREATE TABLE table_name_62 (
score VARCHAR,
opponents VARCHAR... |
calculate the maximum days of hospitalization for patients with s/p hanging primary disease. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "S/P HANGING" | 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: calculate the maximum days of hospitalization for patients with s/p hanging primary disease. ### Input: CREATE TABLE lab (
... |
how many mean elevation with lowest point being gulf of mexico and state being texas | CREATE TABLE table_1416612_1 (
mean_elevation VARCHAR,
lowest_point VARCHAR,
state VARCHAR
) | SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas" | 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: how many mean elevation with lowest point being gulf of mexico and state being texas ### Input: CREATE TABLE table_1416612_1... |
How many tries had a losing bonus of 5, and were part of the Maesteg Celtic RFC club? | CREATE TABLE table_4940 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Tries for" FROM table_4940 WHERE "Losing bonus" = '5' AND "Club" = 'maesteg celtic rfc' | 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 tries had a losing bonus of 5, and were part of the Maesteg Celtic RFC club? ### Input: CREATE TABLE table_4940 (
... |
male and female subjects | CREATE TABLE table_train_258 (
"id" int,
"gender" string,
"autoimmune_disease" bool,
"renal_disease" bool,
"hepatic_disease" bool,
"immune_deficiency_disorder" bool,
"active_hepatitis" bool,
"body_mass_index_bmi" float,
"NOUSE" float
) | SELECT * FROM table_train_258 WHERE gender = 'male' OR gender = 'female' | criteria2sql | 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: male and female subjects ### Input: CREATE TABLE table_train_258 (
"id" int,
"gender" string,
"autoimmune_diseas... |
What is the 2011 Australian Open and a 2010 QF? | CREATE TABLE table_12787 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"Win %" text
) | SELECT "2011" FROM table_12787 WHERE "Tournament" = 'australian open' AND "2010" = 'qf' | 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 2011 Australian Open and a 2010 QF? ### Input: CREATE TABLE table_12787 (
"Tournament" text,
"2009" text... |
When was Lachlan Dale born? | CREATE TABLE table_36220 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
) | SELECT "D.O.B." FROM table_36220 WHERE "Surname" = 'dale' AND "First" = 'lachlan' | 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: When was Lachlan Dale born? ### Input: CREATE TABLE table_36220 (
"Surname" text,
"First" text,
"D.O.B." text,
... |
How large was the crowd when the away team was melbourne? | CREATE TABLE table_32310 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_32310 WHERE "Away team" = 'melbourne' | 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 large was the crowd when the away team was melbourne? ### Input: CREATE TABLE table_32310 (
"Home team" text,
"H... |
had patient 9964 received any laboratory test during this hospital visit? | CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE... | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9964 AND admissions.dischtime IS NULL) | mimic_iii | 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: had patient 9964 received any laboratory test during this hospital visit? ### Input: CREATE TABLE inputevents_cv (
row_i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.