context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_name_58 (
drawn INTEGER,
team VARCHAR,
played VARCHAR,
points VARCHAR
) | What is the lowest number of Drawn games for Team Mackenzie where the Played is less and 11 and the Points are greater than 7? | SELECT MIN(drawn) FROM table_name_58 WHERE played < 11 AND points > 7 AND team = "mackenzie" | sql_create_context |
CREATE TABLE table_44509 (
"Year" text,
"Supplier" text,
"Chest" text,
"Sleeves" text,
"Back" text
) | Which Supplier has a Year of 2006-2008? | SELECT "Supplier" FROM table_44509 WHERE "Year" = '2006-2008' | wikisql |
CREATE TABLE gwyjzb (
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,
... | 对于医疗费总额高于7064.81元的医疗记录属于患者62391480的,列出入院诊断疾病名称和编码是什么? | SELECT gwyjzb.IN_DIAG_DIS_CD, gwyjzb.IN_DIAG_DIS_NM FROM gwyjzb WHERE gwyjzb.PERSON_ID = '62391480' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 7064.81) UNION SELECT fgwyjzb.IN_DIAG_DIS_CD, fgwyjzb.IN_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '62391480' AND fgw... | css |
CREATE TABLE table_14941284_1 (
opponent VARCHAR,
date VARCHAR
) | When it is October 25, 1981 who is the opponent? | SELECT opponent FROM table_14941284_1 WHERE date = "October 25, 1981" | sql_create_context |
CREATE TABLE table_name_62 (
staterooms INTEGER,
year_built VARCHAR,
crew VARCHAR
) | What is the sum of staterooms in with a year buit of 2008, and a crew less than 28? | SELECT SUM(staterooms) FROM table_name_62 WHERE year_built = 2008 AND crew < 28 | sql_create_context |
CREATE TABLE table_name_84 (
crowd VARCHAR,
away_team VARCHAR
) | What was the crowd size of the match featuring Hawthorn as the Away team? | SELECT crowd FROM table_name_84 WHERE away_team = "hawthorn" | sql_create_context |
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,... | 从08年5月22日起到08年11月21日患者54662739的所有检验结果指标记录中的检测方法可以提供一下吗? | SELECT jyjgzbb.JCFF FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH = jyjgzbb.BGDH W... | css |
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 ... | is the rdw of patient 15119 last measured on the last hospital visit greater than the second to last value measured on the last hospital visit? | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15119 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.l... | mimic_iii |
CREATE TABLE 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... | give me the number of patients whose admission type is emergency and lab test fluid is cerebrospinal fluid (csf)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | mimicsql_data |
CREATE TABLE table_204_607 (
id number,
"season" number,
"date" text,
"location" text,
"discipline" text,
"place" text
) | what is the total number of her 2nd place finishes on the list ? | SELECT COUNT(*) FROM table_204_607 WHERE "place" = 2 | squall |
CREATE TABLE table_name_25 (
player VARCHAR,
country VARCHAR,
score VARCHAR
) | Who is from south africa and has a score of 76-75-73-71=295? | SELECT player FROM table_name_25 WHERE country = "south africa" AND score = 76 - 75 - 73 - 71 = 295 | sql_create_context |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | count the number of patients whose marital status is married and age is less than 70? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.age < "70" | mimicsql_data |
CREATE TABLE table_204_276 (
id number,
"record" text,
"date" text,
"result" text,
"opponent" text,
"location" text,
"method" text,
"round" number
) | what is the name of the last opponent on this chart ? | SELECT "opponent" FROM table_204_276 ORDER BY id DESC LIMIT 1 | squall |
CREATE TABLE table_name_5 (
score VARCHAR,
record VARCHAR
) | What was the score of the game with a record of 37 26 9? | SELECT score FROM table_name_5 WHERE record = "37–26–9" | sql_create_context |
CREATE TABLE table_22520 (
"Year (Ceremony)" text,
"Actor/Actress" text,
"Category" text,
"Film title used in nomination" text,
"Result" text
) | What year was Teresa Wright nominated best supporting actress? | SELECT "Year (Ceremony)" FROM table_22520 WHERE "Actor/Actress" = 'Teresa Wright' AND "Category" = 'Best Supporting Actress' | wikisql |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE T... | Accepted answers after closing a question. | SELECT q.Id AS "post_link", q.ClosedDate AS "Closed on", v.CreationDate AS "Accepted on" FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId INNER JOIN Votes AS v ON a.Id = v.PostId WHERE v.VoteTypeId = 1 AND v.CreationDate > q.ClosedDate ORDER BY q.CreationDate DESC | sede |
CREATE TABLE table_name_28 (
date VARCHAR,
team VARCHAR
) | What date was the team @ Detroit? | SELECT date FROM table_name_28 WHERE team = "@ detroit" | sql_create_context |
CREATE TABLE table_name_19 (
grid INTEGER,
time_retired VARCHAR,
laps VARCHAR
) | How much Grid has a Time/Retired of +0.785, and Laps larger than 29? | SELECT SUM(grid) FROM table_name_19 WHERE time_retired = "+0.785" AND laps > 29 | sql_create_context |
CREATE TABLE table_18332845_2 (
departure VARCHAR,
going_to VARCHAR,
arrival VARCHAR
) | What is the departure for Peterborough East whose arrival time is 12.40? | SELECT departure FROM table_18332845_2 WHERE going_to = "Peterborough East" AND arrival = "12.40" | sql_create_context |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test... | Have I taken any of the hardest UKR courses ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = 'UKR' AND program_course.workload = (SELECT MAX(P... | advising |
CREATE TABLE table_201400_2 (
malayalam_name_മലയാളം VARCHAR,
sanskrit VARCHAR
) | what is the malayalam name of sanskrit uttar ha | SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE sanskrit = "Uttarāṣāḍha उत्तराषाढा" | sql_create_context |
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as ... | In Fall or Winter , will there be any courses that would meet the MDE requirement ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id... | advising |
CREATE TABLE table_6437 (
"Week" text,
"Division" text,
"Position" text,
"Player" text,
"School" text
) | on week of february 12, in the west division, what is the position? | SELECT "Position" FROM table_6437 WHERE "Division" = 'west' AND "Week" = 'february 12' | wikisql |
CREATE TABLE drivers (
driverid number,
driverref text,
number number,
code text,
forename text,
surname text,
dob text,
nationality text,
url text
)
CREATE TABLE qualifying (
qualifyid number,
raceid number,
driverid number,
constructorid number,
number number,
... | Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841? | SELECT DISTINCT driverid, stop FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841) | spider |
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments ... | What are the upper level CS classes provided in next semester ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE program_course.catego... | advising |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost numb... | when was patient 92642 prescribed docusate sodium and acetaminophen at the same time for the last time until 62 months ago? | SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'docusate sodium' AND admissions.subject_id = 92642 AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-62 month')) ... | mimic_iii |
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,
... | count the number of patients whose admission location is emergency room admit and diagnosis icd9 code is 70722? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND diagnoses.icd9_code = "70722" | mimicsql_data |
CREATE TABLE table_name_76 (
opposing_teams VARCHAR,
status VARCHAR
) | Who was the opposing team when the status is second test? | SELECT opposing_teams FROM table_name_76 WHERE status = "second test" | sql_create_context |
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... | 用哪个设备做的71379731927检查结果指标记录设备编码和仪器编号以及名称分别是什么 | SELECT jyjgzbb.SBBM, jyjgzbb.YQBH, jyjgzbb.YQMC FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '71379731927' | css |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id n... | has patient 30763 received until 1 year ago a delirium d/t other cond diagnosis? | SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'delirium d/t other cond') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30763) AND DATETIME(diagnoses... | mimic_iii |
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varc... | i'd like to see flights from PITTSBURGH to ATLANTA | 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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATL... | atis |
CREATE TABLE laptimes (
raceid number,
driverid number,
lap number,
position number,
time text,
milliseconds number
)
CREATE TABLE constructors (
constructorid number,
constructorref text,
name text,
nationality text,
url text
)
CREATE TABLE seasons (
year number,
u... | What are the first and last names of all drivers who participated in the Australian Grand Prix but not the Chinese Grand Prix? | SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.dr... | 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,
... | 从2000年12月26日到2006年5月18日这段时间内,病人74743913所有检验结果指标记录中的检测方法列一下 | SELECT jyjgzbb.JCFF 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_in... | css |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
d... | what was the first time that patient 19428 had the maximum value of sodium in this month? | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'sodium') AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT... | mimic_iii |
CREATE TABLE plays_games (
stuid number,
gameid number,
hours_played number
)
CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TAB... | How many different types of sports do we offer? | SELECT COUNT(DISTINCT sportname) FROM sportsinfo | spider |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | how many patients less than 85 years of age have bladder cancer/sda primary disease? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BLADDER CANCER/SDA" AND demographic.age < "85" | mimicsql_data |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment tex... | Users by reputation in a country. | SELECT * FROM Users WHERE LOWER(Location) LIKE '%##country##%' ORDER BY Reputation DESC | sede |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,... | is there a flight from CHARLOTTE to NEWARK on tuesday evening | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'NEWARK' AND date_day.day_number = 22 AND date_day.month_number = 3 AND d... | atis |
CREATE TABLE table_name_46 (
Id VARCHAR
) | What shows for 1997 when 1987 is 2r? | SELECT 1997 FROM table_name_46 WHERE 1987 = "2r" | sql_create_context |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | how many patients during this year received insertion of venous catheter for hemodialysis two or more times? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'insertion of venous catheter for hemodialysis' AND DATETIME(treatment.treatmenttime, 'start of year') = DA... | eicu |
CREATE TABLE table_name_12 (
ties INTEGER,
wins VARCHAR,
league VARCHAR,
losses VARCHAR
) | What is the lowest number of ties in the NFL, with less than 2 losses and less than 15 wins? | SELECT MIN(ties) FROM table_name_12 WHERE league = "nfl" AND losses < 2 AND wins < 15 | sql_create_context |
CREATE TABLE table_14934885_1 (
episode VARCHAR,
performer_4 VARCHAR
) | How many episodes was Jimmy Mulville performer 4? | SELECT COUNT(episode) FROM table_14934885_1 WHERE performer_4 = "Jimmy Mulville" | sql_create_context |
CREATE TABLE table_204_180 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number
) | what team did the badgers play after ohio state ? | SELECT "opponent#" FROM table_204_180 WHERE "date" > (SELECT "date" FROM table_204_180 WHERE "opponent#" = 'ohio state') ORDER BY "date" LIMIT 1 | squall |
CREATE TABLE table_1886270_1 (
cr_no INTEGER
) | What is the highest cr number? | SELECT MAX(cr_no) FROM table_1886270_1 | sql_create_context |
CREATE TABLE table_name_77 (
conceded INTEGER,
points VARCHAR,
wins VARCHAR,
scored VARCHAR
) | What is the lowest number conceded for the team that had less than 8 wins, scored 21, and had less than 23 points? | SELECT MIN(conceded) FROM table_name_77 WHERE wins < 8 AND scored = 21 AND points < 23 | 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... | 从2016年2月15日到2018年4月16日,患者15906206,685363这个指标怎么样 | 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 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... | 在2013年8月20日到2016年5月24日期间病患金新翰在医疗机构3186559做过的检查有多少次? | SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '金新翰' AND t_kc22.STA_DATE BETWEEN '2013-08-20' AND '2016-05-24' AND t_kc22.t_kc21_MED_SER_ORG_NO = '3186559' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar... | 100 -level classes , are they offered in the Spring or Summer term ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 100 AND 100 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = cou... | advising |
CREATE TABLE table_58009 (
"Singular abbreviation" text,
"Singular Word" text,
"Plural abbreviation" text,
"Plural Word" text,
"Discipline" text
) | The singular word of hand uses what plural word? | SELECT "Plural Word" FROM table_58009 WHERE "Singular Word" = 'hand' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | what is the lab test fluid of subject id 25543? | SELECT lab.fluid FROM lab WHERE lab.subject_id = "25543" | 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... | how many white-russian patients were born before the year 2104? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND demographic.dob_year < "2104" | mimicsql_data |
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 intakeoutput (
in... | what were the allergies patient 030-52327 had this month. | SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-52327')) AND DATETIME(allergy.allergytime, 'start of month') = DATETI... | eicu |
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authors (
authid number,
lname text,
fname text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
authorder number
)
CREATE TABLE inst (
instid number,
name text,
country text
) | What is the last name of the author that has published the most papers? | SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname, t1.lname ORDER BY COUNT(*) DESC LIMIT 1 | spider |
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 do not work in departments with managers that have ids between 100 and 200, show me about the distribution of hire_date and the amount of hire_date bin hire_date by time in a bar chart. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_46997 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | What is Points, when Played is '20', and when Club is 'Caldicot RFC'? | SELECT "Points" FROM table_46997 WHERE "Played" = '20' AND "Club" = 'caldicot rfc' | wikisql |
CREATE TABLE employment (
company_id number,
people_id number,
year_working number
)
CREATE TABLE people (
people_id number,
age number,
name text,
nationality text,
graduation_college text
)
CREATE TABLE company (
company_id number,
name text,
headquarters text,
indust... | What is the headquarter of the company with the largest sales? | SELECT headquarters FROM company ORDER BY sales_in_billion DESC LIMIT 1 | spider |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title te... | during a year before what is the four most commonly taken lab test for patients 60 or above? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >= 60) AND DATETIME(labevents.charttime, 'start o... | mimic_iii |
CREATE TABLE table_15701 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
) | What was the highest number of points scored when there was a draw of 2 and when the amount played was 18? | SELECT MAX("Points") FROM table_15701 WHERE "Draw" = '2' AND "Played" < '18' | wikisql |
CREATE TABLE table_22402438_7 (
pick__number INTEGER,
position VARCHAR
) | How many pick # are there for the goaltender position? | SELECT MIN(pick__number) FROM table_22402438_7 WHERE position = "Goaltender" | sql_create_context |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Show me about the distribution of Team_Name and Team_ID in a bar chart, could you show by the y-axis from high to low? | SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_ID DESC | nvbench |
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
... | Find Nationality and the amount of Nationality , and group by attribute Nationality, and visualize them by a bar chart. | SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality | nvbench |
CREATE TABLE table_75344 (
"Station" text,
"Services" text,
"Local authority" text,
"Zone 2007" text,
"Zone 2008" text,
"Zone 2010" text,
"Zone 2013" text
) | Which Zone 2008 has Services of greater anglia, and a Station of cheshunt? | SELECT "Zone 2008" FROM table_75344 WHERE "Services" = 'greater anglia' AND "Station" = 'cheshunt' | wikisql |
CREATE TABLE table_name_56 (
stadium VARCHAR,
opponent VARCHAR
) | What stadium had an opponent of Cal State Fullerton Titans? | SELECT stadium FROM table_name_56 WHERE opponent = "cal state fullerton titans" | sql_create_context |
CREATE TABLE table_name_21 (
entrants INTEGER,
winner VARCHAR
) | How many entrants did the events won by Frank Gary average? | SELECT AVG(entrants) FROM table_name_21 WHERE winner = "frank gary" | sql_create_context |
CREATE TABLE table_26557 (
"Model number" text,
"Frequency" text,
"L1 Cache" text,
"FSB" text,
"Mult." text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"sSpec number" text
) | What's the voltage of the model with part number TT80503300? | SELECT "Voltage" FROM table_26557 WHERE "Part number(s)" = 'TT80503300' | wikisql |
CREATE TABLE table_6684 (
"Station Code" text,
"Station Name" text,
"Arrival" text,
"Departure" text,
"Platform" text
) | What is the Station Name of Platform 5? | SELECT "Station Name" FROM table_6684 WHERE "Platform" = '5' | wikisql |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number... | on the current intensive care unit visit patient 030-80270 had a normal respiration? | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-80270') AND patient.unitdischargetime IS NULL) AND vitalperiodic... | eicu |
CREATE TABLE table_name_34 (
driving_force_gt VARCHAR,
feature VARCHAR
) | Feature of gear stick involves which driving force gt? | SELECT driving_force_gt FROM table_name_34 WHERE feature = "gear stick" | sql_create_context |
CREATE TABLE table_53199 (
"Player" text,
"Car." real,
"Yards" text,
"Avg." text,
"TD's" real,
"Long" text
) | How many carries for the player with a 2 yard long? | SELECT COUNT("Car.") FROM table_53199 WHERE "Long" = '2' | wikisql |
CREATE TABLE table_2701851_5 (
title VARCHAR,
production_code VARCHAR
) | What was the title for the episode with the production code 404a? | SELECT title FROM table_2701851_5 WHERE production_code = "404a" | sql_create_context |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE cost (
row_id... | how many times has patient 79348 had a creatinine, ascites lab test in 08/this year? | SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'creatinine, ascites') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 79348) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURREN... | mimic_iii |
CREATE TABLE table_name_59 (
position VARCHAR,
pick VARCHAR,
player VARCHAR
) | What was the position of terry jones whose pick number was after 256? | SELECT position FROM table_name_59 WHERE pick > 256 AND player = "terry jones" | sql_create_context |
CREATE TABLE table_70993 (
"Week" real,
"Date" text,
"Kickoff ( ET )" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text
) | What is the total number of weeks that the Steelers had a record of 1 0? | SELECT COUNT("Week") FROM table_70993 WHERE "Record" = '1–0' | wikisql |
CREATE TABLE table_6615 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text,
"Attendance" real,
"Record" text
) | What was the score on may 19? | SELECT "Score" FROM table_6615 WHERE "Date" = 'may 19' | wikisql |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttim... | what are the new prescriptions of patient 72909 today compared with those yesterday? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 72909) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE... | mimic_iii |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABL... | when is the first time patient 92397 had a maximum of bicarbonate in 12/last year? | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 92397) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bicarbonate') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CUR... | mimic_iii |
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... | give me the number of patients whose drug code is d12.5w250i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "D12.5W250I" | mimicsql_data |
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... | Create a pie chart showing team_id across team name. | SELECT Team_Name, Team_ID FROM basketball_match | nvbench |
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,
... | give the number of patients who are under the age of 55 and their drug code is syrg1. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "55" AND prescriptions.formulary_drug_cd = "SYRG1" | mimicsql_data |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number... | Comments belonging to deleted Users. | SELECT Posts.Id AS "post_link", Posts.Id, Comments.Id AS "comment_link" FROM Posts INNER JOIN Comments ON Posts.Id = Comments.PostId LEFT JOIN Users ON Users.Id = Comments.UserId WHERE Posts.Id = '##PostId##' AND Users.Id IS NULL | 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... | 在医疗就诊02340681793中,科室名里有手外科这几个字的科室开过的医疗费用明细项目 | SELECT * FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '02340681793' AND t_kc22.MED_ORG_DEPT_NM LIKE '%手外科%' | css |
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... | 在编号为4179709的医院中的病患李莹华的出院时科室的名称里有眼外伤这三个字的住院就诊记录有多些? | SELECT * 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 = '李莹华' AND hz_info.YLJGDM = '4179709' AND zyjzjlb.CYKSMC LIKE '%眼外伤%' | css |
CREATE TABLE table_name_35 (
Id VARCHAR
) | What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005? | SELECT MAX(2008) FROM table_name_35 WHERE 2009 = 3.4 AND 2005 > 2.9 | sql_create_context |
CREATE TABLE table_63730 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | With a greater than 4 rank, and the silver medal greater than 0, and the bronze medal less than 1, what is the average total? | SELECT AVG("Total") FROM table_63730 WHERE "Rank" > '4' AND "Silver" > '0' AND "Bronze" < '1' | wikisql |
CREATE TABLE table_79860 (
"Game" real,
"Date" text,
"Location" text,
"Time" text,
"Attendance" real
) | Date of October 1 has what average game? | SELECT AVG("Game") FROM table_79860 WHERE "Date" = 'october 1' | wikisql |
CREATE TABLE table_2267857_1 (
laps VARCHAR,
date VARCHAR
) | Name the laps of october 26 | SELECT laps FROM table_2267857_1 WHERE date = "October 26" | sql_create_context |
CREATE TABLE table_name_97 (
torque VARCHAR,
engine_code VARCHAR,
power VARCHAR
) | What is the torque when engine code is N46B20 and power is ps (kw; hp)@6400? | SELECT torque FROM table_name_97 WHERE engine_code = "n46b20" AND power = "ps (kw; hp)@6400" | sql_create_context |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutput... | calculate the difference between patient 016-38131's total amount of input and output in yesterday. | SELECT (SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131')) AND intakeoutput.cellpath L... | eicu |
CREATE TABLE table_355 (
"L&CR No." real,
"Type" text,
"Manufacturer" text,
"Delivered" text,
"Name" text,
"Jt. Cttee No." real,
"1845 disposal" text
) | What was the 1845 disposal for sussex? | SELECT "1845 disposal" FROM table_355 WHERE "Name" = 'Sussex' | wikisql |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE... | Of all the courses I 've taken , are any of them ULCS ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON student_record.course_id = program_course.course_id WHERE program_course.category LIKE '%ULCS%' AND student_record.student_id = 1 | advising |
CREATE TABLE table_876 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | who had all the high rebounds when high assists is by dwyane wade (9) | SELECT "High rebounds" FROM table_876 WHERE "High assists" = 'Dwyane Wade (9)' | wikisql |
CREATE TABLE table_name_34 (
attendance INTEGER,
date VARCHAR,
game VARCHAR
) | Where Date is october 11, and game greater than 4 what is the lowest attendance? | SELECT MIN(attendance) FROM table_name_34 WHERE date = "october 11" AND game > 4 | sql_create_context |
CREATE TABLE table_27902171_8 (
team VARCHAR,
record VARCHAR
) | name the team for 36-29 record | SELECT team FROM table_27902171_8 WHERE record = "36-29" | sql_create_context |
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE region (
Region_ID int,
Region_name text,
Date ... | How many parties of the time they took office, binning the took office into Year interval, and then split by the minister's name, and sort Y in desc order. | SELECT Took_office, COUNT(Took_office) FROM party GROUP BY Minister ORDER BY COUNT(Took_office) DESC | nvbench |
CREATE TABLE Candidates (
candidate_id INTEGER,
candidate_details VARCHAR(255)
)
CREATE TABLE Addresses (
address_id INTEGER,
line_1 VARCHAR(80),
line_2 VARCHAR(80),
city VARCHAR(50),
zip_postcode CHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50)
)
CREATE TABLE Peopl... | Give me a histogram for how many registed students do each course have? List course name and the number of their registered students?, rank by the y axis from high to low. | SELECT course_name, COUNT(*) FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id JOIN Courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_3694 (
"Episode" real,
"Airdate" text,
"Game 1" text,
"Game 2" text,
"Game 3" text,
"Viewers" text
) | How many episodes had 4.44m viewers? | SELECT COUNT("Episode") FROM table_3694 WHERE "Viewers" = '4.44m' | wikisql |
CREATE TABLE table_67221 (
"Date" text,
"Opponent" text,
"City" text,
"Result" text,
"Score" text
) | What was the score of the game against Minnesota? | SELECT "Score" FROM table_67221 WHERE "Opponent" = 'minnesota' | wikisql |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM ... | 查验告知单号码为94703013293的检验申请机构名字和检验机构的名告诉一下? | SELECT jybgb.JYSQJGMC, jybgb.JYJGMC FROM jybgb WHERE jybgb.BGDH = '94703013293' | css |
CREATE TABLE Sportsinfo (
sportname VARCHAR
) | Show all sport name and the number of students. | SELECT sportname, COUNT(*) FROM Sportsinfo GROUP BY sportname | sql_create_context |
CREATE TABLE table_1963459_2 (
average_speed__mph_ VARCHAR,
team VARCHAR
) | What is Jon Thorne's average speed? | SELECT average_speed__mph_ FROM table_1963459_2 WHERE team = "Jon Thorne" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.