answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT COUNT("Total") FROM table_13764 WHERE "3rd run" = '38.023 (6)' | How many totals have 38.023 (6) as the 3rd run? | CREATE TABLE table_13764 (
"Rank" real,
"Name" text,
"1st run" text,
"2nd run" text,
"3rd run" text,
"Total" real
) |
SELECT home_city FROM table_2522473_1 WHERE home_ground = "DnB Nor Arena" | What is the home city for the team whose home ground is dnb nor arena? | CREATE TABLE table_2522473_1 (home_city VARCHAR, home_ground VARCHAR) |
SELECT pa FROM table_29565541_2 WHERE w = 6 | When 6 is the w what is the pa? | CREATE TABLE table_29565541_2 (pa VARCHAR, w VARCHAR) |
SELECT "Manufacturer" FROM table_13544 WHERE "Year made" = '1883' | What manufacturer has a year made of 1883? | CREATE TABLE table_13544 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
) |
SELECT home_city FROM table_2522473_1 WHERE home_ground = "Klepp Stadion" | What Home city has the home ground Klepp stadion? | CREATE TABLE table_2522473_1 (home_city VARCHAR, home_ground VARCHAR) |
SELECT MIN(stolen_ends) FROM table_29565541_2 WHERE l = 5 | When 5 is the l what is the lowest amount of stolen ends? | CREATE TABLE table_29565541_2 (stolen_ends INTEGER, l VARCHAR) |
SELECT "2008 First Time" FROM table_79753 WHERE "2006 First Time" = '85%' | What is the percentage for 2008 First time when in 2006 it was 85%? | CREATE TABLE table_79753 (
"Exam" text,
"2006 First Time" text,
"2006 All" text,
"2007 First Time" text,
"2007 All" text,
"2008 First Time" text,
"2008 All" text,
"2009 First Time" text,
"2009 All" text,
"2010 First Time" text,
"2011 First Time" text,
"2012 First Time" text
) |
SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE renewable_electricity_w_o_hydro__gw·h_ = 3601 | How many data was given the total electricity in GW-h if the renewable electricity w/o hydro (GW-h) is 3601? | CREATE TABLE table_25244412_2 (total_electricity__gw VARCHAR, renewable_electricity_w_o_hydro__gw·h_ VARCHAR) |
SELECT us_viewers__millions_ FROM table_29569969_2 WHERE production_code = 105 | How many million people in the US saw the episode with production code 105? | CREATE TABLE table_29569969_2 (us_viewers__millions_ VARCHAR, production_code VARCHAR) |
SELECT team FROM table_name_75 WHERE seed > 7 AND notes = "ncraa champion" | What team with a seed value greater than 7 has a note that they were an NCRAA champion? | CREATE TABLE table_name_75 (
team VARCHAR,
seed VARCHAR,
notes VARCHAR
) |
SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE _percentage_renewable = "92.3%" | How many data was given the total electricity in GW-h if % renewable is 92.3%? | CREATE TABLE table_25244412_2 (total_electricity__gw VARCHAR, _percentage_renewable VARCHAR) |
SELECT directed_by FROM table_29569969_2 WHERE us_viewers__millions_ = "1.48" | Who directed the episode that had 1.48 million viewers in the U.S.? | CREATE TABLE table_29569969_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT nhl_team FROM table_1473672_2 WHERE player = "Stan Weir" | What nhl team does stan weir play for? | CREATE TABLE table_1473672_2 (
nhl_team VARCHAR,
player VARCHAR
) |
SELECT MIN(renewable_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE rank = 36 | How much was the minimum renewable electricity (GW-h) that is ranked 36? | CREATE TABLE table_25244412_2 (renewable_electricity__gw INTEGER, rank VARCHAR) |
SELECT status FROM table_29572583_20 WHERE seed = 14 | what is the status for seed 14 | CREATE TABLE table_29572583_20 (status VARCHAR, seed VARCHAR) |
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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | what flights do you have leaving DENVER and arriving in SAN FRANCISCO | CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_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 food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
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 restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
) |
SELECT state FROM table_25244412_2 WHERE total_electricity__gw·h_ = 38380 | What was the state with the total electricity generated is 38380 gw-h? | CREATE TABLE table_25244412_2 (state VARCHAR, total_electricity__gw·h_ VARCHAR) |
SELECT player FROM table_29572583_20 WHERE status = "Fourth round lost to Tsvetana Pironkova [32]" | which player had the status to the fourth round lost to tsvetana pironkova [32] Answers: | CREATE TABLE table_29572583_20 (player VARCHAR, status VARCHAR) |
SELECT college_junior_club_team__league_ FROM table_name_32 WHERE round = 3 | What College/Junior/Club Team (League) has a round of 3? | CREATE TABLE table_name_32 (
college_junior_club_team__league_ VARCHAR,
round VARCHAR
) |
SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "111" | What number episode in the series had a production code of 111? | CREATE TABLE table_25246990_2 (no_in_series VARCHAR, prod_code VARCHAR) |
SELECT MAX(new_points) FROM table_29572583_20 WHERE player = "Roberta Vinci" | how many new points does the player roberta vinci have? | CREATE TABLE table_29572583_20 (new_points INTEGER, player VARCHAR) |
SELECT "Home team score" FROM table_33053 WHERE "Venue" = 'mcg' | What was the Home team's score when the Venue was mcg? | CREATE TABLE table_33053 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "110" | What number episode in the series had a production code of 110? | CREATE TABLE table_25246990_2 (no_in_series VARCHAR, prod_code VARCHAR) |
SELECT _percentage_0_19_years FROM table_29615165_5 WHERE quartier = "Saint-Loup" | How many o-19% are where the quartier is in saint-loup? | CREATE TABLE table_29615165_5 (_percentage_0_19_years VARCHAR, quartier VARCHAR) |
SELECT boat_builder FROM table_name_28 WHERE number < 65 AND name = "valmai" | What boat builder built the valmai with a number less than 65? | CREATE TABLE table_name_28 (
boat_builder VARCHAR,
number VARCHAR,
name VARCHAR
) |
SELECT us_viewers__millions_ FROM table_25246990_2 WHERE written_by = "Jed Spingarn" AND no_in_series = "7" | How many U.S. viewers in millions watched the number 7 episode in the series that was written by Jed Spingarn? | CREATE TABLE table_25246990_2 (us_viewers__millions_ VARCHAR, written_by VARCHAR, no_in_series VARCHAR) |
SELECT COUNT(_percentage_20_39_years) FROM table_29615165_5 WHERE quartier = "Pont-de-Vivaux" | how many 20-39% are in pont-de-vivaux? | CREATE TABLE table_29615165_5 (_percentage_20_39_years VARCHAR, quartier VARCHAR) |
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(EMPLOYEE_ID) | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday, and sort from low to high by the Y. | 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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)
) |
SELECT original_us_air_date FROM table_25246990_5 WHERE directed_by = "Julian Petrillo" | What was the original U.S. air date of the episode directed by Julian Petrillo? | CREATE TABLE table_25246990_5 (original_us_air_date VARCHAR, directed_by VARCHAR) |
SELECT _percentage_40_59_years FROM table_29615165_5 WHERE quartier = "Menpenti" | the quartier menpenti has how many 40-59 year olds? | CREATE TABLE table_29615165_5 (_percentage_40_59_years VARCHAR, quartier VARCHAR) |
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.short_title = "Stevens-Johnson-TEN syn" AND prescriptions.route = "ID" | count the number of patients on id route of drug administration who have been diagnosed with stevens-johnson syndrome-toxic epidermal necrolysis overlap syndrome. | 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 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
)
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 COUNT(original_us_air_date) FROM table_25246990_5 WHERE us_viewers__millions_ = "2.5" | How many different original U.S. air dates appear where the U.S. viewers were 2.5 million? | CREATE TABLE table_25246990_5 (original_us_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT MIN(no_in_series) FROM table_29585196_1 WHERE directed_by = "Winrich Kolbe" | What episode number in the series was directed by Winrich Kolbe? | CREATE TABLE table_29585196_1 (no_in_series INTEGER, directed_by VARCHAR) |
SELECT score FROM table_name_44 WHERE date = "november 15, 2011" | What is the score of the match on November 15, 2011? | CREATE TABLE table_name_44 (
score VARCHAR,
date VARCHAR
) |
SELECT us_viewers__millions_ FROM table_25246990_5 WHERE written_by = "Lazar Saric & Jed Spingarn" | How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn? | CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, written_by VARCHAR) |
SELECT position FROM table_29626583_1 WHERE affiliation = "University of Akron Michigan Bucks" | What is the position for the university of akron michigan bucks affiliation | CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR) |
SELECT MIN(chartevents.valuenum) 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 = 29666)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [systolic]' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m-%d', chartevents.charttime) = '08-04' | on 08/04/last year', what was minimum arterial bp [systolic] of patient 29666? | CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
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_items (
row_id number,
itemid number,
label text,
linksto 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value 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 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
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_labitems (
row_id number,
itemid number,
label 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
) |
SELECT us_viewers__millions_ FROM table_25246990_5 WHERE no_in_season = 4 | How many U.S. viewers were there for the number 4 episode in season? | CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR) |
SELECT position FROM table_29626583_1 WHERE affiliation = "University of North Carolina Carolina Dynamo" | What is the position for the university of north carolina carolina dynamo affiliation | CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR) |
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.long_title = "Opioid type dependence, unspecified" AND prescriptions.route = "IVPCA" | calculate the number of patients with unspecified opioid type dependence who received drug via ivpca route | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT MIN(rank) FROM table_2527063_3 | Name the least rank | CREATE TABLE table_2527063_3 (rank INTEGER) |
SELECT MAX(pick__number) FROM table_29626583_1 WHERE mls_team = "Chivas USA" | how many pick# does the chivas usa mls team have | CREATE TABLE table_29626583_1 (pick__number INTEGER, mls_team VARCHAR) |
SELECT "Date" FROM table_37462 WHERE "Opponent" = 'dallas cowboys' | What date has dallas cowboys as the opponent? | CREATE TABLE table_37462 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
) |
SELECT growth_rate FROM table_2527063_3 WHERE district = "Hooghly" | Name the growth rate for hooghly | CREATE TABLE table_2527063_3 (growth_rate VARCHAR, district VARCHAR) |
SELECT COUNT(pick__number) FROM table_29626583_1 WHERE affiliation = "University of Akron Reading United Michigan Bucks" | how many pick# does the university of akron reading united michigan bucks affiliation have | CREATE TABLE table_29626583_1 (pick__number VARCHAR, affiliation VARCHAR) |
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'lactated ringers iv solp' | what is the ingesting method of lactated ringers iv solp? | 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
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE 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 cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) |
SELECT COUNT(rank) FROM table_2527063_3 WHERE district = "East Midnapore" | Name the total number of rank for east midnapore | CREATE TABLE table_2527063_3 (rank VARCHAR, district VARCHAR) |
SELECT position FROM table_29626583_1 WHERE affiliation = "United States U-20" | what is the position for the united states u-20 affiliation | CREATE TABLE table_29626583_1 (position VARCHAR, affiliation VARCHAR) |
SELECT hydroxymatairesinol FROM table_1831262_2 WHERE sesamin = "62724" | what is the number of hydroxymatairesinol where sesamin is 62724? | CREATE TABLE table_1831262_2 (
hydroxymatairesinol VARCHAR,
sesamin VARCHAR
) |
SELECT COUNT(rank) FROM table_2527063_3 WHERE growth_rate = "14.47" | Name the total number of rank for growth raate for 14.47 | CREATE TABLE table_2527063_3 (rank VARCHAR, growth_rate VARCHAR) |
SELECT title FROM table_29747178_3 WHERE production_code = "FL209" | What is the title of the episode with a production code of FL209? | CREATE TABLE table_29747178_3 (title VARCHAR, production_code VARCHAR) |
SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25493 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bilirubin, total') ORDER BY labevents.charttime LIMIT 1 | what was the first value of a bilirubin, total lab test of patient 25493 in the first 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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 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 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom 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_items (
row_id number,
itemid number,
label text,
linksto text
)
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_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 transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
) |
SELECT champion FROM table_2527617_1 WHERE season = 1994 | Who is the champion of the 1994 season? | CREATE TABLE table_2527617_1 (champion VARCHAR, season VARCHAR) |
SELECT directed_by FROM table_29747178_3 WHERE us_viewers__million_ = "2.67" | Who directed the episode that was watched by 2.67 million U.S. viewers? | CREATE TABLE table_29747178_3 (directed_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT "Quarterfinal" FROM table_51295 WHERE "Rank" > '9' | Which Quarterfinal has a Rank larger than 9? | CREATE TABLE table_51295 (
"Event" text,
"2nd round" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text,
"Rank" real
) |
SELECT best_player FROM table_2527617_1 WHERE season = 1998 | Who is the best player in the 1998 season? | CREATE TABLE table_2527617_1 (best_player VARCHAR, season VARCHAR) |
SELECT MIN(int_caps) FROM table_29743928_5 | What is the lowest value for int. caps? | CREATE TABLE table_29743928_5 (int_caps INTEGER) |
SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-91255') AND STRFTIME('%y', patient.unitadmittime) >= '2103' | how many visits did patient 027-91255 undergo at the icu since 2103? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
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 text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) |
SELECT MAX(index) FROM table_25271777_1 WHERE forcible_rape = 1084 | What was the largest index the year/s forcible rapes numbered 1084? | CREATE TABLE table_25271777_1 (index INTEGER, forcible_rape VARCHAR) |
SELECT COUNT(train_number) FROM table_29770377_1 WHERE route_via = "Trivandrum, Ernakulam, NewDelhi" | How many trains are there for the route via trivandrum, ernakulam, newdelhi? | CREATE TABLE table_29770377_1 (train_number VARCHAR, route_via VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Disrup-external op wound" AND lab."CATEGORY" = "Hematology" | how many patients whose diagnoses short title is disrup-external op wound and lab test category is hematology? | 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,
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 (
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 COUNT(violent) FROM table_25271777_1 WHERE forcible_rape = 1156 | How many violent catagories are listed for the year forcible rapes were 1156? | CREATE TABLE table_25271777_1 (violent VARCHAR, forcible_rape VARCHAR) |
SELECT route_via FROM table_29770377_1 WHERE destination = "Guruvayur" | What is the route for the destination of guruvayur? | CREATE TABLE table_29770377_1 (route_via VARCHAR, destination VARCHAR) |
SELECT home_captain FROM table_name_41 WHERE venue = "edgbaston" | Who is the home captain that played at Edgbaston? | CREATE TABLE table_name_41 (
home_captain VARCHAR,
venue VARCHAR
) |
SELECT MAX(aggravated_assault) FROM table_25271777_1 WHERE robbery = 3811 | What was the largest number of aggravated assaults when there were 3811 robberies? | CREATE TABLE table_25271777_1 (aggravated_assault INTEGER, robbery VARCHAR) |
SELECT COUNT(route_via) FROM table_29770377_1 WHERE train_name = "Ernad Express" | How many route/via's are there for the ernad express? | CREATE TABLE table_29770377_1 (route_via VARCHAR, train_name VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.dob_year < "2076" | how many female patients are born before 2076? | 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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) |
SELECT murder FROM table_25271777_1 WHERE forcible_rape = 166 | What was the number of murders the year forcible rapes were at 166? | CREATE TABLE table_25271777_1 (murder VARCHAR, forcible_rape VARCHAR) |
SELECT destination FROM table_29770377_1 WHERE route_via = "Kulitthurai,Neyyattinkara" | What is the destination of the route kulitthurai,neyyattinkara? | CREATE TABLE table_29770377_1 (destination VARCHAR, route_via VARCHAR) |
SELECT STU_FNAME, SUM(STU_GPA) FROM STUDENT WHERE STU_GPA < (SELECT AVG(STU_GPA) FROM STUDENT) GROUP BY STU_FNAME | Give me a histogram for what is the first name and GPA of every student that has a GPA lower than average? | CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4)
) |
SELECT violent FROM table_25271777_1 WHERE index = 191037 | How many violent crimes occurred the year that the index was 191037? | CREATE TABLE table_25271777_1 (violent VARCHAR, index VARCHAR) |
SELECT train_number FROM table_29770377_1 WHERE train_name = "Island Express" AND destination = "Kanniyakumari" | What is the train number for the train name island express with a destination of kanniyakumari? | CREATE TABLE table_29770377_1 (train_number VARCHAR, train_name VARCHAR, destination VARCHAR) |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'cardiac surgery consultation') AS t1 JOIN (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'normal saline administration') AS t2 WHERE t1.treatmenttime < t2.treatmenttime AND DATETIME(t1.treatmenttime, 'start of month') = DATETIME(t2.treatmenttime, 'start of month') | count the number of patients who received normal saline administration procedure in the same month after having received cardiac surgery consultation procedure. | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime 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 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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT written_by FROM table_25277363_2 WHERE no_in_series = 149 | Who wrote episode number 149 in the series? | CREATE TABLE table_25277363_2 (written_by VARCHAR, no_in_series VARCHAR) |
SELECT COUNT(reservation_for_sc_st) FROM table_29785324_4 WHERE constituency_no = 191 | How many reservations for sc/st are there in constituency 191? | CREATE TABLE table_29785324_4 (reservation_for_sc_st VARCHAR, constituency_no VARCHAR) |
SELECT "Date" FROM table_31445 WHERE "Streak" = 'W 2' | in which date the strea was w 2 | CREATE TABLE table_31445 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Series" text,
"Streak" text
) |
SELECT title FROM table_25276528_2 WHERE directed_by = "Bill Foster" | What title did Bill Foster direct ? | CREATE TABLE table_25276528_2 (title VARCHAR, directed_by VARCHAR) |
SELECT location FROM table_29788320_2 WHERE first_year = 2001 | Which locations had their first year in 2001? | CREATE TABLE table_29788320_2 (location VARCHAR, first_year VARCHAR) |
SELECT "Event" FROM table_49684 WHERE "Year" = '2002' AND "Competition" = 'european indoor championships' | What is the Event, when Year is 2002, and when Competition is European Indoor Championships? | CREATE TABLE table_49684 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) |
SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin" | Kim Weiskopf and Jeff Franklin wrote all the no. in series. | CREATE TABLE table_25276528_2 (no_in_series VARCHAR, written_by VARCHAR) |
SELECT COUNT(number_of_editions) FROM table_29788320_2 WHERE concept = "Club Q-BASE" | How many editions did Club Q-base concept have ? | CREATE TABLE table_29788320_2 (number_of_editions VARCHAR, concept VARCHAR) |
SELECT "nation" FROM table_204_703 WHERE "total" > (SELECT "total" FROM table_204_703 WHERE "nation" = 'france') AND "total" < (SELECT "total" FROM table_204_703 WHERE "nation" = 'germany') | which country won more total medals than tue french , but less than the germans in the 1994 winter olympic biathlon ? | CREATE TABLE table_204_703 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT co_stars FROM table_2528382_2 WHERE music_director = "Kalyanji-Anandji" AND year = "1963" | Which co-stars did Kalyanji-anandji direct in 1963? | CREATE TABLE table_2528382_2 (co_stars VARCHAR, music_director VARCHAR, year VARCHAR) |
SELECT MIN(runs) FROM table_2985664_8 WHERE average = "42.36" | What is the lowest value for runs when the average is 42.36? | CREATE TABLE table_2985664_8 (runs INTEGER, average VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.admityear < "2151" | how many patients admitted before 2151 are divorced? | 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,
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 (
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 Co - singers FROM table_2528382_2 WHERE movie_album = "Pyaasa" | Which co-singers appear in the movie Pyaasa? | CREATE TABLE table_2528382_2 (Co VARCHAR, singers VARCHAR, movie_album VARCHAR) |
SELECT COUNT(50) FROM table_2985664_8 WHERE strike_rate = "92.81" | How many entries for 50 occur when strike rate is 92.81? | CREATE TABLE table_2985664_8 (strike_rate VARCHAR) |
SELECT "Result" FROM table_45619 WHERE "Week #" = 'top 11' | What was the result after the week # top 11? | CREATE TABLE table_45619 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Result" text
) |
SELECT additional_info FROM table_2528382_2 WHERE song = "Mera Yaar Bana Hai Dulha" | What is the additional information in the song mera yaar bana hai dulha | CREATE TABLE table_2528382_2 (additional_info VARCHAR, song VARCHAR) |
SELECT MIN(innings) FROM table_2985664_8 | What is the lowest value for innings? | CREATE TABLE table_2985664_8 (innings INTEGER) |
SELECT nationality FROM table_1213511_2 WHERE nhl_team = "Buffalo Sabres" | What is the nationality of the player from Buffalo Sabres? | CREATE TABLE table_1213511_2 (
nationality VARCHAR,
nhl_team VARCHAR
) |
SELECT year FROM table_2528382_2 WHERE co_stars = "Mala Sinha and Amitabh Bachchan" | In which years are co-stars mala sinha and amitabh bachchan? | CREATE TABLE table_2528382_2 (year VARCHAR, co_stars VARCHAR) |
SELECT strike_rate FROM table_2985664_8 WHERE catches_stumpings = "13/1" | What is every strike rate when cathces/stumpings is 13/1? | CREATE TABLE table_2985664_8 (strike_rate VARCHAR, catches_stumpings VARCHAR) |
SELECT "Project" FROM table_71730 WHERE "Length overall in meters (without bowsprit)" = '25' AND "Name" = 'levante' | Name the project with length overall being 25 and name of levante | CREATE TABLE table_71730 (
"Hull No." real,
"Year" real,
"Project" text,
"Length overall in meters (without bowsprit)" real,
"Name" text,
"Destination" text
) |
SELECT song FROM table_2528382_1 WHERE additional_info = "Drunkard Groom" | Which song has Drunkard Groom listed as additional information? | CREATE TABLE table_2528382_1 (song VARCHAR, additional_info VARCHAR) |
SELECT high_score FROM table_2985664_8 WHERE strike_rate = "84.88" | What is every high score for a strike rate of 84.88? | CREATE TABLE table_2985664_8 (high_score VARCHAR, strike_rate VARCHAR) |
SELECT "Team" FROM table_79282 WHERE "Start" = '8' AND "Year" < '2008' | Which team had a start of 8 in years under 2008? | CREATE TABLE table_79282 (
"Year" real,
"Team" text,
"Manufacturer" text,
"Start" real,
"Finish" real
) |
SELECT lyricist FROM table_2528382_1 WHERE music_director = "Madan Mohan Kohli" | Who was the lyricist for the song with music directed by madan mohan kohli? | CREATE TABLE table_2528382_1 (lyricist VARCHAR, music_director VARCHAR) |
SELECT COUNT(100) FROM table_2985664_8 WHERE average = "15.78" | How many entries for 100 occur when the average is 15.78? | CREATE TABLE table_2985664_8 (average VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admityear < "2146" | find the number of patients admitted before the year 2146 whose admission type is elective. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.