context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,... | tell me the last medicine that was prescribed to patient 033-250 until 42 months ago. | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-250')) AND DATETIME(medication.drugstarttime) <= DATETIME(CURRE... | eicu |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | What is the number of patients younger than 82 years who have bowel obstruction as their primary disease? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.age < "82" | mimicsql_data |
CREATE TABLE table_7401 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Multi 1" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Order part number" text
) | What kind of Voltage has a Frequency of 2000mhz, and a Release date in q3 2008? | SELECT "Voltage" FROM table_7401 WHERE "Frequency" = '2000mhz' AND "Release date" = 'q3 2008' | wikisql |
CREATE TABLE table_7120 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | Which Theme has a Result of eliminated? | SELECT "Theme" FROM table_7120 WHERE "Result" = 'eliminated' | wikisql |
CREATE TABLE table_name_79 (
tournament VARCHAR,
date VARCHAR
) | What tournament has nov. 21, 1999 as the date? | SELECT tournament FROM table_name_79 WHERE date = "nov. 21, 1999" | sql_create_context |
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state ... | Return a bar chart on what are the names of the different bank branches, and what are their total loan amounts?, I want to list in descending by the sum amount. | SELECT bname, SUM(amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_ID = T2.branch_ID GROUP BY T1.bname ORDER BY SUM(amount) DESC | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | how many patients are with diagnosis physical restrain status and ng drug route? | 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 = "Physical restrain status" AND prescriptions.route = "NG" | mimicsql_data |
CREATE TABLE table_9616 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
) | What team was the opponent when the round was sf? | SELECT "Opponent" FROM table_9616 WHERE "Round" = 'sf' | 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... | how many patients who were discharged home had procedure incision of aorta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME" AND procedures.short_title = "Incision of aorta" | mimicsql_data |
CREATE TABLE table_34722 (
"Name" text,
"Status" text,
"Population" real,
"District" text,
"Former local authority" text
) | What is the Status for the District of doncaster, and a Former local authority of doncaster rural district, with a Population of 203? | SELECT "Status" FROM table_34722 WHERE "District" = 'doncaster' AND "Former local authority" = 'doncaster rural district' AND "Population" = '203' | wikisql |
CREATE TABLE table_50527 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
) | Who was the winner at the tournament in Hamburg? | SELECT "Winner" FROM table_50527 WHERE "Tournament" = 'hamburg' | wikisql |
CREATE TABLE table_68876 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text
) | Name the start for finish being 21st | SELECT "Start" FROM table_68876 WHERE "Finish" = '21st' | wikisql |
CREATE TABLE table_name_4 (
name VARCHAR,
species_authority VARCHAR,
red_list VARCHAR,
order VARCHAR
) | What is the name for the red list of 7, the artiodactyla order, and Species Authority of cervus elaphus linnaeus, 1758? | SELECT name FROM table_name_4 WHERE red_list = 7 AND order = "artiodactyla" AND species_authority = "cervus elaphus linnaeus, 1758" | 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 procedures (
... | How many patients have a diphenhydramine prescription? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "DiphenhydrAMINE" | mimicsql_data |
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Bookings (
apt_bookin... | Return a bar chart about the number bookings for each apartment number. | SELECT apt_number, COUNT(apt_number) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id GROUP BY apt_number | nvbench |
CREATE TABLE table_52906 (
"Name" text,
"Party" text,
"Date of resignation" text,
"Replacement" text,
"Notes" text
) | Who was replaced by Lieve Wierinck? | SELECT "Name" FROM table_52906 WHERE "Replacement" = 'lieve wierinck' | wikisql |
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... | This semester , what class can I take that 's a prerequisite for most other classes ? | SELECT COUNT(DISTINCT COURSE_PREREQUISITEalias0.course_id), COURSEalias0.department, COURSEalias0.name, COURSEalias0.number FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course AS COURSEalias1, course_offering AS COURSE_OFFERINGali... | advising |
CREATE TABLE table_name_76 (
wins INTEGER,
goals_against INTEGER
) | What is the average number of wins with less than 10 goals? | SELECT AVG(wins) FROM table_name_76 WHERE goals_against < 10 | sql_create_context |
CREATE TABLE table_8565 (
"Rank" real,
"Surname" text,
"Number of bearers 2008" real,
"Type" text,
"Etymology" text
) | What was the lowest number of 2008 total bearers with a rank less than 13 and the Surname Jansson? | SELECT MIN("Number of bearers 2008") FROM table_8565 WHERE "Surname" = 'jansson' AND "Rank" < '13' | wikisql |
CREATE TABLE table_48228 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Can you tell me the Date that has the Team of golden state? | SELECT "Date" FROM table_48228 WHERE "Team" = 'golden state' | wikisql |
CREATE TABLE table_58303 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66? | SELECT SUM("Grid") FROM table_58303 WHERE "Laps" > '66' AND "Driver" = 'michael schumacher' | wikisql |
CREATE TABLE table_name_26 (
time VARCHAR,
athlete VARCHAR
) | What was Law Hiu Fung's time? | SELECT time FROM table_name_26 WHERE athlete = "law hiu fung" | sql_create_context |
CREATE TABLE table_name_96 (
loser VARCHAR,
location VARCHAR,
year VARCHAR
) | Who was the loser at Municipal Stadium after 1970? | SELECT loser FROM table_name_96 WHERE location = "municipal stadium" AND year > 1970 | sql_create_context |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CR... | what was the change in amylase value of patient 23858 last measured on the last hospital visit compared to the value first measured on the last hospital visit? | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23858 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.l... | mimic_iii |
CREATE TABLE table_72638 (
"Date" text,
"Tournament" text,
"Player" text,
"Country" text,
"Rounds" text,
"Score" real,
"To par" text,
"Finish" text
) | What days were the rounds of 66-67-70-67 recorded? | SELECT "Date" FROM table_72638 WHERE "Rounds" = '66-67-70-67' | wikisql |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_fl... | cheapest round trip fare from INDIANAPOLIS to ORLANDO on 12 25 | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND C... | atis |
CREATE TABLE table_64164 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | What is the highest rank for the team of egypt? | SELECT MAX("Rank") FROM table_64164 WHERE "Country" = 'egypt' | wikisql |
CREATE TABLE table_17155250_1 (
director VARCHAR,
original_title VARCHAR
) | Who was the director of the film with the original title of 'The Patience Stone'? | SELECT director FROM table_17155250_1 WHERE original_title = "The Patience Stone" | sql_create_context |
CREATE TABLE table_160510_1 (
hangul VARCHAR,
hanja VARCHAR
) | What is the hangul symbol for the hanja ? | SELECT hangul FROM table_160510_1 WHERE hanja = "良州" | sql_create_context |
CREATE TABLE table_70917 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals? | SELECT COUNT("Bronze") FROM table_70917 WHERE "Gold" < '2' AND "Nation" = 'uganda' AND "Total" > '2' | wikisql |
CREATE TABLE roller_coaster (
roller_coaster_id number,
name text,
park text,
country_id number,
length number,
height number,
speed text,
opened text,
status text
)
CREATE TABLE country (
country_id number,
name text,
population number,
area number,
languages te... | How many countries do not have an roller coaster longer than 3000? | SELECT COUNT(*) FROM country WHERE NOT country_id IN (SELECT country_id FROM roller_coaster WHERE length > 3000) | spider |
CREATE TABLE table_58895 (
"Year" real,
"Film" text,
"Result" text,
"Category" text,
"Actor" text
) | What is the result of Samantha Morton being up for best supporting actress in a year later than 1989? | SELECT "Result" FROM table_58895 WHERE "Year" > '1989' AND "Category" = 'best supporting actress' AND "Actor" = 'samantha morton' | wikisql |
CREATE TABLE table_14615 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | What entrant drove a car with a Moore chassis prior to 1953? | SELECT "Entrant" FROM table_14615 WHERE "Year" < '1953' AND "Chassis" = 'moore' | wikisql |
CREATE TABLE zyb (
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... | 在04年9月17日到14年4月8日这个期间内,病患52767851主要看哪个医生? | SELECT qtb.OUT_DIAG_DOC_CD, qtb.OUT_DIAG_DOC_NM FROM qtb WHERE qtb.PERSON_ID = '52767851' AND qtb.IN_HOSP_DATE BETWEEN '2004-09-17' AND '2014-04-08' GROUP BY qtb.OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT gyb.OUT_DIAG_DOC_CD, gyb.OUT_DIAG_DOC_NM FROM gyb WHERE gyb.PERSON_ID = '52767851' AND gyb.IN_HOSP... | css |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the sum of code , and group by attribute name, and I want to rank in asc by the y-axis. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code | nvbench |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0... | For those employees who do not work in departments with managers that have ids between 100 and 200, give me the trend about employee_id over hire_date . | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_70098 (
"Value" text,
"Khmer" real,
"Word Form" text,
"UNGEGN" text,
"ALA-LC" text,
"Notes" text
) | What is the UNGEGN, when the Value is 10 000? | SELECT "UNGEGN" FROM table_70098 WHERE "Value" = '10 000' | wikisql |
CREATE TABLE table_203_491 (
id number,
"year" number,
"title" text,
"us hot 100" number,
"us modern rock" number,
"us mainstream rock" number,
"album" text
) | which single rated highest on the us mainstream rock chart ? | SELECT "title" FROM table_203_491 ORDER BY "us mainstream rock" LIMIT 1 | squall |
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... | 韦云霞患者在16年2月20日到2016年12月15日的这个时间段自付比例低于0.43的药品量共有多少? | SELECT COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_NM = '韦云霞' AND t_kc22.STA_DATE BETWEEN '2016-02-20' AND '2016-12-15' AND t_kc22.SELF_PAY_PRO < 0.43 UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.PERSON_NM = '韦云霞' AND t_k... | css |
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... | 询问一下患者98644163往常有过什么异常情况吗? | SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN 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 = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_info.RYBH = '... | css |
CREATE TABLE table_name_83 (
score VARCHAR,
player VARCHAR
) | What is the score for Nick Faldo? | SELECT score FROM table_name_83 WHERE player = "nick faldo" | sql_create_context |
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
nu... | how many papers richard anderson and gaetano borriello coauthored ? | SELECT DISTINCT COUNT(1) FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'richard anderson' AND AUTHOR_1.authorname = 'gaetano borriello' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0.pa... | scholar |
CREATE TABLE table_20245 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | Name the 20 questions for derek jeter | SELECT "20 Questions" FROM table_20245 WHERE "Interview subject" = 'Derek Jeter' | wikisql |
CREATE TABLE table_name_72 (
wins INTEGER,
season VARCHAR,
draws VARCHAR
) | What is the average number of wins before the season in 1906 where there were 0 draws? | SELECT AVG(wins) FROM table_name_72 WHERE season < 1906 AND draws < 0 | sql_create_context |
CREATE TABLE table_32998 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
) | What car number has 130 points? | SELECT "Car #" FROM table_32998 WHERE "Points" = '130' | wikisql |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
sy... | what are the top four most common lab tests for patients aged 60 or above, in this year? | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY la... | eicu |
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 male patients have 3799 as the procedure icd9 code? | 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 = "3799" | mimicsql_data |
CREATE TABLE table_name_86 (
year INTEGER,
manager VARCHAR
) | Manager of art griggs had what lowest year? | SELECT MIN(year) FROM table_name_86 WHERE manager = "art griggs" | sql_create_context |
CREATE TABLE table_name_3 (
airportname VARCHAR,
city___town VARCHAR,
iata VARCHAR
) | What is the name of the airport in S o Filipe that has an IATA of sfl? | SELECT airportname FROM table_name_3 WHERE city___town = "são filipe" AND iata = "sfl" | sql_create_context |
CREATE TABLE table_name_27 (
draws VARCHAR,
matches INTEGER
) | What is the total number of Draws with less than 4 matches? | SELECT COUNT(draws) FROM table_name_27 WHERE matches < 4 | sql_create_context |
CREATE TABLE table_203_594 (
id number,
"canal" text,
"length (miles)" number,
"locks" number,
"max length (ft)" number,
"width (ft)" number,
"year opened" number,
"year abandoned" number,
"year restored" number
) | the year forth and clyde was restored | SELECT "year restored" FROM table_203_594 WHERE "canal" = 'forth and clyde canal' | squall |
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... | 能知道在2015-12-15到2020-02-16内,患者苗曼青在看病时是哪些工号及姓名的医生给检测茶碱的吗 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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_MZ... | css |
CREATE TABLE table_74405 (
"Institution" text,
"Location" text,
"Mascot" text,
"Colors" text,
"Affiliation" text,
"9\u201312 enrollment" real,
"School website" text
) | How many different combinations of team colors are there in all the schools in Maroa, Illinois? | SELECT COUNT("Colors") FROM table_74405 WHERE "Location" = 'Maroa, Illinois' | wikisql |
CREATE TABLE table_name_3 (
laps INTEGER,
time VARCHAR,
grid VARCHAR
) | What is the total of laps run by the driver with a grid under 17 and a time of +5.088? | SELECT SUM(laps) FROM table_name_3 WHERE time = "+5.088" AND grid < 17 | sql_create_context |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id... | please list all flights that leave DENVER before 1200 on NW | SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE (city.city_code = airport_service.city_code AND city.city_name = 'DENVER' AND flight.departure_time < 1200 AND flight.from_airport = airport_service.airport_code) AND flight.airline_code = 'NW' | atis |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | what is marital status and religion of subject id 15898? | SELECT demographic.marital_status, demographic.religion FROM demographic WHERE demographic.subject_id = "15898" | mimicsql_data |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_g... | Which courses would fulfill the ULCS requirement in the Fall or Winter ? | 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 |
CREATE TABLE table_200_25 (
id number,
"service" text,
"2012/13 total cost\n(\u00a3million)" number,
"comparison with\n2011/12 (\u00a3million)" number
) | which bbc station had cost the most to run in 2012/13 ? | SELECT "service" FROM table_200_25 ORDER BY "2012/13 total cost\n(\u00a3million)" DESC LIMIT 1 | squall |
CREATE TABLE table_2193 (
"Year(s)" real,
"Commentator" text,
"Dual Commentator" text,
"Spokesperson" text,
"Channel" text
) | state all the spokesperson for the channel where commentator is dmitriy guberniyev | SELECT "Spokesperson" FROM table_2193 WHERE "Commentator" = 'Dmitriy Guberniyev' | wikisql |
CREATE TABLE table_204_239 (
id number,
"year" number,
"title" text,
"uk" text,
"us:\nbillboard\nhot 100" text,
"us:\nbillboard\nr&b" text,
"us:\nbillboard\na/c" text,
"australia" text,
"various" text
) | what title was released previous to got ta be the one ? | SELECT "title" FROM table_204_239 WHERE id = (SELECT id FROM table_204_239 WHERE "title" = '"gotta be the one"') - 1 | squall |
CREATE TABLE t_kc21 (
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,
... | 在病患55299978的医疗记录中,有哪几次的医疗费总额在6461.54元以上,列出入院诊断疾病的名称和编码 | SELECT t_kc21.OUT_DIAG_DIS_CD, t_kc21.OUT_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_ID = '55299978' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 6461.54) | css |
CREATE TABLE table_13421 (
"Date" text,
"Tournament" text,
"Winning Score" text,
"Margin of Victory" text,
"Runner(s)-up" text
) | What was the winning score on Aug 21, 1977? | SELECT "Winning Score" FROM table_13421 WHERE "Date" = 'aug 21, 1977' | wikisql |
CREATE TABLE table_204_691 (
id number,
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" number,
"scorers" text
) | how many games had the attendance of at least 20,000 ? | SELECT COUNT(*) FROM table_204_691 WHERE "attendance" >= 20000 | squall |
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... | 哪些医务人员在2012年5月30日到2014年9月25日期间为患者朱清佳检测指标204728的,提供一下工号及姓名 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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_MZ... | css |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | What are the average prices of products, grouped by manufacturer name, I want to rank by the names in descending. | SELECT T2.Name, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC | nvbench |
CREATE TABLE table_24223 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
) | What was the winning score of the Vernal Ladies tournament? | SELECT "Winning score" FROM table_24223 WHERE "Tournament" = 'Vernal Ladies' | wikisql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
... | how many patients were diagnosed with acute respiratory failure - due to inability to clear secretions in 2102 within 2 months after they had undergone immunosuppressive therapy - mycophenolate mofetil? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'immunosuppressive therapy - mycophenolate mofetil' AND STRFTIME('%y', treatment.treatmenttime) = '2102') AS ... | eicu |
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,... | 医疗就诊58780593755的所有异地结算的费用明细项目都需要列举出来? | SELECT MED_EXP_DET_ID FROM t_kc22 WHERE MED_CLINIC_ID = '58780593755' AND (REMOTE_SETTLE_FLG = '异地1' OR REMOTE_SETTLE_FLG = '异地2') | css |
CREATE TABLE table_8015 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Language(s)" text,
"Director" text,
"Result" text
) | WHAT IS THE RESULT WITH A FILM TITLE FIREDANCER? | SELECT "Result" FROM table_8015 WHERE "Film title used in nomination" = 'firedancer' | wikisql |
CREATE TABLE table_name_89 (
affiliation VARCHAR,
estd VARCHAR,
location VARCHAR
) | Where is the coimbatore affilation that was established in 1982? | SELECT affiliation FROM table_name_89 WHERE estd = "1982" AND location = "coimbatore" | sql_create_context |
CREATE TABLE table_2489 (
"Issuer" text,
"Issue Date" text,
"ISIN" text,
"Amount Issued [\u20ac]" text,
"Coupon" text,
"Maturity" text
) | What is the ISIN associated with the maturity date of 3/11/2011? | SELECT "ISIN" FROM table_2489 WHERE "Maturity" = '3/11/2011' | wikisql |
CREATE TABLE table_43318 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
) | Which Tournament has a Score of 6(4) 7 2 6? | SELECT "Tournament" FROM table_43318 WHERE "Score" = '6(4)–7 2–6' | wikisql |
CREATE TABLE table_76173 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
) | Who was the winner against finalist Lina Krasnoroutskaya? | SELECT "Winner" FROM table_76173 WHERE "Finalist" = 'lina krasnoroutskaya' | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | mention the short title of diagnosis for diagnosis icd9 code 45620. | SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "45620" | mimicsql_data |
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... | when was the first time the heartrate of patient 005-48105 was less than 155.0, in yesterday? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-48105')) AND vitalperiodic.heartrate < 155.0 AN... | eicu |
CREATE TABLE table_65931 (
"Name" text,
"Language" text,
"Owner" text,
"Group" text,
"Type" text
) | What is the group of ESPN International Sports? | SELECT "Group" FROM table_65931 WHERE "Name" = 'espn international sports' | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | count the number of patients whose diagnosis icd9 code is 43401 and drug route is sl. | 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.icd9_code = "43401" AND prescriptions.route = "SL" | mimicsql_data |
CREATE TABLE table_51116 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What is Scott Verplank's score? | SELECT "Score" FROM table_51116 WHERE "Player" = 'scott verplank' | wikisql |
CREATE TABLE table_24014744_1 (
putri_pariwisata_indonesia VARCHAR
) | List the number of runners up when albertina fransisca mailoa won the putri pariwisata contest? | SELECT COUNT(3 AS rd_runner_up) FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa" | sql_create_context |
CREATE TABLE table_18984 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What was the score on November 25? | SELECT "Score" FROM table_18984 WHERE "Date" = 'November 25' | wikisql |
CREATE TABLE table_76676 (
"Number" text,
"D\u00e9partment (or collectivity)" text,
"Pr\u00e9sident" text,
"Party" text,
"Since" real
) | Who is the president from the Union for a Popular Movement party that represents the Hautes-Alpes department? | SELECT "Pr\u00e9sident" FROM table_76676 WHERE "Party" = 'union for a popular movement' AND "D\u00e9partment (or collectivity)" = 'hautes-alpes' | wikisql |
CREATE TABLE table_68905 (
"Rank" real,
"Country/Region" text,
"Population" real,
"Area (km 2 )" real,
"Density (Pop. per km 2 )" real
) | What is the average population of the region with a density less than 487, a rank of 9, and an area larger than 377,944? | SELECT AVG("Population") FROM table_68905 WHERE "Density (Pop. per km 2 )" < '487' AND "Rank" = '9' AND "Area (km 2 )" > '377,944' | wikisql |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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),... | For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of hire_date and the average of salary bin hire_date by weekday, and order by the y-axis from high to low. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(SALARY) DESC | nvbench |
CREATE TABLE table_69584 (
"Birth" text,
"Marriage" text,
"Became Consort" text,
"Ceased to be Consort" text,
"Death" text,
"Spouse" text
) | Name the birth of the person that has a spouse of frederick iv and became consort of 4 april 1721 | SELECT "Birth" FROM table_69584 WHERE "Spouse" = 'frederick iv' AND "Became Consort" = '4 april 1721' | wikisql |
CREATE TABLE table_name_83 (
communes INTEGER,
cantons VARCHAR,
area__square_km_ VARCHAR
) | How many communes associated with over 10 cantons and an area (Square km) of 1,589? | SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589 | sql_create_context |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END... | For those employees who was hired before 2002-06-21, show me about the distribution of job_id and the average of manager_id , and group by attribute job_id in a bar chart, and show by the total number in ascending. | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID) | nvbench |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | 在那个号码是4285739医院从04年12月12日到05年4月19日这几个月开出的检验报告单中检测指标名称和检测指标结果定量单位都不同的时候,检测指标结果定量值的平均数最小的前俩数是多些? | SELECT JCZBMC, JCZBJGDW, AVG(JCZBJGDL) FROM jyjgzbb WHERE YLJGDM = '4285739' AND BGRQ BETWEEN '2004-12-12' AND '2005-04-19' GROUP BY JCZBMC, JCZBJGDW ORDER BY AVG(JCZBJGDL) LIMIT 2 | css |
CREATE TABLE table_15349 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
) | Which Melbourne has a Perth of yes, and an Auckland of yes? | SELECT "Melbourne" FROM table_15349 WHERE "Perth" = 'yes' AND "Auckland" = 'yes' | wikisql |
CREATE TABLE table_name_28 (
enrollment_08_09 INTEGER,
previous_counference VARCHAR,
ihsaa_class VARCHAR
) | What is the average enrollment 08=09, for the team that had a previous conference of lake and IHSAA class of 3A? | SELECT AVG(enrollment_08_09) FROM table_name_28 WHERE previous_counference = "lake" AND ihsaa_class = "3a" | sql_create_context |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text te... | Top Contributor Named 'Luca' From Italy. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", DisplayName, LastAccessDate, Reputation FROM Users WHERE LOWER(Location) LIKE '%italy%' AND DisplayName LIKE 'Luca%' ORDER BY Reputation DESC | sede |
CREATE TABLE Research_Outcomes (
outcome_code VARCHAR(10),
outcome_description VARCHAR(255)
)
CREATE TABLE Document_Types (
document_type_code VARCHAR(10),
document_description VARCHAR(255)
)
CREATE TABLE Project_Outcomes (
project_id INTEGER,
outcome_code VARCHAR(10),
outcome_details VARC... | Draw a bar chart for 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 CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
... | How many courses each teacher taught? Show me a bar chart grouping by course code. | SELECT CRS_CODE, COUNT(CRS_CODE) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY CRS_CODE | nvbench |
CREATE TABLE table_61219 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | What is the Surface of the match played on October 5, 1987? | SELECT "Surface" FROM table_61219 WHERE "Date" = 'october 5, 1987' | wikisql |
CREATE TABLE table_65618 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer fee" text
) | Which country has the status of transferred, moving to of released, and Solano as the listed name? | SELECT "Country" FROM table_65618 WHERE "Status" = 'transferred' AND "Moving to" = 'released' AND "Name" = 'solano' | 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... | let me know the type of admission patient ida cook had. | SELECT demographic.admission_type FROM demographic WHERE demographic.name = "Ida Cook" | mimicsql_data |
CREATE TABLE table_63405 (
"Callsign" text,
"Network" text,
"City of License" text,
"D ERP" text,
"Owner / Operator" text
) | What's the city of license having a D ERP of 100kw? | SELECT "City of License" FROM table_63405 WHERE "D ERP" = '100kw' | wikisql |
CREATE TABLE table_38903 (
"Track number" real,
"Title" text,
"Songwriter(s)" text,
"Recording date" text,
"Time" text
) | How many track numbers were recorded on November 16, 1959 for the title of I Couldn't Hear Nobody Pray? | SELECT COUNT("Track number") FROM table_38903 WHERE "Recording date" = 'november 16, 1959' AND "Title" = 'i couldn''t hear nobody pray' | wikisql |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
item... | how many days have elapsed since patient 22648 stayed in the ward 52 for the last time during this hospital visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22648 AND admissions.dischtime IS NULL)) AND transfers.... | mimic_iii |
CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
) | Which Lower Layer Output Area do most of the crimes happen? | SELECT lsoa FROM greatermanchestercrime GROUP BY lsoa ORDER BY COUNT(*) DESC LIMIT 1 | greatermanchestercrime |
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 person_info_hz_info (
RYBH text,
... | 为病人陶宏伯检测降钙素原的在06年5月31日到21年10月31日内的医务人员工号及姓名都是什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info ON person_info.RYBH = person_info_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 mzjzj... | css |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.