context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE table_name_30 ( region VARCHAR, venue VARCHAR )
What region is William R. Johnson Coliseum in?
SELECT region FROM table_name_30 WHERE venue = "william r. johnson coliseum"
sql_create_context
CREATE TABLE table_44851 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
What is the highest pick of scott turner, who has a round greater than 2?
SELECT MAX("Pick") FROM table_44851 WHERE "Round" > '2' AND "Name" = 'scott turner'
wikisql
CREATE TABLE table_38725 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text )
Who did Yugoslavia play against that led to a result of 2:3?
SELECT "Opponent" FROM table_38725 WHERE "Results\u00b9" = '2:3'
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...
统计一下医疗记录中医院8058667的住院诊断为非器质性睡眠障碍的最低医疗费总金额是多少元钱?最高医疗费总金额多少钱?
SELECT MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '8058667' AND t_kc24.t_kc21_IN_DIAG_DIS_NM = '非器质性睡眠障碍')
css
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 those records from the products and each product's manufacturer, show me about the distribution of name and manufacturer , and group by attribute founder in a bar chart, and sort X-axis from high to low order please.
SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name DESC
nvbench
CREATE TABLE table_name_85 ( theme VARCHAR, original_artist VARCHAR, week__number VARCHAR )
What is the Theme when the Original artist was carole king, and a Week # shows hollywood?
SELECT theme FROM table_name_85 WHERE original_artist = "carole king" AND week__number = "hollywood"
sql_create_context
CREATE TABLE table_25703_1 ( death_2012 VARCHAR, death_2013 VARCHAR, january_september_2013 VARCHAR )
What are the death/2012 number when death/2013 is 140 and January September 2013 is Moscow Oblast?
SELECT death_2012 FROM table_25703_1 WHERE death_2013 = 140 AND january_september_2013 = "Moscow Oblast"
sql_create_context
CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturd...
what are the flights from BOSTON to WASHINGTON
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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHING...
atis
CREATE TABLE table_name_62 ( city VARCHAR, home_arena VARCHAR )
Which city includes the Target Center arena?
SELECT city FROM table_name_62 WHERE home_arena = "target center"
sql_create_context
CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, ...
Negatively scored answers that have been recently undeleted.
SELECT e.PostId AS "post_link", p.Score, e.CreationDate AS "undeletion_date", p.Body FROM PostHistory AS e INNER JOIN Posts AS p ON e.PostId = p.Id WHERE p.PostTypeId = 2 AND p.Score < 0 AND e.PostHistoryTypeId = 13 ORDER BY e.CreationDate DESC
sede
CREATE TABLE table_name_16 ( rides VARCHAR, bonus_pts VARCHAR, total_points VARCHAR, rider VARCHAR )
How many rides did it take Ray Day to get 274 points in total with less than 3 bonus points?
SELECT COUNT(rides) FROM table_name_16 WHERE total_points < 274 AND rider = "ray day" AND bonus_pts > 3
sql_create_context
CREATE TABLE airports ( city VARCHAR, country VARCHAR )
How many airports are there per city in the United States? Order the cities by decreasing number of airports.
SELECT COUNT(*), city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY COUNT(*) DESC
sql_create_context
CREATE TABLE table_name_80 ( player VARCHAR, score VARCHAR )
What is Player, when Score is '68-71=139'?
SELECT player FROM table_name_80 WHERE score = 68 - 71 = 139
sql_create_context
CREATE TABLE table_80190 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text )
What city is fuhlsb ttel airport in?
SELECT "City" FROM table_80190 WHERE "Airport" = 'fuhlsbüttel airport'
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, ...
among patients treated with main drug, calculate the number of those who had icd9 code 7291
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 = "7291" AND prescriptions.drug_type = "MAIN"
mimicsql_data
CREATE TABLE train ( Train_ID int, Train_Num text, Name text, From text, Arrival text, Railway_ID int ) CREATE TABLE manager ( Manager_ID int, Name text, Country text, Working_year_starts text, Age int, Level int ) CREATE TABLE railway_manage ( Railway_ID int, M...
Show id and location of railways that are associated with more than one train. Visualize by bar chart.
SELECT T1.Location, T1.Railway_ID FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID
nvbench
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( row_id num...
count the number of patients who have had an glucose, body fluid test this year.
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose, body fluid') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME...
mimic_iii
CREATE TABLE table_13336122_3 ( title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR )
What's the title of the episode directed by David von Ancken, with a episode number bigger than 16.0?
SELECT title FROM table_13336122_3 WHERE directed_by = "David Von Ancken" AND no_in_series > 16.0
sql_create_context
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
give me the number of patients whose primary disease is t5 fracture and procedure icd9 code is 8105?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "T5 FRACTURE" AND procedures.icd9_code = "8105"
mimicsql_data
CREATE TABLE table_1341568_34 ( district VARCHAR, party VARCHAR, elected VARCHAR )
In how many districts was the democratic incumbent elected in 1974?
SELECT COUNT(district) FROM table_1341568_34 WHERE party = "Democratic" AND elected = 1974
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...
那个11103457号的病患在看病过程中被开出的药品都少于9690.79元的医疗就诊编号是多少?
SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '11103457' AND NOT MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc22 WHERE AMOUNT > 9690.79)
css
CREATE TABLE table_204_793 ( id number, "call-sign" text, "location" text, "rf" number, "psip" number, "programming" text )
is the rf for wivm ld 39 or 29 ?
SELECT "rf" FROM table_204_793 WHERE "rf" IN (39, 29) AND "call-sign" = 'wivm-ld'
squall
CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requi...
Which classes next semester can be taken as ULCS ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_...
advising
CREATE TABLE table_68144 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
What is the finish when there was more than 192 laps and a qual of 135.736?
SELECT "Finish" FROM table_68144 WHERE "Laps" > '192' AND "Qual" = '135.736'
wikisql
CREATE TABLE table_name_89 ( opponent VARCHAR, attendance INTEGER )
Who is the opponent of the match with an attendance larger than 59,000?
SELECT opponent FROM table_name_89 WHERE attendance > 59 OFFSET 000
sql_create_context
CREATE TABLE table_name_83 ( score VARCHAR, opponent_in_the_final VARCHAR )
What was the score for the opponent against Katerina Maleeva in the final?
SELECT score FROM table_name_83 WHERE opponent_in_the_final = "katerina maleeva"
sql_create_context
CREATE TABLE table_name_73 ( player VARCHAR, school_club_team VARCHAR )
Who is the player for the School/Club team in Georgia?
SELECT player FROM table_name_73 WHERE school_club_team = "georgia"
sql_create_context
CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskSt...
Who from your location is better than you?.
SELECT U2.* FROM Users AS U1 JOIN Users AS U2 ON U1.Location = U2.Location WHERE 1 = 1 AND U1.DisplayName = 'jyparask' AND U1.Reputation <= U2.Reputation ORDER BY U2.Reputation DESC, U2.DisplayName
sede
CREATE TABLE table_39339 ( "Rank" real, "Country/Territory" text, "Miss World" real, "1st Runner-up" real, "2nd Runner-up" real, "3rd Runner-up" real, "4th Runner-up" real, "5th Runner-up" real, "6th Runner-up" real, "Semifinalists" real, "Total" real )
2nd Runner-up larger than 4, and a Country/Territory of israel, and a 4th Runner-up smaller than 0 has which sum of 6th Runner-up?
SELECT SUM("6th Runner-up") FROM table_39339 WHERE "2nd Runner-up" > '4' AND "Country/Territory" = 'israel' AND "4th Runner-up" < '0'
wikisql
CREATE TABLE table_203_815 ( id number, "pick #" number, "nfl team" text, "player" text, "position" text, "college" text )
how many guards were picked ?
SELECT COUNT(*) FROM table_203_815 WHERE "position" = 'guard'
squall
CREATE TABLE table_name_84 ( home_team VARCHAR, away_team VARCHAR )
When the Away team was hawthorn, what's the Home team?
SELECT home_team FROM table_name_84 WHERE away_team = "hawthorn"
sql_create_context
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
How many patients with icd9 code 5732 received IM therapy?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "5732" AND prescriptions.route = "IM"
mimicsql_data
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number...
how many hours has it been since the first time that patient 6170 on the current icu visit received a .9% normal saline intake?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 = 6170) AND icustays.outtime IS NULL) ...
mimic_iii
CREATE TABLE table_67076 ( "Competition" text, "1993\u2013 94" text, "1994\u2013 95" text, "1995\u2013 96" text, "1996\u2013 97" text, "1997\u2013 98" text, "1998\u2013 99" text, "1999\u2013 2000" text, "2000\u2013 01" text, "2001\u2013 02" text, "2002\u2013 03" text, "20...
Name the 1999-2000 for 1993-94 of did not participate
SELECT "1999\u2013 2000" FROM table_67076 WHERE "1993\u2013 94" = 'did not participate'
wikisql
CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ) CREATE TABLE DEPARTMENT ( DEPT_CODE varchar(10), DEPT_NAME varchar(30), SCHOOL_CODE varchar(8), EMP_NUM int, DEPT_ADDRESS varchar(20), DEPT_EXTENSION varchar(4) ...
Find the number of students in each department that has the top 3 highest number of students. Show the department address and number of students with a pie chart.
SELECT DEPT_ADDRESS, COUNT(*) FROM STUDENT AS T1 JOIN DEPARTMENT AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.DEPT_CODE ORDER BY COUNT(*) DESC LIMIT 3
nvbench
CREATE TABLE producer ( pid int, gender text, name text, nationality text, birth_city text, birth_year int ) CREATE TABLE copyright ( id int, msid int, cid int ) CREATE TABLE writer ( wid int, gender text, name text, nationality text, birth_city text, birth_...
Find all actors born in Milan
SELECT name FROM actor WHERE birth_city = 'Milan'
imdb
CREATE TABLE table_203_322 ( id number, "club" text, "played" number, "won" number, "drawn" number, "lost" number, "points for" number, "points against" number, "bonus points" number, "points" number )
which clubs did not score more than 50 points ?
SELECT "club" FROM table_203_322 WHERE "points" <= 50
squall
CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE compartment_class ...
what is the cheapest flight on AA from CLEVELAND to MIAMI
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, fare, flight, flight_fare WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CLEVELAND' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CIT...
atis
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE patients ( row_id number, subject_id number, g...
how many patients in 2105 have undergone packed cell transfusion in the same month following the first hemodialysis?
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'hemodialysi...
mimic_iii
CREATE TABLE table_name_81 ( time_retired VARCHAR, grid VARCHAR )
What is the time/retired for the driver with 16 grids?
SELECT time_retired FROM table_name_81 WHERE grid = 16
sql_create_context
CREATE TABLE table_name_74 ( episode_title VARCHAR, presenter VARCHAR )
What is the episode title of the episode with Ben Okri as the presenter?
SELECT episode_title FROM table_name_74 WHERE presenter = "ben okri"
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
what is the number of patients whose primary disease is coronary artery disease and admission year is less than 2195?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND demographic.admityear < "2195"
mimicsql_data
CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE...
Top 10 tags and associated tags.
SELECT TagName FROM Tags GROUP BY TagName LIMIT 10
sede
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...
What is the relationship between ACC_Percent and All_Games_Percent , and group by attribute Team_Name?
SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY Team_Name
nvbench
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...
when was the last time that patient 028-55503 on last month/06 had the minimum sao2 value.
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 = '028-55503')) AND NOT vitalperiodic.sao2 IS NULL AND...
eicu
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(...
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, a bar chart shows the distribution of job_id and the sum of salary , and group by attribute job_id, and order by the JOB_ID from low to high.
SELECT JOB_ID, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID
nvbench
CREATE TABLE table_12330 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
What place is Fred Funk in?
SELECT "Place" FROM table_12330 WHERE "Player" = 'fred funk'
wikisql
CREATE TABLE table_27434_2 ( period VARCHAR, life_expectancy_total VARCHAR )
What period was the life expectancy at 62.4?
SELECT period FROM table_27434_2 WHERE life_expectancy_total = "62.4"
sql_create_context
CREATE TABLE table_name_11 ( occupation VARCHAR, riding VARCHAR )
What is the occupation of the candidate that has a riding of labrador?
SELECT occupation FROM table_name_11 WHERE riding = "labrador"
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 do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and salary in a bar chart, and could you order Y-axis in ascending order?
SELECT JOB_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY
nvbench
CREATE TABLE employee ( eid number(9,0), name varchar2(30), salary number(10,2) ) CREATE TABLE flight ( flno number(4,0), origin varchar2(20), destination varchar2(20), distance number(6,0), departure_date date, arrival_date date, price number(7,2), aid number(9,0) ) CREATE...
How many flights in each destination city? Return a bar chart, and I want to rank y-axis in asc order please.
SELECT destination, COUNT(destination) FROM flight GROUP BY destination ORDER BY COUNT(destination)
nvbench
CREATE TABLE table_2152 ( "Country" text, "1948/49 ($ millions)" real, "1949/50 ($ millions)" real, "1950/51 ($ millions)" real, "Cumulative ($ millions)" real )
How much was spent in 1949/50 (in $ millions) in the country where the cumulative expenditure is $376 millions?
SELECT MIN("1949/50 ($ millions)") FROM table_2152 WHERE "Cumulative ($ millions)" = '376'
wikisql
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, ...
what is patient 005-48105's first output amt-chest tube a output time a day before?
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-48105')) AND intakeoutput.cellpath LIKE '%output%...
eicu
CREATE TABLE table_12755786_8 ( league VARCHAR, player VARCHAR )
what is the tourney where the winner is kevin mckinlay?
SELECT league AS Cup FROM table_12755786_8 WHERE player = "Kevin McKinlay"
sql_create_context
CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, MED_DIRE_CD tex...
之前患者84027429都做过什么检查呢?
SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '84027429' AND t_kc22.MED_INV_ITEM_TYPE = '检查费'
css
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE microlab ( microl...
when did patient 022-158475 receive the last prescription in their last hospital visit for morphine sulfate 2 mg/ml ij soln?
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-158475' AND NOT patient.hospitaldischargetime IS NULL ORDE...
eicu
CREATE TABLE table_name_99 ( result VARCHAR, year VARCHAR, category VARCHAR )
What was album of the year after 2009?
SELECT result FROM table_name_99 WHERE year > 2009 AND category = "album of the year"
sql_create_context
CREATE TABLE table_27495117_3 ( team VARCHAR, date_of_appointment VARCHAR )
how many teams had an appointment date of 11 april 2011
SELECT COUNT(team) FROM table_27495117_3 WHERE date_of_appointment = "11 April 2011"
sql_create_context
CREATE TABLE table_42848 ( "Year" real, "Chassis" text, "Engine" text, "Start" real, "Finish" real, "Entrant" text )
What is the lowest year that has lola t93/00 as the chassis with a start leas than 14?
SELECT MIN("Year") FROM table_42848 WHERE "Chassis" = 'lola t93/00' AND "Start" < '14'
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...
从零零年八月九日到一九年六月十八日的这段时间里,医疗机构1726621的统筹金额消耗量是怎样的
SELECT SUM(t_kc24.OVE_PAY) FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '1726621' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-08-09' AND '2019-06-18' UNION SELECT SUM(t_kc24.OVE_PAY) FROM fgwyjzb JOIN t_kc24 ON fgwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE fgwyj...
css
CREATE TABLE table_52026 ( "Player" text, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text )
What is the Years for Jazz Club at Oregon State?
SELECT "Years for Jazz" FROM table_52026 WHERE "School/Club Team" = 'oregon state'
wikisql
CREATE TABLE table_14081 ( "Year" real, "Category" text, "Nominee(s)" text, "Episode" text, "Result" text )
Which episode in year 2003 that have Gary Murphy and Neil Thompson?
SELECT "Episode" FROM table_14081 WHERE "Nominee(s)" = 'gary murphy and neil thompson' AND "Year" = '2003'
wikisql
CREATE TABLE table_21790203_1 ( result VARCHAR, film_title_used_in_nomination VARCHAR )
Name the result for already famous
SELECT result FROM table_21790203_1 WHERE film_title_used_in_nomination = "Already Famous"
sql_create_context
CREATE TABLE table_20170644_5 ( player VARCHAR, college VARCHAR )
What player went to montreal college?
SELECT player FROM table_20170644_5 WHERE college = "Montreal"
sql_create_context
CREATE TABLE zzmzjzjlb ( 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...
在病患61732704的检验报告单中哪些号码是检验结果指标全部不正常的?
SELECT jybgb.BGDH FROM hz_info JOIN zzmzjzjlb JOIN jybgb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '61732704' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FRO...
css
CREATE TABLE table_name_10 ( location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR )
Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?
SELECT location_attendance FROM table_name_10 WHERE high_assists = "luke ridnour (10)" AND date = "december 3"
sql_create_context
CREATE TABLE table_name_67 ( republican_ticket VARCHAR, democratic_ticket VARCHAR )
Who's the Republican ticket with a Democratic ticket of m. william bray?
SELECT republican_ticket FROM table_name_67 WHERE democratic_ticket = "m. william bray"
sql_create_context
CREATE TABLE table_60666 ( "State" text, "GR\u00dcNE" text, "FRITZ" text, "RETT\u00d6" text, "LINKE" text, "STARK" text )
What percent did GR NE get in Tyrol where RETT got 0.6%?
SELECT "GR\u00dcNE" FROM table_60666 WHERE "RETT\u00d6" = '0.6%' AND "State" = 'tyrol'
wikisql
CREATE TABLE Restaurant ( ResID INTEGER, ResName VARCHAR(100), Address VARCHAR(100), Rating INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE T...
List how many students in each last name who majored in 600 using a bar chart, and I want to rank by the Y in desc.
SELECT LName, COUNT(LName) FROM Student WHERE Major = 600 GROUP BY LName ORDER BY COUNT(LName) DESC
nvbench
CREATE TABLE table_35150 ( "Tournament" text, "1998" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "Career SR" text, "Caree...
Which 2003 has a 2012 of 1r, and a 2008 of 1r?
SELECT "2003" FROM table_35150 WHERE "2012" = '1r' AND "2008" = '1r'
wikisql
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime...
until 2 years ago what are the top four most frequent diagnoses that patients were given during the same hospital encounter after being diagnosed with hyperglycemia?
SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hyper...
eicu
CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM text, JY...
看看患者陶清绮之前的住院诊断记录有哪些
SELECT zyjzjlb.ZYZDBM, zyjzjlb.ZYZDMC FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.person_info_XM = '陶清绮'
css
CREATE TABLE t_kc21_t_kc24 ( MED_CLINIC_ID text, MED_SAFE_PAY_ID number ) 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, ...
查询5586017这个医疗机构在07年12月26到14年5月19日内的医疗费总额
SELECT SUM(t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.MED_SER_ORG_NO = '5586017' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2007-12-26' AND '2014-05-19'
css
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE allergy ( allergy...
when did patient 030-34260 the last time had voided amount output yesterday?
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-34260')) AND intakeoutput.cellpath LIKE '%output%...
eicu
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate n...
has hypocalcemia been diagnosed with patient 015-57922?
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 = '015-57922')) AND diagnosis.diagnosisname = 'hypocalcemia'
eicu
CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) 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, ...
列一下水凯复这名患者在0439258这家医院的门诊就诊记录里面被医生下的诊断不带酒精的记录
SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '水凯复' AND hz_info.YLJGDM = '0439258' AND NOT mzjzjlb.JZZDSM LIKE '%酒精%'
css
CREATE TABLE table_51133 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
What is Country, when Player is 'Rives McBee'?
SELECT "Country" FROM table_51133 WHERE "Player" = 'rives mcbee'
wikisql
CREATE TABLE table_name_31 ( winner VARCHAR, location VARCHAR, year VARCHAR )
Who was the winner in philadelphia municipal stadium in 1939?
SELECT winner FROM table_name_31 WHERE location = "philadelphia municipal stadium" AND year = 1939
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...
Are there upper level classes that have projects but no exams ?
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_exams = 'N' AND course.has_projects = 'Y' AND program_course.category LIKE 'ULCS'
advising
CREATE TABLE table_name_60 ( date VARCHAR, opponent VARCHAR )
What was the date of the game against Hayes & Yeading United?
SELECT date FROM table_name_60 WHERE opponent = "hayes & yeading united"
sql_create_context
CREATE TABLE table_35286 ( "Date" text, "Opponents" text, "Venue" text, "Result" text, "Score F\u2013A" text )
Opponents of sheffield wednesday had what date?
SELECT "Date" FROM table_35286 WHERE "Opponents" = 'sheffield wednesday'
wikisql
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE p...
what are the four most common microbiology tests that patients had in the same month after receiving antiarrhythmics - atropine during the last year?
SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antiarrhythmics - atropine' AND DATETIME(tre...
eicu
CREATE TABLE table_48063 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Nets points" real, "Opponent score" real, "Record" text, "Streak" text )
When the opponent scored 96 points after game 61, what was the streak?
SELECT "Streak" FROM table_48063 WHERE "Game" > '61' AND "Opponent score" = '96'
wikisql
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, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZZMC ...
在06年7月8日到08年9月2日内多少人是医生21789346看的门诊?
SELECT COUNT(*) FROM mzjzjlb WHERE mzjzjlb.ZZYSGH = '21789346' AND mzjzjlb.JZKSRQ BETWEEN '2006-07-08' AND '2008-09-02'
css
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE code_des...
show flights between BOSTON and 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER'...
atis
CREATE TABLE table_15288 ( "First game" real, "Played" real, "Drawn" real, "Lost" real, "Percentage" text )
When was the earliest first game with 11 played and 12 games lost?
SELECT MIN("First game") FROM table_15288 WHERE "Played" > '11' AND "Lost" = '12'
wikisql
CREATE TABLE table_4989 ( "Result" text, "Date" text, "Race" text, "Venue" text, "Group" text, "Distance" text, "Weight (kg)" real, "Jockey" text, "Winner/2nd" text )
with race of ranvet stakes what is the group?
SELECT "Group" FROM table_4989 WHERE "Race" = 'ranvet stakes'
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...
在10年11月11日到13年1月13日期间,参保人任博涛购买单一药品的最大购买次数有几次
SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '任博涛' AND t_kc22.STA_DATE BETWEEN '2010-11-11' AND '2013-01-13' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 1
css
CREATE TABLE table_name_5 ( no_in_series INTEGER, written_by VARCHAR, no_in_season VARCHAR )
What is the sum of the numbers in series written by sam meikle, which have 21 numbers in the season?
SELECT SUM(no_in_series) FROM table_name_5 WHERE written_by = "sam meikle" AND no_in_season = 21
sql_create_context
CREATE TABLE table_75545 ( "Longi- tude" text, "Usual translation" text, "Chinese name \u00b9" text, "Japanese name" text, "Korean name \u00b2" text, "Vietnamese name" text, "Date \u00b3" text )
Which Japanese name has a Korean name of ( ) gyeongchip?
SELECT "Japanese name" FROM table_75545 WHERE "Korean name \u00b2" = '경칩 (驚蟄) gyeongchip'
wikisql
CREATE TABLE table_name_5 ( venue VARCHAR, away_team VARCHAR )
What is the name of the venue where the game played had an away team of Melbourne?
SELECT venue FROM table_name_5 WHERE away_team = "melbourne"
sql_create_context
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id t...
how many of the patients aged below 58 had a lab test for d-dimer?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "58" AND lab.label = "D-Dimer"
mimicsql_data
CREATE TABLE table_76301 ( "noun root (meaning)" text, "case suffix (case)" text, "postposition" text, "full word" text, "English meaning" text )
What is Case Suffix (Case), when English Meaning is 'to Georgia, in Georgia'?
SELECT "case suffix (case)" FROM table_76301 WHERE "English meaning" = 'to georgia, in georgia'
wikisql
CREATE TABLE party ( Party_ID int, Minister text, Took_office text, Left_office text, Region_ID int, Party_name text ) 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 tex...
Show party names and the number of events for each party, and rank Party_name in asc order.
SELECT Party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID ORDER BY Party_name
nvbench
CREATE TABLE table_21937 ( "Round" text, "Main date" text, "Number of fixtures" real, "Clubs" text, "New entries this round" text, "Prize money" text, "Player of the Round" text )
Who is the player of the round with 80 fixtures?
SELECT "Player of the Round" FROM table_21937 WHERE "Number of fixtures" = '80'
wikisql
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 diagnoses short title and procedure short title of subject id 25167?
SELECT diagnoses.short_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "25167"
mimicsql_data
CREATE TABLE table_name_87 ( competition VARCHAR, club VARCHAR )
What competition did the maccabi haifa fc club play?
SELECT competition FROM table_name_87 WHERE club = "maccabi haifa fc"
sql_create_context
CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CRE...
My score on the algorithm tag.
SELECT SUM(A.Score) FROM Posts AS A JOIN Posts AS Q ON A.ParentId = Q.Id JOIN PostTags ON PostTags.PostId = Q.Id JOIN Tags ON PostTags.TagId = Tags.Id WHERE A.OwnerUserId = '##UserId##' AND A.PostTypeId = 2 AND Q.PostTypeId = 1 AND TagName = 'algorithm'
sede
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...
查询在一四年五月二十日到一九年六月十六日的这段时间里医院5341312有多少科室涉及的医疗费总额不低于2142.44元
SELECT COUNT(*) FROM (SELECT t_kc24.t_kc21_MED_ORG_DEPT_CD FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '5341312' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2014-05-20' AND '2019-06-16' GROUP BY t_kc24.t_kc21_MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) >= 2142.44) AS T
css
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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,...
在门诊就诊47624266393中,就诊状态的名称是什么?代码呢
SELECT mzjzjlb.JZZTDM, mzjzjlb.JZZTMC FROM mzjzjlb WHERE mzjzjlb.JZLSH = '47624266393'
css