context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_23346983_1 (
opponent VARCHAR,
record VARCHAR
) | Who did the Orangemen play against when their record was 5-1? | SELECT opponent FROM table_23346983_1 WHERE record = "5-1" | sql_create_context |
CREATE TABLE table_25037577_1 (
middle_school_principal VARCHAR,
year VARCHAR
) | Who were the middle school principal(s) in 2010-2011? | SELECT middle_school_principal FROM table_25037577_1 WHERE year = "2010-2011" | sql_create_context |
CREATE TABLE table_name_33 (
away_team VARCHAR,
venue VARCHAR
) | In Western Oval, what was the away team score? | SELECT away_team AS score FROM table_name_33 WHERE venue = "western oval" | 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... | 66010048的患者自10.10.13起,到13.3.16止,看过的病总共有多少种 | SELECT COUNT(gwyjzb.IN_DIAG_DIS_CD) FROM gwyjzb WHERE gwyjzb.PERSON_ID = '66010048' AND gwyjzb.IN_HOSP_DATE BETWEEN '2010-10-13' AND '2013-03-16' UNION SELECT COUNT(fgwyjzb.IN_DIAG_DIS_CD) FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '66010048' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2010-10-13' AND '2013-03-16' | css |
CREATE TABLE table_19487922_2 (
total_drivers VARCHAR,
country VARCHAR
) | How many drivers does India have/ | SELECT COUNT(total_drivers) FROM table_19487922_2 WHERE country = "India" | sql_create_context |
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 who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of phone_number and department_id in a bar chart, show in desc by the x-axis. | SELECT PHONE_NUMBER, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER DESC | nvbench |
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, show me about the distribution of name and the sum of revenue , and group by attribute name in a bar chart, I want to order y axis in desc order. | SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Revenue DESC | nvbench |
CREATE TABLE table_name_39 (
set_1 VARCHAR,
set_3 VARCHAR
) | What is Set 1, when Set 3 is 22-25? | SELECT set_1 FROM table_name_39 WHERE set_3 = "22-25" | sql_create_context |
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... | 给患者患有疾病L27.784的开出的药品的编号是多少名称是什么? | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.IN_DIAG_DIS_CD = 'L27.784' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.IN_DIAG_DIS_CD = 'L27.784' UN... | css |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE labevents (
row_id number,
subje... | when did patient 22648 first take his/her d5w during a day before? | SELECT inputevents_cv.charttime FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22648)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label... | mimic_iii |
CREATE TABLE table_16269 (
"Year" real,
"Network" text,
"Host" text,
"Pre-race analyst" text,
"Lap-by-lap" text,
"Color commentator(s)" text,
"Pit reporters" text
) | How many pre-race analysis occur when Allen Bestwick does the lap-by-lap? | SELECT COUNT("Pre-race analyst") FROM table_16269 WHERE "Lap-by-lap" = 'Allen Bestwick' | wikisql |
CREATE TABLE table_name_96 (
to_par VARCHAR,
place VARCHAR,
player VARCHAR
) | What was Nolan Henke's To par when he placed in t3? | SELECT to_par FROM table_name_96 WHERE place = "t3" AND player = "nolan henke" | sql_create_context |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 之前,患者22973171有哪些异常情况? | 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_3153 (
"Tie no" real,
"Home team" text,
"Score 1" text,
"Away team" text,
"Attendance" real,
"Date" text
) | Who was the home team when the away team was fulham? | SELECT "Home team" FROM table_3153 WHERE "Away team" = 'Fulham' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | Provide the number of patients under the age of 80 whose drug route is ng. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "80" AND prescriptions.route = "NG" | mimicsql_data |
CREATE TABLE table_name_73 (
airport VARCHAR,
code__iata_ VARCHAR
) | Which airport has an IATA code of AMS? | SELECT airport FROM table_name_73 WHERE code__iata_ = "ams" | sql_create_context |
CREATE TABLE table_73204 (
"Date" text,
"Presenter" text,
"Guest 1" text,
"Guest 2" text,
"Guest 3" text,
"Guest 4" text
) | How many people are guest 1 on episodes where guest 4 is Des Kelly? | SELECT COUNT("Guest 1") FROM table_73204 WHERE "Guest 4" = 'Des Kelly' | wikisql |
CREATE TABLE table_name_82 (
total_goals INTEGER,
league_cup_goals VARCHAR,
fa_cup_goals VARCHAR
) | Which Total Goals have a League Cup Goals larger than 0, and FA Cup Goals larger than 0? | SELECT AVG(total_goals) FROM table_name_82 WHERE league_cup_goals > 0 AND fa_cup_goals > 0 | sql_create_context |
CREATE TABLE table_79769 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" text,
"Class" text,
"FCC info" text
) | Name the sum of frequency will call sign of k259aw | SELECT SUM("Frequency MHz") FROM table_79769 WHERE "Call sign" = 'k259aw' | wikisql |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_r... | calculate the five year survival probability of the patients who were prescribed morphine sulfate after having been diagnosed with fetal/neonatal jaund nos. | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 5 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | mimic_iii |
CREATE TABLE table_12653 (
"Perpetrator" text,
"Year" text,
"Location" text,
"Country" text,
"Killed" text
) | Who is the perpetrator in Uganda who killed 12 in Kampala? | SELECT "Perpetrator" FROM table_12653 WHERE "Country" = 'uganda' AND "Location" = 'kampala' AND "Killed" = '12' | wikisql |
CREATE TABLE table_name_20 (
record VARCHAR,
score VARCHAR
) | What was the record of the game that went 0-7? | SELECT record FROM table_name_20 WHERE score = "0-7" | sql_create_context |
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
)
... | what is date of birth of subject name kelly gallardo? | SELECT demographic.dob FROM demographic WHERE demographic.name = "Kelly Gallardo" | mimicsql_data |
CREATE TABLE table_name_56 (
caps INTEGER,
position VARCHAR,
date_of_birth__age_ VARCHAR
) | What is the lowest number of caps of the fullback player born on 13 April 1983? | SELECT MIN(caps) FROM table_name_56 WHERE position = "fullback" AND date_of_birth__age_ = "13 april 1983" | sql_create_context |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDa... | Count of questions with json-ld tag over time. | SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS "month", COUNT(DISTINCT Posts.Id) AS Count FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE Tags.TagName LIKE 'physics' AND PostTypeId = 1 AND CreationDate > '2012-01-01' GROUP BY DATEADD(MONTH, D... | sede |
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_DIRE_CD text,
MED_DIRE_NM text,... | 5124932的医疗机构有多少做项目4987-7的检查记录 | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.MED_SER_ORG_NO = '5124932' AND t_kc22.SOC_SRT_DIRE_CD = '4987-7' | css |
CREATE TABLE table_4814 (
"Rank" real,
"Heat : Lane" text,
"Name" text,
"Nationality" text,
"Time" text
) | How many ranks have a ationality of canada, and a Time of dns? | SELECT COUNT("Rank") FROM table_4814 WHERE "Nationality" = 'canada' AND "Time" = 'dns' | wikisql |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_labitems (
row_i... | what's the average cost of a hospital that includes a drug called pravastatin since 2101? | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'pravastatin') AND STRFTIME('%y', cost.chargetime) >= '2101' GROUP BY cost.hadm_id) AS t1 | mimic_iii |
CREATE TABLE table_name_33 (
margin VARCHAR,
dist__f_ VARCHAR,
race VARCHAR
) | Which Margin has a Dist (f) larger than 10, and a Race of king george vi & queen elizabeth stakes? | SELECT margin FROM table_name_33 WHERE dist__f_ > 10 AND race = "king george vi & queen elizabeth stakes" | 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,
... | 那个孙清涵的病人在2017年11月21日到2019年11月23日内所有检验结果指标记录中的仪器编号以及名称能不能给我详细列举出来? | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZL... | css |
CREATE TABLE table_30842 (
"Age" real,
"Date" text,
"Track" text,
"Race" text,
"Distance (miles)" text,
"Jockey" text,
"Handicap" text,
"Field (No. horses)" text,
"Place" text,
"Time" text,
"Prize Money" text,
"+ Sweepstake" text,
"Archer\u2019s winnings" text
) | On what date was the track Ballarat? | SELECT "Date" FROM table_30842 WHERE "Track" = 'Ballarat' | wikisql |
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... | 医疗费总额高于3743.87元的医疗记录中占严秀逸这个治病花费的多少次,严秀逸出院时诊断的有什么编码和名称的病? | SELECT qtb.OUT_DIAG_DIS_CD, qtb.OUT_DIAG_DIS_NM FROM qtb WHERE qtb.PERSON_NM = '严秀逸' AND qtb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 3743.87) UNION SELECT gyb.OUT_DIAG_DIS_CD, gyb.OUT_DIAG_DIS_NM FROM gyb WHERE gyb.PERSON_NM = '严秀逸' AND gyb.MED_CLINIC_ID IN (SELECT t_kc24.MED_... | css |
CREATE TABLE table_70174 (
"Month & Year" text,
"Episode" text,
"Title" text,
"Hammond's vehicle" text,
"Clarkson's vehicle" text,
"May's vehicle" text,
"Back-up" text,
"Budget" text
) | When Hammond had the 1974 Toyota Land Cruiser, what was May's vehicle? | SELECT "May's vehicle" FROM table_70174 WHERE "Hammond's vehicle" = '1974 toyota land cruiser' | wikisql |
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_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE weather (
date TEX... | In zip code 94107, on which day neither Fog nor Rain was not observed, and count them by a bar chart, sort in desc by the Y. | SELECT date, COUNT(date) FROM weather WHERE zip_code = 94107 AND events <> "Fog" AND events <> "Rain" ORDER BY COUNT(date) DESC | nvbench |
CREATE TABLE table_name_49 (
attendance VARCHAR,
loss VARCHAR
) | What was the attendance at the game that had a loss of Ayala (6-12)? | SELECT attendance FROM table_name_49 WHERE loss = "ayala (6-12)" | sql_create_context |
CREATE TABLE table_166346_1 (
area__km²_ INTEGER,
production___bbl__day_ VARCHAR
) | What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day? | SELECT MIN(area__km²_) FROM table_166346_1 WHERE production___bbl__day_ = "3,200,000 (12th)" | sql_create_context |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
sh... | how much to pay for a dressing of wound nec? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'dressing of wound nec')) | mimic_iii |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airli... | what ground transportation is available in BALTIMORE | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'BALTIMORE' AND ground_service.city_code = city.city_code | atis |
CREATE TABLE table_61100 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | What was the highest number of laps for rider Shuhei Aoyama in a grid higher than 24? | SELECT MAX("Laps") FROM table_61100 WHERE "Rider" = 'shuhei aoyama' AND "Grid" > '24' | wikisql |
CREATE TABLE table_name_9 (
result VARCHAR,
attendance INTEGER
) | What was the result for the 71,164 in attendance? | SELECT result FROM table_name_9 WHERE attendance > 71 OFFSET 164 | sql_create_context |
CREATE TABLE table_27142 (
"Player" text,
"Minutes" real,
"Field Goals" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) | How many field goals did the player who had 8 blocks have? | SELECT MIN("Field Goals") FROM table_27142 WHERE "Blocks" = '8' | wikisql |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,... | how many patients since 4 years ago were discharged from the hospital? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-4 year') | mimic_iii |
CREATE TABLE table_name_99 (
place VARCHAR,
player VARCHAR
) | What is Place, when Player is 'Ben Crenshaw'? | SELECT place FROM table_name_99 WHERE player = "ben crenshaw" | sql_create_context |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTME... | For employees with first names that end with the letter m, groups and count the first name to visualize a bar graph. | SELECT FIRST_NAME, COUNT(FIRST_NAME) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME | nvbench |
CREATE TABLE table_name_4 (
party VARCHAR,
district VARCHAR
) | What is the party of the california 35 district? | SELECT party FROM table_name_4 WHERE district = "california 35" | sql_create_context |
CREATE TABLE table_name_58 (
tournament VARCHAR
) | Which 2009 tournament had Grand Slams? | SELECT tournament FROM table_name_58 WHERE 2009 = "grand slams" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | What is the number of patients who had an unilateral radical neck dissection and joint fluid test? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Radical neck dissection, unilateral" AND lab.fluid = "Joint Fluid" | mimicsql_data |
CREATE TABLE table_76595 (
"Finish Position" text,
"Lengths Behind" text,
"Post Position" real,
"Horse name" text,
"Trainer" text,
"Jockey" text,
"Owner" text,
"Post Time Odds" text
) | Who was the jockey that had post time odds of 34-1? | SELECT "Jockey" FROM table_76595 WHERE "Post Time Odds" = '34-1' | wikisql |
CREATE TABLE table_name_78 (
attendance VARCHAR,
date VARCHAR
) | How many people attended on december 26, 1982? | SELECT attendance FROM table_name_78 WHERE date = "december 26, 1982" | sql_create_context |
CREATE TABLE table_42133 (
"Season" real,
"Date" text,
"Location" text,
"Driver" text,
"Chassis" text,
"Engine" text,
"Team" text
) | What is the sum of Seasons, when the Team is Penske Racing, and when the Date is October 3? | SELECT SUM("Season") FROM table_42133 WHERE "Team" = 'penske racing' AND "Date" = 'october 3' | wikisql |
CREATE TABLE table_203_172 (
id number,
"title" text,
"date of creation" text,
"surname" text,
"first titular" text
) | how many total dukedoms are in portugal ? | SELECT COUNT("title") FROM table_203_172 | squall |
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE teaches (
ID varchar(... | Find the relationship between average and maximum capacity among rooms in each building with a scatter chart. | SELECT MAX(capacity), AVG(capacity) FROM classroom GROUP BY building | nvbench |
CREATE TABLE Track (
TrackId integer,
Name varchar(200),
AlbumId integer,
MediaTypeId integer,
GenreId integer,
Composer varchar(220),
Milliseconds integer,
Bytes integer,
UnitPrice decimal(10,2)
)
CREATE TABLE Genre (
GenreId integer,
Name varchar(120)
)
CREATE TABLE Artis... | Show me a bar chart for what are the first names and support rep ids for employees serving 10 or more customers?, I want to rank from high to low by the Y please. | SELECT T1.FirstName, T1.SupportRepId FROM Customer AS T1 JOIN Employee AS T2 ON T1.SupportRepId = T2.EmployeeId ORDER BY T1.SupportRepId DESC | nvbench |
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 ... | 列出患者赵宏义的所有检验结果指标记录在2014-02-10到2019-02-10内的检测人为56821852的检验指标流水号是多少? | SELECT jyjgzbb.JYZBLSH 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... | css |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
... | 47619208708住院就诊这个患者入住的这个病区的名称和代码分别是啥?在这个病区的哪个床位呢 | SELECT RZBQDM, RZBQMC, RYCWH FROM zyjzjlb WHERE JZLSH = '47619208708' | css |
CREATE TABLE table_27995 (
"Episode #" real,
"The W\u00f8rd" text,
"Guest" text,
"Introductory phrase" text,
"Original airdate" text,
"Production code" real
) | What was the word for the episode that aired February 11? | SELECT "The W\u00f8rd" FROM table_27995 WHERE "Original airdate" = 'February 11' | wikisql |
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, find hire_date and the sum of manager_id bin hire_date by time, and visualize them by a bar chart, and could you list by the total number in asc? | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(MANAGER_ID) | nvbench |
CREATE TABLE table_543 (
"Rank (CSA)" text,
"Combined Statistical Area (or Metropolitan Statistical Area if noted)" text,
"State(s)" text,
"2007 Estimate" text,
"2000 Population" text,
"Percent Change (1990\u20132000)" text
) | What is the percent change (1990 2000) when the 2007 estimate is 0 1,598,161? | SELECT "Percent Change (1990\u20132000)" FROM table_543 WHERE "2007 Estimate" = '0 1,598,161' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid numb... | what are the four most frequent medications prescribed during the same month to spinal cord injury - cervical male patients of age 60 or above after they have been diagnosed with spinal cord injury - cervical? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'spinal cord injury - cervical') AS t1 JOIN (SELECT... | eicu |
CREATE TABLE course (
title VARCHAR,
course_id VARCHAR
)
CREATE TABLE prereq (
prereq_id VARCHAR,
course_id VARCHAR
) | What is the course title of the prerequisite of course Mobile Computing? | SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'Mobile Computing') | sql_create_context |
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,
... | 患者34820583在2013年7月20日到2018年9月21日内自付比例低于零点八八的药品量提供一下 | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_ID = '34820583' AND t_kc22.STA_DATE BETWEEN '2013-07-20' AND '2018-09-21' AND t_kc22.SELF_PAY_PRO < 0.88 | css |
CREATE TABLE table_name_82 (
left_office VARCHAR,
took_office VARCHAR
) | What is Left Office, when Took Office is 2006? | SELECT left_office FROM table_name_82 WHERE took_office = "2006" | sql_create_context |
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... | 李梦琪患者从2000年6月15日开始到2007年8月6日这一段时间里,所有检验结果指标记录的检测人为章丹红的检验指标流水号是多少? | SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND 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 jyb... | css |
CREATE TABLE table_204_636 (
id number,
"season" text,
"tier" number,
"division" text,
"pos." text,
"notes" text
) | what was the last season they finished first ? | SELECT MAX("season") FROM table_204_636 WHERE "pos." = 1 | squall |
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... | find the number of inpatient hospital admitted patients who were born before 2134. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "2134" | mimicsql_data |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airport_service (
city_code varchar,
... | how much is a FIRST class ticket from BALTIMORE to SAN FRANCISCO | 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, fare, fare_basis, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code A... | atis |
CREATE TABLE table_58875 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"School/Club Team" text
) | What country is Eugene McDowell from? | SELECT "Nationality" FROM table_58875 WHERE "Player" = 'eugene mcdowell' | wikisql |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id numb... | the list of the patient ids of patients diagnosed with hx-uterus malignancy nec since 2104. | SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hx-uterus malignancy nec') AND STRFTIME('%y', diagnoses_icd.charttime) >= ... | mimic_iii |
CREATE TABLE table_204_190 (
id number,
"rank" number,
"city" text,
"county" text,
"state" text,
"percentage" text
) | does cerritos or la palma rank higher ? | SELECT "city" FROM table_204_190 WHERE "city" IN ('cerritos', 'la palma') ORDER BY "rank" LIMIT 1 | squall |
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... | give me the number of patients whose admission type is elective and procedure icd9 code is 14? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.icd9_code = "14" | mimicsql_data |
CREATE TABLE fgwyjzb (
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,
... | 患者在2007年3月17日到2019年9月21日期间在医疗机构0953235内住院的平均时长为多少? | SELECT AVG(gwyjzb.IN_HOSP_DAYS) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '0953235' AND gwyjzb.IN_HOSP_DATE BETWEEN '2007-03-17' AND '2019-09-21' UNION SELECT AVG(fgwyjzb.IN_HOSP_DAYS) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '0953235' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2007-03-17' AND '2019-09-21' | css |
CREATE TABLE table_name_58 (
in_office VARCHAR,
member VARCHAR
) | What is the office held by member Mark Coulton? | SELECT in_office FROM table_name_58 WHERE member = "mark coulton" | sql_create_context |
CREATE TABLE table_73041 (
"Position" real,
"Gymnast" text,
"Floor" text,
"Pommel Horse" text,
"Rings" text,
"Vault" text,
"Parallel Bars" text,
"Horizontal Bar" text,
"Total" text
) | If the parallel bars is 16.150, who is the gymnast? | SELECT "Gymnast" FROM table_73041 WHERE "Parallel Bars" = '16.150' | wikisql |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | when did patient 47216 for the first time since 1 year ago get discharged from the hospital? | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 47216 AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY admissions.dischtime LIMIT 1 | mimic_iii |
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | Give me the comparison about Weight over the Date_of_Birth by a bar chart, I want to rank in asc by the y axis please. | SELECT Date_of_Birth, Weight FROM people ORDER BY Weight | nvbench |
CREATE TABLE table_68878 (
"Digital channel" text,
"Digital PSIP" real,
"Rogers Cable (Ottawa)" real,
"Vid\u00e9otron (Gatineau)" real,
"Call sign" text,
"Network" text
) | What's the total number of Rogers Cable (Ottawa) channels that have a Digital PSIP greater than 9.1, and a Vid otron (Gatineau) of channel 14? | SELECT COUNT("Rogers Cable (Ottawa)") FROM table_68878 WHERE "Digital PSIP" > '9.1' AND "Vid\u00e9otron (Gatineau)" = '14' | wikisql |
CREATE TABLE table_name_1 (
driver VARCHAR,
engine_† VARCHAR
) | who is the driver when the engine is mercedes fo110m? | SELECT driver FROM table_name_1 WHERE engine_† = "mercedes fo110m" | sql_create_context |
CREATE TABLE table_11243 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | which college has a player called Riley Clayton? | SELECT "College" FROM table_11243 WHERE "Player" = 'riley clayton' | wikisql |
CREATE TABLE table_name_20 (
tournament VARCHAR,
score_in_the_final VARCHAR
) | Tell me the tournament for score in the final of 1 6, 3 6 | SELECT tournament FROM table_name_20 WHERE score_in_the_final = "1–6, 3–6" | sql_create_context |
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
avail... | Use a bar chart to show the number of start dates of all the apartment bookings made by guests with gender code 'Female' for each weekday. | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" | nvbench |
CREATE TABLE table_46488 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | what is the position when the pick is more than 2, the overall is more than 28 and the college is nebraska? | SELECT "Position" FROM table_46488 WHERE "Pick" > '2' AND "Overall" > '28' AND "College" = 'nebraska' | wikisql |
CREATE TABLE table_name_94 (
long_scale VARCHAR,
short_scale VARCHAR
) | For a short scale of one quadrillion a thousand trillion, what is the Long scale? | SELECT long_scale FROM table_name_94 WHERE short_scale = "one quadrillion a thousand trillion" | sql_create_context |
CREATE TABLE table_17964087_2 (
chinese_name VARCHAR,
romanised_name VARCHAR
) | What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name? | SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = "Chan Chi-yuen, Paul" | sql_create_context |
CREATE TABLE table_56369 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
) | In what year did a car have a yamaha v12 engine and a brabham bt60y chassis | SELECT "Year" FROM table_56369 WHERE "Engine" = 'yamaha v12' AND "Chassis" = 'brabham bt60y' | wikisql |
CREATE TABLE table_5315 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
) | Who was first elected as the result of a retired republican gain in the district of ohio 21? | SELECT "First elected" FROM table_5315 WHERE "Result" = 'retired republican gain' AND "District" = 'ohio 21' | wikisql |
CREATE TABLE table_11916 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
) | What is the record of the game with Rudy Gay (20) as the leading scorer? | SELECT "Record" FROM table_11916 WHERE "Leading scorer" = 'rudy gay (20)' | wikisql |
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
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)
)
CREATE TABLE EMPLOYEE (
EMP_NU... | How many courses each teacher taught? Show me a bar chart grouping by instructor's first name, and list X from high to low order. | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY EMP_FNAME ORDER BY EMP_FNAME DESC | nvbench |
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 hours have passed since patient 6170 was admitted in the intensive care unit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', icustays.intime)) 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 VoteTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationD... | Review results with links to the review page. Returns the full ReviewTaskResults table, with a link to the corresponding review page on the site.
Note that the site displays the user associated with each review task result, but the table does not. | SELECT 'site://review/close/' + CAST(ReviewTaskResults.ReviewTaskId AS TEXT) + '|' + CAST(ReviewTaskResults.ReviewTaskId AS TEXT) AS "Review Link", ReviewTasks.ReviewTaskTypeId, CASE WHEN ReviewTasks.ReviewTaskTypeId = 1 THEN 'suggested-edits' ELSE 'null' END, ReviewTaskTypes.Name, ReviewTaskResults.* FROM ReviewTaskRe... | sede |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number... | enumerate links for a post. | SELECT PostId AS "post_link", LinkTypeId, CreationDate, RelatedPostId FROM PostLinks WHERE PostId = '##PostId:int##' ORDER BY PostId | sede |
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... | 从06年1月17日至12年11月19日期间内为28372470患者检测促肾上腺皮质激素的医务人员姓名和工号分别什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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.... | css |
CREATE TABLE table_name_12 (
pick INTEGER,
name VARCHAR
) | what is the pick for adam gettis? | SELECT MIN(pick) FROM table_name_12 WHERE name = "adam gettis" | 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... | 患者金英耀在二000年四月二十七日到二0二一年二月十七日期间,在医院主要看哪种病 | SELECT IN_DIAG_DIS_CD, IN_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_NM = '金英耀' AND IN_HOSP_DATE BETWEEN '2000-04-27' AND '2021-02-17' GROUP BY IN_DIAG_DIS_CD ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
) | Compare the smallest enrollment of schools in each state using a bar chart, list total number in asc order. | SELECT cName, MIN(enr) FROM College GROUP BY state ORDER BY MIN(enr) | nvbench |
CREATE TABLE table_28760804_1 (
us_viewers__million_ VARCHAR,
production_code VARCHAR
) | How many million U.S. viewers saw the episode with production code 3X5710? | SELECT us_viewers__million_ FROM table_28760804_1 WHERE production_code = "3X5710" | sql_create_context |
CREATE TABLE table_15397 (
"Date" text,
"Opponent" text,
"Site" text,
"Score" text,
"Loss" text
) | Who were they playing when Bird (1-4) had a loss? | SELECT "Opponent" FROM table_15397 WHERE "Loss" = 'bird (1-4)' | wikisql |
CREATE TABLE table_37273 (
"Rank" real,
"Name" text,
"Nation" text,
"Points" real,
"Places" real
) | What Nation Placed 122.5? | SELECT "Nation" FROM table_37273 WHERE "Places" = '122.5' | wikisql |
CREATE TABLE table_10162 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the date of the game when the home team scored 21.18 (144) and the away team scored 16.19 (115)? | SELECT "Date" FROM table_10162 WHERE "Home team score" = '21.18 (144)' AND "Away team score" = '16.19 (115)' | wikisql |
CREATE TABLE table_name_25 (
wins INTEGER,
team VARCHAR
) | How many average wins have USA as the team? | SELECT AVG(wins) FROM table_name_25 WHERE team = "usa" | sql_create_context |
CREATE TABLE table_18863 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What is the highest game number? | SELECT MAX("Game") FROM table_18863 | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.