context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_22265 (
"Foodstuff" text,
"Pinoresinol" real,
"Syringaresinol" real,
"Sesamin" text,
"Lariciresinol" real,
"Secoisolariciresinol" real,
"Matairesinol" real,
"Hydroxymatairesinol" real
) | what is the minimum number is lariciresinol where matairesinol number is 440? | SELECT MIN("Lariciresinol") FROM table_22265 WHERE "Matairesinol" = '440' | wikisql |
CREATE TABLE table_14971 (
"Name" text,
"Tenure" text,
"Courtesy title" text,
"Court Rank" text,
"Revenues" text,
"Lineage" text
) | What's the courtesy title of 4th son of hatamoto oka tadataka? | SELECT "Courtesy title" FROM table_14971 WHERE "Lineage" = '4th son of hatamoto ōoka tadataka' | wikisql |
CREATE TABLE table_name_72 (
played INTEGER,
points VARCHAR
) | Name the average Played with a Points of 0*? | SELECT AVG(played) FROM table_name_72 WHERE points = "0*" | sql_create_context |
CREATE TABLE table_name_20 (
year INTEGER,
actress VARCHAR
) | When was the last year when Katharine Hepburn won? | SELECT MAX(year) FROM table_name_20 WHERE actress = "katharine hepburn" | sql_create_context |
CREATE TABLE table_18666752_3 (
nation VARCHAR,
rider VARCHAR
) | Which nation is where rider phillip dutton from? | SELECT nation FROM table_18666752_3 WHERE rider = "Phillip Dutton" | sql_create_context |
CREATE TABLE table_18600760_3 (
township VARCHAR,
geo_id VARCHAR
) | What was the township with a geo ID of 3807116660? | SELECT township FROM table_18600760_3 WHERE geo_id = 3807116660 | sql_create_context |
CREATE TABLE table_9505 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | What is the lowest Points, when Class is 50cc, when Year is 1965, and when Wins is less than 0? | SELECT MIN("Points") FROM table_9505 WHERE "Class" = '50cc' AND "Year" = '1965' AND "Wins" < '0' | wikisql |
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, return a scatter chart about the correlation between manufacturer and revenue , and group by attribute headquarter. | SELECT Manufacturer, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | nvbench |
CREATE TABLE table_11934032_1 (
location VARCHAR,
station_number VARCHAR
) | what is the total number of location where station number is c03 | SELECT COUNT(location) FROM table_11934032_1 WHERE station_number = "C03" | sql_create_context |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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 cost (
row_id nu... | tell me the percentile value of the po2 value of 75.0 among patients of the same age as patient 30976 during the last hospital encounter? | SELECT DISTINCT t1.c1 FROM (SELECT labevents.valuenum, PERCENT_RANK() OVER (ORDER BY labevents.valuenum) AS c1 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'po2') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age = (SE... | mimic_iii |
CREATE TABLE table_name_48 (
final_score VARCHAR,
date VARCHAR
) | What is the Final score on november 22? | SELECT final_score FROM table_name_48 WHERE date = "november 22" | sql_create_context |
CREATE TABLE table_name_6 (
vacator VARCHAR,
reason_for_change VARCHAR
) | which Vacator has a Reason for change of resigned november 10, 1965? | SELECT vacator FROM table_name_6 WHERE reason_for_change = "resigned november 10, 1965" | sql_create_context |
CREATE TABLE table_23649244_1 (
mix_artist VARCHAR,
artist_1 VARCHAR,
artist_2 VARCHAR
) | Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2? | SELECT mix_artist FROM table_23649244_1 WHERE artist_1 = "Tears for Fears" AND artist_2 = "Eric Prydz" | sql_create_context |
CREATE TABLE table_name_11 (
season VARCHAR
) | Which 20-29 had a season of 1997? | SELECT 20 AS _29 FROM table_name_11 WHERE season = "1997" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM t... | 列出患者43772576所有检验结果指标记录中的仪器编号以及名称在2005-02-16到2014-01-13内均为什么? | (SELECT jyjgzbb.YQBH, jyjgzbb.YQMC 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.B... | css |
CREATE TABLE table_2030453_1 (
date_motor_gear_fitted VARCHAR,
lms_1946_no VARCHAR
) | When was the motor gear of the LMS 1946 no. 1901 model fitted? | SELECT date_motor_gear_fitted FROM table_2030453_1 WHERE lms_1946_no = 1901 | sql_create_context |
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, a bar chart shows the distribution of name and code , and group by attribute headquarter, and show in descending by the total number please. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Code DESC | nvbench |
CREATE TABLE table_name_34 (
player VARCHAR,
total VARCHAR,
year_s__won VARCHAR
) | What golfer has a greater than 293 total, and won in 1989? | SELECT player FROM table_name_34 WHERE total > 293 AND year_s__won = "1989" | sql_create_context |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuo... | what are the top five output events that are most common in 2100? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE STRFTIME('%y', outputevents.charttime) = '2100' GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 5) | mimic_iii |
CREATE TABLE table_name_11 (
result INTEGER,
location VARCHAR,
rank VARCHAR
) | What Result has a Location of atlanta, and Rank smaller than 4? | SELECT AVG(result) FROM table_name_11 WHERE location = "atlanta" AND rank < 4 | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | give me the number of patients whose item id is 51214 and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51214" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE STUDENT (
Fname VARCHAR,
StuID VARCHAR
)
CREATE TABLE ENROLLED_IN (
Grade VARCHAR,
StuID VARCHAR
)
CREATE TABLE GRADECONVERSION (
gradepoint VARCHAR,
lettergrade VARCHAR
) | Find the distinct student first names of all students that have grade point at least 3.8 in one course. | SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8 | sql_create_context |
CREATE TABLE table_53831 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
) | Name the tournament for patrick rafter winning | SELECT "Tournament" FROM table_53831 WHERE "Winner" = 'patrick rafter' | wikisql |
CREATE TABLE table_28793672_1 (
audition_city VARCHAR,
venue VARCHAR
) | Where is the audition city when the venue is upi convention center? | SELECT audition_city FROM table_28793672_1 WHERE venue = "UPI Convention Center" | sql_create_context |
CREATE TABLE table_13538 (
"Event" text,
"Record" text,
"Nationality" text,
"Date" text,
"Games" text
) | What is the Record of the 2013 Nassau Games? | SELECT "Record" FROM table_13538 WHERE "Games" = '2013 nassau' | wikisql |
CREATE TABLE table_name_69 (
swimsuit INTEGER,
state VARCHAR,
evening_gown VARCHAR,
average VARCHAR,
interview VARCHAR
) | What is the highest swimsuit a contestant from Kansas with an average larger than 8.48, an interview higher than 8.58, and an evening gown higher than 8.82 has? | SELECT MAX(swimsuit) FROM table_name_69 WHERE average > 8.48 AND interview > 8.58 AND evening_gown > 8.82 AND state = "kansas" | sql_create_context |
CREATE TABLE table_name_17 (
attendance INTEGER,
opponent VARCHAR,
score VARCHAR
) | How many people attended the Royals game with a score of 17 - 6? | SELECT SUM(attendance) FROM table_name_17 WHERE opponent = "royals" AND score = "17 - 6" | sql_create_context |
CREATE TABLE table_1099080_1 (
bleeding_time VARCHAR,
condition VARCHAR
) | What was the bleeding time for factor xii deficiency | SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor XII deficiency" | sql_create_context |
CREATE TABLE table_16494599_10 (
nationality VARCHAR,
school_club_team VARCHAR
) | What are the nationalities of players who attended duke? | SELECT COUNT(nationality) FROM table_16494599_10 WHERE school_club_team = "Duke" | 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 (
... | give me the number of patients whose days of hospital stay is greater than 20 and admission year is less than 2144? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "20" AND demographic.admityear < "2144" | mimicsql_data |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid... | had patient 030-64961 received a active warming treatment in the previous year? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-64961')) AND treatment.treatmentname = 'active warming' AND DATETIME(tre... | eicu |
CREATE TABLE table_25356350_2 (
title VARCHAR,
written_by VARCHAR
) | What is the title of the episode written by Jack Orman? | SELECT title FROM table_25356350_2 WHERE written_by = "Jack Orman" | sql_create_context |
CREATE TABLE table_name_94 (
result VARCHAR,
week VARCHAR,
date VARCHAR
) | What is the Result of Week larger than 3 on 1971-11-07? | SELECT result FROM table_name_94 WHERE week > 3 AND date = "1971-11-07" | sql_create_context |
CREATE TABLE table_name_78 (
airport VARCHAR,
iata VARCHAR
) | What is the airport name that has nos listed as the IATA? | SELECT airport FROM table_name_78 WHERE iata = "nos" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | 列出病患45256601门诊诊断名称中不包含后遗症在医院7264377中的门诊诊察记录分别是哪几条? | SELECT * FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '45256601' AND hz_info.YLJGDM = '7264377' AND NOT txmzjzjlb.JZZDSM LIKE '%后遗症%' UNION SELECT * FROM hz_info JOIN ftxmzjzjlb ON hz_info.YLJGDM = ftxmzjzjlb.YLJGDM A... | css |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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... | 列出病人出院的病区名称和代码还有出院床位号,主要针对住院就诊84889733276的病患 | SELECT wdmzjzjlb.CYBQDM, wdmzjzjlb.CYBQMC, wdmzjzjlb.CYCWH FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '84889733276' UNION SELECT bdmzjzjlb.CYBQDM, bdmzjzjlb.CYBQMC, bdmzjzjlb.CYCWH FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '84889733276' | css |
CREATE TABLE table_11031 (
"Position" real,
"Drivers" text,
"Class" text,
"Class Position" real,
"Laps" real
) | Which Class has Laps larger than 193, Class Position of 1, and a Position of 13? | SELECT "Class" FROM table_11031 WHERE "Laps" > '193' AND "Class Position" = '1' AND "Position" = '13' | wikisql |
CREATE TABLE classification (
id int,
msid int,
gid int
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE company (
id int,
name text,
country_code varchar
)
CREATE TABLE director (
did int,
... | What movies have the same director as the movie ' Revolutionary Road ' ? | SELECT MOVIE_1.title FROM directed_by AS DIRECTED_BY_0, directed_by AS DIRECTED_BY_1, director, movie AS MOVIE_0, movie AS MOVIE_1 WHERE director.did = DIRECTED_BY_0.did AND director.did = DIRECTED_BY_1.did AND MOVIE_0.mid = DIRECTED_BY_0.msid AND MOVIE_0.title = 'Revolutionary Road' AND MOVIE_1.mid = DIRECTED_BY_1.msi... | imdb |
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Student_Tests_Taken (
registration_id IN... | A line chart for finding the number of the dates of the tests taken with result 'Pass'. | SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" | 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 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 admission year is less than 2146 and item id is 51439? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2146" AND lab.itemid = "51439" | mimicsql_data |
CREATE TABLE debate (
Debate_ID int,
Date text,
Venue text,
Num_of_Audience int
)
CREATE TABLE people (
People_ID int,
District text,
Name text,
Party text,
Age int
)
CREATE TABLE debate_people (
Debate_ID int,
Affirmative int,
Negative int,
If_Affirmative_Win bool
... | Bar graph to show the total number from different party | SELECT Party, COUNT(*) FROM people GROUP BY Party | nvbench |
CREATE TABLE table_38677 (
"Make" text,
"Year placed in service" text,
"Quantity" real,
"Number of seats" real,
"Wheelchair accessible? ()" text,
"Current status" text
) | What is the smallest number of seats in a vehicle currently retired and in quantities less than 8? | SELECT MIN("Number of seats") FROM table_38677 WHERE "Current status" = 'retired' AND "Quantity" < '8' | wikisql |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | For those employees who did not have any job in the past, give me the comparison about the average of department_id over the job_id , and group by attribute job_id, I want to list in descending by the Y-axis. | SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(DEPARTMENT_ID) DESC | nvbench |
CREATE TABLE table_38318 (
"Round" real,
"Circuit" text,
"State/Territory" text,
"Date" text,
"Winning driver" text
) | What circuit was after round 2 in Victoria? | SELECT "Circuit" FROM table_38318 WHERE "Round" > '2' AND "State/Territory" = 'victoria' | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | provide the number of patients whose insurance is government and lab test name is thyroid stimulating hormone? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Government" AND lab.label = "Thyroid Stimulating Hormone" | mimicsql_data |
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... | get me the number of widow patients who underwent insertion of two vascular stents procedure. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.long_title = "Insertion of two vascular stents" | mimicsql_data |
CREATE TABLE table_15920 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
) | What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic? | SELECT "Country ( exonym )" FROM table_15920 WHERE "Official or native language(s) (alphabet/script)" = 'Icelandic' | wikisql |
CREATE TABLE table_26164 (
"Represented" text,
"Contestant" text,
"Age" real,
"Height (in.)" text,
"Height (cm.)" real,
"Hometown" text
) | If the hometown is Windhoek, what is the represented? | SELECT "Represented" FROM table_26164 WHERE "Hometown" = 'Windhoek' | 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... | 病患孔诗蕊病患从20年11月19到21年5月1日里面,他的自费金额高于411.49元的都有哪些药品量? | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '孔诗蕊' AND t_kc22.STA_DATE BETWEEN '2020-11-19' AND '2021-05-01' AND t_kc22.SELF_PAY_AMO > 411.49 UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjzb.PE... | css |
CREATE TABLE table_204_195 (
id number,
"team" text,
"home city" text,
"stadium" text,
"capacity" number,
"last season" text
) | what team other than maccabi tel aviv placed 1st last season ? | SELECT "team" FROM table_204_195 WHERE "team" <> 'maccabi tel aviv' AND "last season" = 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,
... | 根据出院时诊断的疾病编号和科室差异算算看医院4932501所有的就诊记载里个人要自费的花费比上医疗总花费的最小比值并按照从低到高的顺序排列出来 | SELECT t_kc21.MED_ORG_DEPT_NM, t_kc21.OUT_DIAG_DIS_CD, MIN(t_kc24.PER_EXP) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '4932501' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.OUT_DIAG_DIS_CD ORDER BY MIN(t_kc24.PER_EXP / t_kc24.MED_AMOUT) | css |
CREATE TABLE table_name_13 (
partner VARCHAR,
tournament VARCHAR
) | Which Partner has a Tournament of catella swedish open? | SELECT partner FROM table_name_13 WHERE tournament = "catella swedish open" | 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,
... | give me the number of patients whose year of birth is less than 2121 and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2121" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE table_name_91 (
gold VARCHAR,
silver VARCHAR,
nation VARCHAR
) | What is Gold, when Silver is 5, and when Nation is Belgium? | SELECT gold FROM table_name_91 WHERE silver = "5" AND nation = "belgium" | sql_create_context |
CREATE TABLE table_name_53 (
race VARCHAR
) | Who won the australian grand prix? | SELECT race AS Winner FROM table_name_53 WHERE race = "australian grand prix" | 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... | provide the number of patients whose gender is f and lab test category is blood gas? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Ag... | Show all the activity names and the number of faculty involved in each activity in a bar chart, order by the Y in descending please. | SELECT activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_Participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_41374 (
"Draw" real,
"Artist" text,
"Song" text,
"Televote" text,
"Place" real
) | What is the average draw for Desi Dobreva, was it less than 6? | SELECT AVG("Draw") FROM table_41374 WHERE "Artist" = 'desi dobreva' AND "Place" < '6' | wikisql |
CREATE TABLE ALBUM (
Id VARCHAR
) | How many albums are there? | SELECT COUNT(*) FROM ALBUM | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | what number of patients who died in or before 2131 had been prescribed the drug with code cepacol1? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2131.0" AND prescriptions.formulary_drug_cd = "CEPACOL1" | mimicsql_data |
CREATE TABLE table_name_31 (
wins INTEGER,
draws INTEGER
) | What is the most wins for draws greater than 0? | SELECT MAX(wins) FROM table_name_31 WHERE draws > 0 | sql_create_context |
CREATE TABLE table_name_80 (
opponents VARCHAR,
partner VARCHAR,
surface VARCHAR,
outcome VARCHAR
) | Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdo ov ? | SELECT opponents FROM table_name_80 WHERE surface = "hard" AND outcome = "runner-up" AND partner = "jarmila gajdošová" | sql_create_context |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_ID number
)
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,
... | 从00年就月一日到一六年就月二十一日,患者秦君浩在哪几个医院看过病 | SELECT COUNT(t_kc21.MED_SER_ORG_NO) FROM t_kc21 WHERE t_kc21.PERSON_NM = '秦君浩' AND t_kc21.IN_HOSP_DATE BETWEEN '2000-09-01' AND '2016-09-21' | css |
CREATE TABLE table_name_82 (
attendance VARCHAR,
score VARCHAR
) | How many were in attendance with a score of 0:1? | SELECT attendance FROM table_name_82 WHERE score = "0:1" | sql_create_context |
CREATE TABLE table_name_54 (
crowd VARCHAR,
home_team VARCHAR
) | What was the crowd size when st kilda played home? | SELECT COUNT(crowd) FROM table_name_54 WHERE home_team = "st kilda" | sql_create_context |
CREATE TABLE table_name_31 (
total INTEGER,
league_cup INTEGER
) | League Cup smaller than 0 is what sum of the total? | SELECT SUM(total) FROM table_name_31 WHERE league_cup < 0 | sql_create_context |
CREATE TABLE table_77706 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What is the St Kilda Away team score? | SELECT "Away team score" FROM table_77706 WHERE "Away team" = 'st kilda' | wikisql |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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,
JO... | For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of last_name and commission_pct , could you order by the X-axis from low to high? | SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME | nvbench |
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 prescription... | count the number of patients whose ethnicity is black/african american and age is less than 81? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.age < "81" | mimicsql_data |
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station... | Count those days for each year and in which zip code was the min dew point lower than any day in zip code 94107 using a bar graph, and order in desc by the Y please. | SELECT date, COUNT(date) FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107) ORDER BY COUNT(date) DESC | nvbench |
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 wdmzjzjlb (
HXPLC number,
HZX... | 在患者81881911的诊疗记录里,从00年9月13日到12年2月14日这期间,为其检测转铁蛋白的医务人员有哪几位,报一下工号及姓名 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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.BGD... | css |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... | count the number of patients who had received a laboratory test of -basos until 2104. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = '-basos' AND STRFTIME('%y', lab.labresulttime) <= '2104') | eicu |
CREATE TABLE table_204_600 (
id number,
"name" text,
"status" text,
"population" number,
"district" text,
"former local authority" text
) | tell me the number of residents in formby . | SELECT "population" FROM table_204_600 WHERE "name" = 'formby' | squall |
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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | what is the number of patients whose admission type is emergency and primary disease is neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues\bone marrow transplant? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\BONE MARROW TRANSPLANT" | mimicsql_data |
CREATE TABLE table_40163 (
"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 Score that has the High assists of rafer alston (8)? | SELECT "Score" FROM table_40163 WHERE "High assists" = 'rafer alston (8)' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
... | Amazon web service thread volume with accepted answers by month. | SELECT COUNT(*) AS AnsweredVolume, TIME_TO_STR(P.CreationDate, '%Y') AS "year", TIME_TO_STR(P.CreationDate, '%m') AS Month FROM Posts AS P WHERE (Tags LIKE '%<amazon-web-services>%') AND PostTypeId = 1 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL AND AcceptedAnswerId > 0 GROUP BY TIME_TO_STR(P.CreationDate, '%... | sede |
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 lab (
labid numbe... | during the last year, how many patients were diagnosed with asthma / bronchospasm within 2 months after they were diagnosed with hyperglycemia - stress related? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'asthma / bronchospasm' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'st... | eicu |
CREATE TABLE payments (
payment_id number,
settlement_id number,
payment_method_code text,
date_payment_made time,
amount_payment number
)
CREATE TABLE claims (
claim_id number,
policy_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_se... | Find the the customer details and id for the customers who had more than one policy. | SELECT T1.customer_details, T1.customer_id FROM customers AS T1 JOIN customer_policies AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1 | spider |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 从10年12月28日开始到2011年10月6日为止,为病员25627838检测前白蛋白的医务人员工号及姓名各是什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE jyjgzbb.JYRQ BETWEEN '2010-12-28' AND '2011-10-0... | css |
CREATE TABLE table_27491610_2 (
no_in_season VARCHAR,
us_viewers__millions_ VARCHAR
) | What number in season had 10.18 million US viewers? | SELECT no_in_season FROM table_27491610_2 WHERE us_viewers__millions_ = "10.18" | sql_create_context |
CREATE TABLE table_4624 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | What events did the competition that took place in 1997 have? | SELECT "Notes" FROM table_4624 WHERE "Year" = '1997' | wikisql |
CREATE TABLE table_26515 (
"Rank" real,
"Dismissals" real,
"Player" text,
"Caught" real,
"Stumped" real,
"Matches" real,
"Innings" real
) | What is stumped when matches is 14? | SELECT MIN("Stumped") FROM table_26515 WHERE "Matches" = '14' | wikisql |
CREATE TABLE table_name_72 (
venue VARCHAR,
competition VARCHAR,
date VARCHAR
) | Where was the friendly competition on 17 December 1967 played at? | SELECT venue FROM table_name_72 WHERE competition = "friendly" AND date = "17 december 1967" | sql_create_context |
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, give me the comparison about the average of code over the headquarter , and group by attribute headquarter, and could you list Y from high to low order? | SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code DESC | nvbench |
CREATE TABLE table_16646 (
"Edition" real,
"Zone" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"Outcome" text,
"Result" text
) | Name the outcome for round 2r | SELECT "Outcome" FROM table_16646 WHERE "Round" = '2R' | wikisql |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden ... | Count pairs of tags (number of posts with tag1 and tag2, for all tags). Returns counts of pairs of tags, which occur in the same question. | SELECT T1.TagName AS Tag1, T2.TagName AS Tag2, COUNT(*) AS TagPairCount FROM Posts AS P INNER JOIN PostTags AS PT1 ON PT1.PostId = P.Id INNER JOIN PostTags AS PT2 ON PT2.PostId = P.Id INNER JOIN Tags AS T1 ON T1.Id = PT1.TagId INNER JOIN Tags AS T2 ON T2.Id = PT2.TagId WHERE T1.TagName < T2.TagName GROUP BY T1.TagName,... | sede |
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... | how many patients stayed in hospital for more than 9 days and procedured with icd9 code 3571? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "9" AND procedures.icd9_code = "3571" | mimicsql_data |
CREATE TABLE table_name_8 (
deputy_prime_minister VARCHAR,
term VARCHAR,
left_office VARCHAR
) | Which deputy prime minister left office in 2004 and was in the 7th legislature? | SELECT deputy_prime_minister FROM table_name_8 WHERE term = "7th legislature" AND left_office = "2004" | sql_create_context |
CREATE TABLE table_name_76 (
drawn INTEGER,
points VARCHAR,
played VARCHAR
) | What is the average drawn number of the team with less than 70 points and less than 46 played? | SELECT AVG(drawn) FROM table_name_76 WHERE points < 70 AND played < 46 | sql_create_context |
CREATE TABLE table_name_27 (
distance VARCHAR,
bearing VARCHAR
) | what is the distance for bearing 297 ? | SELECT distance FROM table_name_27 WHERE bearing = "297°" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 对于编号为67164533的患者医疗记录中医疗费总额大于等于五千二百六十九点一五元的出院诊断疾病编码和名称都是什么? | SELECT qtb.OUT_DIAG_DIS_CD, qtb.OUT_DIAG_DIS_NM FROM qtb WHERE qtb.PERSON_ID = '67164533' AND qtb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 5269.15) UNION SELECT gyb.OUT_DIAG_DIS_CD, gyb.OUT_DIAG_DIS_NM FROM gyb WHERE gyb.PERSON_ID = '67164533' AND gyb.MED_CLINIC_ID IN (SELECT ... | css |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | How many government insurance patients had an incision of aorta procedure? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.short_title = "Incision of aorta" | mimicsql_data |
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Descrip... | what is the code of each location and the number of documents in that location?, and could you order by the Location_Code in ascending? | SELECT Location_Code, COUNT(*) FROM Document_Locations GROUP BY Location_Code ORDER BY Location_Code | nvbench |
CREATE TABLE table_name_19 (
points INTEGER,
bike_no VARCHAR,
position VARCHAR,
equipment VARCHAR
) | What is the highest Points, when Position is less than 4, when Equipment is Zabel - VMC, and when Bike No is less than 1? | SELECT MAX(points) FROM table_name_19 WHERE position < 4 AND equipment = "zabel - vmc" AND bike_no < 1 | sql_create_context |
CREATE TABLE table_29937 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | How many teams have hight points listed as David Lee (31)? | SELECT COUNT("Team") FROM table_29937 WHERE "High points" = 'David Lee (31)' | wikisql |
CREATE TABLE Invoice (
InvoiceId integer,
CustomerId integer,
InvoiceDate datetime,
BillingAddress varchar(70),
BillingCity varchar(40),
BillingState varchar(40),
BillingCountry varchar(40),
BillingPostalCode varchar(10),
Total decimal(10,2)
)
CREATE TABLE InvoiceLine (
InvoiceL... | What are the number of the invoice dates for customers with the first name Astrid and the last name Gruber?, and display from low to high by the Y. | SELECT InvoiceDate, COUNT(InvoiceDate) FROM Customer AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber" ORDER BY COUNT(InvoiceDate) | nvbench |
CREATE TABLE table_54385 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
) | What week number did November 19, 1989 games fall on? | SELECT "Week" FROM table_54385 WHERE "Date" = 'november 19, 1989' | wikisql |
CREATE TABLE table_203_218 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text,
"laps" number
) | did automobili osca or david brown make the most laps ? | SELECT "team" FROM table_203_218 WHERE "team" IN ('automobili o.s.c.a', 'david brown') ORDER BY "laps" DESC LIMIT 1 | squall |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 在医疗就诊90181447004中,负责费用明细项目54049568076的开具医师姓名及编码是什么? | SELECT HOSP_DOC_CD, HOSP_DOC_NM FROM t_kc22 WHERE MED_EXP_DET_ID = '54049568076' | css |
CREATE TABLE table_62757 (
"Team" text,
"Country" text,
"Home" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | Who is the lead for the team from Saskatoon, Saskatchewan? | SELECT "Lead" FROM table_62757 WHERE "Home" = 'saskatoon, saskatchewan' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.