instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE table_42806 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home of the team with a 16-8 record?
SELECT "Home" FROM table_42806 WHERE "Record" = '16-8'
wikisql
CREATE TABLE table_34724 ( "Country" text, "Skip" text, "Third" text, "Second" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which skip has Oliver Dupont as a second?
SELECT "Skip" FROM table_34724 WHERE "Second" = 'oliver dupont'
wikisql
CREATE TABLE table_name_25 ( tournament VARCHAR, third_place VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want to know the tournament that has a third place of magnus gustafsson
SELECT tournament FROM table_name_25 WHERE third_place = "magnus gustafsson"
sql_create_context
CREATE TABLE table_name_91 ( region VARCHAR, date VARCHAR, format VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the region for an item on November 10, 2007 that's a cd?
SELECT region FROM table_name_91 WHERE date = "november 10, 2007" AND format = "cd"
sql_create_context
CREATE TABLE table_43378 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Set 3 when the Total was 62 - 75?
SELECT "Set 3" FROM table_43378 WHERE "Total" = '62 - 75'
wikisql
CREATE TABLE table_23982399_1 ( overall_episode__number INTEGER, original_airdate VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What episode number originally aired on November 21, 1993?
SELECT MAX(overall_episode__number) FROM table_23982399_1 WHERE original_airdate = "November 21, 1993"
sql_create_context
CREATE TABLE table_name_92 ( attendance INTEGER, opponent VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?
SELECT MAX(attendance) FROM table_name_92 WHERE opponent = "buffalo bills" AND week > 14
sql_create_context
CREATE TABLE table_7723 ( "Basin" text, "Outlet" text, "Total Area" text, "In-State Area" text, "% In-State" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With an in-state area of 053 1,654km 2 639mi 2, what is the total area?
SELECT "Total Area" FROM table_7723 WHERE "In-State Area" = '053 1,654km 2 639mi 2'
wikisql
CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostTypes ( Id number, Name text ) C...
SELECT TIME_TO_STR(CreationDate, '%Y') AS "year", SUM(Score) AS "average" FROM Posts WHERE PostTypeId = 2 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL AND Score > 10 GROUP BY TIME_TO_STR('creationdate', '%Y')
sede
CREATE TABLE table_64656 ( "English" text, "German" text, "Dutch" text, "Latin" text, "Romanian" text, "Portuguese" text, "Spanish" text, "Italian" text, "French" text, "Greek (Modern)" text, "Bulgarian" text, "Macedonian" text, "Polish (extinct)" text ) -- Using va...
SELECT "Italian" FROM table_64656 WHERE "English" = 'we had heard'
wikisql
CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) ...
SELECT meter_500, ID FROM swimmer ORDER BY meter_500
nvbench
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.IN_DIAG_DIS_CD, gwyjzb.IN_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 > 5656.54) UNION SELECT fgwyjzb.IN_DIAG_DIS_CD, fgwyjzb.IN_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '窦麦冬' AND fgwyjzb.MED_C...
css
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location...
SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'secondary malig neo skin') GROUP BY STRFTIME('%y-%m-%d', diagnoses_icd.charttime)) AS t1
mimic_iii
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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
mimicsql_data
CREATE TABLE manufacturers ( revenue INTEGER, headquarter VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.
SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
sql_create_context
CREATE TABLE table_5411 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the competition that had a score of 4-0?
SELECT "Result" FROM table_5411 WHERE "Score" = '4-0'
wikisql
CREATE TABLE table_name_5 ( series VARCHAR, game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the series standing after game 1?
SELECT series FROM table_name_5 WHERE game = 1
sql_create_context
CREATE TABLE table_name_26 ( total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?
SELECT AVG(total) FROM table_name_26 WHERE bronze = 4 AND silver > 2 AND gold < 7
sql_create_context
CREATE TABLE table_name_42 ( crowd VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance at Brunswick Street Oval?
SELECT COUNT(crowd) FROM table_name_42 WHERE venue = "brunswick street oval"
sql_create_context
CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturda...
SELECT COUNT(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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ...
atis
CREATE TABLE table_50827 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which class has *buranaz as Part 4?
SELECT "Class" FROM table_50827 WHERE "Part 4" = '*buranaz'
wikisql
CREATE TABLE table_name_11 ( pos VARCHAR, first_round INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Pos has a First round smaller than 10?
SELECT pos FROM table_name_11 WHERE first_round < 10
sql_create_context
CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, basePrice INTEGER, decor TEXT ) CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adul...
SELECT Room, COUNT(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY Room DESC
nvbench
CREATE TABLE table_67663 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent that led to a 10-13 record?
SELECT "Opponent" FROM table_67663 WHERE "Record" = '10-13'
wikisql
CREATE TABLE table_59762 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Team 1 has a 2nd leg of 1-3?
SELECT "Team 1" FROM table_59762 WHERE "2nd leg" = '1-3'
wikisql
CREATE TABLE table_201_27 ( id number, "#" number, "secretary of state" text, "prime minister" text, "tenure" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what secretary of state served under both prime minister laurier and prime minister king ?
SELECT "secretary of state" FROM table_201_27 WHERE "prime minister" = 'laurier' INTERSECT SELECT "secretary of state" FROM table_201_27 WHERE "prime minister" = 'king'
squall
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...
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IN' ORDER BY Reputation DESC LIMIT 40
sede
CREATE TABLE table_name_10 ( format VARCHAR, catalog VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What formated cataloged alca-9196?
SELECT format FROM table_name_10 WHERE catalog = "alca-9196"
sql_create_context
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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE...
SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
nvbench
CREATE TABLE table_name_22 ( pick__number VARCHAR, position VARCHAR, overall VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Picks have a Position of defensive end, and an Overall smaller than 33?
SELECT COUNT(pick__number) FROM table_name_22 WHERE position = "defensive end" AND overall < 33
sql_create_context
CREATE TABLE table_name_95 ( car__number INTEGER, pos VARCHAR, team VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4?
SELECT AVG(car__number) FROM table_name_95 WHERE team = "hendrick motorsports" AND driver = "mark martin" AND pos > 4
sql_create_context
CREATE TABLE t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, ...
SELECT SUM(t_kc22.AMOUNT) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '华婉容' AND t_kc21.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2003-05-06' AND '2013-09-20' AND t_kc22.MED_INV_IT...
css
CREATE TABLE table_203_875 ( id number, "#" number, "name" text, "birth and death" text, "office started" text, "office ended" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- for how many years did hallgrimur sveinsson serve as the bishop of icel...
SELECT "office ended" - "office started" FROM table_203_875 WHERE "name" = 'hallgrimur sveinsson'
squall
CREATE TABLE table_204_137 ( id number, "race" number, "race name" text, "pole position" text, "fastest lap" text, "winning driver" text, "winning team" text, "yokohama winner" text, "jay-ten winner" text, "report" text ) -- Using valid SQLite, answer the following questions fo...
SELECT "winning team" FROM table_204_137 GROUP BY "winning team" ORDER BY COUNT(*) DESC LIMIT 1
squall
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 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 = '46674930' AND t_kc21.IN_HOSP_DATE BETWEEN '2000-05-21' AND '2000-10-13'
css
CREATE TABLE Invoice_Line_Items ( order_item_id INTEGER, invoice_number INTEGER, product_id INTEGER, product_title VARCHAR(80), product_quantity VARCHAR(50), product_price DECIMAL(19,4), derived_product_cost DECIMAL(19,4), derived_vat_payable DECIMAL(19,4), derived_total_cost DECIMAL...
SELECT other_account_details, COUNT(other_account_details) FROM Accounts GROUP BY other_account_details ORDER BY COUNT(other_account_details)
nvbench
CREATE TABLE table_48531 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Part 4, when Part 2 is 'batt'?
SELECT "Part 4" FROM table_48531 WHERE "Part 2" = 'batt'
wikisql
CREATE TABLE table_name_78 ( weight INTEGER, year VARCHAR, height VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Weight of the Senior Player with a Height of 6 10?
SELECT SUM(weight) FROM table_name_78 WHERE year = "senior" AND height = "6–10"
sql_create_context
CREATE TABLE table_name_66 ( position VARCHAR, drawn VARCHAR, played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of positions for teams with more than 7 draws and under 40 played?
SELECT COUNT(position) FROM table_name_66 WHERE drawn > 7 AND played < 40
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 MED_ORG_DEPT_NM, OUT_DIAG_DIS_NM, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '9557781' GROUP BY MED_ORG_DEPT_NM, OUT_DIAG_DIS_NM
css
CREATE TABLE table_33929 ( "Model Number" text, "Stepping" text, "Frequency" text, "L2 Cache" text, "Multi 1" text, "V Core" text, "Socket" text, "Release Date" text, "Part Number(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "L2 Cache" FROM table_33929 WHERE "Frequency" = '1500mhz'
wikisql
CREATE TABLE table_13306 ( "Period" text, "Internet Explorer" text, "Firefox" text, "Safari" text, "Opera" text, "Netscape" text, "Other Mozilla" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage of users were using Opera during...
SELECT "Opera" FROM table_13306 WHERE "Internet Explorer" = '63.67%'
wikisql
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND prescriptions.route = "REPLACE"
mimicsql_data
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, ...
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJ...
css
CREATE TABLE table_49790 ( "Tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What tournament has a 2010 of 1r, and a 2008 of 1r?
SELECT "Tournament" FROM table_49790 WHERE "2010" = '1r' AND "2008" = '1r'
wikisql
CREATE TABLE table_8963 ( "Tournament" text, "Country" text, "Location" text, "Began" real, "Court surface" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the earliest began when the court surface is clay in hamburg?
SELECT MIN("Began") FROM table_8963 WHERE "Court surface" = 'clay' AND "Location" = 'hamburg'
wikisql
CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, ...
SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0 INNER JOIN course_prerequisite ON COURSE_0.course_id = course_prerequisite.course_id INNER JOIN course AS COURSE_1 ON COURSE_1.course_id = course_prerequisite.pre_course_id WHERE COURSE_0.department = 'MOVESCI' AND COURSE_0.numb...
advising
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, ...
SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM txmzjzjlb JOIN jybgb JOIN jyjgzbb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE txmzjzjlb.JZZDSM = '2型糖尿病' AND jyjgzbb.JCZBMC = '低密度脂蛋白胆固醇' UNION SELECT jyjgzbb.CKZFW...
css
CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, ...
SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 60180 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ...
mimic_iii
CREATE TABLE table_203_291 ( id number, "round" number, "pick" number, "player" text, "position" text, "school/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the only player picked in the top ten ?
SELECT "player" FROM table_203_291 WHERE "pick" <= 10
squall
CREATE TABLE table_name_95 ( season INTEGER, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average of seasons for 10th place finishes?
SELECT AVG(season) FROM table_name_95 WHERE position = "10th"
sql_create_context
CREATE TABLE table_52383 ( "Hand" text, "1 credit" text, "2 credits" text, "3 credits" text, "4 credits" text, "5 credits" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What does full house have as a 5 credits?
SELECT "5 credits" FROM table_52383 WHERE "Hand" = 'full house'
wikisql
CREATE TABLE table_65164 ( "Album#" text, "English Title" text, "Chinese (Traditional)" text, "Chinese (Simplified)" text, "Release date" text, "Label" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the traditional Chinese name for the r...
SELECT "Chinese (Traditional)" FROM table_65164 WHERE "English Title" = 'sunrise'
wikisql
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...
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_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 = jybgb_jyjgzbb.Y...
css
CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDa...
SELECT COUNT(*) OVER (PARTITION BY b.Name, b.Class) AS awarded, b.Name, b.Class, u.DisplayName FROM Badges AS b JOIN Users AS u ON u.Id = b.UserId
sede
CREATE TABLE table_58069 ( "Tournament" text, "Winner" text, "Runner-up" text, "Score" text, "Third Place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which winner won by a score of 6 7(4), 7 6(3), [11 9]?
SELECT "Winner" FROM table_58069 WHERE "Score" = '6–7(4), 7–6(3), [11–9]'
wikisql
CREATE TABLE table_name_15 ( rank INTEGER, rate VARCHAR, apps VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total Rank for mit karan when Apps is more than 39 and Rate is more than 0.58?
SELECT SUM(rank) FROM table_name_15 WHERE apps > 39 AND player = "ümit karan" AND rate > 0.58
sql_create_context
CREATE TABLE table_47480 ( "Company name" text, "Hardware Model" text, "Accreditation type" text, "Accreditation level" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What company makes the Nokia 700?
SELECT "Company name" FROM table_47480 WHERE "Hardware Model" = 'nokia 700'
wikisql
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "68" AND lab.fluid = "Urine"
mimicsql_data
CREATE TABLE table_50500 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much money does the player with a to par less than 4 and a score of 74-72-68-73...
SELECT "Money ( $ )" FROM table_50500 WHERE "To par" < '4' AND "Score" = '74-72-68-73=287'
wikisql
CREATE TABLE table_73203 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "Television order" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the origin...
SELECT "Original air date" FROM table_73203 WHERE "Title" = 'Crisis: 22,300 Miles Above Earth!'
wikisql
CREATE TABLE table_61359 ( "Rank by average" real, "Place" real, "Couple" text, "Total points" real, "Number of dances" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total rank by average for 2 dances, which have mor...
SELECT COUNT("Rank by average") FROM table_61359 WHERE "Number of dances" = '2' AND "Total points" > '37'
wikisql
CREATE TABLE batting ( player_id TEXT, year INTEGER, stint INTEGER, team_id TEXT, league_id TEXT, g INTEGER, ab NUMERIC, r NUMERIC, h NUMERIC, double NUMERIC, triple NUMERIC, hr NUMERIC, rbi NUMERIC, sb NUMERIC, cs NUMERIC, bb NUMERIC, so NUMERIC, ...
SELECT yearid, COUNT(yearid) FROM hall_of_fame ORDER BY yearid
nvbench
CREATE TABLE table_204_35 ( id number, "season" text, "tier" number, "division" text, "place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times did sd ponferradina b compete in division 3a ?
SELECT COUNT(*) FROM table_204_35 WHERE "division" = '3a'
squall
CREATE TABLE table_18239 ( "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 were the candidates when Lamar S. Smith was incumbent?
SELECT "Candidates" FROM table_18239 WHERE "Incumbent" = 'Lamar S. Smith'
wikisql
CREATE TABLE table_17383 ( "Year" real, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won the womens doubles when wu jianqui won the wom...
SELECT "Womens doubles" FROM table_17383 WHERE "Womens singles" = 'Wu Jianqui'
wikisql
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 COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '凤兰芝' AND t_kc22.STA_DATE BETWEEN '2000-03-24' AND '2002-12-14' AND t_kc21.MED_SER_ORG_NO = '2902796' AND t_kc22.MED_INV_ITEM...
css
CREATE TABLE Employee ( name VARCHAR, salary VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show name and salary for all employees sorted by salary.
SELECT name, salary FROM Employee ORDER BY salary
sql_create_context
CREATE TABLE table_23316 ( "Verbs" text, "Yo" text, "T\u00fa" text, "Vos (*)" text, "\u00c9l / Ella / Usted" text, "Nosotros / Nosotras" text, "Vosotros / Vosotras" text, "Ellos / Ellas / Ustedes" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "\u00c9l / Ella / Usted" FROM table_23316 WHERE "Vos (*)" = 'muelas / molás'
wikisql
CREATE TABLE table_28059992_6 ( player VARCHAR, cfl_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player was drafted by Winnipeg?
SELECT player FROM table_28059992_6 WHERE cfl_team = "Winnipeg"
sql_create_context
CREATE TABLE table_name_27 ( laps INTEGER, time_retired VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average laps that had a time/retired of +5 laps?
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+5 laps"
sql_create_context
CREATE TABLE table_26007767_1 ( localities VARCHAR, population_density__per_km²_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many time is the population density (per km ) is 2.5?
SELECT COUNT(localities) FROM table_26007767_1 WHERE population_density__per_km²_ = "2.5"
sql_create_context
CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABL...
SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id
advising
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Perforation of intestine" AND prescriptions.route = "SL"
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, ...
SELECT gwyjzb.MED_ORG_DEPT_NM, gwyjzb.OUT_DIAG_DIS_NM, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '5262038' GROUP BY gwyjzb.MED_ORG_DEPT_NM, gwyjzb.OUT_DIAG_DIS_NM UNION SELECT fgwyjzb.MED_ORG_DEPT_NM, fgwyjzb.OUT_DIAG_DIS_NM, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '52...
css
CREATE TABLE table_name_53 ( county VARCHAR, opposition VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What County has an Opposition of Antrim and the Player Bernie Forde?
SELECT county FROM table_name_53 WHERE opposition = "antrim" AND player = "bernie forde"
sql_create_context
CREATE TABLE Activity ( actid INTEGER, activity_name varchar(25) ) CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, ...
SELECT Rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.Advisor GROUP BY T1.Rank ORDER BY COUNT(*)
nvbench
CREATE TABLE Ref_Calendar ( Calendar_Date DATETIME, Day_Number INTEGER ) CREATE TABLE All_Documents ( Document_ID INTEGER, Date_Stored DATETIME, Document_Type_Code CHAR(15), Document_Name CHAR(255), Document_Description CHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Ref_Document_...
SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code ORDER BY COUNT(*)
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...
SELECT prescriptions.formulary_drug_cd, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Neutra-Phos"
mimicsql_data
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime...
SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '005-64055' AND DATETIME(patient.hospitaldischargetime) <= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaldischargetime DESC LIMIT 1
eicu
CREATE TABLE table_name_10 ( date VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date with score of 66-62?
SELECT date FROM table_name_10 WHERE score = "66-62"
sql_create_context
CREATE TABLE Maintenance_Contracts ( maintenance_contract_id INTEGER, maintenance_contract_company_id INTEGER, contract_start_date DATETIME, contract_end_date DATETIME, other_contract_details VARCHAR(255) ) CREATE TABLE Engineer_Skills ( engineer_id INTEGER, skill_id INTEGER ) CREATE TABLE...
SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id
nvbench
CREATE TABLE table_29887 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How ma...
SELECT COUNT("Record") FROM table_29887 WHERE "Date" = 'January 2'
wikisql
CREATE TABLE table_17864 ( "Constituency" text, "Electorate" real, "s Spoilt vote" real, "Total poll (%)" text, "For (%)" text, "Against (%)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the smallest possible spoilt vote with the s r-tr n...
SELECT MIN("s Spoilt vote") FROM table_17864 WHERE "Constituency" = 'Sør-Trøndelag'
wikisql
CREATE TABLE table_11703336_1 ( display_size VARCHAR, year_released VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the display size for the calculator released in 1997?
SELECT display_size FROM table_11703336_1 WHERE year_released = "1997"
sql_create_context
CREATE TABLE t_kc21_t_kc24 ( MED_CLINIC_ID text, MED_SAFE_PAY_ID number ) 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...
SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '9309855' GROUP BY t_kc21.MED_ORG_DEPT_CD HAVING MIN(t_kc21.IN_HOSP_DAYS) > 7) AS T
css
CREATE TABLE table_19930660_2 ( first_broadcast VARCHAR, episode VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was episode 2x11 aired for the first time?
SELECT first_broadcast FROM table_19930660_2 WHERE episode = "2x11"
sql_create_context
CREATE TABLE table_name_83 ( played INTEGER, years VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games did they play in 1905?
SELECT AVG(played) FROM table_name_83 WHERE years = "1905"
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 T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T2.Revenue
nvbench
CREATE TABLE table_2076490_1 ( school VARCHAR, enrollment__2005_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school had an enrollment in 2005 of 69?
SELECT school FROM table_2076490_1 WHERE enrollment__2005_ = "69"
sql_create_context
CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, MED_DIRE_CD tex...
SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '戚鹏鲸' AND gwyjzb.MED_SER_ORG_NO = '1409186' AND gwyjzb.IN_DIAG_DIS_NM LIKE '%分化%' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '戚鹏鲸' AND fgwyjzb.MED_SER_ORG_NO = '1409186' AND fgwyjzb.IN_DIAG_DIS_NM LIKE '%分化%'
css
CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) 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 time_interval ( period text...
SELECT DISTINCT airline.airline_code FROM airline, 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_na...
atis
CREATE TABLE accounts ( account_id number, statement_id number, account_details text ) CREATE TABLE statements ( statement_id number, statement_details text ) CREATE TABLE documents_with_expenses ( document_id number, budget_type_code text, document_details text ) CREATE TABLE documen...
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) < 3
spider
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2124" AND prescriptions.route = "IV BOLUS"
mimicsql_data
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( trea...
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 40 AND 49) AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-2 yea...
eicu
CREATE TABLE table_72935 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game when the opponent was the Miami D...
SELECT "Date" FROM table_72935 WHERE "Opponent" = 'Miami Dolphins'
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...
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 = '2795059' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2013-04-20' AND '2016-08-16' GROUP BY gwyjzb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) <= 7541.4 UNION SELECT fgwyjzb....
css
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetake...
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '016-9636' AND patient.wardid = 613 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1
eicu
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "V4983" AND prescriptions.drug_type = "MAIN"
mimicsql_data
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 gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '7787217' AND t_kc22.SOC_SRT_DIRE_CD = '3265' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjzb.MED_SER_ORG_NO = '7787217' AND t_kc22.SOC_SRT_DI...
css