context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_name_55 (
result VARCHAR,
round INTEGER
) | What is the result of a round greater than 3? | SELECT result FROM table_name_55 WHERE round > 3 | 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... | 把医院4560557全部医疗就诊的记录里民政补助的金额比上全部的医疗费用额度的最大比值参照不同的科室编号和不同的入院诊断疾病的编号列一下,并且把结果从大到小排出来 | SELECT t_kc21.MED_ORG_DEPT_CD, t_kc21.IN_DIAG_DIS_NM, MAX(t_kc24.CIVIL_SUBSIDY / t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '4560557' GROUP BY t_kc21.MED_ORG_DEPT_CD, t_kc21.IN_DIAG_DIS_NM ORDER BY MAX(t_kc24.CIVIL_SUBSIDY / t_kc24.MED_AMOUT) D... | css |
CREATE TABLE table_21931 (
"County" text,
"Precincts" text,
"E. Greenberg" text,
"G. Hager" text,
"T. Wyka" text
) | Who many votes did E. Greenberg receive in Morris County? | SELECT COUNT("E. Greenberg") FROM table_21931 WHERE "County" = 'Morris' | wikisql |
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,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | 在08年5月15日到2018年1月29日内患者49084699的检测指标968550是什么样的? | SELECT * FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i... | css |
CREATE TABLE table_27504682_1 (
original_air_date VARCHAR,
written_by VARCHAR
) | Name the air date for alex taub | SELECT original_air_date FROM table_27504682_1 WHERE written_by = "Alex Taub" | sql_create_context |
CREATE TABLE table_75742 (
"Name" text,
"Builder" text,
"Laid down" text,
"Launched" text,
"Completed" real
) | What is the name of the boat that was built by Chatham and Laid down of 25 april 1887? | SELECT "Name" FROM table_75742 WHERE "Builder" = 'chatham' AND "Laid down" = '25 april 1887' | wikisql |
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE keyphr... | number of papers in sigir conference | SELECT DISTINCT COUNT(paper.paperid) FROM paper, venue WHERE venue.venueid = paper.venueid AND venue.venuename = 'sigir' | scholar |
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | Return the name of rooms and the number of reservations made for each of the rooms to draw a bar chart, and rank in descending by the X-axis. | SELECT roomName, COUNT(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY roomName DESC | nvbench |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents... | how many days have there been since patient 57050's last sec mal neo brain/spine diagnosis during this hospital encounter? | SELECT 1 * (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 = 'sec mal neo brain/spine') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admi... | mimic_iii |
CREATE TABLE Courses (
course_id VARCHAR(100),
course_name VARCHAR(120),
course_description VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE People (
person_id INTEGER,
first_name VARCHAR(255),
middle_name VARCHAR(255),
last_name VARCHAR(255),
cell_mobile_number VARCHAR(40),
... | Bar chart of the number of course name from each course name, and I want to rank by the X in desc. | SELECT course_name, COUNT(course_name) FROM Courses GROUP BY course_name ORDER BY course_name DESC | nvbench |
CREATE TABLE table_25214 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | When was an average speed of 81.388 mph recorded? | SELECT "Date" FROM table_25214 WHERE "Average Speed (mph)" = '81.388' | wikisql |
CREATE TABLE table_50818 (
"Number" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" real,
"Years Exp" text,
"College" text
) | What is Years Exp, when Height is '7-2'? | SELECT "Years Exp" FROM table_50818 WHERE "Height" = '7-2' | wikisql |
CREATE TABLE table_name_28 (
july__avg_low_ VARCHAR,
january__avg_high_°f_ VARCHAR
) | What is the july average low associated with a january average high of 30.4? | SELECT COUNT(july__avg_low_) AS °f_ FROM table_name_28 WHERE january__avg_high_°f_ = "30.4" | sql_create_context |
CREATE TABLE table_28059992_6 (
college VARCHAR,
position VARCHAR
) | What college did the player whose position was RB go to? | SELECT college FROM table_28059992_6 WHERE position = "RB" | sql_create_context |
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_code text,
R... | Draw a bar chart for how many storms occured in each region?, could you rank in desc by the bars? | SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY Region_name DESC | nvbench |
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... | how many patients were prescribed losartan potassium 50 mg po tabs in the same hospital visit after the diagnosis of pain, in the previous year? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'pain' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(C... | eicu |
CREATE TABLE artists (
id INTEGER,
name VARCHAR(120)
)
CREATE TABLE tracks (
id INTEGER,
name VARCHAR(200),
album_id INTEGER,
media_type_id INTEGER,
genre_id INTEGER,
composer VARCHAR(220),
milliseconds INTEGER,
bytes INTEGER,
unit_price NUMERIC(10,2)
)
CREATE TABLE albums ... | List the number of invoices from the US, grouped by state. Visualize by bar chart. | SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state | nvbench |
CREATE TABLE table_5755 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | Which Median family income has a Median household income of $43,125? | SELECT "Median family income" FROM table_5755 WHERE "Median household income" = '$43,125' | wikisql |
CREATE TABLE table_204_718 (
id number,
"date" text,
"opponent" text,
"time" text,
"score" text,
"record" text
) | what was the earliest time this game played during the season ? | SELECT MIN("time") FROM table_204_718 | squall |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For each manufacturer's name, what are the prices of their most expensive product? | SELECT T2.Name, MAX(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name | nvbench |
CREATE TABLE table_name_24 (
make VARCHAR,
drivers VARCHAR
) | What is the make of the vehicle for driver Hisashi Wada? | SELECT make FROM table_name_24 WHERE drivers = "hisashi wada" | sql_create_context |
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_p... | Who are the instructors for upper-level classes ? | SELECT DISTINCT instructor.name FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN program_... | advising |
CREATE TABLE wdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZD... | 那个孙清涵的病人在2017年11月21日到2019年11月23日内所有检验结果指标记录中的仪器编号以及名称能不能给我详细列举出来? | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybg... | css |
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
)
CREAT... | did patient 021-69410 get his diagnosis since 2102? | SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-69410')) AND STRFTIME('%y', diagnosis.diagnosistime) >= '2102' | eicu |
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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
... | For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the amount of job_id , and group by attribute job_id, I want to show in ascending by the JOB_ID. | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID | nvbench |
CREATE TABLE table_25740548_4 (
directed_by VARCHAR,
production_code VARCHAR
) | Who directed the episode with production code ca303? | SELECT directed_by FROM table_25740548_4 WHERE production_code = "CA303" | sql_create_context |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospit... | what is the daily maximum value of o2 sat (%) of patient 032-1755 since 03/2103? | SELECT MAX(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 = '032-1755')) AND lab.labname = 'o2 sat (%)' AND STRFTIME('%y-%m', lab.labresulttime... | eicu |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
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_... | For TURKISH 102 which are the prerequisites courses ? | SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0 INNER JOIN course_prerequisite ON COURSE_0.course_id = course_prerequisite.course_id INNER JOIN course AS COURSE_1 ON COURSE_1.course_id = course_prerequisite.pre_course_id WHERE COURSE_0.department = 'TURKISH' AND COURSE_0.numb... | advising |
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 prescriptions (
subject_id text,
hadm_id... | Get the number of patients with coronary artery disease or coronary artery bypass graft myomectomy/sda primary disease who had a urine lab test. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND lab.fluid = "Urine" | mimicsql_data |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
... | Most controversial users on the site. | WITH UserVotes AS (SELECT Users.Id AS UserId, Votes.VoteTypeId, COUNT(*) AS N FROM Votes LEFT JOIN Posts ON Votes.PostId = Posts.Id LEFT JOIN Users ON Posts.OwnerUserId = Users.Id WHERE Votes.VoteTypeId IN (2, 3) GROUP BY Users.Id, Votes.VoteTypeId HAVING COUNT(*) > 20), MAIN AS (SELECT Up.UserId AS "user_link", CASE W... | sede |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt ... | PHOENIX to NEWARK wednesday | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'NEWARK' AND date_day.day_number = 23 AND date_day.month_number = 4 AND da... | atis |
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... | 哪些医疗就诊记录的医疗费总额与医疗就诊70444989325相同?列出这些就诊记录的ID、人员ID、人员姓名、公民身份号码、人员性别、人员年龄 | SELECT qtb.MED_CLINIC_ID, qtb.PERSON_ID, qtb.PERSON_NM, qtb.IDENTITY_CARD, qtb.PERSON_SEX, qtb.PERSON_AGE FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc24.MED_AMOUT = (SELECT t_kc24.MED_AMOUT FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID = '70444989325') UNION SELECT gyb.MED_CLINIC_ID, gyb.PERSON_... | css |
CREATE TABLE table_68251 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What's the total number that had a rank larger than 17 and a gold greater than 0? | SELECT COUNT("Total") FROM table_68251 WHERE "Rank" > '17' AND "Gold" > '0' | wikisql |
CREATE TABLE table_3709 (
"Total #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) | What episode was written by Matt Maclennan? | SELECT MAX("Episode #") FROM table_3709 WHERE "Written by" = 'Matt MacLennan' | wikisql |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | Scatterplot of school_id vs team id by ACC_Home | SELECT Team_ID, School_ID FROM basketball_match GROUP BY ACC_Home | nvbench |
CREATE TABLE table_53155 (
"Year" real,
"Winners" text,
"Grand Finalist" text,
"Scores" text,
"Venue" text,
"Crowd" real,
"Margin" real,
"Season Result" text
) | What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407? | SELECT MAX("Year") FROM table_53155 WHERE "Winners" = 'hawthorn' AND "Season Result" = 'preliminary finalist' AND "Crowd" < '27,407' | wikisql |
CREATE TABLE table_55859 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
) | Who was the winner in the Tournament of Graz-Seiersberg? | SELECT "Winner" FROM table_55859 WHERE "Tournament" = 'graz-seiersberg' | wikisql |
CREATE TABLE table_33583 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"In office" text
) | Which member of the National Party is from the Hinkler electorate? | SELECT "Member" FROM table_33583 WHERE "Party" = 'national' AND "Electorate" = 'hinkler' | wikisql |
CREATE TABLE table_2409041_2 (
directed_by VARCHAR,
no_in_series VARCHAR
) | When 17 is the number in series who is the director? | SELECT directed_by FROM table_2409041_2 WHERE no_in_series = 17 | sql_create_context |
CREATE TABLE table_23997 (
"Name" text,
"Completions" real,
"Attempts" real,
"Completion %" text,
"Yards" real,
"Touchdowns" real,
"Interceptions" real,
"QB Rating" text
) | What was the QB rating for Neil lomax? | SELECT "QB Rating" FROM table_23997 WHERE "Name" = 'Neil Lomax' | wikisql |
CREATE TABLE table_24502 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
) | How many people vacated to successor Dave E. Satterfield, Jr. (d)? | SELECT COUNT("Vacator") FROM table_24502 WHERE "Successor" = 'Dave E. Satterfield, Jr. (D)' | wikisql |
CREATE TABLE table_17240 (
"N" real,
"P" text,
"Name" text,
"EU" text,
"Country" text,
"Age" real,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text,
"Source" text
) | What is the name where p is mf? | SELECT "Name" FROM table_17240 WHERE "P" = 'MF' | wikisql |
CREATE TABLE table_38043 (
"Name" text,
"Goals" real,
"Caps" real,
"First cap" text,
"Latest cap" text
) | What is the highest number of goals associated with 39 caps? | SELECT MAX("Goals") FROM table_38043 WHERE "Caps" = '39' | wikisql |
CREATE TABLE table_14315 (
"Reactor Unit" text,
"Type" text,
"Average Output" text,
"Rated Power" text,
"Began construction" text,
"Finish construction" text,
"Commercial operation" text,
"Close of reactor" text
) | What is the rated power for the reactor that ended construction on May 10, 1978? | SELECT "Rated Power" FROM table_14315 WHERE "Finish construction" = 'may 10, 1978' | 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... | 哪些检验指标记录在检测指标名称与检测指标结果定量单位方面和检验指标记录38053655245相同而且检测指标结果定量小于他 | SELECT * FROM jyjgzbb WHERE jyjgzbb.JCZBMC = (SELECT jyjgzbb.JCZBMC FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '38053655245') AND jyjgzbb.JCZBJGDW = (SELECT jyjgzbb.JCZBJGDW FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '38053655245') AND jyjgzbb.JCZBJGDL < (SELECT jyjgzbb.JCZBJGDL FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '38053655245') | css |
CREATE TABLE table_46806 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
) | What is 1st Round, when Team 1 is Sporting Toulon Var (D2)? | SELECT "1st round" FROM table_46806 WHERE "Team 1" = 'sporting toulon var (d2)' | wikisql |
CREATE TABLE table_name_95 (
venue VARCHAR,
opposing_teams VARCHAR
) | What venue has Scotland as the opposing teams? | SELECT venue FROM table_name_95 WHERE opposing_teams = "scotland" | sql_create_context |
CREATE TABLE table_name_45 (
result VARCHAR,
date VARCHAR
) | What is the result for November 25, 2001? | SELECT result FROM table_name_45 WHERE date = "november 25, 2001" | sql_create_context |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id numbe... | when patient 18866 got an intake of .9% normal saline for the last time during a day before? | SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18866)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label... | mimic_iii |
CREATE TABLE table_1008653_1 (
capital___endonym__ VARCHAR,
country___endonym__ VARCHAR
) | How many capital cities does Australia have? | SELECT COUNT(capital___endonym__) FROM table_1008653_1 WHERE country___endonym__ = "Australia" | sql_create_context |
CREATE TABLE table_5562 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | What is the average attendance that has 83-52 as the record? | SELECT AVG("Attendance") FROM table_5562 WHERE "Record" = '83-52' | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | how many female patients had the diagnosis long title 35-36 completed weeks of gestation? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.long_title = "35-36 completed weeks of gestation" | mimicsql_data |
CREATE TABLE table_5530 (
"Date" text,
"Time" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | What Score has an Opponent of @ Blue Jays with a Date of June 7? | SELECT "Score" FROM table_5530 WHERE "Opponent" = '@ blue jays' AND "Date" = 'june 7' | wikisql |
CREATE TABLE table_15059783_1 (
combination_classification VARCHAR,
points_classification VARCHAR,
winner VARCHAR
) | How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi | SELECT COUNT(combination_classification) FROM table_15059783_1 WHERE points_classification = "Alessandro Petacchi" AND winner = "Erik Zabel" | sql_create_context |
CREATE TABLE table_name_24 (
price VARCHAR,
upstream VARCHAR,
downstream VARCHAR
) | What is the price of the internet provider that has an upstream rate of 256 kbit and a downstream rate of 512 kbit? | SELECT price FROM table_name_24 WHERE upstream = "256 kbit" AND downstream = "512 kbit" | sql_create_context |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name tex... | Comments that Mention Software Engineering Stack Exchange. | SELECT Id AS "comment_link", CreationDate FROM Comments WHERE (DATEDIFF(dd, CreationDate, 2016 - 10 - 21) < 0) AND (Text LIKE '%software%engineering%' OR Text LIKE '%programmers%') ORDER BY CreationDate DESC | sede |
CREATE TABLE table_name_76 (
time VARCHAR,
event VARCHAR
) | What was the record setting time in the 800m freestyle? | SELECT time FROM table_name_76 WHERE event = "800m freestyle" | sql_create_context |
CREATE TABLE table_name_78 (
round VARCHAR,
opponent VARCHAR
) | How many rounds was the match against Jason Fairn? | SELECT round FROM table_name_78 WHERE opponent = "jason fairn" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | count the number of patients whose diagnosis long title is unspecified septicemia and lab test category is blood gas. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Unspecified septicemia" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_50948 (
"Season" text,
"Series" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | What is Position, when Points is greater than 7, and when Series is Toyota Racing Series? | SELECT "Position" FROM table_50948 WHERE "Points" > '7' AND "Series" = 'toyota racing series' | wikisql |
CREATE TABLE table_203_564 (
id number,
"hand" text,
"1 credit" number,
"2 credits" number,
"3 credits" number,
"4 credits" number,
"5 credits" number
) | which hand is the top hand in the card game super aces ? | SELECT "hand" FROM table_203_564 WHERE id = 1 | squall |
CREATE TABLE table_75543 (
"Longi- tude" text,
"Usual translation" text,
"Chinese name \u00b9" text,
"Japanese name" text,
"Korean name \u00b2" text,
"Vietnamese name" text,
"Date \u00b3" text
) | WHICH Vietnamese name has a Chinese name of ( ) m ngzh ng? | SELECT "Vietnamese name" FROM table_75543 WHERE "Chinese name \u00b9" = '芒種 (芒种) mángzhòng' | wikisql |
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
)
... | Find out the number of clinic referred patients who had premature admission and have other anomalies of larynx trachea and bronchus diagnoses. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.short_title = "Laryngotrach anomaly NEC" | mimicsql_data |
CREATE TABLE table_name_17 (
party VARCHAR,
established VARCHAR,
election VARCHAR
) | What party established in 1797 won an election in 2007? | SELECT party FROM table_name_17 WHERE established > 1797 AND election = 2007 | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | give me the number of patients whose diagnoses short title is stevens-johnson-ten syn and drug route is iv bolus? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Stevens-Johnson-TEN syn" AND prescriptions.route = "IV BOLUS" | mimicsql_data |
CREATE TABLE table_204_99 (
id number,
"#" number,
"club" text,
"winner" number,
"last win" number,
"runner-up" number,
"last losing final" number
) | how many different clubs have won ? | SELECT COUNT(DISTINCT "club") FROM table_204_99 WHERE "winner" > 0 | squall |
CREATE TABLE table_name_34 (
venue VARCHAR,
away_team VARCHAR
) | What venue features carlton as an away team? | SELECT venue FROM table_name_34 WHERE away_team = "carlton" | sql_create_context |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
countr... | Of the ORTHO classes offered this Fall , which are upper level ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ORTHO' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Fall'... | advising |
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
)
CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destructio... | Show the number of documents in different ending date Bin ending date by year interval and group by location code with a group line chart, show by the X from low to high. | SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Location_Code ORDER BY Date_in_Locaton_To | nvbench |
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,
... | calculate the minimum age of female patients who have government health insurance. | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.insurance = "Government" | mimicsql_data |
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
... | Please compare the number of names of parties using a bar chart, show by the y-axis in ascending please. | SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY COUNT(T2.Party) | nvbench |
CREATE TABLE table_name_77 (
points INTEGER,
year VARCHAR,
chassis VARCHAR
) | In 1985, how many points were earned by the entrant with the March 85B chassis? | SELECT MAX(points) FROM table_name_77 WHERE year = 1985 AND chassis = "march 85b" | sql_create_context |
CREATE TABLE table_25997153_1 (
title VARCHAR,
production_code VARCHAR
) | What is the title of the episode with the production code 3x5362? | SELECT title FROM table_25997153_1 WHERE production_code = "3X5362" | sql_create_context |
CREATE TABLE course (
course_id text,
title text,
dept_name text,
credits number
)
CREATE TABLE advisor (
s_id text,
i_id text
)
CREATE TABLE section (
course_id text,
sec_id text,
semester text,
year number,
building text,
room_number text,
time_slot_id text
)
CRE... | What are the ids of courses offered in Fall of 2009 but not in Spring of 2010? | SELECT course_id FROM section WHERE semester = 'Fall' AND year = 2009 EXCEPT SELECT course_id FROM section WHERE semester = 'Spring' AND year = 2010 | spider |
CREATE TABLE table_65227 (
"[ 3 H]CFT" real,
"[ 3 H]Nisoxetine" text,
"[ 3 H]Paroxetine" text,
"N \u00f7 D" real,
"S \u00f7 D" real
) | What is the [3 H] paroxetine with a [3 H] CFT less than 3.93, an S D greater than 1891, and a [3H] nizoxetine of 299 (180)? | SELECT "[ 3 H]Paroxetine" FROM table_65227 WHERE "[ 3 H]CFT" < '3.93' AND "S \u00f7 D" > '1891' AND "[ 3 H]Nisoxetine" = '299 (180)' | wikisql |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
even... | what are the five most frequently prescribed drugs that were prescribed to male patients 50s within the same month after being diagnosed with fx facial bone nec-close until 1 year ago? | 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_19334 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" text,
"2nd (m)" text,
"Points" text,
"Overall WC points (Rank)" text
) | The competitor for FIN had how many overall WC points? | SELECT "Overall WC points (Rank)" FROM table_19334 WHERE "Nationality" = 'FIN' | wikisql |
CREATE TABLE table_name_83 (
takuu VARCHAR,
north_marquesan VARCHAR
) | What kind of Takuu has a North Marquesan of /vehine/? | SELECT takuu FROM table_name_83 WHERE north_marquesan = "/vehine/" | sql_create_context |
CREATE TABLE Project_Staff (
staff_id DOUBLE,
project_id INTEGER,
role_code VARCHAR(10),
date_from DATETIME,
date_to DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Projects (
project_id INTEGER,
organisation_id INTEGER,
project_details VARCHAR(255)
)
CREATE TABLE Grants (
... | Return a bar chart on what are the ids and details for all organizations that have grants of more than 6000 dollars? | SELECT T2.organisation_details, T1.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_details | nvbench |
CREATE TABLE table_66838 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | In what year was the rank 24? | SELECT "Year" FROM table_66838 WHERE "Rank" = '24' | wikisql |
CREATE TABLE table_73881 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
) | What is every date of Mark Taylor as winning driver? | SELECT "Date" FROM table_73881 WHERE "Winning driver" = 'Mark Taylor' | wikisql |
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... | 患者患有疾病Y80.928,他被开出的药品的编号和名称分别是什么? | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.IN_DIAG_DIS_CD = 'Y80.928' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.IN_DIAG_DIS_CD = 'Y80.928' UN... | css |
CREATE TABLE table_name_24 (
lane INTEGER,
rank VARCHAR
) | What is the Lane of the swimmer with a Rank of 8? | SELECT MAX(lane) FROM table_name_24 WHERE rank = 8 | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | count the number of patients whose procedure icd9 code is 4610. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "4610" | mimicsql_data |
CREATE TABLE table_name_98 (
position VARCHAR,
event VARCHAR,
year VARCHAR
) | What is the position for Discus in 2013? | SELECT position FROM table_name_98 WHERE event = "discus" AND year = 2013 | 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... | Count the number of patients who have stayed in the hospital for more than 23 days with phenylephrine hcl. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "23" AND prescriptions.drug = "Phenylephrine HCl" | mimicsql_data |
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... | 3519597的医疗机构入院诊断疾病与出院诊断疾病出现过多少次不同的结果,时间是在二0一三年十二月二十三日到二0二0年十月二十二日 | SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '3519597' AND IN_HOSP_DATE BETWEEN '2013-12-23' AND '2020-10-22' AND IN_DIAG_DIS_CD <> OUT_DIAG_DIS_CD | css |
CREATE TABLE table_3294 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | What was his position when the team was FMS International? | SELECT "Position" FROM table_3294 WHERE "Team" = 'FMS International' | wikisql |
CREATE TABLE table_51464 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) | Jacques Villeneuve was on what grid? | SELECT "Grid" FROM table_51464 WHERE "Driver" = 'jacques villeneuve' | wikisql |
CREATE TABLE table_79982 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | What is the total Decile that has a state authority, fairlie area and roll smarter than 206? | SELECT COUNT("Decile") FROM table_79982 WHERE "Authority" = 'state' AND "Area" = 'fairlie' AND "Roll" < '206' | wikisql |
CREATE TABLE table_12576 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | What is the venue for the Status of Five Nations and 0 againts? | SELECT "Venue" FROM table_12576 WHERE "Status" = 'five nations' AND "Against" = '0' | 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 zyjzjlb (
CYBQDM text,
CYBQMC... | 列出在08年4月2日到10年8月17日内患者云文石全部检验结果指标记录中的仪器名称以及编号都是什么啊? | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb 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 AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AN... | css |
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE journal (
jou... | What conferences did li dong publish in in 2016 ? | SELECT DISTINCT paper.venueid FROM author, paper, writes WHERE author.authorname = 'li dong' AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | scholar |
CREATE TABLE table_204_880 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | what was the only year the venue was in japan ? | SELECT "year" FROM table_204_880 WHERE "venue" = 'japan' | squall |
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 time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TA... | flights from DENVER to SEATTLE on saturday morning on CO | 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, date_day, days, flight WHERE (((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND date_day.day_number = 26 AND date_day.month_number = 7 AND... | atis |
CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Total real
)
CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points real
)
CREATE TABLE club (
Club_ID int,
... | What is the number of types of competition? | SELECT Competition_type, COUNT(Competition_type) FROM competition GROUP BY Competition_type | nvbench |
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... | give me the number of patients whose marital status is married and lab test chart time is 2165-06-23 22:30:00? | 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.charttime = "2165-06-23 22:30:00" | mimicsql_data |
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... | provide the number of patients whose ethnicity is black/african american? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" | mimicsql_data |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
... | 在医疗就诊03617073061中,患者柏妙晴的各检验报告的审核人员工号是什么?姓名是什么? | SELECT jybgb.SHRGH, jybgb.SHRXM FROM jybgb WHERE jybgb.JZLSH = '03617073061' | css |
CREATE TABLE Street_Markets (
Market_ID INTEGER,
Market_Details VARCHAR(255)
)
CREATE TABLE Tourist_Attraction_Features (
Tourist_Attraction_ID INTEGER,
Feature_ID INTEGER
)
CREATE TABLE Shops (
Shop_ID INTEGER,
Shop_Details VARCHAR(255)
)
CREATE TABLE Visits (
Visit_ID INTEGER,
Touri... | Show the names and ids of tourist attractions that are visited at least two times. Visualize by bar chart. | SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID | nvbench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.