context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_17388 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | WHO WROTE 'DAD'S DEAD | SELECT "Written by" FROM table_17388 WHERE "Title" = 'Dad''s Dead' | wikisql |
CREATE TABLE table_204_796 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
) | which is the only station with 8 affiliates ? | SELECT "network name" FROM table_204_796 WHERE "affiliates" = 8 | squall |
CREATE TABLE table_11622896_1 (
purse__$__ VARCHAR,
location VARCHAR
) | What is the purse value for the New York location? | SELECT purse__$__ FROM table_11622896_1 WHERE location = "New York" | sql_create_context |
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... | how many patients whose admission type is urgent and procedure long title is open and other right hemicolectomy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.long_title = "Open and other right hemicolectomy" | mimicsql_data |
CREATE TABLE table_name_45 (
runs INTEGER,
matches INTEGER
) | What was the highest amount of runs for more than 5 matches? | SELECT MAX(runs) FROM table_name_45 WHERE matches > 5 | sql_create_context |
CREATE TABLE table_38038 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | What was the score of the game with a record of 34 17 11 2? | SELECT "Score" FROM table_38038 WHERE "Record" = '34–17–11–2' | wikisql |
CREATE TABLE table_57673 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | Who was Richmond's away team opponent? | SELECT "Away team score" FROM table_57673 WHERE "Home team" = 'richmond' | wikisql |
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer... | what ground transportation is available at BALTIMORE | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'BALTIMORE' AND ground_service.city_code = city.city_code | atis |
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 medication (
medicationid ... | was normal the respiration of patient 012-40970 until 56 months ago? | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-40970')) AND vitalperiodic.respiration BETWEEN respiration_lower... | eicu |
CREATE TABLE table_7104 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | What is the total top-25 of the U.S. Open, which has less than 7 cuts? | SELECT SUM("Top-25") FROM table_7104 WHERE "Tournament" = 'u.s. open' AND "Cuts made" < '7' | wikisql |
CREATE TABLE table_33296 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | What is the smallest attendance number for august 9, 1968? | SELECT MIN("Attendance") FROM table_33296 WHERE "Date" = 'august 9, 1968' | wikisql |
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE t... | Show the total number of platforms of locations in each location in a bar chart, I want to show y axis in asc order please. | SELECT Location, SUM(Number_of_Platforms) FROM station GROUP BY Location ORDER BY SUM(Number_of_Platforms) | nvbench |
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... | 就诊结算日期在15年3月3日到15年9月1日期间的患者苗飞章的所有医疗就诊记录编号是哪些? | SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.t_kc21_PERSON_NM = '苗飞章' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2015-03-03' AND '2015-09-01' | css |
CREATE TABLE table_name_9 (
country VARCHAR,
lane VARCHAR,
name VARCHAR
) | What country had the runner abubaker kaki khamis in lane 5? | SELECT country FROM table_name_9 WHERE lane = 5 AND name = "abubaker kaki khamis" | sql_create_context |
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... | whats patient 99661 first careunit until 4 years ago? | SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 99661) AND NOT transfers.careunit IS NULL AND DATETIME(transfers.intime) <= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY transfers.intime LIMIT 1 | mimic_iii |
CREATE TABLE table_name_50 (
winner VARCHAR,
tournament VARCHAR
) | Name the winner for majorca | SELECT winner FROM table_name_50 WHERE tournament = "majorca" | sql_create_context |
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... | 患者苗纳兰的住院就诊检验报告单中有哪些报告的日期是在18年9月28以前的?查询这些住院就诊的流水号 | SELECT zyjzjlb.JZLSH FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE person_info.XM = '苗纳兰' AND NOT zyjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2018-09-28') | css |
CREATE TABLE table_name_49 (
injured INTEGER,
place VARCHAR,
killed VARCHAR
) | What is the smallest number of injured in mayurbhanj, odisha and less than 1 killed? | SELECT MIN(injured) FROM table_name_49 WHERE place = "mayurbhanj, odisha" AND killed < 1 | sql_create_context |
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
)
... | Provide the number of patients under the age of 68 whose drug name is syringe (neonatal) *sw*. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "68" AND prescriptions.drug = "Syringe (Neonatal) *SW*" | mimicsql_data |
CREATE TABLE table_72400 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | How many times was incumbent Noble Jones Gregory first elected? | SELECT COUNT("First elected") FROM table_72400 WHERE "Incumbent" = 'Noble Jones Gregory' | wikisql |
CREATE TABLE table_name_70 (
date VARCHAR,
region VARCHAR,
catalog VARCHAR
) | What's the Date for the Region of Europe and has the Catalog of 28765 22392 8? | SELECT date FROM table_name_70 WHERE region = "europe" AND catalog = "28765 22392 8" | sql_create_context |
CREATE TABLE table_1581 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Which date did Chris Duhon (13) receive high assists? | SELECT "Date" FROM table_1581 WHERE "High assists" = 'Chris Duhon (13)' | wikisql |
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... | what is the number of patients admitted before 2176 who had delta abnormal lab test status? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2176" AND lab.flag = "delta" | mimicsql_data |
CREATE TABLE table_22919 (
"Version" text,
"Code name" text,
"Release date" text,
"Desktops" text,
"Servers" text,
"Kernel Version" text
) | How many servers have a kernel version 3.11? | SELECT COUNT("Servers") FROM table_22919 WHERE "Kernel Version" = '3.11' | wikisql |
CREATE TABLE table_name_73 (
title VARCHAR,
release_date VARCHAR,
track_number VARCHAR,
record_label VARCHAR
) | Name The Title which has a Track number of 07, and a Record label of emi on 21 april 2006? | SELECT title FROM table_name_73 WHERE track_number = "07" AND record_label = "emi" AND release_date = "21 april 2006" | sql_create_context |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE 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,
... | 查看05年11月10日到20年5月5日医疗机构1492666总的医疗费有多少 | SELECT SUM(t_kc24.MED_AMOUT) FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '1492666' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2005-11-10' AND '2020-05-05' UNION SELECT SUM(t_kc24.MED_AMOUT) FROM fgwyjzb JOIN t_kc24 ON fgwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE f... | css |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
Rejecti... | Users answering on python questions, located in France. | SELECT au.Id AS "UserId", au.DisplayName AS "Answerer", au.WebsiteUrl, au.Reputation, COUNT(a.Id) AS "Answers" FROM Posts AS p JOIN Posts AS a ON p.AcceptedAnswerId = a.Id JOIN Users AS au ON a.OwnerUserId = au.Id WHERE NOT p.AcceptedAnswerId IS NULL AND p.Tags LIKE '%##tag##%' AND au.Location LIKE '##location##' GROUP... | sede |
CREATE TABLE table_name_95 (
affected_area_codes VARCHAR,
effective_date VARCHAR
) | Which Affected area codes have an Effective date of august 30, 2014? | SELECT affected_area_codes FROM table_name_95 WHERE effective_date = "august 30, 2014" | sql_create_context |
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Part... | Stack bar chart of how many took office vs Minister based on took office, and could you sort by the y axis from low to high? | SELECT Took_office, COUNT(Took_office) FROM party GROUP BY Minister ORDER BY COUNT(Took_office) | nvbench |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
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 ... | 能知道在2004-09-23到2010-08-14内,患者曹婉娜在看病时是哪些工号及姓名的医生给检测指标537012的吗 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzj... | css |
CREATE TABLE table_name_85 (
name VARCHAR,
term_ending VARCHAR,
nationality VARCHAR
) | Term Ending smaller than 2018, and a Nationality of new zealand what is the name? | SELECT name FROM table_name_85 WHERE term_ending < 2018 AND nationality = "new zealand" | sql_create_context |
CREATE TABLE table_31748 (
"Nomination" text,
"Actor's Name" text,
"Film Name" text,
"Director" text,
"Country" text
) | Tell me the nominator for piotr adamczyk | SELECT "Nomination" FROM table_31748 WHERE "Actor's Name" = 'piotr adamczyk' | wikisql |
CREATE TABLE table_48787 (
"System" text,
"Year Introduced" real,
"S-100 slots" real,
"Internal Floppy Disk" text,
"Internal Hard Disk" text
) | Which system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots? | SELECT "System" FROM table_48787 WHERE "S-100 slots" < '21' AND "Year Introduced" < '1981' AND "Internal Hard Disk" = '11 megabytes' | wikisql |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyeve... | how many times has since 6 years ago patient 51200 visited the icu? | SELECT COUNT(DISTINCT icustays.icustay_id) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51200) AND DATETIME(icustays.intime) >= DATETIME(CURRENT_TIME(), '-6 year') | mimic_iii |
CREATE TABLE table_22871316_6 (
high_points VARCHAR,
date VARCHAR
) | Who did the high points in the game played on December 18? | SELECT high_points FROM table_22871316_6 WHERE date = "December 18" | sql_create_context |
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 locations (
LOCAT... | Just show the first name of the employee and list their manager's id in the Y-axis of the bar chart, could you rank in desc by the y-axis? | SELECT FIRST_NAME, MANAGER_ID FROM employees ORDER BY MANAGER_ID DESC | nvbench |
CREATE TABLE table_6764 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Decision" text,
"Location" text,
"Attendance" real,
"Series" text
) | On May 8 what series is it? | SELECT "Series" FROM table_6764 WHERE "Date" = 'may 8' | wikisql |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_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),
... | when is the hire date for those employees whose first name does not containing the letter M, and count them by a bar chart, show in asc by the Y-axis. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY COUNT(HIRE_DATE) | 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... | 在医院2796899患者10619383出院诊断疾病中不包含低钾血症的是什么医疗就诊记录编号? | SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '10619383' AND MED_SER_ORG_NO = '2796899' AND NOT OUT_DIAG_DIS_NM LIKE '%低钾血症%' | css |
CREATE TABLE table_51244 (
"Round" real,
"Nominees" text,
"Team" text,
"Match" text,
"Ground" text
) | what is the earliest round for nominee david mundy? | SELECT MIN("Round") FROM table_51244 WHERE "Nominees" = 'david mundy' | wikisql |
CREATE TABLE table_30751 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | What date did the episode that had 8.84 million u.s. viewers originally air? | SELECT "Original air date" FROM table_30751 WHERE "U.S. viewers (million)" = '8.84' | wikisql |
CREATE TABLE table_name_6 (
third VARCHAR,
nation VARCHAR
) | Which Third has a Nation of hungary? | SELECT third FROM table_name_6 WHERE nation = "hungary" | sql_create_context |
CREATE TABLE table_25983027_1 (
evapotranspiration__km_3__year_ VARCHAR,
rainfall_by_volume__km_3__year_ VARCHAR
) | In the region where the rainfall by volume (km 3 /year) was 13.2, what was the evapotranspiration (km 3 /year)? | SELECT evapotranspiration__km_3__year_ FROM table_25983027_1 WHERE rainfall_by_volume__km_3__year_ = "13.2" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 花古香这位患者都去哪些医院开了971102-f这个药? | SELECT t_kc22.t_kc21_MED_SER_ORG_NO FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '花古香' AND t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_CD = '971102-f') | css |
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,
icd9cod... | what is the first value of hco3 laboratory test of patient 015-80402 until 52 months ago? | SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-80402')) AND lab.labname = 'hco3' AND DATETIME(lab.labresulttime) <= DATETIME(CURRE... | eicu |
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... | 列出医疗就诊记录中医疗费总额与医疗就诊18542009470相同的的ID、人员ID、人员姓名、公民身份号码、人员性别、人员年龄都是什么啊? | SELECT t_kc24.MED_CLINIC_ID, t_kc24.t_kc21_PERSON_ID, t_kc24.t_kc21_PERSON_NM, t_kc24.t_kc21_IDENTITY_CARD, t_kc24.t_kc21_PERSON_SEX, t_kc24.t_kc21_PERSON_AGE FROM t_kc24 WHERE t_kc24.MED_AMOUT = (SELECT t_kc24.MED_AMOUT FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID = '18542009470') | css |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREAT... | list flights from CHARLOTTE on saturday afternoon | SELECT DISTINCT flight_id FROM flight WHERE ((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 26 AND DATE_DAYalias0.month_number = 7 AND DATE_DAYalias0.year = 1991)) AND fro... | atis |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 患者李弘伟的报告日期均在2016年5月19日之后的检验报告单中有哪些相关的住院就诊记录?当时住院就诊流水号都是什么呢? | SELECT zyjzjlb.JZLSH FROM person_info JOIN hz_info JOIN zyjzjlb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND pers... | css |
CREATE TABLE table_name_78 (
dates_active VARCHAR,
storm_name VARCHAR
) | what date did the irwin storm take place | SELECT dates_active FROM table_name_78 WHERE storm_name = "irwin" | sql_create_context |
CREATE TABLE table_name_59 (
game VARCHAR,
score VARCHAR
) | What is the game number when the score was l 90 104 (ot)? | SELECT COUNT(game) FROM table_name_59 WHERE score = "l 90–104 (ot)" | sql_create_context |
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... | 在21年2月24到21年6月19日的这几个月,共有多少异地病患在医院6947584看过病 | SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '6947584' AND IN_HOSP_DATE BETWEEN '2021-02-24' AND '2021-06-19' AND (REMOTE_SETTLE_FLG = '异地1' OR REMOTE_SETTLE_FLG = '异地2') | css |
CREATE TABLE table_60598 (
"Title" text,
"Lyricist(s)" text,
"Composer(s)" text,
"Arranger(s)" text,
"Time" text
) | Who was the lyricist for composer ROZ on title ' (cooking? cooking!)'? | SELECT "Lyricist(s)" FROM table_60598 WHERE "Composer(s)" = 'roz' AND "Title" = '요리왕 (cooking? cooking!)' | 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,
... | what is minimum days of hospital stay of patients whose ethnicity is hispanic/latino - puerto rican? | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" | mimicsql_data |
CREATE TABLE table_name_80 (
drawn INTEGER,
games INTEGER
) | What are the highest number of games drawn for games numbered under 6? | SELECT MAX(drawn) FROM table_name_80 WHERE games < 6 | sql_create_context |
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... | 08年3月13日到16年12月19日期间内患者06227779在被开出的所有检验报告单的检验报告单号都是什么? | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info... | css |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label 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 labevents (
ro... | what is the first procedure that patient 14397 received this year? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14397) AND DATETIME(procedures_icd.charttime, 'start of year') = DAT... | mimic_iii |
CREATE TABLE table_name_36 (
points INTEGER,
position VARCHAR,
played VARCHAR,
name VARCHAR
) | what is the average points when played is 9, name is ev pegnitz and position is larger than 1? | SELECT AVG(points) FROM table_name_36 WHERE played = 9 AND name = "ev pegnitz" AND position > 1 | sql_create_context |
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 numb... | how much does a medical diagnosis of peripheral vascular ischemia cost? | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'peripheral vascular ischemia') | eicu |
CREATE TABLE table_name_82 (
attendance VARCHAR,
visitor VARCHAR
) | What is the total attendance of the game with Toronto as the visitor team? | SELECT COUNT(attendance) FROM table_name_82 WHERE visitor = "toronto" | sql_create_context |
CREATE TABLE table_30545 (
"#" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Winnings ($)" real,
"After" real,
"Before" real
) | What country is charley hoffman from? | SELECT "Country" FROM table_30545 WHERE "Player" = 'Charley Hoffman' | wikisql |
CREATE TABLE table_name_81 (
tyre VARCHAR,
entrant VARCHAR
) | what is the tyre when the entrant is scuderia milano? | SELECT tyre FROM table_name_81 WHERE entrant = "scuderia milano" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE wdmzjzjlb (
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... | 从零五年二月九日到一七年二月九日的这几年来,共有多少患者在医疗机构3982250外地门诊就诊 | SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.ZSEBZ = '3982250' AND bdmzjzjlb.JZKSRQ BETWEEN '2005-02-09' AND '2017-11-19' | css |
CREATE TABLE table_34072 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text
) | What is the leading scorer of the game with the Celtics as the visiting team? | SELECT "Leading scorer" FROM table_34072 WHERE "Visitor" = 'celtics' | wikisql |
CREATE TABLE table_2188 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | When did the 4th, Midwest season happen? | SELECT "Year" FROM table_2188 WHERE "Regular Season" = '4th, Midwest' | wikisql |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE procedures_icd (
row_id number,
su... | list the top three most frequent diagnoses that a patient was diagnosed with in the same month after being diagnosed with elderly multigravida-del since 3 years ago. | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions... | mimic_iii |
CREATE TABLE table_203_215 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | what is the number of achievements listed for ito ? | SELECT COUNT(*) FROM table_203_215 | squall |
CREATE TABLE table_name_33 (
attendance VARCHAR,
score VARCHAR
) | How many were in attendance when the score was 4 4 ? | SELECT attendance FROM table_name_33 WHERE score = "† 4–4 †" | sql_create_context |
CREATE TABLE table_17079 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | Which players attend Stanford college? | SELECT "Player" FROM table_17079 WHERE "College" = 'Stanford' | wikisql |
CREATE TABLE table_name_23 (
winning_score VARCHAR,
date VARCHAR
) | What was the winning score on May 3, 1998? | SELECT winning_score FROM table_name_23 WHERE date = "may 3, 1998" | sql_create_context |
CREATE TABLE table_75635 (
"Year" text,
"Name" text,
"Political affiliation" text,
"Deputy" text,
"Deputy's affiliation" text
) | What is the name of the deputy in 1992 93? | SELECT "Deputy" FROM table_75635 WHERE "Year" = '1992–93' | wikisql |
CREATE TABLE table_65739 (
"Place" text,
"Code" real,
"Area (km 2 )" real,
"Population" real,
"Most spoken language" text
) | What's the most area of Bochum Part 2 with a population less than 15,911? | SELECT MAX("Area (km 2 )") FROM table_65739 WHERE "Place" = 'bochum part 2' AND "Population" < '15,911' | wikisql |
CREATE TABLE table_21078 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Year named" real,
"Name origin" text
) | What is the name origin with a diameter of 220.0 kilometers? | SELECT "Name origin" FROM table_21078 WHERE "Diameter (km)" = '220.0' | wikisql |
CREATE TABLE table_name_87 (
opponent VARCHAR,
attendance VARCHAR
) | Who was the opponent when attendance was 60,355? | SELECT opponent FROM table_name_87 WHERE attendance = "60,355" | sql_create_context |
CREATE TABLE table_18082 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | How many tries were against when the number won was 14? | SELECT "Tries against" FROM table_18082 WHERE "Won" = '14' | wikisql |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
v... | what are the three most frequent drugs prescribed within 2 months to the male patients aged 60 or above after they have been diagnosed with septic shock during this year? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ... | mimic_iii |
CREATE TABLE table_name_65 (
date VARCHAR,
home_team VARCHAR
) | When did Geelong play as the home team? | SELECT date FROM table_name_65 WHERE home_team = "geelong" | sql_create_context |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airline (
airline_code varc... | show me the latest flight from SAN FRANCISCO to DENVER | 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 = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ... | atis |
CREATE TABLE table_52426 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | When north melbourne was the home team who was the Away team? | SELECT "Away team" FROM table_52426 WHERE "Home team" = 'north melbourne' | wikisql |
CREATE TABLE table_26257 (
"Party" text,
"Result, Parliam. election 2005" text,
"Result, County elections 2007" text,
"Aug 2008" text,
"Sep 2008" text,
"Oct 2008" text,
"Nov 2008" text,
"Dec 2008" text,
"Jan 2009" text,
"Feb 2009" text,
"Mar 2009" text,
"Apr 2009" text,
... | What was the polling average in Aug 2009 when is was 5.0% in Sep 2009? | SELECT "Aug 2008" FROM table_26257 WHERE "Sep 2008" = '5.0%' | wikisql |
CREATE TABLE furniture_manufacte (
manufacturer_id number,
furniture_id number,
price_in_dollar number
)
CREATE TABLE manufacturer (
manufacturer_id number,
open_year number,
name text,
num_of_factories number,
num_of_shops number
)
CREATE TABLE furniture (
furniture_id number,
... | Give me the names and prices of furnitures which some companies are manufacturing. | SELECT t1.name, t2.price_in_dollar FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.furniture_id = t2.furniture_id | spider |
CREATE TABLE table_39001 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text
) | What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414? | SELECT MAX("Round") FROM table_39001 WHERE "Pick #" = '11' AND "Overall" < '414' AND "Position" = 'offensive tackle' | wikisql |
CREATE TABLE table_name_58 (
launch_date VARCHAR,
institutional_authority VARCHAR,
launch_vehicle VARCHAR
) | Tell me the launch date with Institutional authority of ndc and launch vehicle of hatf-xi | SELECT launch_date FROM table_name_58 WHERE institutional_authority = "ndc" AND launch_vehicle = "hatf-xi" | sql_create_context |
CREATE TABLE table_40122 (
"University" text,
"Men's" real,
"Women's" real,
"Runner-up" real,
"Total Championships" real
) | What is the average number of runner-up that National University, which has more than 2 total championships, has? | SELECT AVG("Runner-up") FROM table_40122 WHERE "University" = 'national university' AND "Total Championships" > '2' | wikisql |
CREATE TABLE table_name_68 (
player VARCHAR,
college VARCHAR,
pick VARCHAR,
position VARCHAR
) | What is the Offensive Guard Player from Mississippi State College with a Pick number larter than 44? | SELECT player FROM table_name_68 WHERE pick > 44 AND position = "offensive guard" AND college = "mississippi state" | sql_create_context |
CREATE TABLE student_course_attendance (
student_id number,
course_id number,
date_of_attendance time
)
CREATE TABLE people (
person_id number,
first_name text,
middle_name text,
last_name text,
cell_mobile_number text,
email_address text,
login_name text,
password text
)
C... | what are the first name and last name of all candidates? | SELECT T2.first_name, T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id | spider |
CREATE TABLE table_name_27 (
club VARCHAR,
nation VARCHAR
) | Which club was from Great Britain? | SELECT club FROM table_name_27 WHERE nation = "great britain" | sql_create_context |
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,... | 查一下许虹颖这个病人在医院9484202的就诊记录中,被开出的药品中哪个药的单价是最高的?药品的编码和名称及其单价分别是啥 | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM, UNIVALENT FROM t_kc22 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '许虹颖' AND MED_SER_ORG_NO = '9484202') ORDER BY UNIVALENT DESC LIMIT 1 | css |
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 ... | MEMS 382 is taught in which days of the week ? | SELECT DISTINCT course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_i... | advising |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
cha... | on this month/30, what is minimum value of sao2 for patient 7112? | 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 = 7112)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'sao2'... | mimic_iii |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE 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,
... | 依据科室的不同编码和入院时诊断的疾病编码看一下医院1314915所有的记录里面医保的大病支付和总医疗费用比值最小是多少 | SELECT gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_CD, MIN(t_kc24.ILL_PAY) FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '1314915' GROUP BY gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_CD UNION SELECT fgwyjzb.MED_ORG_DEPT_CD, fgwyjzb.IN_DIAG_DIS_CD, MIN(t_kc24.ILL_PAY... | css |
CREATE TABLE table_203_695 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
) | name one song that did not earn 60 points . | SELECT "song" FROM table_203_695 WHERE "points" < 60 | squall |
CREATE TABLE table_67969 (
"Event" text,
"Time" text,
"Nationality" text,
"Date" text,
"Meet" text,
"Location" text
) | On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78? | SELECT "Date" FROM table_67969 WHERE "Meet" = '2007 pan american games' AND "Time" = '1:07.78' | wikisql |
CREATE TABLE table_name_13 (
club VARCHAR,
league VARCHAR,
established VARCHAR
) | What Club Established in 2010 has a League of MHL? | SELECT club FROM table_name_13 WHERE league = "mhl" AND established = 2010 | sql_create_context |
CREATE TABLE table_31924 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
) | Which player attended school at Georgia Tech? | SELECT "Player" FROM table_31924 WHERE "School/Club Team" = 'georgia tech' | wikisql |
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... | 医疗机构4264494在平时的诊疗过程中使用次数top30的项目是哪些 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '4264494' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY SUM(t_kc22.AMOUNT) DESC LIMIT 30 | css |
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimme... | Create a bar chart showing the number of meter 200 across meter 200 | SELECT meter_200, COUNT(meter_200) FROM swimmer GROUP BY meter_200 | nvbench |
CREATE TABLE table_53299 (
"D 50 O" text,
"D 49 \u221a" text,
"D 48 \u221a" text,
"D 47 \u221a" text,
"D 46 \u221a" text,
"D 45 \u221a" text,
"D 44 \u221a" text,
"D 43 \u221a" text,
"D 42 \u221a" text,
"D 41 \u221a" text
) | Name the D 41 when it has D 43 of r 18 | SELECT "D 41 \u221a" FROM table_53299 WHERE "D 43 \u221a" = 'r 18' | wikisql |
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... | 从10年12月28日开始到2011年10月6日为止,为病员25627838检测前白蛋白的医务人员工号及姓名各是什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM ... | css |
CREATE TABLE table_76782 (
"Rank" real,
"Amusement park corporations" text,
"Country" text,
"2008" text,
"2009" text,
"2010" text,
"2011" real,
"2012" text
) | What is the Rank listed for the attendance of 2010 of 9,000,000 and 2011 larger than 9,210,000? | SELECT SUM("Rank") FROM table_76782 WHERE "2010" = '9,000,000' AND "2011" > '9,210,000' | wikisql |
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE student_record (
student_... | Regarding the Other requirement , which Fall or Winter courses meet it ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id... | advising |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.