answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT additional_info FROM table_2528382_1 WHERE music_director = "Datta Naik" | Which song directed by datta naik had the ending stranza written by Johnny Walker? | CREATE TABLE table_2528382_1 (additional_info VARCHAR, music_director VARCHAR) |
SELECT chromosomal_location FROM table_29871617_1 WHERE name = "IL-1β" | What is the chromosomal location of il-1β? | CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR) |
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-60126')) AND treatment.treatmentname = 'administration of electrolytes' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-5 year') ORDER BY treatment.treatmenttime LIMIT 1 | when was the first time that since 5 years ago patient 030-60126 received administration of electrolytes procedure? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime 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 medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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
) |
SELECT movie_album FROM table_2528382_1 WHERE song = "Dil De De Nahin Nahin Dil Le Le" | In which album can Dil De De Nahin Nahin Dil Le Le be found? | CREATE TABLE table_2528382_1 (movie_album VARCHAR, song VARCHAR) |
SELECT coreceptor FROM table_29871617_1 WHERE chromosomal_location = "11q22.2-q22.3" | What are the coreceptors of the chromosomes in that location 11q22.2-q22.3? | CREATE TABLE table_29871617_1 (coreceptor VARCHAR, chromosomal_location VARCHAR) |
SELECT time FROM table_name_61 WHERE team = "kawasaki zx10 1000cc" | What time did team kawasaki zx10 1000cc have? | CREATE TABLE table_name_61 (
time VARCHAR,
team VARCHAR
) |
SELECT 2002 AS _2005 FROM table_25282151_1 WHERE supply_sector___percentage_of_gdp_in_current_prices_ = "Construction" | What was the GDP for 2002-2005 for the construction center? | CREATE TABLE table_25282151_1 (supply_sector___percentage_of_gdp_in_current_prices_ VARCHAR) |
SELECT COUNT(chromosomal_location) FROM table_29871617_1 WHERE family_name = "IL-1F8" | How many different chromosomal locations are there in the family il-1f8? | CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, family_name VARCHAR) |
SELECT COUNT(partnering) FROM table_11636213_7 WHERE result = "6–3, 6–2" | How many matches had the result of 6 3, 6 2? | CREATE TABLE table_11636213_7 (
partnering VARCHAR,
result VARCHAR
) |
SELECT november_3 FROM table_25284864_3 WHERE june_10_11 = "147" | What is the November 3 result when June 10-11 is 147? | CREATE TABLE table_25284864_3 (november_3 VARCHAR, june_10_11 VARCHAR) |
SELECT chromosomal_location FROM table_29871617_1 WHERE name = "IL-36β" | Where is il-36β located? | CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.admityear < "2182" | provide the number of patients whose discharge location is short term hospital and who were admitted to the hospital before year 2182. | 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 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
) |
SELECT november_3 FROM table_25284864_3 WHERE january_15_16 = "141" | What is the November 3 result when the result for January 15-16 is 141? | CREATE TABLE table_25284864_3 (november_3 VARCHAR, january_15_16 VARCHAR) |
SELECT name FROM table_29871617_1 WHERE family_name = "IL-1F2" | What are the names listed in the family il-1f2? | CREATE TABLE table_29871617_1 (name VARCHAR, family_name VARCHAR) |
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '003-42706' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '003-42706' AND patient.hospitaldischargetime IS NULL)) AND treatment.treatmentname = 'thrombolytics' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-5 year') | has patient 003-42706 had an thrombolytics procedure performed in other hospitals since 5 years ago? | 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 cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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 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 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,
culturetakentime time
) |
SELECT june_10_11 FROM table_25284864_3 WHERE march_27_29 = "March 28, 1968" | What June 10-11 is is that corresponds to March 28, 1968? | CREATE TABLE table_25284864_3 (june_10_11 VARCHAR, march_27_29 VARCHAR) |
SELECT name FROM table_29871617_1 WHERE property = "Unknown" | Which chromosomes have an unknown property? | CREATE TABLE table_29871617_1 (name VARCHAR, property VARCHAR) |
SELECT ground FROM table_name_5 WHERE away = "toronto rebels" | On what grounds did the away team of the Toronto Rebels play? | CREATE TABLE table_name_5 (
ground VARCHAR,
away VARCHAR
) |
SELECT january_15_16 FROM table_25284864_3 WHERE november_3 = "november_3, 2013" | What January 15-16 is is that corresponds to November 3, 2013? | CREATE TABLE table_25284864_3 (january_15_16 VARCHAR, november_3 VARCHAR) |
SELECT MIN(mister_international) FROM table_30007505_1 | Name the least mister international | CREATE TABLE table_30007505_1 (mister_international INTEGER) |
SELECT district FROM table_1341453_40 WHERE incumbent = "Tim Holden" | In what district was Tim Holden the incumbent? | CREATE TABLE table_1341453_40 (
district VARCHAR,
incumbent VARCHAR
) |
SELECT november_3 FROM table_25286976_2 WHERE june_10_11 = "127" | When 127 is on June 10th to 11th what is November 3rd? | CREATE TABLE table_25286976_2 (november_3 VARCHAR, june_10_11 VARCHAR) |
SELECT MAX(total) FROM table_30007505_1 WHERE country_territory = "South Korea" | Name the most total for south korea | CREATE TABLE table_30007505_1 (total INTEGER, country_territory VARCHAR) |
SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) DESC | For those employees who did not have any job in the past, draw a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, and order in descending by the y axis please. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 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)
) |
SELECT june_10_11 FROM table_25286976_2 WHERE march_27_29 = "129" | When 129 is on March 27th to 29th what is June 10th to 11th? | CREATE TABLE table_25286976_2 (june_10_11 VARCHAR, march_27_29 VARCHAR) |
SELECT semifinalists FROM table_30007505_1 WHERE country_territory = "Singapore" | Name the semifinalists for singapore | CREATE TABLE table_30007505_1 (semifinalists VARCHAR, country_territory VARCHAR) |
SELECT opponent FROM table_name_88 WHERE date = "june 13" | Who's the opponent for June 13? | CREATE TABLE table_name_88 (
opponent VARCHAR,
date VARCHAR
) |
SELECT august_21_22 FROM table_25286976_2 WHERE march_27_29 = "139" | When 139 is on March 27th to 29th what is August 21st to 22nd? | CREATE TABLE table_25286976_2 (august_21_22 VARCHAR, march_27_29 VARCHAR) |
SELECT COUNT(semifinalists) FROM table_30007505_1 WHERE rank = 19 | Name the number of semifinalists for 19 rank | CREATE TABLE table_30007505_1 (semifinalists VARCHAR, rank VARCHAR) |
SELECT time_retired FROM table_name_23 WHERE grid = 12 | What is Time/Retired with a Grid of 12? | CREATE TABLE table_name_23 (
time_retired VARCHAR,
grid VARCHAR
) |
SELECT november_3 FROM table_25287007_2 WHERE august_21_22 = "August 21, 2017" | During November 3 where august 21-22 is august 21, 2017? | CREATE TABLE table_25287007_2 (november_3 VARCHAR, august_21_22 VARCHAR) |
SELECT researched_at FROM table_30057479_1 WHERE geometry = "D: ~50nm, L: ~600nm" | Where was d: ~50nm, l: ~600nm geometry researched? | CREATE TABLE table_30057479_1 (researched_at VARCHAR, geometry VARCHAR) |
SELECT COUNT(position) FROM table_name_68 WHERE played > 24 | What was the position has a played entry of more than 24? | CREATE TABLE table_name_68 (
position VARCHAR,
played INTEGER
) |
SELECT june_10_11 FROM table_25287007_2 WHERE november_3 = "153" | How many solar eclipse on June 10-11, while November 3 is 153? | CREATE TABLE table_25287007_2 (june_10_11 VARCHAR, november_3 VARCHAR) |
SELECT COUNT(material) FROM table_30057479_1 WHERE output_power = "~0.1 pW per cycle (calculated)" | How many materials are there for output power of ~0.1 pw per cycle (calculated)? | CREATE TABLE table_30057479_1 (material VARCHAR, output_power VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "8" AND prescriptions.drug = "Magnesium Oxide" | how many patients have stayed in the hospital for more than 8 days with a drug name magnesium oxide? | 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
)
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
) |
SELECT COUNT(august_21_22) FROM table_25287007_2 WHERE june_10_11 = "June 11, 1983" | How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983? | CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, june_10_11 VARCHAR) |
SELECT COUNT(synthesis) FROM table_30057479_1 WHERE output_power = "5~16.2 pW per cycle (calculated)" | How many synthesis are there for 5~16.2 pw per cycle (calculated) output power? | CREATE TABLE table_30057479_1 (synthesis VARCHAR, output_power VARCHAR) |
SELECT "Events" FROM table_5082 WHERE "Rank" = '1' | Which events have a Rank of 1? | CREATE TABLE table_5082 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) |
SELECT june_10_11 FROM table_25287007_2 WHERE march_27_29 = "149" | How many solar eclipse during June 10-11 and march 27-29 is 149? | CREATE TABLE table_25287007_2 (june_10_11 VARCHAR, march_27_29 VARCHAR) |
SELECT researched_at FROM table_30057479_1 WHERE geometry = "D: ~100nm, L: 1 μm" | Where was d: ~100nm, l: 1 μm geometry researched? | CREATE TABLE table_30057479_1 (researched_at VARCHAR, geometry VARCHAR) |
SELECT "Crowd" FROM table_78053 WHERE "Away team score" = '15.8 (98)' | How many spectators were at the game when the away team scored 15.8 (98)? | CREATE TABLE table_78053 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT august_21_22 FROM table_25287007_2 WHERE january_15_16 = "141" | How many solar eclipse during august 21-22 and January 15-16 is 141? | CREATE TABLE table_25287007_2 (august_21_22 VARCHAR, january_15_16 VARCHAR) |
SELECT researched_at FROM table_30057479_1 WHERE geometry = "D: 25~70nm, L: 10~20 μm" | Where was d: 25~70nm, l: 10~20 μm geometry researched? | CREATE TABLE table_30057479_1 (researched_at VARCHAR, geometry VARCHAR) |
SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID ORDER BY T1.Project_Details | Show me a bar chart for what is the project id and detail for the project with at least two documents?, sort in ascending by the X-axis. | CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
) |
SELECT january_15_16 FROM table_25287007_2 WHERE august_21_22 = "August 21, 2017" | How many solar eclipse during January 15-16 and august 21-22 on august 21, 2017? | CREATE TABLE table_25287007_2 (january_15_16 VARCHAR, august_21_22 VARCHAR) |
SELECT provider FROM table_3005999_1 WHERE destination = "Liverpool" | Who are all providers with destination of Liverpool? | CREATE TABLE table_3005999_1 (provider VARCHAR, destination VARCHAR) |
SELECT "L2 cache" FROM table_51065 WHERE "Model number" = 'atom z625' | What is L2 Cache, when Model Number is Atom Z625? | CREATE TABLE table_51065 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"GPU frequency" text,
"L2 cache" text,
"I/O bus" text,
"Memory" text,
"Socket" text,
"Release date" text,
"Part number(s)" text
) |
SELECT COUNT(fastest_lap) FROM table_25322130_3 WHERE round = "14" | Name the fastest lap for round 14 | CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, round VARCHAR) |
SELECT intermediate_stops FROM table_3005999_1 WHERE destination = "Manchester" | What is every entry for intermediate stops for the destination of Manchester? | CREATE TABLE table_3005999_1 (intermediate_stops VARCHAR, destination VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "LONG TERM CARE HOSPITAL" AND demographic.dob_year < "2058" | how many patients discharged to long term care hospital were born before 2058? | 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 winning_driver FROM table_25322130_3 WHERE date = "20 April" | Name the winning driver for 20 april | CREATE TABLE table_25322130_3 (winning_driver VARCHAR, date VARCHAR) |
SELECT COUNT(route_number) FROM table_3005999_1 WHERE origin = "Birmingham" AND destination = "Bristol" | How many route numbers occur for the origin of Birmingham and destination of Bristol? | CREATE TABLE table_3005999_1 (route_number VARCHAR, origin VARCHAR, destination VARCHAR) |
SELECT league FROM table_2380212_1 WHERE year = 2007 | What League was played in 2007? | CREATE TABLE table_2380212_1 (
league VARCHAR,
year VARCHAR
) |
SELECT circuit FROM table_25322130_3 WHERE date = "13 July" | Name the circuit for 13 july | CREATE TABLE table_25322130_3 (circuit VARCHAR, date VARCHAR) |
SELECT origin FROM table_3005999_1 WHERE destination = "Manchester" | What is every origin for the destination of Manchester? | CREATE TABLE table_3005999_1 (origin VARCHAR, destination VARCHAR) |
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'regular insulin')) AND DATETIME(cost.chargetime) <= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY cost.patienthealthsystemstayid) AS t1 | what is the minimum cost of the hospital that regular insulin involves until 4 years ago? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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
)
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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) |
SELECT fastest_lap FROM table_25322130_3 WHERE round = "3" | Name the fastest lap for round 3 | CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, round VARCHAR) |
SELECT COUNT(provider) FROM table_3005999_1 WHERE destination = "Blackpool" | How many providers have a destination of Blackpool? | CREATE TABLE table_3005999_1 (provider VARCHAR, destination VARCHAR) |
SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA" | what is average days of hospital stay of patients whose primary disease is posterior communicating aneurysm/sda? | 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 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
) |
SELECT fastest_lap FROM table_25322130_3 WHERE winning_team = "Piquet Sports" AND circuit = "Silverstone" | Name the fastest lap for piquet sports and silverstone | CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR) |
SELECT MAX(starts) FROM table_3005915_3 | What is the maximum number of starts? | CREATE TABLE table_3005915_3 (starts INTEGER) |
SELECT county FROM table_20453681_1 WHERE obama_percentage = "37.1%" | Where did Obama get 37.1%? | CREATE TABLE table_20453681_1 (
county VARCHAR,
obama_percentage VARCHAR
) |
SELECT COUNT(f_laps) FROM table_25318033_1 WHERE position = "10th" AND races < 9.0 | How many laps where the position is 10th and the races is smaller than 9.0? | CREATE TABLE table_25318033_1 (f_laps VARCHAR, position VARCHAR, races VARCHAR) |
SELECT MAX(poles) FROM table_3005915_3 | What is the maximum number of poles? | CREATE TABLE table_3005915_3 (poles INTEGER) |
SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid ORDER BY yearid DESC | Count the number of players who enter hall of fame for each year Plot them as line chart, show yearid in descending order please. | CREATE TABLE postseason (
year INTEGER,
round TEXT,
team_id_winner TEXT,
league_id_winner TEXT,
team_id_loser TEXT,
league_id_loser TEXT,
wins INTEGER,
losses INTEGER,
ties INTEGER
)
CREATE TABLE player_award (
player_id TEXT,
award_id TEXT,
year INTEGER,
league_id TEXT,
tie TEXT,
notes TEXT
)
CREATE TABLE salary (
year INTEGER,
team_id TEXT,
league_id TEXT,
player_id TEXT,
salary INTEGER
)
CREATE TABLE appearances (
year INTEGER,
team_id TEXT,
league_id TEXT,
player_id TEXT,
g_all NUMERIC,
gs NUMERIC,
g_batting INTEGER,
g_defense NUMERIC,
g_p INTEGER,
g_c INTEGER,
g_1b INTEGER,
g_2b INTEGER,
g_3b INTEGER,
g_ss INTEGER,
g_lf INTEGER,
g_cf INTEGER,
g_rf INTEGER,
g_of INTEGER,
g_dh NUMERIC,
g_ph NUMERIC,
g_pr NUMERIC
)
CREATE TABLE fielding (
player_id TEXT,
year INTEGER,
stint INTEGER,
team_id TEXT,
league_id TEXT,
pos TEXT,
g INTEGER,
gs NUMERIC,
inn_outs NUMERIC,
po NUMERIC,
a NUMERIC,
e NUMERIC,
dp NUMERIC,
pb NUMERIC,
wp NUMERIC,
sb NUMERIC,
cs NUMERIC,
zr NUMERIC
)
CREATE TABLE college (
college_id TEXT,
name_full TEXT,
city TEXT,
state TEXT,
country TEXT
)
CREATE TABLE batting (
player_id TEXT,
year INTEGER,
stint INTEGER,
team_id TEXT,
league_id TEXT,
g INTEGER,
ab NUMERIC,
r NUMERIC,
h NUMERIC,
double NUMERIC,
triple NUMERIC,
hr NUMERIC,
rbi NUMERIC,
sb NUMERIC,
cs NUMERIC,
bb NUMERIC,
so NUMERIC,
ibb NUMERIC,
hbp NUMERIC,
sh NUMERIC,
sf NUMERIC,
g_idp NUMERIC
)
CREATE TABLE hall_of_fame (
player_id TEXT,
yearid INTEGER,
votedby TEXT,
ballots NUMERIC,
needed NUMERIC,
votes NUMERIC,
inducted TEXT,
category TEXT,
needed_note TEXT
)
CREATE TABLE player_award_vote (
award_id TEXT,
year INTEGER,
league_id TEXT,
player_id TEXT,
points_won NUMERIC,
points_max INTEGER,
votes_first NUMERIC
)
CREATE TABLE team (
year INTEGER,
league_id TEXT,
team_id TEXT,
franchise_id TEXT,
div_id TEXT,
rank INTEGER,
g INTEGER,
ghome NUMERIC,
w INTEGER,
l INTEGER,
div_win TEXT,
wc_win TEXT,
lg_win TEXT,
ws_win TEXT,
r INTEGER,
ab INTEGER,
h INTEGER,
double INTEGER,
triple INTEGER,
hr INTEGER,
bb INTEGER,
so NUMERIC,
sb NUMERIC,
cs NUMERIC,
hbp NUMERIC,
sf NUMERIC,
ra INTEGER,
er INTEGER,
era NUMERIC,
cg INTEGER,
sho INTEGER,
sv INTEGER,
ipouts INTEGER,
ha INTEGER,
hra INTEGER,
bba INTEGER,
soa INTEGER,
e INTEGER,
dp NUMERIC,
fp NUMERIC,
name TEXT,
park TEXT,
attendance NUMERIC,
bpf INTEGER,
ppf INTEGER,
team_id_br TEXT,
team_id_lahman45 TEXT,
team_id_retro TEXT
)
CREATE TABLE player_college (
player_id TEXT,
college_id TEXT,
year INTEGER
)
CREATE TABLE manager (
player_id TEXT,
year INTEGER,
team_id TEXT,
league_id TEXT,
inseason INTEGER,
g INTEGER,
w INTEGER,
l INTEGER,
rank NUMERIC,
plyr_mgr TEXT
)
CREATE TABLE fielding_postseason (
player_id TEXT,
year INTEGER,
team_id TEXT,
league_id TEXT,
round TEXT,
pos TEXT,
g INTEGER,
gs NUMERIC,
inn_outs NUMERIC,
po INTEGER,
a INTEGER,
e INTEGER,
dp INTEGER,
tp INTEGER,
pb NUMERIC,
sb NUMERIC,
cs NUMERIC
)
CREATE TABLE manager_award_vote (
award_id TEXT,
year INTEGER,
league_id TEXT,
player_id TEXT,
points_won INTEGER,
points_max INTEGER,
votes_first INTEGER
)
CREATE TABLE team_half (
year INTEGER,
league_id TEXT,
team_id TEXT,
half INTEGER,
div_id TEXT,
div_win TEXT,
rank INTEGER,
g INTEGER,
w INTEGER,
l INTEGER
)
CREATE TABLE park (
park_id TEXT,
park_name TEXT,
park_alias TEXT,
city TEXT,
state TEXT,
country TEXT
)
CREATE TABLE manager_award (
player_id TEXT,
award_id TEXT,
year INTEGER,
league_id TEXT,
tie TEXT,
notes NUMERIC
)
CREATE TABLE home_game (
year INTEGER,
league_id TEXT,
team_id TEXT,
park_id TEXT,
span_first TEXT,
span_last TEXT,
games INTEGER,
openings INTEGER,
attendance INTEGER
)
CREATE TABLE pitching (
player_id TEXT,
year INTEGER,
stint INTEGER,
team_id TEXT,
league_id TEXT,
w INTEGER,
l INTEGER,
g INTEGER,
gs INTEGER,
cg INTEGER,
sho INTEGER,
sv INTEGER,
ipouts NUMERIC,
h INTEGER,
er INTEGER,
hr INTEGER,
bb INTEGER,
so INTEGER,
baopp NUMERIC,
era NUMERIC,
ibb NUMERIC,
wp NUMERIC,
hbp NUMERIC,
bk INTEGER,
bfp NUMERIC,
gf NUMERIC,
r INTEGER,
sh NUMERIC,
sf NUMERIC,
g_idp NUMERIC
)
CREATE TABLE team_franchise (
franchise_id TEXT,
franchise_name TEXT,
active TEXT,
na_assoc TEXT
)
CREATE TABLE all_star (
player_id TEXT,
year INTEGER,
game_num INTEGER,
game_id TEXT,
team_id TEXT,
league_id TEXT,
gp NUMERIC,
starting_pos NUMERIC
)
CREATE TABLE batting_postseason (
year INTEGER,
round TEXT,
player_id TEXT,
team_id TEXT,
league_id TEXT,
g INTEGER,
ab INTEGER,
r INTEGER,
h INTEGER,
double INTEGER,
triple INTEGER,
hr INTEGER,
rbi INTEGER,
sb INTEGER,
cs NUMERIC,
bb INTEGER,
so INTEGER,
ibb NUMERIC,
hbp NUMERIC,
sh NUMERIC,
sf NUMERIC,
g_idp NUMERIC
)
CREATE TABLE player (
player_id TEXT,
birth_year NUMERIC,
birth_month NUMERIC,
birth_day NUMERIC,
birth_country TEXT,
birth_state TEXT,
birth_city TEXT,
death_year NUMERIC,
death_month NUMERIC,
death_day NUMERIC,
death_country TEXT,
death_state TEXT,
death_city TEXT,
name_first TEXT,
name_last TEXT,
name_given TEXT,
weight NUMERIC,
height NUMERIC,
bats TEXT,
throws TEXT,
debut TEXT,
final_game TEXT,
retro_id TEXT,
bbref_id TEXT
)
CREATE TABLE fielding_outfield (
player_id TEXT,
year INTEGER,
stint INTEGER,
glf NUMERIC,
gcf NUMERIC,
grf NUMERIC
)
CREATE TABLE manager_half (
player_id TEXT,
year INTEGER,
team_id TEXT,
league_id TEXT,
inseason INTEGER,
half INTEGER,
g INTEGER,
w INTEGER,
l INTEGER,
rank INTEGER
)
CREATE TABLE pitching_postseason (
player_id TEXT,
year INTEGER,
round TEXT,
team_id TEXT,
league_id TEXT,
w INTEGER,
l INTEGER,
g INTEGER,
gs INTEGER,
cg INTEGER,
sho INTEGER,
sv INTEGER,
ipouts INTEGER,
h INTEGER,
er INTEGER,
hr INTEGER,
bb INTEGER,
so INTEGER,
baopp TEXT,
era NUMERIC,
ibb NUMERIC,
wp NUMERIC,
hbp NUMERIC,
bk NUMERIC,
bfp NUMERIC,
gf INTEGER,
r INTEGER,
sh NUMERIC,
sf NUMERIC,
g_idp NUMERIC
) |
SELECT MIN(races) FROM table_25318033_1 | What is the lowest amount of races? | CREATE TABLE table_25318033_1 (races INTEGER) |
SELECT MIN(poles) FROM table_3005915_3 | What is the minimum number of poles? | CREATE TABLE table_3005915_3 (poles INTEGER) |
SELECT "competition" FROM table_203_270 GROUP BY "competition" HAVING COUNT(*) = 1 | which four competitions are the only competitions that occurred once ? | CREATE TABLE table_203_270 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) |
SELECT races FROM table_25318033_1 WHERE points = "137" | Which races have 137 points? | CREATE TABLE table_25318033_1 (races VARCHAR, points VARCHAR) |
SELECT date FROM table_30073089_2 WHERE location = "S. Valentino Alla Muta , Italia" | Name the date for s. valentino alla muta , italia | CREATE TABLE table_30073089_2 (date VARCHAR, location VARCHAR) |
SELECT MIN("Rank") FROM table_72962 WHERE "Railway Station" = 'Gatwick Airport' | What is the lowest rank of Gatwick Airport? | CREATE TABLE table_72962 (
"Rank" real,
"Railway Station" text,
"Annual entry/exit (millions) 2011\u201312" text,
"Annual interchanges (millions) 2011\u201312" text,
"Total Passengers (millions) 2011\u201312" text,
"Location" text,
"Main Services" text,
"Number of Platforms" real
) |
SELECT team FROM table_25318033_1 WHERE points = "137" | What team has 137 points? | CREATE TABLE table_25318033_1 (team VARCHAR, points VARCHAR) |
SELECT date FROM table_30073089_2 WHERE season = 2011 AND position > 2.0 | Name the date for 2011 and position larger than 2.0 | CREATE TABLE table_30073089_2 (date VARCHAR, season VARCHAR, position VARCHAR) |
SELECT "miss northern ireland" FROM table_203_727 WHERE "notes" = 'later miss united kingdom 2005 and miss universe united kingdom 2005 2nd runner-up' | who was miss uk 2005 and miss universe 2005 2nd runner up ? | CREATE TABLE table_203_727 (
id number,
"year" number,
"miss northern ireland" text,
"hometown" text,
"placement at miss world" text,
"notes" text
) |
SELECT points FROM table_25318033_1 WHERE podiums = 0 AND position = "10th" | How many points were scored when the podiums is 0 and position is 10th? | CREATE TABLE table_25318033_1 (points VARCHAR, podiums VARCHAR, position VARCHAR) |
SELECT discipline FROM table_30073089_2 WHERE fis_points = 1561 | Name the discipline for 1561 fis points | CREATE TABLE table_30073089_2 (discipline VARCHAR, fis_points VARCHAR) |
SELECT "Score in Final" FROM table_24032 WHERE "Runner-up" = 'Tracy Austin' | What was the final score when tracy austin was runner up? | CREATE TABLE table_24032 (
"Series Year" real,
"Series-Ending Tournament" text,
"Location" text,
"Surface" text,
"Champion" text,
"Runner-up" text,
"Score in Final" text
) |
SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate_change___percentage_ = "+40.4" | What is the rate limit when the desired rate change (%) is +40.4? | CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, desired_rate_change___percentage_ VARCHAR) |
SELECT position FROM table_30073089_2 WHERE fis_points = 3495 | Name the position for fis points being 3495 | CREATE TABLE table_30073089_2 (position VARCHAR, fis_points VARCHAR) |
SELECT weight_at_birth FROM table_name_2 WHERE gender = "girl" AND nickname = "chidi" | How much did the girl, nicknamed Chidi, weigh at birth? | CREATE TABLE table_name_2 (
weight_at_birth VARCHAR,
gender VARCHAR,
nickname VARCHAR
) |
SELECT rate_limit__p_ FROM table_25316812_1 WHERE budget_plans__£m_ = "limit agreed" | What is the rate limit when budget plans (£m) is limit agreed? | CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, budget_plans__£m_ VARCHAR) |
SELECT MAX(WC) AS matches FROM table_30085411_1 WHERE matches = 79 | what is the number of the wc matches if the matches were 79 | CREATE TABLE table_30085411_1 (WC INTEGER, matches VARCHAR) |
SELECT AVG(area__km²_) FROM table_name_30 WHERE excised_from = "shire of cook" AND population < 463 AND name_of_community = "wujal wujal (bloomfield river)" | What is the average Area (km ) that shows Excised from shire of cook and a Population smaller than 463 for the community of wujal wujal (bloomfield river)? | CREATE TABLE table_name_30 (
area__km²_ INTEGER,
name_of_community VARCHAR,
excised_from VARCHAR,
population VARCHAR
) |
SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate__p_ = "162" | What is the rate limit when the desired rate (p) is 162? | CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, desired_rate__p_ VARCHAR) |
SELECT MIN(matches) FROM table_30085411_1 | what is the number of the least matches | CREATE TABLE table_30085411_1 (matches INTEGER) |
SELECT "Last air date" FROM table_35649 WHERE "Season" = '3' | When is the last episode air date for season 3? | CREATE TABLE table_35649 (
"Season" real,
"Episodes" real,
"First air date" text,
"Last air date" text,
"Timeslot" text,
"DVD Release" text
) |
SELECT rate_change___percentage_ FROM table_25316812_1 WHERE rate_limit__p_ = "82.86" | What is the rate change % when the rate limit is 82.86? | CREATE TABLE table_25316812_1 (rate_change___percentage_ VARCHAR, rate_limit__p_ VARCHAR) |
SELECT MAX(WC) AS matches FROM table_30085411_1 WHERE matches = 16 | if the matches are 16 what is the wc matches | CREATE TABLE table_30085411_1 (WC INTEGER, matches VARCHAR) |
SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND NOT COURSE_0.course_id IN (SELECT STUDENT_RECORDalias0.course_id FROM student_record AS STUDENT_RECORDalias0 WHERE STUDENT_RECORDalias0.student_id = 1) AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.department = 'PHYSED' AND COURSE_1.number = 265 | Are there courses I need to take before PHYSED 265 ? | CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
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 varchar
)
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_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE area (
course_id int,
area varchar
) |
SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = "50.33" | What is the desired rate when the rate limit (p) is 50.33? | CREATE TABLE table_25316812_1 (desired_rate__p_ VARCHAR, rate_limit__p_ VARCHAR) |
SELECT barony FROM table_30120555_1 WHERE area__acres__ = 24 | Which barony contains a townland with an area 24 acres? | CREATE TABLE table_30120555_1 (barony VARCHAR, area__acres__ VARCHAR) |
SELECT date FROM table_name_16 WHERE type = "hilly stage" | What was the date with a hilly stage? | CREATE TABLE table_name_16 (
date VARCHAR,
type VARCHAR
) |
SELECT authority FROM table_25316812_1 WHERE budget_limit__£m_ = "900" | What is the authority who set the budget limit (£m) at 900? | CREATE TABLE table_25316812_1 (authority VARCHAR, budget_limit__£m_ VARCHAR) |
SELECT COUNT(civil_parish) FROM table_30120555_1 WHERE townland = "Canrooska" | How many different civil parishes is Canrooska a part of? | CREATE TABLE table_30120555_1 (civil_parish VARCHAR, townland VARCHAR) |
SELECT SUM(bronze) FROM table_name_67 WHERE gold = 1 AND silver > 3 | What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has? | CREATE TABLE table_name_67 (
bronze INTEGER,
gold VARCHAR,
silver VARCHAR
) |
SELECT MAX(share) FROM table_25304789_1 | What was the highest share? | CREATE TABLE table_25304789_1 (share INTEGER) |
SELECT poor_law_union FROM table_30120555_1 WHERE townland = "Curradonohoe" | What poor law union is Curradonohoe a part of? | CREATE TABLE table_30120555_1 (poor_law_union VARCHAR, townland VARCHAR) |
SELECT T2.carrier FROM stock AS T1 JOIN device AS T2 ON T1.device_id = T2.device_id GROUP BY T1.device_id HAVING COUNT(*) > 1 | Show the carriers of devices in stock at more than one shop. | CREATE TABLE stock (
shop_id number,
device_id number,
quantity number
)
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
)
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
) |
SELECT final_score FROM table_25331766_3 WHERE attendance = 7523 | What was the final score of the game with 7523 in attendance? | CREATE TABLE table_25331766_3 (final_score VARCHAR, attendance VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.