context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE table_45151 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
What is Steve Lowery's Place?
SELECT "Place" FROM table_45151 WHERE "Player" = 'steve lowery'
wikisql
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...
依照科室名字的不同与出院时诊断的疾病编码不同查询一下医院5932040全部诊疗记录中患者就诊时的平均年纪
SELECT MED_ORG_DEPT_NM, OUT_DIAG_DIS_CD, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '5932040' GROUP BY MED_ORG_DEPT_NM, OUT_DIAG_DIS_CD
css
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE patient ( uniquep...
what is the daily minimum value of patient 006-195316's weight since 09/2103?
SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195316') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) >= '2103-09' GROUP BY STRFTIME('%y-%m-%d', patie...
eicu
CREATE TABLE table_55934 ( "Rank" real, "Name" text, "Nation" text, "Placings" text, "Total" real )
What is the rank number for a placing of 28.5 and a total less than 92.7?
SELECT COUNT("Rank") FROM table_55934 WHERE "Placings" = '28.5' AND "Total" < '92.7'
wikisql
CREATE TABLE table_206419_3 ( shareholder VARCHAR, percent_of_capital VARCHAR )
What shareholder has 3.63 percent of capital?
SELECT shareholder FROM table_206419_3 WHERE percent_of_capital = "3.63"
sql_create_context
CREATE TABLE table_28062822_3 ( height VARCHAR, represent VARCHAR )
What was the height of representative #6?
SELECT height FROM table_28062822_3 WHERE represent = 6
sql_create_context
CREATE TABLE table_42526 ( "Game" real, "Date" text, "Team" text, "Score" text, "Location Attendance" text, "Record" text )
Which Team has a Score of 108-105 (ot)?
SELECT "Team" FROM table_42526 WHERE "Score" = '108-105 (ot)'
wikisql
CREATE TABLE table_name_4 ( Id VARCHAR )
What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?
SELECT MAX(1995) FROM table_name_4 WHERE 1990 > 36 AND 1987 < 1987 AND 2007 > 107
sql_create_context
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, friday varchar, saturday varchar, sunday varchar, has_final_proje...
How many classes are there available next semester ?
SELECT COUNT(DISTINCT course_offering.course_id) FROM course_offering, semester WHERE semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
advising
CREATE TABLE table_69841 ( "Year" real, "Class" text, "Team" text, "Points" real, "Rank" text, "Wins" real )
For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points?
SELECT SUM("Points") FROM table_69841 WHERE "Class" = '125cc' AND "Rank" = '3rd' AND "Year" < '1996'
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 who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of last_name and employee_id , could you display in desc by the EMPLOYEE_ID?
SELECT LAST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID DESC
nvbench
CREATE TABLE table_name_3 ( safari VARCHAR, opera VARCHAR )
What percentage of users were using Safari during the period in which 2.33% were using Opera?
SELECT safari FROM table_name_3 WHERE opera = "2.33%"
sql_create_context
CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name ...
give me the flights from BOSTON to SAN FRANCISCO leaving early today
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 (((flight.departure_time BETWEEN 1000 AND 0) AND date_day.day_number = 13 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_nam...
atis
CREATE TABLE county_public_safety ( Crime_rate INTEGER )
What are the minimum and maximum crime rate of counties?
SELECT MIN(Crime_rate), MAX(Crime_rate) FROM county_public_safety
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( ...
give me the number of patients whose drug code is lope2?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "LOPE2"
mimicsql_data
CREATE TABLE table_train_13 ( "id" int, "active_infection" bool, "procalcitonin" int, "receiving_vasopressor" bool, "sepsis" bool, "septic_shock" bool, "age" float, "lactate" int, "NOUSE" float )
procalcitonin >= 2 ng / ml when entering the intensive care unit ( icu )
SELECT * FROM table_train_13 WHERE procalcitonin >= 2
criteria2sql
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
how many patients admitted before the year 2120 had the lab test item id 51044?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2120" AND lab.itemid = "51044"
mimicsql_data
CREATE TABLE table_name_41 ( crowd INTEGER, home_team VARCHAR )
What is the average crowd size when fitzroy plays at home?
SELECT AVG(crowd) FROM table_name_41 WHERE home_team = "fitzroy"
sql_create_context
CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal bool...
Guess NAA flags on AU by comments.
SELECT 'http://stackoverflow.com/questions/' + CAST(c.PostId AS TEXT) FROM Comments AS c INNER JOIN Posts AS p ON (p.Id = c.PostId) WHERE c.Text LIKE '%This does not provide an answer to the question.%' AND c.Score >= 0 AND p.Score <= 0 AND NOT EXISTS(SELECT * FROM PostHistory AS h WHERE PostHistoryTypeId IN (12, 13) A...
sede
CREATE TABLE course ( crs_code text, dept_code text, crs_description text, crs_credit number ) CREATE TABLE enroll ( class_code text, stu_num number, enroll_grade text ) CREATE TABLE employee ( emp_num number, emp_lname text, emp_fname text, emp_initial text, emp_jobcod...
How many classes are held in each department?
SELECT COUNT(*), dept_code FROM class AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code GROUP BY dept_code
spider
CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id num...
Most popular tag in June 2017.
SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MayRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMay, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AN...
sede
CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int ) CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text )
Show me a stacked bar graph, the x-axis is the nationality of ship, and the y-axis is their total number of different nationality and split by ship type, and could you display y axis in descending order?
SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Type, Nationality ORDER BY COUNT(Nationality) DESC
nvbench
CREATE TABLE mzb ( 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...
卫博裕病患的药品消费金额不超过8489.49元的医疗记录有哪几次?列出对应的医疗就诊编号
SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '卫博裕' AND NOT qtb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 8489.49) UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '卫博裕' AND NOT gyb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT...
css
CREATE TABLE table_name_46 ( round INTEGER, opponent VARCHAR )
How many rounds is the fight against Michael Chavez?
SELECT AVG(round) FROM table_name_46 WHERE opponent = "michael chavez"
sql_create_context
CREATE TABLE table_train_173 ( "id" int, "hiv_infection" bool, "hemoglobin_a1c_hba1c" float, "hepatitis_c" bool, "hepatitis_b" bool, "cirrhosis" bool, "renal_disease" bool, "hepatic_disease" bool, "allergy_to_egg" bool, "estimated_glomerular_filtration_rate_egfr" int, "NOUSE"...
hiv or hepatitis b or c positive status
SELECT * FROM table_train_173 WHERE hiv_infection = 1 OR hepatitis_c = 1 OR hepatitis_b = 1
criteria2sql
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id t...
Out of the total number of patients admitted before 2154, caluclate the number of those who had urinary incontinence nos.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2154" AND diagnoses.short_title = "Urinary incontinence NOS"
mimicsql_data
CREATE TABLE table_name_1 ( nationality VARCHAR, player VARCHAR )
What nationality is Demetris Nichols?
SELECT nationality FROM table_name_1 WHERE player = "demetris nichols"
sql_create_context
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE ftxmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, ...
列出患者43772576所有检验结果指标记录中的仪器编号以及名称在2005-02-16到2014-01-13内均为什么?
SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH ...
css
CREATE TABLE table_80457 ( "Representative" text, "Years" text, "State" text, "Party" text, "Lifespan" text )
Which party has Peter A. Quinn as a representative?
SELECT "Party" FROM table_80457 WHERE "Representative" = 'peter a. quinn'
wikisql
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
how many patients whose discharge location is rehab/distinct part hosp and lab test name is osmolality, measured?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND lab.label = "Osmolality, Measured"
mimicsql_data
CREATE TABLE table_name_60 ( name VARCHAR, area VARCHAR )
What School is in the kio kio area?
SELECT name FROM table_name_60 WHERE area = "kio kio"
sql_create_context
CREATE TABLE table_53364 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
Where did a home team score 8.14 (62)?
SELECT "Venue" FROM table_53364 WHERE "Home team score" = '8.14 (62)'
wikisql
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, ...
查一下从2001-08-28到2006-01-01这期间,患者窦碧玉去9175260这个医疗机构看过几次门诊
SELECT COUNT(*) FROM person_info JOIN hz_info JOIN zzmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE person_info.XM = '窦碧玉' AND zzmzjzjlb.JZKSRQ BETWEEN '2001-08-28' AND '2006-01-01' AND zzmzjzjlb.YLJGDM = '9175260' UNI...
css
CREATE TABLE table_name_89 ( opponent VARCHAR, week VARCHAR )
Who was the opponent in week 6?
SELECT opponent FROM table_name_89 WHERE week = 6
sql_create_context
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, ...
give me the number of patients whose admission type is urgent and year of birth is less than 2078?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.dob_year < "2078"
mimicsql_data
CREATE TABLE table_29171931_3 ( incoming_head_coach VARCHAR, outgoing_head_coach VARCHAR )
Who was the incoming head coach after Wan Jamak Wan Hassan quit the coaching job?
SELECT incoming_head_coach FROM table_29171931_3 WHERE outgoing_head_coach = "Wan Jamak Wan Hassan"
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...
what was the first value of the pao2 lab test of patient 004-32407 on their first hospital visit.
SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-32407' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmit...
eicu
CREATE TABLE table_4336 ( "Region" text, "Date" text, "Format" text, "Label" text, "Edition(s)" text )
Tell me the label for digital download for bonus tracks version
SELECT "Label" FROM table_4336 WHERE "Format" = 'digital download' AND "Edition(s)" = 'bonus tracks version'
wikisql
CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime ti...
what was the name of the procedure that patient 90369 received two times until 11/2105.
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 903...
mimic_iii
CREATE TABLE table_58080 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
When the Crowd is larger than 23,327, what Home team is playing?
SELECT "Home team" FROM table_58080 WHERE "Crowd" > '23,327'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE mzjzjlb_jybgb ( YLJGDM_MZJZJLB text, BGDH number, YLJGDM number ) CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, ...
门诊诊断病患为慢性咽炎的相应人数是多少?名称叫什么?籍贯代码是多少?
SELECT person_info.JGDM, person_info.JGMC, COUNT(person_info.RYBH) FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE mzjzjlb.JZZDSM = '慢性咽炎' GROUP BY person_info.JGDM
css
CREATE TABLE table_5887 ( "Year" real, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text )
Men's singles of kilian pfister, and a Women's doubles of astrid eidenbenz claudia jehle has what average year?
SELECT AVG("Year") FROM table_5887 WHERE "Men's singles" = 'kilian pfister' AND "Women's doubles" = 'astrid eidenbenz claudia jehle'
wikisql
CREATE TABLE publication ( Publication_ID int, Book_ID int, Publisher text, Publication_Date text, Price real ) CREATE TABLE book ( Book_ID int, Title text, Issues real, Writer text )
Show different publishers together with the number of publications they have in a pie chart.
SELECT Publisher, COUNT(*) FROM publication GROUP BY Publisher
nvbench
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, ...
在患者朱飞宇的医疗记录中,医疗费总额不低于1829.32元的入院诊断疾病名是什么?编码呢
SELECT gwyjzb.OUT_DIAG_DIS_CD, gwyjzb.OUT_DIAG_DIS_NM FROM gwyjzb WHERE gwyjzb.PERSON_NM = '朱飞宇' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 1829.32) UNION SELECT fgwyjzb.OUT_DIAG_DIS_CD, fgwyjzb.OUT_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '朱飞宇' AND fgwyjzb....
css
CREATE TABLE table_78394 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
What was the home team when the visiting team was Toronto?
SELECT "Home" FROM table_78394 WHERE "Visitor" = 'toronto'
wikisql
CREATE TABLE table_name_67 ( laps VARCHAR, time_retired VARCHAR, driver VARCHAR )
How many laps does jean-christophe boullion have with a time/retired of +1 lap?
SELECT laps FROM table_name_67 WHERE time_retired = "+1 lap" AND driver = "jean-christophe boullion"
sql_create_context
CREATE TABLE table_65423 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text )
What is the Notes of the Country with a Rank of 4?
SELECT "Notes" FROM table_65423 WHERE "Rank" = '4'
wikisql
CREATE TABLE table_50321 ( "Round" real, "Pick" real, "Overall" real, "Name" text, "Position" text, "College" text )
What is the college of dave adams, who has a pick greater than 7?
SELECT "College" FROM table_50321 WHERE "Pick" > '7' AND "Name" = 'dave adams'
wikisql
CREATE TABLE table_56436 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
What team played in front of 28,536 at an away stadium?
SELECT "Away team score" FROM table_56436 WHERE "Crowd" > '28,536'
wikisql
CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId numb...
Ratio of upvotes to views. Displays the questions with the greatest ratio of upvotes to views, for questions with at least a given number of views. This helps to find the true gems, where looking at just upvotes tends to favour questions that have hit the Top Network Questions and received a ton of views.
SELECT p.Id AS "post_link", p.OwnerUserId AS "user_link", SUM(CASE WHEN v.VoteTypeId = 2 THEN 1 ELSE 0 END) - SUM(CASE WHEN v.VoteTypeId = 3 THEN 1 ELSE 0 END) AS "netupvotes", p.ViewCount AS "views", ROUND(CAST(SUM(CASE WHEN v.VoteTypeId = 2 THEN 1 ELSE 0 END) - SUM(CASE WHEN v.VoteTypeId = 3 THEN 1 ELSE 0 END) AS FLO...
sede
CREATE TABLE table_name_36 ( kit_manufacturer VARCHAR, manager VARCHAR )
What is the kit manufacturer that has billy bonds as the manager?
SELECT kit_manufacturer FROM table_name_36 WHERE manager = "billy bonds"
sql_create_context
CREATE TABLE member ( Member_ID text, Name text, Nationality text, Role text ) CREATE TABLE performance ( Performance_ID real, Date text, Host text, Location text, Attendance int ) CREATE TABLE member_attendance ( Member_ID int, Performance_ID int, Num_of_Pieces int )
Show different locations and the number of performances at each location. Visualize by bar chart.
SELECT Location, COUNT(*) FROM performance GROUP BY Location
nvbench
CREATE TABLE station ( id INTEGER, name TEXT, lat NUMERIC, long NUMERIC, dock_count INTEGER, city TEXT, installation_date TEXT ) CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE weather ( date TEXT, ...
For those dates that have the 5 highest cloud cover rates, please bin the date into Year interval and compute their average cloud cover.
SELECT date, AVG(cloud_cover) FROM weather
nvbench
CREATE TABLE table_203_731 ( id number, "pos." text, "city" text, "population\n(ab)" number, "surface\n(km2)" number, "density\n(ab/km2)" number, "altitude\n(mslm)" number )
what city is the largest by surface area ?
SELECT "city" FROM table_203_731 ORDER BY "surface\n(km2)" DESC LIMIT 1
squall
CREATE TABLE table_28450 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text )
How many different starts had an average finish of 17.9?
SELECT COUNT("Starts") FROM table_28450 WHERE "Avg. Finish" = '17.9'
wikisql
CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE transfers ( row_id number, subject_id number, had...
what is patient 42396's last careunit until 2101?
SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 42396) AND NOT transfers.careunit IS NULL AND STRFTIME('%y', transfers.intime) <= '2101' ORDER BY transfers.intime DESC LIMIT 1
mimic_iii
CREATE TABLE region ( Region_ID int, Region_name text, Date text, Label text, Format text, Catalogue text ) CREATE TABLE party_events ( Event_ID int, Event_Name text, Party_ID int, Member_in_charge_ID int ) CREATE TABLE party ( Party_ID int, Minister text, Took_offi...
Return a bar chart on how many events are there for each party?, could you display by the Y-axis in asc?
SELECT Party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID ORDER BY COUNT(*)
nvbench
CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varch...
LHC 399 is taught by Stephen Lusmann ?
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'LHC' AND course.number = 399 AND instructor.name LIKE '%Stephen Lusmann%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor...
advising
CREATE TABLE table_name_15 ( gold INTEGER, nation VARCHAR, total VARCHAR )
How many gold have a National of New Zealand with a total less than 2?
SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 2
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...
how many patients diagnosed with b-complex defic nec had their urine sample tested by lab?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "B-complex defic NEC" AND lab.fluid = "Urine"
mimicsql_data
CREATE TABLE table_15781170_2 ( _number VARCHAR, poll_winner VARCHAR )
Name the # for youtube
SELECT _number FROM table_15781170_2 WHERE poll_winner = "YouTube"
sql_create_context
CREATE TABLE table_70017 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalogue" text )
Which label has a date of 1987?
SELECT "Label" FROM table_70017 WHERE "Date" = '1987'
wikisql
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, draw a bar chart about the distribution of headquarter and the average of manufacturer , and group by attribute headquarter, and order from low to high by the y axis.
SELECT Headquarter, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Manufacturer)
nvbench
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, Dupli...
Filtered \\ corruption null accepted posts.
SELECT p.Id AS "post_link", 'site://posts/' + CAST(p.Id AS TEXT) + '/edit|' + 'Edit' AS "edit_link", p.CreationDate FROM Posts AS p WHERE 1 = 1 AND (NOT (p.AcceptedAnswerId != p.Id) OR p.AcceptedAnswerId IS NULL) AND YEAR(p.CreationDate) = @year AND (REPLACE(REPLACE(p.Body, '\\', ''), ' ', 'X') LIKE '%\XXXX%') AND (p.O...
sede
CREATE TABLE table_37906 ( "Celebrity" text, "Famous for" text, "Entered" text, "Exited" text, "Finished" text )
When did lucy benjamin exit?
SELECT "Exited" FROM table_37906 WHERE "Celebrity" = 'lucy benjamin'
wikisql
CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate tim...
R versus Python tags - quotient Py/R.
SELECT DATE(CAST(t.yr AS TEXT(4)) + '-' + CAST(t.mnth AS TEXT(2)) + '-01') AS dt, (CASE WHEN t.r_mnth_count = 0 THEN NULL ELSE CAST(t.py_mnth_count AS FLOAT) / CAST(t.r_mnth_count AS FLOAT) END) AS py_div_r FROM (SELECT MONTH(CreationDate) AS mnth, YEAR(CreationDate) AS yr, SUM(CASE WHEN Tags LIKE '%<r>%' THEN 1 ELSE 0...
sede
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 ( ...
count the number of patients whose primary disease is abdominal abscess and year of death is less than or equal to 2179?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL ABSCESS" AND demographic.dod_year <= "2179.0"
mimicsql_data
CREATE TABLE table_59271 ( "Position" real, "Club" text, "Games played" real, "Wins" real, "Draws" real, "Loses" real, "Goals scored" real, "Goals conceded" real, "Points" real )
What is the lowest positioned team with 2 wins and losses greater than 13?
SELECT MIN("Position") FROM table_59271 WHERE "Wins" = '2' AND "Loses" > '13'
wikisql
CREATE TABLE qtb ( 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...
医疗机构3780652在04年1月2日到2015年4月17日内入院诊断疾病结果与出院诊断疾病结果不同的次数一共有几次?
SELECT COUNT(*) FROM qtb WHERE qtb.MED_SER_ORG_NO = '3780652' AND qtb.IN_HOSP_DATE BETWEEN '2004-01-02' AND '2015-04-17' AND qtb.IN_DIAG_DIS_CD <> qtb.OUT_DIAG_DIS_CD UNION SELECT COUNT(*) FROM gyb WHERE gyb.MED_SER_ORG_NO = '3780652' AND gyb.IN_HOSP_DATE BETWEEN '2004-01-02' AND '2015-04-17' AND gyb.IN_DIAG_DIS_CD <> ...
css
CREATE TABLE table_1428 ( "Municipality" text, "Population" text, "Inhabitants per km\u00b2" real, "Area (in km\u00b2)" real, "Markatal" real, "Island" text, "Region" text )
Name the municpality for 57 populaton
SELECT "Municipality" FROM table_1428 WHERE "Population" = '57'
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
Among patients admitted before 2151, how many of them had item ID 51100?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2151" AND lab.itemid = "51100"
mimicsql_data
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE ground_service ( ...
please give me all the flights from LONG BEACH CALIFORNIA to MEMPHIS TENNESSEE
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, state AS STATE_0, state AS STATE_1 WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LONG BEACH' AND CITY_1.city_code = AIRPORT_SERVICE_1.c...
atis
CREATE TABLE table_16327 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
Which college is aligned to the Saskatchewan Roughriders?
SELECT "College" FROM table_16327 WHERE "CFL Team" = 'Saskatchewan Roughriders'
wikisql
CREATE TABLE table_43782 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" text )
What is the highest number of goals against when the number of goals were 55 and the difference was +24?
SELECT MAX("Goals Against") FROM table_43782 WHERE "Goals For" > '55' AND "Goal Difference" = '+24'
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 prescriptions ( subject_id text, hadm_id...
Find the number of hispanic or latino-puerto rican patients who were taking repaglinide medication.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND prescriptions.drug = "Repaglinide"
mimicsql_data
CREATE TABLE table_name_57 ( dimension__m_ VARCHAR, range__km_ VARCHAR )
Tell me the dimension that has a range of 8,000 10,000
SELECT dimension__m_ FROM table_name_57 WHERE range__km_ = "8,000 – 10,000"
sql_create_context
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime t...
when did until 3 years ago patient 025-23610 first receive angiotensin ii receptor blocker (arb) - losartan?
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-23610')) AND treatment.treatmentname = 'angiotensin ii recept...
eicu
CREATE TABLE table_name_86 ( opponent VARCHAR, series VARCHAR )
Who was the opponent when the series was at 1-3?
SELECT opponent FROM table_name_86 WHERE series = "1-3"
sql_create_context
CREATE TABLE Grants ( grant_id INTEGER, organisation_id INTEGER, grant_amount DECIMAL(19,4), grant_start_date DATETIME, grant_end_date DATETIME, other_details VARCHAR(255) ) CREATE TABLE Project_Outcomes ( project_id INTEGER, outcome_code VARCHAR(10), outcome_details VARCHAR(255) ) ...
Give me the trend about the date_to attributes of all researchers, and bin the date_to into Year interval, display by the x-axis from low to high.
SELECT date_to, COUNT(date_to) FROM Project_Staff ORDER BY date_to
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions...
count the number of patients whose year of death is less than or equal to 2180 and drug name is verapamil sr?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2180.0" AND prescriptions.drug = "Verapamil SR"
mimicsql_data
CREATE TABLE table_name_67 ( away_team VARCHAR )
In the game where Melbourne was the away team, what did they score?
SELECT away_team AS score FROM table_name_67 WHERE away_team = "melbourne"
sql_create_context
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) ...
what is the daily average amount of the drain out #1 jackson pratt of patient 20251 until 17 months ago?
SELECT AVG(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20251)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'dra...
mimic_iii
CREATE TABLE table_name_79 ( Id VARCHAR )
Which 2002 has a 2008 of 3 3?
SELECT 2002 FROM table_name_79 WHERE 2008 = "3–3"
sql_create_context
CREATE TABLE table_name_66 ( pos VARCHAR, year VARCHAR )
What was the position in 2006?
SELECT pos FROM table_name_66 WHERE year = 2006
sql_create_context
CREATE TABLE table_9929 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
WHAT IS THE DATE WITH AN AWAY TEAM OF WORKINGTON?
SELECT "Date" FROM table_9929 WHERE "Away team" = 'workington'
wikisql
CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text ) CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int )
What is the number of climbers for each mountain? Show me a bar chart, order bar in descending order please.
SELECT T2.Name, COUNT(T2.Name) FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID GROUP BY T2.Name ORDER BY T2.Name DESC
nvbench
CREATE TABLE table_42696 ( "Result" text, "Record" text, "Opponent" text, "Method" text, "Date" text, "Round" real, "Notes" text )
What do the notes say for 1989 May 7?
SELECT "Notes" FROM table_42696 WHERE "Date" = '1989 may 7'
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...
药品4379-c在医疗诊断中47707543040里面的医疗机构的三大目录编码及名称是什么?
SELECT t_kc22.MED_DIRE_CD, t_kc22.MED_DIRE_NM 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 = '47707543040' AND t_kc22.SOC_SRT_DIRE_CD = '4379-c'
css
CREATE TABLE mzjzjlb_jybgb ( YLJGDM_MZJZJLB text, BGDH number, YLJGDM number ) 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, ...
患者吕博涉的胸腹水白蛋白(白蛋白)什么情况在14年9月30日到20年8月11日期间
SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb 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 = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jy...
css
CREATE TABLE table_19523142_5 ( group_11 VARCHAR, group_12 VARCHAR )
Who played in group 11 when Persipal Palu played in group 12?
SELECT group_11 FROM table_19523142_5 WHERE group_12 = "Persipal Palu"
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 prescriptions ( subject_id text, hadm_id...
give the number of patients whose diagnosis long title is benign neoplasm of spinal meninges.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Benign neoplasm of spinal meninges"
mimicsql_data
CREATE TABLE table_name_87 ( rank INTEGER, population VARCHAR )
What rank has a population of 4839400?
SELECT MIN(rank) FROM table_name_87 WHERE population = "4839400"
sql_create_context
CREATE TABLE table_name_70 ( region VARCHAR, date VARCHAR, catalog VARCHAR )
What region has a 2002 date, and a Catalog dos 195?
SELECT region FROM table_name_70 WHERE date = "2002" AND catalog = "dos 195"
sql_create_context
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, ...
患者54076263049是哪天来的门诊就诊?
SELECT zzmzjzjlb.JZKSRQ FROM zzmzjzjlb WHERE zzmzjzjlb.JZLSH = '54076263049' UNION SELECT fzzmzjzjlb.JZKSRQ FROM fzzmzjzjlb WHERE fzzmzjzjlb.JZLSH = '54076263049'
css
CREATE TABLE table_name_38 ( name VARCHAR, reported_age VARCHAR )
Who has a reported age of 111 years, 66 days?
SELECT name FROM table_name_38 WHERE reported_age = "111 years, 66 days"
sql_create_context
CREATE TABLE table_1331313_1 ( department VARCHAR, acronym VARCHAR )
what's the department with acronym being deped (ked)
SELECT department FROM table_1331313_1 WHERE acronym = "DepEd (KEd)"
sql_create_context
CREATE TABLE Product_Categories ( production_type_code VARCHAR(15), product_type_description VARCHAR(80), vat_rating DECIMAL(19,4) ) CREATE TABLE Customers ( customer_id INTEGER, customer_first_name VARCHAR(50), customer_middle_initial VARCHAR(1), customer_last_name VARCHAR(50), gender ...
Visualize a bar chart for what are total transaction amounts for each transaction type?, and sort X in asc order please.
SELECT transaction_type, SUM(transaction_amount) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type
nvbench
CREATE TABLE table_32141 ( "Tournament" text, "1966" text, "1967" text, "1968" text, "1969" text, "1970" text, "1971" text, "1972" text, "1973" text, "1974" text, "1975" text, "1976" text, "Career SR" text )
Tell me the 1968 for 1r
SELECT "1968" FROM table_32141 WHERE "1967" = '1r'
wikisql
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...
Are there Winter -s when ARCH 589 has been offered ?
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ARCH' AND course.number = 589 AND semester.semester = 'Winter' AND semester.semester_id = course_offering.semester
advising
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...
请提供施舒云这位参保人住院金额里是整数金额的次数
SELECT COUNT(*) FROM zyb WHERE zyb.PERSON_SEX = '施舒云' AND MOD(zyb.MED_CLINIC_ID, 1) = 0
css