answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT MIN(3 AS rd) FROM table_24330912_1 | What is the lowest overall amount of times they've been in 3rd? | CREATE TABLE table_24330912_1 (Id VARCHAR) |
SELECT MIN(no_in_season) FROM table_26168687_5 | Name the most number in season | CREATE TABLE table_26168687_5 (no_in_season INTEGER) |
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'vincristine sulfate' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 4 | what are the four most commonly prescribed drugs for patients who were also prescribed vincristine sulfate at the same time during this year? | CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
) |
SELECT MIN(money_list_rank) FROM table_24330912_1 WHERE year = 2011 | When 2011 is the year what is the lowest money list rank? | CREATE TABLE table_24330912_1 (money_list_rank INTEGER, year VARCHAR) |
SELECT narrated_by FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping" | Name the narraed by for beluga shipping | CREATE TABLE table_26168687_5 (narrated_by VARCHAR, vessel_operator VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " | what is the number of patients whose ethnicity is black/haitian and primary disease is aortic insufficiency\re-do sternotomy; aortic valve replacement ? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT MIN(money_list_rank) FROM table_24330912_1 | What is the lowest overall money list rank? | CREATE TABLE table_24330912_1 (money_list_rank INTEGER) |
SELECT COUNT(no_in_season) FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping" | Name the number of season for beluga shipping | CREATE TABLE table_26168687_5 (no_in_season VARCHAR, vessel_operator VARCHAR) |
SELECT club FROM table_13741576_6 WHERE points_for = "536" | What club has 536 points for? | CREATE TABLE table_13741576_6 (
club VARCHAR,
points_for VARCHAR
) |
SELECT MIN(tournaments_played) FROM table_24330912_1 WHERE best_finish = "T3" | When t3 is the best finish what is the lowest amount of tournaments played? | CREATE TABLE table_24330912_1 (tournaments_played INTEGER, best_finish VARCHAR) |
SELECT MIN(no_in_series) FROM table_2618102_1 WHERE directed_by = "James Quinn" | Name the least number in series for james quinn | CREATE TABLE table_2618102_1 (no_in_series INTEGER, directed_by VARCHAR) |
SELECT "Bleeding time" FROM table_16418 WHERE "Condition" = 'Factor X deficiency as seen in amyloid purpura' | What was the bleeding time for the factor x deficiency as seen in amyloid purpura | CREATE TABLE table_16418 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
) |
SELECT MAX(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£2,350" | What is the latest amount of won legs in the payoffs when the prize money was £2,350? | CREATE TABLE table_24334163_1 (Winners INTEGER, total_money_won VARCHAR) |
SELECT MIN(no_in_season) FROM table_2618102_1 WHERE written_by = "Brad Markowitz, William N. Fordes & René Balcer" | Name the least number in season for brad markowitz, william n. fordes & rené balcer | CREATE TABLE table_2618102_1 (no_in_season INTEGER, written_by VARCHAR) |
SELECT "Date" FROM table_6309 WHERE "Record" = '65-87' | what team scored 65-87 | CREATE TABLE table_6309 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) |
SELECT Winners AS group_legs_won FROM table_24334163_1 WHERE player = "Mark Dudbridge" | How many group legs were won with player Mark Dudbridge? | CREATE TABLE table_24334163_1 (Winners VARCHAR, player VARCHAR) |
SELECT institution FROM table_261913_1 WHERE location__all_in_minnesota_ = "St. Peter" | What institution is located in St. Peter? | CREATE TABLE table_261913_1 (institution VARCHAR, location__all_in_minnesota_ VARCHAR) |
SELECT AVG(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "VENTRICULAR TACHYCARDIA" | Find the average age of patients that survived and had a pimary disease of ventricular tachycardia. | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT MAX(Winners) AS group_legs_won FROM table_24334163_1 WHERE total_money_won = "£21,850" | What is the highest amount of group legs won when the prize money was £21,850? | CREATE TABLE table_24334163_1 (Winners INTEGER, total_money_won VARCHAR) |
SELECT MIN(enrollment) FROM table_261913_1 WHERE institution = "Augsburg College" | What is the enrollment for Augsburg college? | CREATE TABLE table_261913_1 (enrollment INTEGER, institution VARCHAR) |
SELECT "Team" FROM table_26893 WHERE "Listed Owner(s)" = 'Susan Bates' | Name the team for susan bates | CREATE TABLE table_26893 (
"Team" text,
"Truck(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Listed Owner(s)" text,
"Crew Chief" text
) |
SELECT COUNT(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£10,300" | How many play-off legs were won when the prize money was £10,300? | CREATE TABLE table_24334163_1 (Winners VARCHAR, total_money_won VARCHAR) |
SELECT MIN(founded) FROM table_261913_1 WHERE joined = "1977" | What was the earliest date an institution was founded that joined in 1977? | CREATE TABLE table_261913_1 (founded INTEGER, joined VARCHAR) |
SELECT payment_method_code, COUNT(*) FROM customer_payments GROUP BY payment_method_code | List all payment methods and number of payments using each payment methods. | CREATE TABLE lessons (
lesson_id number,
customer_id number,
lesson_status_code text,
staff_id number,
vehicle_id number,
lesson_date time,
lesson_time text,
price number
)
CREATE TABLE customer_payments (
customer_id number,
datetime_payment time,
payment_method_code text,
amount_payment number
)
CREATE TABLE vehicles (
vehicle_id number,
vehicle_details text
)
CREATE TABLE customers (
customer_id number,
customer_address_id number,
customer_status_code text,
date_became_customer time,
date_of_birth time,
first_name text,
last_name text,
amount_outstanding number,
email_address text,
phone_number text,
cell_mobile_phone_number text
)
CREATE TABLE addresses (
address_id number,
line_1_number_building text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE staff (
staff_id number,
staff_address_id number,
nickname text,
first_name text,
middle_name text,
last_name text,
date_of_birth time,
date_joined_staff time,
date_left_staff time
) |
SELECT MIN(Winners) AS play_off_legs_won FROM table_24334163_1 | What is the least amount of playoff legs won? | CREATE TABLE table_24334163_1 (Winners INTEGER) |
SELECT COUNT(type) FROM table_261927_2 WHERE location = "Bridgewater, Massachusetts" | How many different types are allocated to the institution in Bridgewater, Massachusetts? | CREATE TABLE table_261927_2 (type VARCHAR, location VARCHAR) |
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents WHERE STRFTIME('%y', labevents.charttime) = '2105' GROUP BY labevents.itemid) AS t1 WHERE t1.c1 <= 3) | what was the three most frequently performed lab tests in 2105? | CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
) |
SELECT directed_by FROM table_24319661_5 WHERE no_in_series = 53 | Who directed episode 53 in the series? | CREATE TABLE table_24319661_5 (directed_by VARCHAR, no_in_series VARCHAR) |
SELECT enrollment FROM table_261927_2 WHERE location = "Westfield, Massachusetts" | What is the enrollment for the institution in Westfield, Massachusetts? | CREATE TABLE table_261927_2 (enrollment VARCHAR, location VARCHAR) |
SELECT school FROM table_name_28 WHERE mascot = "raiders" | Which School's Mascot is Raiders? | CREATE TABLE table_name_28 (
school VARCHAR,
mascot VARCHAR
) |
SELECT production_code FROM table_24319661_5 WHERE directed_by = "Robert Duncan McNeill" | What as the production code for the episode directed by Robert Duncan McNeill? | CREATE TABLE table_24319661_5 (production_code VARCHAR, directed_by VARCHAR) |
SELECT institution FROM table_261927_2 WHERE primary_conference = "Merged into the University of Massachusetts Boston" | Which institutions primary conference is merged into the university of Massachusetts boston? | CREATE TABLE table_261927_2 (institution VARCHAR, primary_conference VARCHAR) |
SELECT "Mintage" FROM table_51195 WHERE "Theme" = 'year of the rabbit' | What's the mintage when the theme was year of the rabbit? | CREATE TABLE table_51195 (
"Year" real,
"Theme" text,
"Artist" text,
"Composition" text,
"Mintage" real,
"Issue Price" text
) |
SELECT no_in_season FROM table_24319661_5 WHERE production_code = "BCW410" | What episode number of the season had BCW410 as a production code? | CREATE TABLE table_24319661_5 (no_in_season VARCHAR, production_code VARCHAR) |
SELECT football_conference FROM table_261927_2 WHERE location = "Henniker, New Hampshire" | What is the football conference for Henniker, New Hampshire>? | CREATE TABLE table_261927_2 (football_conference VARCHAR, location VARCHAR) |
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = '2 ml vial: midazolam hcl 2 mg/2ml ij soln' AND STRFTIME('%y', medication.drugstarttime) >= '2103') AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE STRFTIME('%y', medication.drugstarttime) >= '2103') AS t2 ON t1.uniquepid = t2.uniquepid WHERE DATETIME(t1.drugstarttime) = DATETIME(t2.drugstarttime) GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 5 | among patients that were prescribed with 2 ml vial: midazolam hcl 2 mg/2ml ij soln, what are the five most frequently prescribed drugs at the same time, since 2103. | 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime 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 cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
) |
SELECT MAX(no_in_series) FROM table_24319661_5 WHERE us_viewers__million_ = "2.77" | What episode number in the series had 2.77 million U.S. viewers? | CREATE TABLE table_24319661_5 (no_in_series INTEGER, us_viewers__million_ VARCHAR) |
SELECT joined FROM table_261927_2 WHERE left = "2013" AND nickname = "Corsairs" | What date did the institution that left in 2013 and that is nicknamed Corsairs, join? | CREATE TABLE table_261927_2 (joined VARCHAR, left VARCHAR, nickname VARCHAR) |
SELECT name FROM table_name_9 WHERE caps = 59 | Who has a 59 cap? | CREATE TABLE table_name_9 (
name VARCHAR,
caps VARCHAR
) |
SELECT MAX(times_contested) FROM table_24329520_4 WHERE county = "Montgomeryshire" | Name the most times contested for montgomeryshire | CREATE TABLE table_24329520_4 (times_contested INTEGER, county VARCHAR) |
SELECT written_by FROM table_26199484_1 WHERE no = 38 | Who wrote title number 38? | CREATE TABLE table_26199484_1 (written_by VARCHAR, no VARCHAR) |
SELECT MAX("Percentage") FROM table_59082 WHERE "Total Blocks" > '361' | What is the highest percentage when there are more than 361 blocks? | CREATE TABLE table_59082 (
"Season" text,
"GP/MP" text,
"Kills" real,
"K/Game" real,
"Errors" real,
"Total Attempts" real,
"Percentage" real,
"Assists" real,
"Service Aces" real,
"Digs" real,
"Solo Blocks" real,
"Block Assists" real,
"Total Blocks" real,
"Points" real
) |
SELECT fate_in_1832 FROM table_24329520_4 WHERE county = "Pembrokeshire" | Name the fate in 1832 for pembrokeshire | CREATE TABLE table_24329520_4 (fate_in_1832 VARCHAR, county VARCHAR) |
SELECT no FROM table_26202812_7 WHERE score_in_the_final = "7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)" | Which match was the final score 7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)? | CREATE TABLE table_26202812_7 (no VARCHAR, score_in_the_final VARCHAR) |
SELECT dorm_name, AVG(T1.Age) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name | Find the average age of students living in each dorm and the name of dorm. Plot them as bar chart. | CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
) |
SELECT MIN(podiums) FROM table_24330803_1 WHERE series = "Formula BMW Americas" | what is the least number of podiums for a formula BMW Americas series? | CREATE TABLE table_24330803_1 (podiums INTEGER, series VARCHAR) |
SELECT MIN(Ends) AS won FROM table_26209210_2 WHERE w = 8 | What is the lowest ends won when w is 8? | CREATE TABLE table_26209210_2 (Ends INTEGER, w VARCHAR) |
SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'prescriptions' AND cost.event_id IN (SELECT prescriptions.row_id FROM prescriptions WHERE prescriptions.drug = 'verapamil sr') | tell me the price of verapamil sr. | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
) |
SELECT MAX(wins) FROM table_24330803_1 WHERE series = "Formula 3 Euro series" | What is the maximum number of wins in the formula 3 euro series? | CREATE TABLE table_24330803_1 (wins INTEGER, series VARCHAR) |
SELECT MAX(grand_total) FROM table_26214389_3 WHERE qatari_male = 1104 | If the qatari male is 1104, what is the grand total? | CREATE TABLE table_26214389_3 (grand_total INTEGER, qatari_male VARCHAR) |
SELECT FIRST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT | For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of first_name and commission_pct , display by the y axis in asc. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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)
) |
SELECT COUNT(position) FROM table_24330803_1 WHERE points = "30" | How many positions were given when 30 points were won? | CREATE TABLE table_24330803_1 (position VARCHAR, points VARCHAR) |
SELECT total_non_qatar FROM table_26214389_3 WHERE grand_total = 5814 | If the grand total is 5814, what is the total non qatar? | CREATE TABLE table_26214389_3 (total_non_qatar VARCHAR, grand_total VARCHAR) |
SELECT high_assists FROM table_23285761_11 WHERE date = "April 26" | Who has the high assists when April 26 is the date? | CREATE TABLE table_23285761_11 (
high_assists VARCHAR,
date VARCHAR
) |
SELECT MAX(poles) FROM table_24330803_1 WHERE season = 2011 | How many pole positions were there for the 2011 season? | CREATE TABLE table_24330803_1 (poles INTEGER, season VARCHAR) |
SELECT Non AS qatari_female FROM table_26214389_3 WHERE year = 2001 | If the year is 2001, what are the non qatari female? | CREATE TABLE table_26214389_3 (Non VARCHAR, year VARCHAR) |
SELECT COUNT("Start") FROM table_68212 WHERE "Finish" < '4' | Name the total number of start when finish is less than 4 | CREATE TABLE table_68212 (
"Year" real,
"Manufacturer" text,
"Start" real,
"Finish" real,
"Team" text
) |
SELECT conference AS Tournament FROM table_24348134_3 WHERE tournament_winner = "Kent State" | List the tournament that kent state won? | CREATE TABLE table_24348134_3 (conference VARCHAR, tournament_winner VARCHAR) |
SELECT total_female FROM table_26214389_3 WHERE qatari_female = 918 | If the qatari female is 918, what is the total number of females? | CREATE TABLE table_26214389_3 (total_female VARCHAR, qatari_female VARCHAR) |
SELECT T2.organisation_details, T1.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_details ORDER BY T2.organisation_details | What are the ids and details for all organizations that have grants of more than 6000 dollars, rank X from low to high order. | CREATE TABLE Organisation_Types (
organisation_type VARCHAR(10),
organisation_type_description VARCHAR(255)
)
CREATE TABLE Grants (
grant_id INTEGER,
organisation_id INTEGER,
grant_amount DECIMAL(19,4),
grant_start_date DATETIME,
grant_end_date DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Project_Outcomes (
project_id INTEGER,
outcome_code VARCHAR(10),
outcome_details VARCHAR(255)
)
CREATE TABLE Staff_Roles (
role_code VARCHAR(10),
role_description VARCHAR(255)
)
CREATE TABLE Research_Staff (
staff_id INTEGER,
employer_organisation_id INTEGER,
staff_details VARCHAR(255)
)
CREATE TABLE Organisations (
organisation_id INTEGER,
organisation_type VARCHAR(10),
organisation_details VARCHAR(255)
)
CREATE TABLE Documents (
document_id INTEGER,
document_type_code VARCHAR(10),
grant_id INTEGER,
sent_date DATETIME,
response_received_date DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Projects (
project_id INTEGER,
organisation_id INTEGER,
project_details VARCHAR(255)
)
CREATE TABLE Research_Outcomes (
outcome_code VARCHAR(10),
outcome_description VARCHAR(255)
)
CREATE TABLE Document_Types (
document_type_code VARCHAR(10),
document_description VARCHAR(255)
)
CREATE TABLE Tasks (
task_id INTEGER,
project_id INTEGER,
task_details VARCHAR(255),
"eg Agree Objectives" VARCHAR(1)
)
CREATE TABLE Project_Staff (
staff_id DOUBLE,
project_id INTEGER,
role_code VARCHAR(10),
date_from DATETIME,
date_to DATETIME,
other_details VARCHAR(255)
) |
SELECT regular_season_winner FROM table_24348134_3 WHERE tournament_winner = "Georgia State" | What team won the regular season when georgia state won the tournament? | CREATE TABLE table_24348134_3 (regular_season_winner VARCHAR, tournament_winner VARCHAR) |
SELECT COUNT(outcome) FROM table_26202940_6 WHERE score_in_the_final = "6–3, 6–4, 7–6 (13–11)" | How many outcomes occur for score in the final of 6–3, 6–4, 7–6 (13–11)? | CREATE TABLE table_26202940_6 (outcome VARCHAR, score_in_the_final VARCHAR) |
SELECT "Opponent" FROM table_68602 WHERE "Record" = '17-11' | Which opponent has a record of 17-11? | CREATE TABLE table_68602 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) |
SELECT tournament_venue__city_ FROM table_24348134_3 WHERE tournament_winner = "Oklahoma" | In what city did oklahoma win the tournament. | CREATE TABLE table_24348134_3 (tournament_venue__city_ VARCHAR, tournament_winner VARCHAR) |
SELECT COUNT(outcome) FROM table_26202940_6 WHERE date = "January 31, 2010" | How many outcomes occur on the date of January 31, 2010? | CREATE TABLE table_26202940_6 (outcome VARCHAR, date VARCHAR) |
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(MANAGER_ID) | For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of hire_date and the average of manager_id bin hire_date by weekday, and show by the y axis in ascending. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) |
SELECT COUNT(tournament_winner) FROM table_24348134_3 WHERE regular_season_winner = "Iona , Siena & Niagara" | List the number of tournament winners when iona , siena & niagara won in the regular season. | CREATE TABLE table_24348134_3 (tournament_winner VARCHAR, regular_season_winner VARCHAR) |
SELECT COUNT(no) FROM table_26202940_6 WHERE score_in_the_final = "6–3, 6–4, 7–6 (13–11)" | How many numbers correspond to the score in the final of 6–3, 6–4, 7–6 (13–11)? | CREATE TABLE table_26202940_6 (no VARCHAR, score_in_the_final VARCHAR) |
SELECT address FROM table_name_44 WHERE mascot = "coyotes" | What is the address for the school that has the coyotes mascot? | CREATE TABLE table_name_44 (
address VARCHAR,
mascot VARCHAR
) |
SELECT real_life_eventual_outcome FROM table_243664_1 WHERE currently¹_part_of = "Amtrak" | Name the real life for eventual outcome is amtrak | CREATE TABLE table_243664_1 (real_life_eventual_outcome VARCHAR, currently¹_part_of VARCHAR) |
SELECT series FROM table_26223231_1 WHERE points = "6" | How many championships are there when there are 6 points | CREATE TABLE table_26223231_1 (series VARCHAR, points VARCHAR) |
SELECT SUM(Block) AS assists FROM table_name_12 WHERE assists > 32 AND total_blocks > 88 | When assists is more than 32 and total blocks is more than 88, what is the total of block assists? | CREATE TABLE table_name_12 (
Block INTEGER,
assists VARCHAR,
total_blocks VARCHAR
) |
SELECT real_life_years_of_operation FROM table_243664_1 WHERE currently¹_part_of = "Amtrak" | Name the real life years of operation for amtrak | CREATE TABLE table_243664_1 (real_life_years_of_operation VARCHAR, currently¹_part_of VARCHAR) |
SELECT poles FROM table_26223231_1 WHERE wins = 2 | When there are 2 wins, how many poles are? | CREATE TABLE table_26223231_1 (poles VARCHAR, wins VARCHAR) |
SELECT "Largest ethnic group (2002)" FROM table_3342 WHERE "Cyrillic Name" = 'Брестач' | What is the largest ethnic group (2002) when cyrillic name is ? | CREATE TABLE table_3342 (
"Settlement" text,
"Cyrillic Name" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) |
SELECT game_cost FROM table_243664_1 WHERE railroad = "Chicago and North Western" | Name the game coast for chicago and north western | CREATE TABLE table_243664_1 (game_cost VARCHAR, railroad VARCHAR) |
SELECT prod_code FROM table_2623498_5 WHERE episode__number = "78" | What is the production code for episode #78? | CREATE TABLE table_2623498_5 (prod_code VARCHAR, episode__number VARCHAR) |
SELECT number_of_seasons_in_liga_mx FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1962-63" | How many 'number of season in Liga MX' were played if the 'first season of current spell in top division' is in 1962-63? | CREATE TABLE table_18143210_2 (
number_of_seasons_in_liga_mx VARCHAR,
first_season_of_current_spell_in_top_division VARCHAR
) |
SELECT game_cost FROM table_243664_1 WHERE real_life_eventual_outcome = "Merged with New York Central to form Penn Central" | Name the game cost for merged with new york central to form penn central | CREATE TABLE table_243664_1 (game_cost VARCHAR, real_life_eventual_outcome VARCHAR) |
SELECT COUNT(title) FROM table_2623498_5 WHERE written_by = "Charleen Easton" | What is the number of titles written by Charleen Easton? | CREATE TABLE table_2623498_5 (title VARCHAR, written_by VARCHAR) |
SELECT T2.name, T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY COUNT(*) DESC LIMIT 1 | What are the name and id of the team with the most victories in 2008 postseason? | CREATE TABLE postseason (
team_id_winner VARCHAR,
year VARCHAR
)
CREATE TABLE team (
name VARCHAR,
team_id_br VARCHAR
) |
SELECT MIN(2007 AS __usd_) FROM table_24364690_1 WHERE federal_subjects = "Kabardino-Balkaria" | What is the minimum 2007 USD in Kabardino-Balkaria? | CREATE TABLE table_24364690_1 (federal_subjects VARCHAR) |
SELECT COUNT(prod_code) FROM table_2623498_5 WHERE episode__number = "73" | What is the number of production codes for episode #73? | CREATE TABLE table_2623498_5 (prod_code VARCHAR, episode__number VARCHAR) |
SELECT Fname, COUNT(*) FROM Faculty AS T1 JOIN Faculty_Participates_in AS T2 ON T1.FacID = T2.FacID GROUP BY T1.FacID ORDER BY Fname | What is the first name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in with a bar chart, list in ascending by the X. | CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
) |
SELECT weight_lost__kg_ FROM table_24370270_10 WHERE starting_weight__kg_ = "97.4" | What is every amount for weight lost if the starting weight is 97.4? | CREATE TABLE table_24370270_10 (weight_lost__kg_ VARCHAR, starting_weight__kg_ VARCHAR) |
SELECT location FROM table_262481_2 WHERE institution = "Fisk University" | where is Fisk University located? | CREATE TABLE table_262481_2 (location VARCHAR, institution VARCHAR) |
SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151 | When was the attendance at a venue bigger than 35,151? | CREATE TABLE table_name_36 (
date VARCHAR,
crowd INTEGER
) |
SELECT starting_weight__kg_ FROM table_24370270_10 WHERE weight_lost__kg_ = "54.6" | What is the starting weight if weight lost is 54.6? | CREATE TABLE table_24370270_10 (starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR) |
SELECT nickname FROM table_262481_2 WHERE founded = 1857 | What is the nickname of the institution that was founded in 1857? | CREATE TABLE table_262481_2 (nickname VARCHAR, founded VARCHAR) |
SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender ORDER BY Gender DESC | Draw a bar chart of gender versus the number of gender, order in descending by the names. | CREATE TABLE match_result (
Rank int,
Club_ID int,
Gold int,
Big_Silver int,
Small_Silver int,
Bronze int,
Points int
)
CREATE TABLE coach (
Coach_ID int,
Coach_name text,
Gender text,
Club_ID int,
Rank int
)
CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residence text,
Occupation text,
Votes int,
Rank text
)
CREATE TABLE player_coach (
Player_ID int,
Coach_ID int,
Starting_year int
) |
SELECT final_weight__kg_ FROM table_24370270_10 WHERE contestant = "Chris" | What is the final weight for contestant Chris? | CREATE TABLE table_24370270_10 (final_weight__kg_ VARCHAR, contestant VARCHAR) |
SELECT enrollment FROM table_262481_2 WHERE left = "2012" AND nickname = "Panthers" | What is the enrollment for the institution nicknamed the panthers that left in 2012? | CREATE TABLE table_262481_2 (enrollment VARCHAR, left VARCHAR, nickname VARCHAR) |
SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83182 AND admissions.dischtime IS NULL) ORDER BY prescriptions.startdate DESC LIMIT 1 | when was patient 83182 being prescribed with a medication for the last time in this hospital visit? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
) |
SELECT COUNT(aux_in) FROM table_24384861_1 WHERE version = "SoundDock series II" | How many times did the sounddock series II aux in? | CREATE TABLE table_24384861_1 (aux_in VARCHAR, version VARCHAR) |
SELECT institution FROM table_262481_2 WHERE current_conference = "GCAC (NAIA)" | What is the institution whose current conference is gcac (naia)? | CREATE TABLE table_262481_2 (institution VARCHAR, current_conference VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Mv collision NOS-driver" | provide the number of patients diagnosed with mv collision nos-driver. | 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 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 (
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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT iphone_certified FROM table_24384861_1 WHERE version = "SoundDock series I v2" | Was the sounddock series I v2 iphone certified? | CREATE TABLE table_24384861_1 (iphone_certified VARCHAR, version VARCHAR) |
SELECT COUNT(original_artist) FROM table_26250176_1 WHERE theme = "Group Performance" | How many original artists were there for the Group Performance? | CREATE TABLE table_26250176_1 (original_artist VARCHAR, theme VARCHAR) |
SELECT "Opponent" FROM table_14560 WHERE "Date" = 'april 14' | Which opponent has a Date of april 14? | CREATE TABLE table_14560 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) |
SELECT COUNT(aux_in) FROM table_24384861_1 WHERE dock_connection = "FireWire" | How many connections aux in using FIrewire? | CREATE TABLE table_24384861_1 (aux_in VARCHAR, dock_connection VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.