instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE captain (
name VARCHAR,
age VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the youngest captain?
| SELECT name FROM captain ORDER BY age LIMIT 1 | sql_create_context |
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Ref_Transaction_Types ... | SELECT purchase_details, COUNT(purchase_details) FROM Purchases AS T1 JOIN Transactions AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 GROUP BY purchase_details | nvbench |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | SELECT SUM(MED_AMOUT) FROM t_kc24 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE MED_SER_ORG_NO = '9987120' AND MED_ORG_DEPT_NM = '小儿胃肠外科') AND CLINIC_SLT_DATE BETWEEN '2015-10-26' AND '2018-07-09' | css |
CREATE TABLE table_15021 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game that had a loss of Stieb (5-7)?
| SELECT "Opponent" FROM table_15021 WHERE "Loss" = 'stieb (5-7)' | wikisql |
CREATE TABLE table_6051 (
"Tone" text,
"Standard Thai" text,
"Phonemic" text,
"Phonetic" text,
"Example meaning in English" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the example in English for a tone of mid rising-falling?
| SELECT "Example meaning in English" FROM table_6051 WHERE "Tone" = 'mid rising-falling' | wikisql |
CREATE TABLE table_22993 (
"Pos" real,
"Member Association" text,
"Points (total 500)" real,
"Clubs" real,
"Group stage" real,
"Play-off" real,
"AFC Cup" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which group stage was there 0 play-offs ... | SELECT COUNT("Group stage") FROM table_22993 WHERE "Play-off" = '0' AND "Clubs" = '12' | wikisql |
CREATE TABLE table_48371 (
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Left" real,
"Current Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest enrollment am... | SELECT MIN("Enrollment") FROM table_48371 WHERE "Left" = '2012' AND "Current Conference" = 'mid-south' | wikisql |
CREATE TABLE repair_assignment (
technician_id int,
repair_ID int,
Machine_ID int
)
CREATE TABLE repair (
repair_ID int,
name text,
Launch_Date text,
Notes text
)
CREATE TABLE technician (
technician_id real,
Name text,
Team text,
Starting_Year real,
Age int
)
CREATE T... | SELECT Name, COUNT(Name) FROM technician WHERE Team <> "NYY" GROUP BY Name ORDER BY COUNT(Name) | nvbench |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT * FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
CREATE TABLE table_55290 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is the player moving to Hamburger SV from?
| SELECT "Country" FROM table_55290 WHERE "Moving to" = 'hamburger sv' | wikisql |
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,
... | 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 = "BMI less than 19,adult" AND prescriptions.drug_type = "ADDITIVE" | mimicsql_data |
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Student... | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" GROUP BY date_of_completion ORDER BY date_of_completion DESC | nvbench |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT JYSQJGMC, JYJGMC FROM jybgb WHERE BGDH = '06020436225' | css |
CREATE TABLE qtb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_NM = '吕问筠' AND qtb.IN_HOSP_DATE BETWEEN '2003-03-18' AND '2004-01-26' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.Q... | css |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '王飞燕' AND NOT mzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2020-10-11') | css |
CREATE TABLE table_name_63 (
circuit VARCHAR,
winning_driver VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What circuit was the race named international trophy raced at by the winning driver eliseo salazar?
| SELECT circuit FROM table_name_63 WHERE winning_driver = "eliseo salazar" AND name = "international trophy" | sql_create_context |
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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.short_title = "Endosc destr stomach les" | mimicsql_data |
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
-- Using valid SQLite, answer the following que... | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY T2.Name | nvbench |
CREATE TABLE table_72754 (
"Rd." real,
"Race" text,
"Pole position" text,
"Fastest lap" text,
"Most laps led" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the report fo... | SELECT "Report" FROM table_72754 WHERE "Pole position" = 'Will Power' AND "Fastest lap" = 'Will Power' | wikisql |
CREATE TABLE table_name_9 (
result VARCHAR,
episode VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What result did Janis Ian have in the episode of top 3?
| SELECT result FROM table_name_9 WHERE episode = "top 3" AND original_artist = "janis ian" | sql_create_context |
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,
... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '006-105495' AND patient.unitdischargetime IS NULL | eicu |
CREATE TABLE table_21003 (
"Province" text,
"Population" real,
"Region" text,
"Name of City" text,
"Districts" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the region where Iquitos is located?
| SELECT "Region" FROM table_21003 WHERE "Name of City" = 'Iquitos' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "3521" | mimicsql_data |
CREATE TABLE table_40237 (
"Administrative Panel" real,
"Agricultural Panel" real,
"Cultural and Educational Panel" real,
"Industrial and Commercial Panel" real,
"Labour Panel" real,
"National University of Ireland" real,
"University of Dublin" real,
"Nominated by the Taoiseach" real,
... | SELECT COUNT("Industrial and Commercial Panel") FROM table_40237 WHERE "Labour Panel" > '1' AND "Nominated by the Taoiseach" < '11' AND "Cultural and Educational Panel" < '0' | wikisql |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT * FROM Users WHERE Id = 76622 | sede |
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 restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturd... | 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 = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUSTON... | atis |
CREATE TABLE table_4987 (
"Circuit" text,
"Location / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The team Glenn Seton Racing has a circuit at the lakeside international raceway, what is the locatio... | SELECT "Location / State" FROM table_4987 WHERE "Team" = 'glenn seton racing' AND "Circuit" = 'lakeside international raceway' | wikisql |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE hz_info (
KH text,
KLX number... | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND mzjzjlb_jybgb.YLJGDM = jybgb.YLJ... | css |
CREATE TABLE table_name_64 (
school_name VARCHAR,
students VARCHAR,
grades VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School name has students smaller than 389, and grades of 10-12?
| SELECT school_name FROM table_name_64 WHERE students < 389 AND grades = "10-12" | sql_create_context |
CREATE TABLE table_9259 (
"City" text,
"Round 1" real,
"Round 2" text,
"Round 3" text,
"Round 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Round 4 for larger than 19 Round 1 and a 27 Round 2?
| SELECT "Round 4" FROM table_9259 WHERE "Round 1" > '19' AND "Round 2" = '27' | wikisql |
CREATE TABLE table_203_612 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country has the largest number of total medals ?
| SELECT "nation" FROM table_203_612 ORDER BY "total" DESC LIMIT 1 | squall |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college 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,... | SELECT DISTINCT description, name FROM course WHERE department = 'ACABS' AND number = 498 | advising |
CREATE TABLE table_16250 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" real,
"Poles" real,
"Wins" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score for the dams?
| SELECT "Points" FROM table_16250 WHERE "Team Name" = 'DAMS' | wikisql |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE hz_info (
KH text,
KLX number... | SELECT txmzjzjlb.JZLSH FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '78419637' AND hz_info.YLJGDM = '1934902' AND NOT txmzjzjlb.JZKSMC LIKE '%检查%' UNION SELECT ftxmzjzjlb.JZLSH FROM hz_info JOIN ftxmzjzjlb ON hz_info.... | css |
CREATE TABLE table_name_24 (
react VARCHAR,
athlete VARCHAR,
lane VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many reactions have an Athlete of alleyne francique, and a Lane larger than 9?
| SELECT COUNT(react) FROM table_name_24 WHERE athlete = "alleyne francique" AND lane > 9 | sql_create_context |
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... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-31752' AND patient.hosp... | eicu |
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGD... | SELECT JZLX FROM jybgb WHERE BGDH = '92497382210' | css |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time... | SELECT jybgb.BGJGDM, jybgb.BGJGMC FROM jybgb WHERE jybgb.BGDH = '10754397443' | css |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE bdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
K... | SELECT wdmzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN wdmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE person_info.XM = '郎灵韵' AND NOT wdmzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2020-11-2... | css |
CREATE TABLE table_name_9 (
founded INTEGER,
municipality VARCHAR,
population__2010_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year was Yauco, which had over 42,043 people in 2010, founded?
| SELECT AVG(founded) FROM table_name_9 WHERE municipality = "yauco" AND population__2010_ > 42 OFFSET 043 | sql_create_context |
CREATE TABLE table_67692 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game when the record was 19 13 3?
| SELECT "Score" FROM table_67692 WHERE "Record" = '19–13–3' | wikisql |
CREATE TABLE d_icd_diagnoses (
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... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnoses_icd.charttime)) FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'dmii ophth nt st uncntrl') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM ad... | mimic_iii |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE ftxmzjzjlb (
HXPLC number,
HZ... | SELECT txmzjzjlb.MZZYZDZZBM, txmzjzjlb.MZZYZDZZMC FROM txmzjzjlb WHERE txmzjzjlb.JZLSH = '74461685601' UNION SELECT ftxmzjzjlb.MZZYZDZZBM, ftxmzjzjlb.MZZYZDZZMC FROM ftxmzjzjlb WHERE ftxmzjzjlb.JZLSH = '74461685601' | css |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.diagnosis = "BRADYCARDIA" | mimicsql_data |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT MED_ORG_DEPT_CD, MED_ORG_DEPT_NM FROM t_kc22 WHERE MED_EXP_DET_ID = '38778842615' | css |
CREATE TABLE table_29905 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ha... | SELECT "High rebounds" FROM table_29905 WHERE "Date" = 'January 19' | wikisql |
CREATE TABLE table_77481 (
"State" text,
"Membership" real,
"Population" real,
"% LDS" text,
"Total Congregations" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Population, when Total Congregations is less than 4, and when % LDS is 0.54%?
| SELECT "Population" FROM table_77481 WHERE "Total Congregations" < '4' AND "% LDS" = '0.54%' | wikisql |
CREATE TABLE People (
Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of people in ascending alphabetical order?
| SELECT Name FROM People ORDER BY Name | sql_create_context |
CREATE TABLE table_5304 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game on May 10?
| SELECT COUNT("Attendance") FROM table_5304 WHERE "Date" = 'may 10' | wikisql |
CREATE TABLE table_name_82 (
driver VARCHAR,
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classif... | SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified" | sql_create_context |
CREATE TABLE table_name_99 (
match INTEGER,
attendance VARCHAR,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Match has a Venue of h on 22 september 1888 with Attendances smaller than 4,000?
| SELECT MAX(match) FROM table_name_99 WHERE venue = "h" AND date = "22 september 1888" AND attendance < 4 OFFSET 000 | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '6694892' AND gwyjzb.OUT_DIAG_DIS_NM = '腔隙性脑梗死' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '6694892' AND fgwyjzb.OUT_DI... | css |
CREATE TABLE Department_Store_Chain (
dept_store_chain_id INTEGER,
dept_store_chain_name VARCHAR(80)
)
CREATE TABLE Department_Stores (
dept_store_id INTEGER,
dept_store_chain_id INTEGER,
store_name VARCHAR(80),
store_address VARCHAR(255),
store_phone VARCHAR(80),
store_email VARCHAR(80... | SELECT product_type_code, MIN(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code | nvbench |
CREATE TABLE table_77321 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Bunky Henry placed t8, what was his To par?
| SELECT "To par" FROM table_77321 WHERE "Place" = 't8' AND "Player" = 'bunky henry' | wikisql |
CREATE TABLE table_3503 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("Ends Won") FROM table_3503 WHERE "W" = '8' | wikisql |
CREATE TABLE Affiliated_With (
Physician INTEGER,
Department INTEGER,
PrimaryAffiliation BOOLEAN
)
CREATE TABLE Undergoes (
Patient INTEGER,
Procedures INTEGER,
Stay INTEGER,
DateUndergoes DATETIME,
Physician INTEGER,
AssistingNurse INTEGER
)
CREATE TABLE Physician (
EmployeeID... | SELECT Name, COUNT(Name) FROM Appointment AS T1 JOIN Physician AS T2 ON T1.Physician = T2.EmployeeID GROUP BY Name ORDER BY COUNT(Name) DESC | nvbench |
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE aircraft (
ai... | SELECT name, distance FROM aircraft ORDER BY distance | nvbench |
CREATE TABLE claims_processing (
claim_processing_id number,
claim_id number,
claim_outcome_code text,
claim_stage_id number,
staff_id number
)
CREATE TABLE claim_headers (
claim_header_id number,
claim_status_code text,
claim_type_code text,
policy_id number,
date_of_claim time... | SELECT policy_type_code FROM policies GROUP BY policy_type_code HAVING COUNT(*) > 2 | spider |
CREATE TABLE table_24938621_3 (
production_code VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code of the episode that had 5.43 million viewers?
| SELECT production_code FROM table_24938621_3 WHERE us_viewers__million_ = "5.43" | sql_create_context |
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 procedures_icd (
row_id number,
subject_id number,
... | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30826 AND admissions.dischtime IS NULL) AND prescriptions.route = 'po/ng' ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
... | SELECT ph.UserId, SUM(CASE WHEN ph.PostHistoryTypeId > 3 AND ph.PostHistoryTypeId < 7 THEN 1 ELSE 0 END) AS NumEdits FROM PostHistory AS ph GROUP BY ph.UserId LIMIT 100 | sede |
CREATE TABLE table_74090 (
"Year" real,
"Title" text,
"Format" text,
"Studio" text,
"Release Date" text,
"Copyright Information" text,
"Catalog Number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the catalog number for am/pm callanet... | SELECT "Catalog Number" FROM table_74090 WHERE "Title" = 'AM/PM Callanetics' | wikisql |
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 (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.discharge_location = "HOME HEALTH CARE" | mimicsql_data |
CREATE TABLE table_28081 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes were... | SELECT COUNT("Original air date") FROM table_28081 WHERE "Directed by" = 'Tim Matheson' | wikisql |
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
-- Using valid SQLite, answer the ... | SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY Author DESC | nvbench |
CREATE TABLE table_name_53 (
ranking INTEGER,
nationality VARCHAR,
years VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average ranking of Saudi Arabia in the years of 2000 ?
| SELECT AVG(ranking) FROM table_name_53 WHERE nationality = "saudi arabia" AND years = "2000–" | sql_create_context |
CREATE TABLE table_52023 (
"Manufacturer" text,
"Type" text,
"Quantity" real,
"P&M Nos." text,
"GWR Nos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons?
| SELECT MIN("Quantity") FROM table_52023 WHERE "Manufacturer" = 'peckett and sons' AND "GWR Nos." = '696, 779, 93 5' | wikisql |
CREATE TABLE table_28313 (
"Rank" real,
"Player" text,
"Year" real,
"Opponent" text,
"Passing yards" real,
"Rushing yards" real,
"Total offense" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when Devin Gardner was the p... | SELECT "Opponent" FROM table_28313 WHERE "Player" = 'Devin Gardner' | wikisql |
CREATE TABLE table_34325 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Event has a Resolution of loss, and a Record ... | SELECT "Event" FROM table_34325 WHERE "Res." = 'loss' AND "Record" = '12–2' | wikisql |
CREATE TABLE table_1304 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date contained Aubrey O'Day as the cover model?
| SELECT "Date" FROM table_1304 WHERE "Cover model" = 'Aubrey O''Day' | wikisql |
CREATE TABLE table_name_36 (
width__inches_ INTEGER,
length__feet_ VARCHAR,
numbers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On buses ranging in numbr 401-484, what is the lowest width that one longer thna 25 feet can have?
| SELECT MIN(width__inches_) FROM table_name_36 WHERE length__feet_ > 25 AND numbers = "401-484" | sql_create_context |
CREATE TABLE table_203_761 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different teams were... | SELECT COUNT(DISTINCT "team") FROM table_203_761 | squall |
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 ... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'pois-propionic acid derv')) | mimic_iii |
CREATE TABLE table_name_76 (
date VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What wa the date of the North Melbourne home game?
| SELECT date FROM table_name_76 WHERE home_team = "north melbourne" | sql_create_context |
CREATE TABLE table_76088 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position of the player from Vanderbilt?
| SELECT "Position" FROM table_76088 WHERE "School/Club Team" = 'vanderbilt' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.itemid = "51447" | mimicsql_data |
CREATE TABLE table_name_66 (
goals_for VARCHAR,
goals_against VARCHAR,
draws VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals for where there when draws are less than 11, points of is 54+16 and goals against are less than... | SELECT COUNT(goals_for) FROM table_name_66 WHERE draws < 11 AND points = "54+16" AND goals_against < 39 | sql_create_context |
CREATE TABLE table_name_7 (
new_entries VARCHAR,
fixtures VARCHAR,
clubs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for New entries, when the value for Fixtures is less than 16, and when the value for Clubs is 4 2?
| SELECT new_entries FROM table_name_7 WHERE fixtures < 16 AND clubs = "4 → 2" | sql_create_context |
CREATE TABLE table_19006 (
"Rank" real,
"Airport" text,
"Total Passengers" real,
"% Change 2007/2008" text,
"International Passengers" real,
"Domestic Passengers" real,
"Transit Passengers" real,
"Aircraft Movements" real,
"Freight ( Metric Tonnes )" real
)
-- Using valid SQLite, a... | SELECT "Freight ( Metric Tonnes )" FROM table_19006 WHERE "Transit Passengers" = '147791' | wikisql |
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
)
CREA... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'diabetes mellitus' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104') AS t1 JOIN (SELECT patient.uniquep... | eicu |
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,
a... | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE STRFTIME('%y', lab.labresulttime) = '2104' GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4 | eicu |
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 (
uniquep... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND STRFTIME('%y', patient.hospitaldischargetime) = '2103' | eicu |
CREATE TABLE table_41163 (
"Week of" text,
"Tier" text,
"Winner" text,
"Runner-up" text,
"Semi finalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the runner-up was Jing-qian Yi, who was the winner?
| SELECT "Winner" FROM table_41163 WHERE "Runner-up" = 'jing-qian yi' | wikisql |
CREATE TABLE table_31544 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the pick for pittsburgh penguins
| SELECT "Pick" FROM table_31544 WHERE "NHL team" = 'pittsburgh penguins' | wikisql |
CREATE TABLE table_17933600_2 (
team VARCHAR,
outgoing_manage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team(s) had an outgoing manager of jo o alves?
| SELECT team FROM table_17933600_2 WHERE outgoing_manage = "João Alves" | sql_create_context |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT MZBMLX, MZZDBM, MZZDMC FROM zyjzjlb WHERE JZLSH = '09590061301' | css |
CREATE TABLE table_64426 (
"Player" text,
"Original Season" text,
"Gender" text,
"Eliminated" text,
"Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the original season in 11th place?
| SELECT "Original Season" FROM table_64426 WHERE "Placing" = '11th place' | wikisql |
CREATE TABLE table_name_54 (
player VARCHAR,
to_par VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Player's To par is 6?
| SELECT player FROM table_name_54 WHERE to_par = "−6" | sql_create_context |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDat... | SELECT u.Reputation, u.DisplayName FROM Users AS u WHERE LOWER(u.Location) LIKE '%##Location##%' ORDER BY u.Reputation DESC | sede |
CREATE TABLE table_11390711_4 (
abbreviation VARCHAR,
pronouciation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the abbreviation for the college pronounced 'k k daigakk '?
| SELECT abbreviation FROM table_11390711_4 WHERE pronouciation = "Kōkū Daigakkō" | sql_create_context |
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,
... | SELECT demographic.days_stay, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "52012" | mimicsql_data |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "CEREBRAL ANEURYSM/SDA" AND prescriptions.route = "IV" | mimicsql_data |
CREATE TABLE table_23800 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number for db
| SELECT COUNT("Pick #") FROM table_23800 WHERE "Position" = 'DB' | wikisql |
CREATE TABLE table_204_570 (
id number,
"rank" number,
"mountain" text,
"height (m)" number,
"height (ft)" number,
"range" text,
"coordinates" text,
"prominence (m)" number,
"parent mountain" text,
"first ascent" number,
"ascents (failed attempts) bef.2004" text
)
-- Using ... | SELECT "height (ft)" FROM table_204_570 WHERE "mountain" = 'k2' | squall |
CREATE TABLE table_14193 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronze medals has a total less than 3 with a silver less than 1 and gold more than ... | SELECT AVG("Bronze") FROM table_14193 WHERE "Total" < '3' AND "Silver" < '1' AND "Gold" > '1' | wikisql |
CREATE TABLE table_name_7 (
position VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position has notes of 2:12:53?
| SELECT position FROM table_name_7 WHERE notes = "2:12:53" | sql_create_context |
CREATE TABLE table_204_123 (
id number,
"week" number,
"date" text,
"kickoff" text,
"opponent" text,
"results\nfinal score" text,
"results\nteam record" text,
"game site" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT MAX("results\nfinal score") FROM table_204_123 WHERE "opponent" = 'rhein fire' | squall |
CREATE TABLE table_70783 (
"Lithium" text,
"Sodium" text,
"Potassium" text,
"Rubidium" text,
"Caesium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the type of lithium when rubidium is nabr (1.9)?
| SELECT "Lithium" FROM table_70783 WHERE "Rubidium" = 'nabr (1.9)' | wikisql |
CREATE TABLE table_57457 (
"Vaccine" text,
"Minimum Age at 1st Dose" text,
"Number of Doses" text,
"Dose" text,
"Minimum Interval Between Doses" text,
"Route" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many doses for the bacillus calmett... | SELECT "Number of Doses" FROM table_57457 WHERE "Vaccine" = 'bacillus calmette-guérin' | wikisql |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT SUM(PER_ACC_PAY) FROM t_kc24 WHERE PERSON_ID = '62577763' AND CLINIC_SLT_DATE BETWEEN '2004-01-03' AND '2021-07-07' | css |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.