instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
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, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "UNOBTAINABLE" AND demographic.age < "86"
mimicsql_data
CREATE TABLE table_71752 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 1st Member has an election in 1880 and a liberal 1st Party?
SELECT "1st Member" FROM table_71752 WHERE "1st Party" = 'liberal' AND "Election" = '1880'
wikisql
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostFeedba...
SELECT DISTINCT (DATEDIFF(MONTH, CreationDate, GETDATE())) AS "Age in years", PERCENTILE_CONT(0.25) WITHIN GROUP (ORDER BY ViewCount) OVER (PARTITION BY DATEDIFF(MONTH, CreationDate, GETDATE())) AS "25%", PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY ViewCount) OVER (PARTITION BY DATEDIFF(MONTH, CreationDate, GETDATE()))...
sede
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, ...
SELECT gwyjzb.MED_ORG_DEPT_CD, gwyjzb.MED_ORG_DEPT_NM, AVG(gwyjzb.IN_HOSP_DAYS) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '2592878' GROUP BY gwyjzb.MED_ORG_DEPT_CD ORDER BY AVG(gwyjzb.IN_HOSP_DAYS) UNION SELECT fgwyjzb.MED_ORG_DEPT_CD, fgwyjzb.MED_ORG_DEPT_NM, AVG(fgwyjzb.IN_HOSP_DAYS) FROM fgwyjzb WHERE fgwyjzb.MED_SE...
css
CREATE TABLE table_78599 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text, "Time" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Event has a Position of 1st, a Year of 1983, and a Venue of budapest?
SELECT "Event" FROM table_78599 WHERE "Position" = '1st' AND "Year" = '1983' AND "Venue" = 'budapest'
wikisql
CREATE TABLE table_8984 ( "Number" real, "Name" text, "Type" text, "Builder" text, "Works number" text, "Date built" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Builder for the locomotive that has a works number of 323?
SELECT "Builder" FROM table_8984 WHERE "Works number" = '323'
wikisql
CREATE TABLE table_4455 ( "Shipyard" text, "Laid down" text, "Launched" text, "Commissioned" text, "Fleet" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the status of the fleet that was commissioned on July 28, 1963?
SELECT "Status" FROM table_4455 WHERE "Commissioned" = 'july 28, 1963'
wikisql
CREATE TABLE table_name_37 ( date VARCHAR, tie_no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date of tie no. 34?
SELECT date FROM table_name_37 WHERE tie_no = "34"
sql_create_context
CREATE TABLE table_17761 ( "No." real, "Title" text, "Directed by" text, "Written by" text, "Bens location" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed 'hot and bothere...
SELECT "Directed by" FROM table_17761 WHERE "Title" = 'Hot and Bothered'
wikisql
CREATE TABLE table_name_32 ( place VARCHAR, score VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Place, when Score is less than 67, and when Country is South Africa?
SELECT place FROM table_name_32 WHERE score < 67 AND country = "south africa"
sql_create_context
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions...
SELECT prescriptions.drug, prescriptions.route FROM prescriptions WHERE prescriptions.subject_id = "81254"
mimicsql_data
CREATE TABLE table_name_5 ( goals INTEGER, tries VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the highest goals with tries less than 1 and fullback position
SELECT MAX(goals) FROM table_name_5 WHERE tries < 1 AND position = "fullback"
sql_create_context
CREATE TABLE table_12916 ( "Club" text, "City" text, "Founded" real, "Stadium" text, "Capacity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many foundeds have stade tunisien as the club, with a capacity greater than 18,000?
SELECT SUM("Founded") FROM table_12916 WHERE "Club" = 'stade tunisien' AND "Capacity" > '18,000'
wikisql
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...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "DIPH25L"
mimicsql_data
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, ...
SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Topiramate (Topamax)"
mimicsql_data
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...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.icd9_code = "5771"
mimicsql_data
CREATE TABLE table_44308 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008...
SELECT "Result" FROM table_44308 WHERE "Competition" = '2010 fifa world cup qualification' AND "Date" = '10 september 2008'
wikisql
CREATE TABLE features ( feature_id number, feature_details text ) CREATE TABLE visitors ( tourist_id number, tourist_details text ) CREATE TABLE locations ( location_id number, location_name text, address text, other_details text ) CREATE TABLE ref_hotel_star_ratings ( star_rating...
SELECT T1.name FROM tourist_attractions AS T1 JOIN visits AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN visitors AS T3 ON T2.tourist_id = T3.tourist_id WHERE T3.tourist_details = "Vincent"
spider
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, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND procedures.short_title = "Ureteral catheterization"
mimicsql_data
CREATE TABLE table_name_44 ( frequency INTEGER, city_of_license VARCHAR, website VARCHAR, webcast VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Frequency has a Website of , and a Webcast of in san antonio?
SELECT AVG(frequency) FROM table_name_44 WHERE website = "•" AND webcast = "•" AND city_of_license = "san antonio"
sql_create_context
CREATE TABLE table_67068 ( "Season" real, "Series" text, "Wins" text, "Podiums" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the value for Podiums, when the Season is after 2008, and when the Series is GP2 Asia Series?
SELECT "Podiums" FROM table_67068 WHERE "Season" > '2008' AND "Series" = 'gp2 asia series'
wikisql
CREATE TABLE table_46698 ( "Class" text, "Leading bits" real, "Size of network number bit field" text, "Size of rest bit field" text, "Number of networks" text, "Addresses per network" text, "Start address" text, "End address" text ) -- Using valid SQLite, answer the following question...
SELECT "Number of networks" FROM table_46698 WHERE "Size of rest bit field" = '8'
wikisql
CREATE TABLE table_name_44 ( result VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result when the attendance is 960?
SELECT result FROM table_name_44 WHERE attendance = 960
sql_create_context
CREATE TABLE fires ( fire_year number, discovery_date number, discovery_doy number, discovery_time text, stat_cause_code number, stat_cause_descr text, cont_date text, cont_doy text, cont_time text, fire_size number, fire_size_class text, latitude number, longitude nu...
SELECT county FROM fires WHERE state = "WA" AND fire_year = 2012
uswildfires
CREATE TABLE table_name_19 ( year INTEGER, actor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average year that Idris Elba was nominated for or won an award?
SELECT AVG(year) FROM table_name_19 WHERE actor = "idris elba"
sql_create_context
CREATE TABLE table_name_95 ( surface VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the surface when the tournament is manta, ecuador?
SELECT surface FROM table_name_95 WHERE tournament = "manta, ecuador"
sql_create_context
CREATE TABLE table_204_721 ( id number, "rank" number, "wrestler" text, "no. of reigns" number, "combined\ndefenses" number, "combined\ndays" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many reigns has joey ryan had ?
SELECT "no. of reigns" FROM table_204_721 WHERE "wrestler" = 'joey ryan'
squall
CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE SuggestedEdits ( Id number, PostId n...
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, COUNT(p.Id) FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE LOWER(Location) LIKE LOWER('%##countryname##%') AND t.TagNa...
sede
CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, ...
SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 17608 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-2 year')
mimic_iii
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...
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'ORTHO' AND course.number = 762 AND semester.semester = 'WN' AND semester.semester_id = course_of...
advising
CREATE TABLE table_name_25 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the score for the game on 21 april 2001?
SELECT score FROM table_name_25 WHERE date = "21 april 2001"
sql_create_context
CREATE TABLE table_18361 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was running for office in the California 10 district?
SELECT "Candidates" FROM table_18361 WHERE "District" = 'California 10'
wikisql
CREATE TABLE table_14721 ( "Game" real, "Date" text, "Location" text, "Time" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Game 2 has how much attendance?
SELECT "Attendance" FROM table_14721 WHERE "Game" = '2'
wikisql
CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_...
SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID)
nvbench
CREATE TABLE Projects ( project_details VARCHAR, project_id VARCHAR ) CREATE TABLE Project_outcomes ( project_id VARCHAR, outcome_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the project details of the project both producing patent and p...
SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'
sql_create_context
CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, OVE_PAY numb...
SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '孙宏儒' AND t_kc22.STA_DATE BETWEEN '2001-05-01' AND '2016-04-05' AND t_kc22.SELF_PAY_AMO > 4787.85
css
CREATE TABLE table_203_642 ( id number, "name" text, "quadrant" text, "sector" text, "ward" text, "type" text, "2012\npopulation\nrank" number, "population\n(2012)" number, "population\n(2011)" number, "% change" number, "dwellings\n(2012)" number, "area\n(km2)" number, ...
SELECT "name" FROM table_203_642 ORDER BY "area\n(km2)" LIMIT 1
squall
CREATE TABLE table_79854 ( "Title" text, "Producer(s)" text, "Artist(s)" text, "Time" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What teams used a track 3:29 long?
SELECT "Team(s)" FROM table_79854 WHERE "Time" = '3:29'
wikisql
CREATE TABLE table_65118 ( "Rank" real, "Lane" real, "Athlete" text, "Time ( sec )" real, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Notes have a Time larger than 23.34, and a Rank of 8?
SELECT "Notes" FROM table_65118 WHERE "Time ( sec )" > '23.34' AND "Rank" = '8'
wikisql
CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, ...
SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'Parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2012 AND venue.venueid = paper.venueid AND venue.venuename = 'acl'
scholar
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 (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.MED_SER_ORG_NO = '0169842' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2001-12-21' AND '2004-06-02' GROUP B...
css
CREATE TABLE table_55109 ( "Team" text, "City/Area" text, "Arena" text, "Capacity" text, "Last season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the last season the Worcester Wolves played?
SELECT "Last season" FROM table_55109 WHERE "Team" = 'worcester wolves'
wikisql
CREATE TABLE table_name_20 ( result VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result when there were 27,321 in attendance?
SELECT result FROM table_name_20 WHERE attendance = "27,321"
sql_create_context
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, pat...
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-77687')) AND intakeoutput.cellpath LIKE '%output%' AND D...
eicu
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following questions for the...
SELECT T1.Name, MAX(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY Name DESC
nvbench
CREATE TABLE table_269920_3 ( l2_cache__mb_ VARCHAR, model VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different L2 cache numbers are there for the 7130M model?
SELECT COUNT(l2_cache__mb_) FROM table_269920_3 WHERE model = "7130M"
sql_create_context
CREATE TABLE lives_in ( stuid number, dormid number, room_number number ) CREATE TABLE dorm ( dormid number, dorm_name text, student_capacity number, gender text ) CREATE TABLE dorm_amenity ( amenid number, amenity_name text ) CREATE TABLE student ( stuid number, lname tex...
SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25
spider
CREATE TABLE t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, ...
SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '05783525' AND t_kc21.IN_HOSP_DATE BETWEEN '2013-05-12' AND '2016-06-16'
css
CREATE TABLE mzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH text, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZZMC ...
SELECT COUNT(mzjzjlb.ZZYSGH) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.person_info_XM = '柏梦竹' AND mzjzjlb.JZKSRQ BETWEEN '2004-08-14' AND '2017-05-20'
css
CREATE TABLE table_name_91 ( crowd VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the combined of Crowd when richmond played at home?
SELECT COUNT(crowd) FROM table_name_91 WHERE home_team = "richmond"
sql_create_context
CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM text, JY...
SELECT jyjgzbb.JYZBLSH 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 = jyjgzbb.B...
css
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...
SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'HISTORY' AND course.number = 348 AND semester.semester = 'WN' AND semester.semester_id = course_...
advising
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, ...
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 = '027-151154...
eicu
CREATE TABLE table_65556 ( "Year" real, "Game" text, "Genre" text, "Platform(s)" text, "Developer(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the genre of developer(s) Lionhead Studios?
SELECT "Genre" FROM table_65556 WHERE "Developer(s)" = 'lionhead studios'
wikisql
CREATE TABLE table_203_229 ( id number, "pick #" number, "nfl team" text, "player" text, "position" text, "college" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many defensive back players were picked ?
SELECT COUNT("player") FROM table_203_229 WHERE "position" = 'defensive back'
squall
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, ...
SELECT COUNT(*) AS approvedandrejected FROM SuggestedEditVotes INNER JOIN VoteTypes ON VoteTypeId = VoteTypes.Id INNER JOIN SuggestedEdits ON SuggestedEdits.Id = SuggestedEditVotes.SuggestedEditId WHERE NOT SuggestedEdits.ApprovalDate IS NULL AND VoteTypes.Name = 'DownMod' AND SuggestedEditVotes.UserId = '##UserId##'
sede
CREATE TABLE table_25244412_1 ( renewable_electricity_w_o_hydro__gw•h_ VARCHAR, _percentage_renewable VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the amount of renewable electricity without hydrogen power when the percentage of renewable energy is...
SELECT renewable_electricity_w_o_hydro__gw•h_ FROM table_25244412_1 WHERE _percentage_renewable = "83.4"
sql_create_context
CREATE TABLE table_203_778 ( id number, "representative" text, "title" text, "presentation\nof credentials" text, "termination\nof mission" text, "appointed by" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the only ambassadors to hondur...
SELECT "representative" FROM table_203_778 WHERE "appointed by" = 'barack obama'
squall
CREATE TABLE table_name_5 ( venue VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the venue for the game played on 13/02/1954?
SELECT venue FROM table_name_5 WHERE date = "13/02/1954"
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, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND diagnoses.long_title = "Myopia"
mimicsql_data
CREATE TABLE table_20170644_1 ( cfl_team VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What CFL team did Darcy Brown play for?
SELECT cfl_team FROM table_20170644_1 WHERE player = "Darcy Brown"
sql_create_context
CREATE TABLE table_name_22 ( result VARCHAR, category VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result of the choice tv actor: drama category?
SELECT result FROM table_name_22 WHERE category = "choice tv actor: drama"
sql_create_context
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime...
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-14836' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitala...
eicu
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 qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.PERSON_NM = '潘和正' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2006-11-28' AND '2019-10-22' AND t_kc24.MED_AMOUT <= 10 UNION SELECT COUNT(*) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.PERSON_NM = '潘和正' AND ...
css
CREATE TABLE jobs ( job_id text, job_title text, min_salary number, max_salary number ) CREATE TABLE countries ( country_id text, country_name text, region_id number ) CREATE TABLE departments ( department_id number, department_name text, manager_id number, location_id numb...
SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2
spider
CREATE TABLE table_76281 ( "Season" real, "Date" text, "Winner" text, "Score [C ]" text, "Venue" text, "Competition round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner on 15 December 1957?
SELECT "Winner" FROM table_76281 WHERE "Date" = '15 december 1957'
wikisql
CREATE TABLE table_14734 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT MAX("Losses") FROM table_14734 WHERE "Goals against" < '68' AND "Goal Difference" < '23' AND "Draws" = '10' AND "Club" = 'racing de santander'
wikisql
CREATE TABLE table_name_65 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1977 value that has a 1974 a value?
SELECT 1977 FROM table_name_65 WHERE 1974 = "a"
sql_create_context
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following questions for the...
SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder
nvbench
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...
SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND 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 = jy...
css
CREATE TABLE table_24865763_2 ( gt2_winning_team VARCHAR, lmp1_winning_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the GT2 Winning Team if Greg Mansell Leo Mansell was the LMP1 Winning Team?
SELECT gt2_winning_team FROM table_24865763_2 WHERE lmp1_winning_team = "Greg Mansell Leo Mansell"
sql_create_context
CREATE TABLE table_14688744_2 ( arrival VARCHAR, station_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the arrival time where the station code is awy?
SELECT arrival FROM table_14688744_2 WHERE station_code = "AWY"
sql_create_context
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9cod...
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-16517' AND patient.hospitaldischargetime IS NULL))
eicu
CREATE TABLE table_70983 ( "Sydney" text, "Gold Coast" text, "Adelaide" text, "Melbourne" text, "Perth" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Adelaide has Sydney yes, Melbourne yes, and Perth no?
SELECT "Adelaide" FROM table_70983 WHERE "Sydney" = 'yes' AND "Melbourne" = 'yes' AND "Perth" = 'no'
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...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Closed (percutaneous) [needle] biopsy of liver"
mimicsql_data
CREATE TABLE table_name_98 ( rider VARCHAR, grid VARCHAR, laps VARCHAR, bike VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?
SELECT rider FROM table_name_98 WHERE laps < 11 AND bike = "kawasaki zx-10r" AND grid = 8
sql_create_context
CREATE TABLE table_name_98 ( _percentage__1960_ VARCHAR, _percentage__2040_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the % (1960) of the county with a % (2040) of 3.4?
SELECT COUNT(_percentage__1960_) FROM table_name_98 WHERE _percentage__2040_ = 3.4
sql_create_context
CREATE TABLE table_name_40 ( venue VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the game played where North Melbourne was the away team?
SELECT venue FROM table_name_40 WHERE away_team = "north melbourne"
sql_create_context
CREATE TABLE table_dev_15 ( "id" int, "hemoglobin_a1c_hba1c" float, "hepatic_enzymes" bool, "platelet_count" float, "liver_disease" bool, "hba1c" float, "triglyceride_tg" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- tri...
SELECT * FROM table_dev_15 WHERE triglyceride_tg > 600
criteria2sql
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost numbe...
SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-3 yea...
eicu
CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE SuggestedEdits ( Id number, Pos...
SELECT Q.Id AS "post_link", Users.Id AS "user_link", Q.CreationDate, Q.Score AS "question_score", MAX(A.Score) AS "max_answer_score", Q.ViewCount AS Views, Q.FavoriteCount AS Favorited FROM Posts AS Q INNER JOIN Users ON Q.OwnerUserId = Users.Id LEFT JOIN Posts AS A ON A.ParentId = Q.Id WHERE Q.ClosedDate IS NULL AND Q...
sede
CREATE TABLE table_204_584 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did niki lauda receive m...
SELECT (SELECT "points" FROM table_204_584 WHERE "driver" = 'niki lauda') > (SELECT "points" FROM table_204_584 WHERE "driver" = 'james hunt')
squall
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...
SELECT q.CloseQuestion, q.QuestionTotal, ROUND(((q.CloseQuestion * 100) / q.QuestionTotal), 1) AS ClosePercentage FROM (SELECT SUM(CASE WHEN NOT ClosedDate IS NULL AND PostTypeId = 1 AND CreationDate BETWEEN '##fromdate:string##' AND '##todate:string##' THEN 1 END) AS CloseQuestion, SUM(CASE WHEN PostTypeId = 1 AND Cre...
sede
CREATE TABLE table_5011 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- While Duncan Thompson played, how many points did he have where there were 0 field goals, 0 ...
SELECT AVG("Points") FROM table_5011 WHERE "Field goals" = '0' AND "Touchdowns" > '9' AND "Extra points" = '0' AND "Player" = 'duncan thompson'
wikisql
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...
SELECT Comments.Id AS "comment_link", Comments.Score, Comments.UserId AS "user_link", Posts.Id AS "post_link", Posts.Score FROM Comments INNER JOIN Posts ON Comments.PostId = Posts.Id ORDER BY Comments.Score - Posts.Score DESC LIMIT 20
sede
CREATE TABLE mzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH text, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZZMC ...
SELECT jybgb.JYKSBM, jybgb.JYKSMC FROM jybgb WHERE jybgb.JZLSH = '34957559611'
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 diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems...
SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31141) AND NOT transfers.careunit IS NULL AND DATETIME(transfers.intime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY transfers.intime LIMIT 1
mimic_iii
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ...
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age >= 60
eicu
CREATE TABLE table_61426 ( "County" text, "Precincts" text, "C. Abate" text, "R. Bacon" text, "D. Shulman" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number for R Bacon in Passaic County?
SELECT "R. Bacon" FROM table_61426 WHERE "County" = 'passaic'
wikisql
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE medication ( medicatio...
SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypoglycemia') AS t1 GROUP BY t1.uniquepid HAVING MIN(t1.diagnos...
eicu
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, ...
SELECT * 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 = jyjgzbb.YLJGDM AND jybgb.BGDH ...
css
CREATE TABLE table_train_279 ( "id" int, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "estimated_glomerular_filtration_rate_egfr" int, "fasting_plasma_glucose" int, "diastolic_blood_pressure_dbp" int, "body_mass_index_bmi" float, "NOUSE" float ) -- Using valid SQLit...
SELECT * FROM table_train_279 WHERE estimated_glomerular_filtration_rate_egfr < 60
criteria2sql
CREATE TABLE table_12419515_4 ( total_viewers__in_millions_ VARCHAR, season__number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many millions of total viewers watched season #8?
SELECT total_viewers__in_millions_ FROM table_12419515_4 WHERE season__number = 8
sql_create_context
CREATE TABLE Images ( image_id INTEGER, image_alt_text VARCHAR(80), image_name VARCHAR(40), image_url VARCHAR(255) ) CREATE TABLE Document_Sections ( section_id INTEGER, document_code VARCHAR(15), section_sequence INTEGER, section_code VARCHAR(20), section_title VARCHAR(80) ) CREAT...
SELECT role_code, COUNT(*) FROM Users GROUP BY role_code ORDER BY COUNT(*) DESC
nvbench
CREATE TABLE table_name_79 ( recording_date VARCHAR, title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the recording date when the title is screech owl blues?
SELECT recording_date FROM table_name_79 WHERE title = "screech owl blues"
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...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2168" AND diagnoses.short_title = "Other postop infection"
mimicsql_data
CREATE TABLE table_name_78 ( score VARCHAR, place VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What score has 2 as the place?
SELECT score FROM table_name_78 WHERE place = "2"
sql_create_context
CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Visua...
SELECT T2.title, AVG(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY T2.title DESC
nvbench
CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGu...
SELECT Id, Id AS "user_link", Location, Reputation FROM Users WHERE Location LIKE '%##location##%' AND Reputation > 10 ORDER BY Reputation DESC
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...
SELECT CHA_ITEM_LEV FROM t_kc22 WHERE MED_CLINIC_ID = '10250381371' AND SOC_SRT_DIRE_CD = '5999'
css