context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE table_30211 ( "Event Date" text, "Event Day" text, "Approx. Duration" text, "Starting Time" text, "Event Details" text )
What is every event date on Sunday with a starting time of 9:30 am?
SELECT "Event Date" FROM table_30211 WHERE "Event Day" = 'Sunday' AND "Starting Time" = '9:30 am'
wikisql
CREATE TABLE table_22977424_8 ( season VARCHAR, promoted_from_league VARCHAR )
Name the season for rotherham titans
SELECT season FROM table_22977424_8 WHERE promoted_from_league = "Rotherham Titans"
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...
how many patients born before 2112 have undergone the procedure with short title percutan liver aspirat?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2112" AND procedures.short_title = "Percutan liver aspirat"
mimicsql_data
CREATE TABLE table_16383772_1 ( nickname VARCHAR, school VARCHAR )
Name the total number of nicknames for st. bonaventure university
SELECT COUNT(nickname) FROM table_16383772_1 WHERE school = "St. Bonaventure University"
sql_create_context
CREATE TABLE table_15065 ( "Tournament" text, "2009" text, "2010" text, "2011" text, "2012" text )
what is the tournament when in 2012 the performance was 2r?
SELECT "Tournament" FROM table_15065 WHERE "2012" = '2r'
wikisql
CREATE TABLE table_train_147 ( "id" int, "pregnancy_or_lactation" bool, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "obesity" bool, "fasting_blood_glucose_fbg" float, "heart_rate" int, "body_mass_index_bmi" float, "underweight" bool, "NOUSE" float )
hemoglobin < 8.5 g / dl or > or = to 17 g / dl
SELECT * FROM table_train_147 WHERE hemoglobin_a1c_hba1c < 8.5 OR hemoglobin_a1c_hba1c >= 17
criteria2sql
CREATE TABLE txmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZ...
00年6月2号到06年12月18号,患者方欣悦的236211指标是怎样的
SELECT * FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND 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 = jy...
css
CREATE TABLE table_name_53 ( tournament VARCHAR )
what is 2008 when 2007 is a, 2011 is a, 2010 is a and tournament is china?
SELECT 2008 FROM table_name_53 WHERE 2007 = "a" AND 2011 = "a" AND 2010 = "a" AND tournament = "china"
sql_create_context
CREATE TABLE table_204_162 ( id number, "team" text, "constructor" text, "motorcycle" text, "tyres" text, "no" number, "rider" text, "rounds" text )
what is the name of the last rider on this chart ?
SELECT "rider" FROM table_204_162 ORDER BY id DESC LIMIT 1
squall
CREATE TABLE table_1458666_4 ( total_wins INTEGER )
what is the value for minimum total wins
SELECT MIN(total_wins) FROM table_1458666_4
sql_create_context
CREATE TABLE table_76364 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
The Detroit Lions were played against what week?
SELECT "Week" FROM table_76364 WHERE "Opponent" = 'detroit lions'
wikisql
CREATE TABLE table_17569 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text, "Trofeo Fast Team" text )
Name the total number of trofeo fast team of stage 16
SELECT COUNT("Trofeo Fast Team") FROM table_17569 WHERE "Stage" = '16'
wikisql
CREATE TABLE table_60450 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real )
What's the sum of money ($) that angela park has won?
SELECT SUM("Money ( $ )") FROM table_60450 WHERE "Player" = 'angela park'
wikisql
CREATE TABLE table_2587 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text )
If the original air date January 19, 1992, who was the episode directed by?
SELECT "Directed by" FROM table_2587 WHERE "Original air date" = 'January 19, 1992'
wikisql
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
provide the number of patients whose marital status is divorced and item id is 50914?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab.itemid = "50914"
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, ...
一一年十月十七日到一八年十一月四日,在2596003医院有多少科室涉及医疗费总额不超过1825.05元
SELECT COUNT(*) FROM (SELECT gwyjzb.MED_ORG_DEPT_CD FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '2596003' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2011-10-17' AND '2018-11-04' GROUP BY gwyjzb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) <= 1825.05 UNION SELECT fgwyjzb...
css
CREATE TABLE table_19772 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real )
how many result with date being october 25, 1964
SELECT COUNT("Result") FROM table_19772 WHERE "Date" = 'October 25, 1964'
wikisql
CREATE TABLE table_37792 ( "County" text, "Irish name" text, "County town" text, "Most populous city/town" text, "Province" text, "Region" text )
County town of d n laoghaire has the most populous city/town?
SELECT "Most populous city/town" FROM table_37792 WHERE "County town" = 'dún laoghaire'
wikisql
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, hadm_id number, icustay_id number, eventtype text, careunit text, war...
count the number of patients who have taken a oth cardiac mon output two times until 3 years ago.
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'oth cardiac mon outpu...
mimic_iii
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...
在医疗就诊10526392718中,56223040这名患者最高的自费项目是哪个
SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM FROM t_kc22 WHERE MED_CLINIC_ID = '10526392718' GROUP BY SOC_SRT_DIRE_CD ORDER BY SUM(SELF_PAY_AMO) DESC LIMIT 1
css
CREATE TABLE table_39473 ( "Name" text, "Type" text, "Year Built" real, "Where Built" text, "Initial Owners" text )
Who were the initial owners of Wasco in 1858?
SELECT "Initial Owners" FROM table_39473 WHERE "Year Built" = '1858' AND "Name" = 'wasco'
wikisql
CREATE TABLE table_name_49 ( bumping_blocking VARCHAR, ankle_tap VARCHAR, steal_intercept_ball VARCHAR )
Which bumping/blocking has a yes for both the ankle tap and steal/intercept ball?
SELECT bumping_blocking FROM table_name_49 WHERE ankle_tap = "yes" AND steal_intercept_ball = "yes"
sql_create_context
CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_40...
Give me the comparison about the sum of meter_100 over the meter_200 , and group by attribute meter_200 by a bar chart, show from low to high by the x axis.
SELECT meter_200, SUM(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200
nvbench
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 restriction ( restriction_code text, ...
show me all flights on US airlines from BOSTON to OAKLAND CA which leave after 1100 o'clock am
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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND CITY_1.state_code = 'CA' AND flight.departure_time > 1100 AND flight.to_air...
atis
CREATE TABLE table_name_31 ( loss VARCHAR, opponent VARCHAR, attendance VARCHAR )
What's the Loss listed for the Opponent of California Angels and has an Attendance of 57,762?
SELECT loss FROM table_name_31 WHERE opponent = "california angels" AND attendance = "57,762"
sql_create_context
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...
during this year, did patient 025-60951 go to an emergency room?
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '025-60951' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
eicu
CREATE TABLE table_name_39 ( laid_down VARCHAR, launched VARCHAR )
Name the laid down for launched being 16 february 1934
SELECT laid_down FROM table_name_39 WHERE launched = "16 february 1934"
sql_create_context
CREATE TABLE table_train_142 ( "id" int, "allergy_to_monoclonal_antibodies" bool, "allergic_reactions" bool, "allergy_to_methylprednisolone" bool, "mini_mental_state_examination_mmse" int, "depressed_mood" bool, "urea_cycle_disorder" bool, "clinical_contraindication_use_valproate" bool, ...
clinical contraindication to the use of valproate ( e.g., known hypersensitivity or allergic reactions, severe neutropenia, severe hepatic disease, or urea cycle disorder.
SELECT * FROM table_train_142 WHERE clinical_contraindication_use_valproate = 1 OR (hypersensitivity = 1 OR allergic_reactions = 1 OR neutropenia = 1 OR hepatic_disease = 1 OR urea_cycle_disorder = 1)
criteria2sql
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...
患者691571030在医疗机构2703962的既往病历里检查过多少次,时间是从00年1月26日到19年6月3日
SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '91571030' AND t_kc22.STA_DATE BETWEEN '2000-01-26' AND '2000-08-16' AND gwyjzb.MED_SER_ORG_NO = '2703962' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CL...
css
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE outputevents ( row_id number, subject_id number, ...
what was the last bronchial washings's microbiology test patient 91249 had in 01/2104?
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 91249) AND microbiologyevents.spec_type_desc = 'bronchial washings' AND STRFTIME('%y-%m', microbiologyevents.charttime) = '2104-01' ORDER BY microbiolo...
mimic_iii
CREATE TABLE table_7066 ( "Institution" text, "Location" text, "Founded" real, "Affiliation" text, "Enrollment" real, "Team Nickname" text, "Primary conference" text )
What is the Enrollment at Whitman College Founded after 1859?
SELECT AVG("Enrollment") FROM table_7066 WHERE "Institution" = 'whitman college' AND "Founded" > '1859'
wikisql
CREATE TABLE table_72664 ( "Year" real, "Dates" text, "Champion" text, "Country" text, "Score" text, "To par" text, "Margin of victory" text, "Purse ( US$ )" real, "Winners share" real )
How many dollars is the purse when the margin of victory is 8 strokes?
SELECT COUNT("Purse ( US$ )") FROM table_72664 WHERE "Margin of victory" = '8 strokes'
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 ( ...
how many patients with lab test item id 51436 were admitted in hospital before the year 2168?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2168" AND lab.itemid = "51436"
mimicsql_data
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, ...
金额top18的项目是医疗机构3979463哪个项目?
SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '3979463' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY SUM(t_kc22.AMOUNT) DESC LIMIT 18 UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM fgwyjzb JOIN t_k...
css
CREATE TABLE table_60265 ( "Album#" text, "English Title" text, "Chinese (Traditional)" text, "Chinese (Simplified)" text, "Release date" text, "Label" text )
What is 's Label?
SELECT "Label" FROM table_60265 WHERE "Chinese (Simplified)" = '你 朋友'
wikisql
CREATE TABLE party ( Party_ID int, Party_Theme text, Location text, First_year text, Last_year text, Number_of_hosts int ) CREATE TABLE host ( Host_ID int, Name text, Nationality text, Age text ) CREATE TABLE party_host ( Party_ID int, Host_ID int, Is_Main_in_Charge...
Give me a bar chart, that group by location and count them, and sort by the the number of location from low to high please.
SELECT Location, COUNT(Location) FROM party GROUP BY Location ORDER BY COUNT(Location)
nvbench
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...
What class will get me the Core requirement the easiest ?
SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co...
advising
CREATE TABLE table_name_66 ( venue VARCHAR, rank VARCHAR )
What is the Venue that has a Rank of 2?
SELECT venue FROM table_name_66 WHERE rank = "2"
sql_create_context
CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Suggeste...
Daily most used tag.
SELECT * FROM Posts
sede
CREATE TABLE table_name_93 ( date VARCHAR, road_team VARCHAR, game VARCHAR )
On what Date is Game 3 with Boston Road Team?
SELECT date FROM table_name_93 WHERE road_team = "boston" AND game = "game 3"
sql_create_context
CREATE TABLE table_4446 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
Which country is ranked number 2 and has less than 5 total medals?
SELECT COUNT("Silver") FROM table_4446 WHERE "Rank" = '2' AND "Total" < '5'
wikisql
CREATE TABLE table_65838 ( "Name" text, "Pos." text, "Height" text, "Weight" text, "2012 club" text )
What's the weight when the pos is CB and is part of the New York Athletic Club?
SELECT "Weight" FROM table_65838 WHERE "Pos." = 'cb' AND "2012 club" = 'new york athletic club'
wikisql
CREATE TABLE table_18888159_1 ( events INTEGER, country VARCHAR )
Name the least events for japan
SELECT MIN(events) FROM table_18888159_1 WHERE country = "Japan"
sql_create_context
CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_p...
Which upper level electives are available after 21:15 in the morning , next Winter ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.start_time > '21:15' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester...
advising
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 ReviewRejectionReasons ( Id number, Name text, Descr...
SO - Total Posts by Database Server Per Month - Oracle.
SELECT CONCAT(YEAR(P.CreationDate), '-', MONTH(P.CreationDate)) AS YearMonth, 'Oracle' AS TagName, COUNT(*) AS PostCount FROM Posts AS P INNER JOIN PostTags AS PT ON (P.Id = PT.PostId) INNER JOIN Tags AS T ON (PT.TagId = T.Id) WHERE T.TagName LIKE 'oracle%' GROUP BY YEAR(P.CreationDate), MONTH(P.CreationDate) ORDER BY ...
sede
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...
零二年七月二十六号起至一五年八月十六0952187这个医疗机构接诊的未从业患者总医疗费大于7027.62元的就诊记录数量
SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '0952187' AND IN_HOSP_DATE BETWEEN '2002-07-26' AND '2015-08-16' AND INSURED_STS = '未就业' AND MED_AMOUT >= 7027.62
css
CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE month ( ...
what flights go from DALLAS to SAN FRANCISCO before 1800 o'clock sunday afternoon
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 ((date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time...
atis
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostHistory...
Number of nondeleted answers in the last year.
SELECT COUNT(*) FROM Posts WHERE PostTypeId = 2 AND OwnerUserId > -1
sede
CREATE TABLE table_24760 ( "Year" real, "Tournaments played" real, "Cuts made" real, "Wins" real, "3rds" real, "Top 10s" real, "Best finish" text, "Earnings ($)" text, "Money list rank" real, "Scoring average" text )
What was the maximum number of wins?
SELECT MAX("Wins") FROM table_24760
wikisql
CREATE TABLE table_75028 ( "Call sign" text, "Analog channel" text, "Digital channel" text, "Virtual channel" text, "Network" text, "Station Ownership" text )
Call sign of k33ln-ld, and a Virtual channel of 33.5 is what network?
SELECT "Network" FROM table_75028 WHERE "Call sign" = 'k33ln-ld' AND "Virtual channel" = '33.5'
wikisql
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, ...
Git Top 100 By Vote.
SELECT Id, Title, Tags, ClosedDate, FavoriteCount, ViewCount, Score FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '%git%' ORDER BY Score DESC, FavoriteCount DESC LIMIT 100
sede
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, ...
患者22512141在14年10月25日至17年7月8日的补体C4指标记录
SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON 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 jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb....
css
CREATE TABLE Drama_Workshop_Groups ( Workshop_Group_ID INTEGER, Address_ID INTEGER, Currency_Code CHAR(15), Marketing_Region_Code CHAR(15), Store_Name VARCHAR(255), Store_Phone VARCHAR(255), Store_Email_Address VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Customer_Orders ( ...
A bar chart about what are the different product names? What is the average product price for each of them?, sort by the total number from low to high.
SELECT Product_Name, AVG(Product_Price) FROM Products GROUP BY Product_Name ORDER BY AVG(Product_Price)
nvbench
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 ethnicity is black/cape verdean and procedure icd9 code is 9969?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND procedures.icd9_code = "9969"
mimicsql_data
CREATE TABLE table_14841 ( "Country" text, "Film title used in nomination" text, "Language" text, "Original name" text, "Director" text )
What is the Original name of empire of passion?
SELECT "Original name" FROM table_14841 WHERE "Film title used in nomination" = 'empire of passion'
wikisql
CREATE TABLE table_64102 ( "Rank" real, "Artist" text, "Album" text, "Peak position" real, "Sales" real, "Certification" text )
What artist had a peak position under 2, and more than 200,000 in sales?
SELECT "Artist" FROM table_64102 WHERE "Peak position" < '2' AND "Sales" > '200,000'
wikisql
CREATE TABLE table_40387 ( "School year" text, "95-96" text, "99-00" text, "00-01" text, "01-02" text, "02-03" text, "03-04" text, "04-05" text, "05-06" text, "06-07" text )
What is 01-02, when 03-04 is 03-04?
SELECT "01-02" FROM table_40387 WHERE "03-04" = '03-04'
wikisql
CREATE TABLE jybgb_jyjgzbb ( JYZBLSH number, YLJGDM text, jyjgzbb_id number ) 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 nu...
报告人的检验报告单45876237401的工号是什么?姓名是什么?
SELECT jybgb.BGRGH, jybgb.BGRXM FROM jybgb WHERE jybgb.BGDH = '45876237401'
css
CREATE TABLE table_train_136 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "heart_disease" bool, "adequate_cognitive" bool, "renal_disease" bool, "allergy_to_solifenacin" bool, "systemic_illness" bool, "liver_disease" bool, "allergy_to_donepezil" bool, "seizure_...
subject has adequate cognitive
SELECT * FROM table_train_136 WHERE adequate_cognitive = 1
criteria2sql
CREATE TABLE table_63772 ( "Name" text, "Position" text, "League Apps" text, "League Goals" real, "FA Cup Apps" real, "FA Cup Goals" real, "League Cup Apps" real, "League Cup Goals" real, "Total Apps" text, "Total Goals" real )
What is the highest league cup appearances for the player with league cup goals of 0, and FA cup appearances of 2, and 4 league goals?
SELECT MAX("League Cup Apps") FROM table_63772 WHERE "League Cup Goals" = '0' AND "FA Cup Apps" = '2' AND "League Goals" = '4'
wikisql
CREATE TABLE table_name_21 ( draws VARCHAR, losses VARCHAR, wins VARCHAR )
For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?
SELECT COUNT(draws) FROM table_name_21 WHERE losses < 4 AND wins < 16
sql_create_context
CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) 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, ...
show me a list of the flights from SAN FRANCISCO to BOSTON
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 = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = '...
atis
CREATE TABLE table_29943 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
In how many different games did Roy Hibbert (16) did the most high rebounds?
SELECT COUNT("Game") FROM table_29943 WHERE "High rebounds" = 'Roy Hibbert (16)'
wikisql
CREATE TABLE table_name_21 ( player VARCHAR, position VARCHAR, school_club_team VARCHAR )
What player from New Mexico plays the WR position?
SELECT player FROM table_name_21 WHERE position = "wr" AND school_club_team = "new mexico"
sql_create_context
CREATE TABLE table_17087 ( "Player" text, "Position" text, "School" text, "Hometown" text, "College" text )
Running back Aaron Green went to Nebraska and what high school?
SELECT "School" FROM table_17087 WHERE "Position" = 'Running back' AND "College" = 'Nebraska'
wikisql
CREATE TABLE table_22843 ( "DVD title" text, "Number of Episodes" text, "Region 2" text, "Region 4 (AU)" text, "Region 1 (US)" text )
Where are there 25 episodes in Catfights and Brawls?
SELECT "Region 2" FROM table_22843 WHERE "Number of Episodes" = '25' AND "DVD title" = 'Catfights and Brawls'
wikisql
CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTEGER, min_dew_point_f INTEGER, max_humidity INTEGER, mean_humidity INTEGER, min_humidity INTEGER, max_sea_level_pre...
Show me a bar chart for what are the different ids and names of the stations that have had more than 12 bikes available?, show in desc by the x axis.
SELECT name, id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12 ORDER BY name DESC
nvbench
CREATE TABLE table_name_7 ( score VARCHAR, competition VARCHAR )
What is the Score of the Fifa World Cup 1986 Play-off Competition?
SELECT score FROM table_name_7 WHERE competition = "fifa world cup 1986 play-off"
sql_create_context
CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required t...
list all round trip fares from PITTSBURGH to WASHINGTON
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, flight, flight_fare 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.c...
atis
CREATE TABLE table_49079 ( "Outcome" text, "Year" real, "Pro Slam Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text )
What is the average Year, when Outcome is 'Winner'?
SELECT AVG("Year") FROM table_49079 WHERE "Outcome" = 'winner'
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ...
What is the drug type and drug dose for Amaryl?
SELECT prescriptions.drug_type, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Amaryl"
mimicsql_data
CREATE TABLE semester ( semester_id int, semester varchar, year int ) 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_g...
Is there a lab involved in 353 ?
SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 353
advising
CREATE TABLE table_4707 ( "Tournament" text, "1943" text, "1944" text, "1945" text, "1948" text, "1949" text, "1951" text, "1954" text, "1956\u20131968" text, "1969" text, "Career SR" text )
What did the Tournament of Australian Championships, with an A in 1969, get in 1954?
SELECT "1954" FROM table_4707 WHERE "1969" = 'a' AND "Tournament" = 'australian championships'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, ...
22021171患者被门诊诊断为混合性焦虑障碍,查看他的检测指标074536的结果定量及其单位
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM...
css
CREATE TABLE table_4675 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
Which venue had a match played on August 16, 2006?
SELECT "Venue" FROM table_4675 WHERE "Date" = 'august 16, 2006'
wikisql
CREATE TABLE table_49784 ( "Rank" real, "Name" text, "Team" text, "Games" real, "Points" real )
What is Grupo Capitol Valladolid's highest rank with more than 34 games?
SELECT MAX("Rank") FROM table_49784 WHERE "Team" = 'grupo capitol valladolid' AND "Games" > '34'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, ...
从00年8月24日开始03年10月27日结束47979696病患的全部检验结果指标记录的检测人是14267840的检验指标流水号是多少?
SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON 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 jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.B...
css
CREATE TABLE table_22239 ( "Year to April" real, "Revenue (\u00a3million)" text, "EBIT (\u00a3m)" text, "Net profit (\u00a3m)" text, "Earnings per share (p)" text )
Name the revenue for eps being 8.9
SELECT "Revenue (\u00a3million)" FROM table_22239 WHERE "Earnings per share (p)" = '8.9'
wikisql
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose...
did patient 26313 get a prescription for bupropion hcl, potassium chl 20 meq / 1000 ml d5 1/2 ns or potassium chloride in 03/last year?
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26313) AND prescriptions.drug IN ('bupropion hcl', 'potassium chl 20 meq / 1000 ml d5 1/2 ns', 'potassium chloride') AND DATETIME(prescriptions.startdate, 'start of year') = DAT...
mimic_iii
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...
从03年3月14日起到2009年1月3日为止病患柳飞星都进行了什么检测记录在检验结果指标记录里?
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 musical ( Musical_ID int, Name text, Year int, Award text, Category text, Nominee text, Result text ) CREATE TABLE actor ( Actor_ID int, Name text, Musical_ID int, Character text, Duration text, age int )
how many actors have appeared in each musical?
SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID
nvbench
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...
what is the number of patients categorized under blood gas lab test who have postinflammatory pulmonary fibrosis diagnoses?
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.long_title = "Postinflammatory pulmonary fibrosis" AND lab."CATEGORY" = "Blood Gas"
mimicsql_data
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, hadm_id number, icustay_id number, eventtype text, careunit text, war...
what is the minimum total cost for a hospital that includes a drug called zidovudine since 5 years ago?
SELECT MIN(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 = 'zidovudine') AND DATETIME(cost.chargetime) >= DATETIME(CURRENT_TIME(), '-5 year') GROUP BY cost.hadm_id) AS t1
mimic_iii
CREATE TABLE Student_Addresses ( student_id INTEGER, address_id INTEGER, date_address_from DATETIME, date_address_to DATETIME, monthly_rental DECIMAL(19,4), other_details VARCHAR(255) ) CREATE TABLE Assessment_Notes ( notes_id INTEGER, student_id INTEGER, teacher_id INTEGER, dat...
Find the dates of assessment notes for students with first name 'Fanny', and count them by a bar chart, and I want to order by the how many date of notes from high to low.
SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = "Fanny" ORDER BY COUNT(date_of_notes) DESC
nvbench
CREATE TABLE table_name_21 ( tie_no VARCHAR, away_team VARCHAR )
What was the tie no when the away team was northwich victoria?
SELECT tie_no FROM table_name_21 WHERE away_team = "northwich victoria"
sql_create_context
CREATE TABLE Lessons ( lesson_id INTEGER, customer_id INTEGER, lesson_status_code VARCHAR(15), staff_id INTEGER, vehicle_id INTEGER, lesson_date DATETIME, lesson_time VARCHAR(10), price DOUBLE ) CREATE TABLE Customers ( customer_id INTEGER, customer_address_id INTEGER, custo...
What is the date of birth of every customer whose status code is 'Good Customer', and count them by a line chart, and show from low to high by the X-axis please.
SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer' ORDER BY date_of_birth
nvbench
CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE dep...
Return a histogram on what are the names and budgets of departments with budgets greater than the average?, could you rank X-axis from high to low order?
SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) ORDER BY dept_name DESC
nvbench
CREATE TABLE table_name_66 ( week VARCHAR, date VARCHAR )
What week was October 9, 1938?
SELECT COUNT(week) FROM table_name_66 WHERE date = "october 9, 1938"
sql_create_context
CREATE TABLE table_name_99 ( laps INTEGER, grid VARCHAR )
How many laps had a grid number of 7?
SELECT SUM(laps) FROM table_name_99 WHERE grid = 7
sql_create_context
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, ...
what is the number of patients who had been diagnosed with tia in 2102?
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'tia' AND STRFTIME('%y', diagnosis.diagnosistime) = '2102')
eicu
CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE ta ( campus_job_id int,...
Which is easiest out of EECS 995 and EECS 402 ?
SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 995 OR course.number = 402) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON ...
advising
CREATE TABLE table_2597876_1 ( wins INTEGER, winnings VARCHAR )
How many wins did Parsons have in the year where his winnings were $90,700?
SELECT MAX(wins) FROM table_2597876_1 WHERE winnings = "$90,700"
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...
在门诊看病13535418101患者共开出了多少份检验报告单?
SELECT COUNT(*) FROM zyjybgb WHERE zyjybgb.JZLSH = '13535418101' UNION SELECT COUNT(*) FROM mzjybgb WHERE mzjybgb.JZLSH = '13535418101'
css
CREATE TABLE table_70132 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Trofeo Fast Team" text )
Which stage has a mountains classification of Mariano Piccoli, a points classification of Mario Cipollini and was won by Laudelino Cubino?
SELECT "Stage" FROM table_70132 WHERE "Mountains classification" = 'mariano piccoli' AND "Points classification" = 'mario cipollini' AND "Winner" = 'laudelino cubino'
wikisql
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
How many patients aged below 43 had a test for cerebrospinal fluid (csf)?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "43" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
mimicsql_data
CREATE TABLE features ( feature_id number, feature_details text ) CREATE TABLE visits ( visit_id number, tourist_attraction_id number, tourist_id number, visit_date time, visit_details text ) CREATE TABLE ref_attraction_types ( attraction_type_code text, attraction_type_description...
Which location names contain the word 'film'?
SELECT location_name FROM locations WHERE location_name LIKE "%film%"
spider
CREATE TABLE table_45837 ( "Club" text, "City" text, "Stadium" text, "Capacity" real, "2007\u201308 season" text )
What is the highest capacity that has serie c2/c champions for the 2007-08 season?
SELECT MAX("Capacity") FROM table_45837 WHERE "2007\u201308 season" = 'serie c2/c champions'
wikisql
CREATE TABLE table_train_28 ( "id" int, "gender" string, "pregnancy_or_lactation" bool, "systemic_antifungal_therapy" bool, "child_pugh_class" string, "invasive_candida_infection" bool, "age" float, "NOUSE" float )
systemic antifungal therapy
SELECT * FROM table_train_28 WHERE systemic_antifungal_therapy = 1
criteria2sql
CREATE TABLE table_name_99 ( height VARCHAR, sr_no VARCHAR, locale VARCHAR, floors VARCHAR )
what is the height when the locale is nepean sea road, floors is more than 30 and sr no is 58?
SELECT height FROM table_name_99 WHERE locale = "nepean sea road" AND floors > 30 AND sr_no = 58
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 ( ...
what is admission type and admission location of subject name michelle medina?
SELECT demographic.admission_type, demographic.admission_location FROM demographic WHERE demographic.name = "Michelle Medina"
mimicsql_data