Datasets:
AIAT
/

thai_instruction
stringlengths
8
429
eng_instruction
stringlengths
16
503
table
stringlengths
11
2.09k
sql
stringlengths
9
2.37k
pandas
stringlengths
1
635
real_table
stringclasses
2 values
ชื่อของผู้ชนะเลิศในกีฬาพายเรือแคนูคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the names for the medalist in the sport of canoeing?It is not neccessary to use all the tables.
table_72041: "Medal" [ text] "Name" [ text] "Games" [ text] "Sport" [ text] "Event" [ text]
SELECT "Name" FROM table_72041 WHERE "Sport" = 'canoeing'
null
general
สำหรับพนักงานทุกคนที่มีตัวอักษร D หรือ S ในชื่อ ให้ค้นหา Hire_date และผลรวมของ Bin เงินเดือน Hire_date ตามวันทำงาน แล้วแสดงภาพด้วยแผนภูมิแท่ง แสดงรายการจำนวนเงินเดือนทั้งหมดจากต่ำไปสูง ไม่จำเป็น เพื่อใช้ตารางทั้งหมด
For all employees who have the letters D or S in their first name, find hire_date and the sum of salary bin hire_date by weekday, and visualize them by a bar chart, list total number of salary from low to high order.It is not neccessary to use all the tables.
job_history: EMPLOYEE_ID [ decimal(60)] START_DATE [ date] END_DATE [ date] JOB_ID [ varchar(10)] DEPARTMENT_ID [ decimal(40)]
SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(SALARY)
null
general
คนไข้ที่สถานภาพสมรสหย่าร้างและปีที่เข้ารับการรักษาน้อยกว่า 2112 มีกี่ราย ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many patients whose marital status is divorced and admission year is less than 2112?It is not neccessary to use all the tables.
diagnoses: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.admityear < "2112"
null
general
การเข้างานใดมีคะแนน 3-5 ไม่จำเป็นต้องใช้ทุกโต๊ะ
Which attendance has a Score of 3-5?It is not neccessary to use all the tables.
table_14561: "Date" [ text] "Opponent" [ text] "Score" [ text] "Loss" [ text] "Attendance" [ text] "Record" [ text]
SELECT "Attendance" FROM table_14561 WHERE "Score" = '3-5'
null
general
จำนวนเหรียญทองทั้งหมดของประเทศ 1 เหรียญทองแดง และน้อยกว่า 1 เหรียญคือเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the total number of gold medals of the nation with 1 bronze and less than 1 total medal?It is not neccessary to use all the tables.
table_8304: "Rank" [ real] "Nation" [ text] "Gold" [ real] "Silver" [ real] "Bronze" [ real] "Total" [ real]
SELECT COUNT("Gold") FROM table_8304 WHERE "Bronze" = '1' AND "Total" < '1'
null
general
นักบิดที่มีเวลาไต่ขึ้นเป็น 4324 ก่อนปี 2002 มีอันดับเท่าใด?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What was the rank of the rider whose ascent time was 4324 before the year 2002?It is not neccessary to use all the tables.
table_name_87: rank [ VARCHAR] year [ VARCHAR] ascent_time [ VARCHAR]
SELECT COUNT(rank) FROM table_name_87 WHERE year < 2002 AND ascent_time = "43:24"
null
general
หากเวลาแข่งขันคือปี 20033 ความเร็วเฉลี่ยจะเป็นเท่าใด ไม่จำเป็นต้องใช้ทุกตาราง
If the race time is 20033, what is the average speed?It is not neccessary to use all the tables.
table_2260452_1: average_speed__mph_ [ VARCHAR] race_time [ VARCHAR]
SELECT average_speed__mph_ FROM table_2260452_1 WHERE race_time = "2:00:33"
null
general
ภาวะไขมันผิดปกติ hdl _c < 40 mg / dl ( ชาย ) , < 50 mg / dl ( หญิง ) ไม่จำเป็นต้องใช้ทุกตาราง
dyslipidemia hdl _ c < 40 mg / dl ( male ) , < 50 mg / dl ( female )It is not neccessary to use all the tables.
table_dev_53: "id" [ int] "anemia" [ bool] "gender" [ string] "hemoglobin_a1c_hba1c" [ float] "dyslipidemia" [ bool] "hct" [ int] "hematocrit_hct" [ float] "persistent_macroalbuminuria" [ bool] "urine_albumin" [ int] "high_density_lipoprotein_cholesterol_hdl_c" [ int] "coagulopathy" [ bool] "NOUSE" [ float]
SELECT * FROM table_dev_53 WHERE dyslipidemia = 1 OR ((high_density_lipoprotein_cholesterol_hdl_c < 40 AND gender = 'male') OR (high_density_lipoprotein_cholesterol_hdl_c < 50 AND gender = 'female'))
null
general
ผู้ใช้ Android อันดับต้น ๆ ในอียิปต์ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Top Android Users in Egypt.It is not neccessary to use all the tables.
CloseAsOffTopicReasonTypes: Id [ number] IsUniversal [ boolean] InputTitle [ text] MarkdownInputGuidance [ text] MarkdownPostOwnerGuidance [ text] MarkdownPrivilegedUserGuidance [ text] MarkdownConcensusDescription [ text] CreationDate [ time] CreationModeratorId [ number] ApprovalDate [ time] ApprovalModeratorId [ number] DeactivationDate [ time] DeactivationModeratorId [ number]
WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id = p.OwnerUserId WHERE LOWER(Location) LIKE '%egypt%' AND TagName = 'laravel-5' GROUP BY u.Id, TagName) SELECT * FROM USER_BY_TAG WHERE rank <= 1000 ORDER BY UpVotes DESC
null
general
ขอทราบจำนวนคนไข้ที่มีรหัสขั้นตอน icd9 คือ 5771 และชนิดยาเป็นสารเติมแต่ง?ไม่จำเป็นต้องใช้ทุกตารางครับ
give me the number of patients whose procedure icd9 code is 5771 and drug type is additive?It is not neccessary to use all the tables.
diagnoses: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "5771" AND prescriptions.drug_type = "ADDITIVE"
null
general
ใครคือผู้เข้าแข่งขันอันดับต้นๆ ของรายการ Carolina 500 ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
who was the top competitor at the carolina 500 ?It is not neccessary to use all the tables.
table_204_630: id [ number] "no" [ number] "date" [ text] "race" [ text] "track" [ text] "winner" [ text] "reports" [ text]
SELECT "winner" FROM table_204_630 WHERE "race" = 'carolina 500'
null
general
การแข่งขันรายการใดมีผล 3-0 และ VENue ของ Suwon?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Competition had a Result of 3-0 and VEnue of Suwon?It is not neccessary to use all the tables.
table_name_75: competition [ VARCHAR] result [ VARCHAR] venue [ VARCHAR]
SELECT competition FROM table_name_75 WHERE result = "3-0" AND venue = "suwon"
null
general
มีกี่บ้านเกิดที่ใช้ตำแหน่ง fs?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many hometowns use the position of fs?It is not neccessary to use all the tables.
table_14966667_19: hometown [ VARCHAR] position [ VARCHAR]
SELECT COUNT(hometown) FROM table_14966667_19 WHERE position = "FS"
null
general
จำนวนผู้สมัครทั้งหมดเมื่อผู้มีสิทธิเลือกตั้งที่ลงทะเบียนคือ 47,742 คือเท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the number of total candidates when registered voters is 47742?It is not neccessary to use all the tables.
table_2676980_4: total_candidates [ VARCHAR] registered_voters [ VARCHAR]
SELECT total_candidates FROM table_2676980_4 WHERE registered_voters = 47742
null
general
จำนวนผู้ป่วยที่เสียชีวิตในหรือก่อนปี 2168 ด้วยรายการทดสอบในห้องปฏิบัติการ id 51131 เป็นเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the number of patients who died in or before 2168 with lab test item id 51131?It is not neccessary to use all the tables.
prescriptions: subject_id [ text] hadm_id [ text] icustay_id [ text] drug_type [ text] drug [ text] formulary_drug_cd [ text] route [ text] drug_dose [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2168.0" AND lab.itemid = "51131"
null
general
ผู้จัดการที่ถูกแทนที่โดย Michael Oenning จากไปอย่างไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How did the manager replaced by Michael Oenning depart?It is not neccessary to use all the tables.
table_name_56: manner_of_departure [ VARCHAR] replaced_by [ VARCHAR]
SELECT manner_of_departure FROM table_name_56 WHERE replaced_by = "michael oenning"
null
general
ตั้งชื่อจำนวนรวมสำหรับระยะเวลาที่ถูกต้องสำหรับโวลตาบนไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the total number for period of validity for upper voltaIt is not neccessary to use all the tables.
table_222666_1: period_of_validity [ VARCHAR] former_country_name [ VARCHAR]
SELECT COUNT(period_of_validity) FROM table_222666_1 WHERE former_country_name = "Upper Volta"
null
general
มีกี่รุ่นที่มีหมายเลข L5506 ที่มีความเร็ว QPI?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many models numbered L5506 have a QPI speed?It is not neccessary to use all the tables.
table_269920_17: qpi_speed__gt_s_ [ VARCHAR] model [ VARCHAR]
SELECT COUNT(qpi_speed__gt_s_) FROM table_269920_17 WHERE model = "L5506"
null
general
สิ่งมีชีวิตที่พบในปัสสาวะครั้งแรก, ตัวอย่างสายสวนของผู้ป่วย 031-24513 ในปี 03/ปีที่แล้วชื่ออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the organism name found in the first urine, catheter specimen test of patient 031-24513 in 03/last year?It is not neccessary to use all the tables.
treatment: treatmentid [ number] patientunitstayid [ number] treatmentname [ text] treatmenttime [ time]
SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-24513')) AND microlab.culturesite = 'urine, catheter specimen' AND DATETIME(microlab.culturetakentime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', microlab.culturetakentime) = '03' ORDER BY microlab.culturetakentime LIMIT 1
null
general
ระบุประเภทการรับผู้ป่วยด้วยรหัสผู้ป่วย 2560 ไม่จำเป็นต้องใช้ทุกตาราง
specify the admission type of patient with patient id 2560.It is not neccessary to use all the tables.
lab: subject_id [ text] hadm_id [ text] itemid [ text] charttime [ text] flag [ text] value_unit [ text] label [ text] fluid [ text]
SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "2560"
null
general
มีผู้ป่วยโรคลำไส้อุดตันเสียชีวิตในหรือก่อนปี 2174 กี่ราย?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many patients with primary disease bowel obstruction died in or before 2174?It is not neccessary to use all the tables.
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 [ text] discharge_location [ text] diagnosis [ text] dod [ text] dob_year [ text] dod_year [ text] admittime [ text] dischtime [ text] admityear [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.dod_year <= "2174.0"
null
general
ค่า HT ของรุ่น Athlon x2 5200b ที่โยนเป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the HT value of threw Athlon x2 5200b model?It is not neccessary to use all the tables.
table_897: "Stepping" [ text] "Frequency" [ text] "HT" [ text] "TDP" [ text] "Socket" [ text]
SELECT "HT" FROM table_897 WHERE "Model Number" = 'Athlon X2 5200B'
null
general
Mackey Arena อยู่ที่ไหน?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Where is the Mackey Arena located?It is not neccessary to use all the tables.
table_name_87: city [ VARCHAR] venue [ VARCHAR]
SELECT city FROM table_name_87 WHERE venue = "mackey arena"
null
general
ประเภทใดมีหมายเลขฟลีตเป็น 2 8, 91 92, 97 100?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Type has a Fleet numbers of 2 8, 91 92, 97 100?It is not neccessary to use all the tables.
table_name_90: type [ VARCHAR] fleet_numbers [ VARCHAR]
SELECT type FROM table_name_90 WHERE fleet_numbers = "2–8, 91–92, 97–100"
null
general
ทีมใดคือทีม 1 โดยทีม 2 เป็น Sporting CP?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which team is Team 1 with a Team 2 being Sporting CP?It is not neccessary to use all the tables.
table_name_81: team_1 [ VARCHAR] team_2 [ VARCHAR]
SELECT team_1 FROM table_name_81 WHERE team_2 = "sporting cp"
null
general
มีรายการเวลา prothrombin ที่จำนวนเกล็ดเลือด 'ลดลงหรือไม่ได้รับผลกระทบ' กี่รายการ? ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many entries for prothrombin time are there where platelet count is 'decreased or unaffected'?It is not neccessary to use all the tables.
table_1555308_1: prothrombin_time [ VARCHAR] platelet_count [ VARCHAR]
SELECT COUNT(prothrombin_time) FROM table_1555308_1 WHERE platelet_count = "Decreased or unaffected"
null
general
ตอนที่ฟุตสเครย์ทีมเยือนเล่นในวันที่ 19 กรกฎาคม 1980 ฝูงชนมีจำนวนเท่าไร?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd?It is not neccessary to use all the tables.
table_58078: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT "Crowd" FROM table_58078 WHERE "Date" = '19 july 1980' AND "Away team" = 'footscray'
null
general
คะแนน b เฉลี่ยเป็นเท่าใดเมื่อนักกายกรรมคือ k hei uchimura (jpn)?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
what is the average b score when the gymnast is k hei uchimura ( jpn )?It is not neccessary to use all the tables.
table_13449: "Position" [ text] "Gymnast" [ text] "Total" [ real]
SELECT AVG("B Score") FROM table_13449 WHERE "Gymnast" = 'kōhei uchimura ( jpn )'
null
general
คำนวณจำนวนยาที่ผู้ป่วย 021-100763 จ่ายในการมาโรงพยาบาลครั้งนี้ ไม่จำเป็นต้องใช้ตารางทั้งหมด
calculate how many drugs patient 021-100763 is prescribed on this hospital visit.It is not neccessary to use all the tables.
diagnosis: diagnosisid [ number] patientunitstayid [ number] diagnosisname [ text] diagnosistime [ time] icd9code [ text]
SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-100763' AND patient.hospitaldischargetime IS NULL))
null
general
มีการสั่งเดกซ์โทรส 5% รานิทิดีน หรืออัลบูมิน 25% (12.5 กรัม) สำหรับผู้ป่วย 17462 ในระหว่างการเยี่ยมโรงพยาบาลครั้งนี้ ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
did 5% dextrose, ranitidine, or albumin 25% (12.5gm) have been ordered for patient 17462 during this hospital visit.It is not neccessary to use all the tables.
prescriptions: row_id [ number] subject_id [ number] hadm_id [ number] startdate [ time] enddate [ time] drug [ text] dose_val_rx [ text] dose_unit_rx [ text] route [ text]
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17462 AND admissions.dischtime IS NULL) AND prescriptions.drug IN ('5% dextrose', 'ranitidine', 'albumin 25% (12.5gm)')
null
general
แสดงรายการความหนาแน่นของประชากรต่อกิโลเมตรสำหรับเมืองคาลินตาอันหรือไม่ไม่จำเป็นต้องใช้ตารางทั้งหมด
List the population density per kilometer for the city of calintaan?It is not neccessary to use all the tables.
table_261951_1: pop_density__per_km²_ [ VARCHAR] municipality [ VARCHAR]
SELECT pop_density__per_km²_ FROM table_261951_1 WHERE municipality = "Calintaan"
null
general
คำถามที่มีคะแนนติดลบชื่นชอบโดย OP เท่านั้น ไม่จำเป็นต้องใช้ตารางทั้งหมด
Questions with negative score favorited only by the OP.It is not neccessary to use all the tables.
PostNoticeTypes: Id [ number] ClassId [ number] Name [ text] Body [ text] IsHidden [ boolean] Predefined [ boolean] PostNoticeDurationId [ number]
SELECT Posts.Id AS "post_link", Posts.FavoriteCount, Posts.Score, Posts.CreationDate, Votes.UserId AS "user_link" FROM Votes JOIN Posts ON (Posts.Id = Votes.PostId) WHERE Posts.FavoriteCount = 1 AND Posts.Score < 0 AND VoteTypeId = 5 AND Posts.PostTypeId = 1 AND Posts.OwnerUserId = Votes.UserId ORDER BY Posts.CreationDate DESC
null
general
Jason Dunstall ผู้เล่นอันดับเท่าไหร่?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the rank of player Jason Dunstall?It is not neccessary to use all the tables.
table_80377: "Rank" [ text] "Goals" [ text] "Player" [ text] "Club/Clubs" [ text] "Career" [ text]
SELECT "Rank" FROM table_80377 WHERE "Player" = 'jason dunstall'
null
general
นับจำนวนคนไข้ที่มีประกันส่วนตัวและขั้นตอนการรักษามีการตรวจติดตามก๊าซในเลือดอย่างต่อเนื่องหรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
count the number of patients whose insurance is private and procedure long title is continuous intra-arterial blood gas monitoring?It is not neccessary to use all the tables.
diagnoses: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Continuous intra-arterial blood gas monitoring"
null
general
จำนวนประเภท 2-4-2t คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the Quantity of Type 2-4-2t?It is not neccessary to use all the tables.
table_name_76: quantity [ INTEGER] type [ VARCHAR]
SELECT SUM(quantity) FROM table_name_76 WHERE type = "2-4-2t"
null
general
แทร็ก Abrazame บน Billboard Latin Pop ออกอากาศก่อนปี 1997 กี่สัปดาห์? ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many weeks was the track Abrazame on the Billboard Latin Pop airplay before 1997?It is not neccessary to use all the tables.
table_5927: "Year" [ real] "Chart" [ text] "Track" [ text] "Peak" [ real]
SELECT SUM("Weeks on Chart") FROM table_5927 WHERE "Track" = 'abrazame' AND "Chart" = 'billboard latin pop airplay' AND "Year" < '1997'
null
general
ผู้ใช้ StackOverflow ในเดนเวอร์ รัฐโคโลราโด เรียงลำดับตามชื่อเสียง ไม่จำเป็นต้องใช้ตารางทั้งหมด
StackOverflow users in Denver, CO ordered by reputation.It is not neccessary to use all the tables.
CloseReasonTypes: Id [ number] Name [ text] Description [ text]
SELECT DisplayName, Reputation, Location FROM Users WHERE UPPER(Location) LIKE '%DENVER%' ORDER BY Reputation DESC
null
general
จำนวนชั้นเรียนสำหรับชั้นเรียน PATH ระดับบน 17 หน่วยกิตในแค็ตตาล็อกหลักสูตร Spring คืออะไร ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the class count for upper-level 17 -credit PATH classes in the Spring course catalog ?It is not neccessary to use all the tables.
course_tags_count: course_id [ int] clear_grading [ int] pop_quiz [ int] group_projects [ int] inspirational [ int] long_lectures [ int] extra_credit [ int] few_tests [ int] good_feedback [ int] tough_tests [ int] heavy_papers [ int] cares_for_students [ int] heavy_assignments [ int] respected [ int] participation [ int] heavy_reading [ int] tough_grader [ int] hilarious [ int] would_take_again [ int] good_lecture [ int] no_skip [ int]
SELECT COUNT(DISTINCT course.course_id) FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.credits = 17 AND course.department = 'PATH' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring' AND semester.semester_id = course_offering.semester AND semester.year = 2016
null
general
การวินิจฉัยชื่อแบบยาวของหัวเรื่อง id 2560 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is diagnoses long title of subject id 2560?It is not neccessary to use all the tables.
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 [ text] discharge_location [ text] diagnosis [ text] dod [ text] dob_year [ text] dod_year [ text] admittime [ text] dischtime [ text] admityear [ text]
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "2560"
null
general
ผู้เล่นบันทึก 4wi ได้กี่อันด้วยอัตราประหยัด 4.17?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many 4wi were recorded by the player with an economy of 4.17?It is not neccessary to use all the tables.
table_30109: "Player" [ text] "Matches" [ real] "Overs" [ text] "Wickets" [ real] "Average" [ text] "Economy" [ text] "BBI" [ text] "4wi" [ real]
SELECT "4wi" FROM table_30109 WHERE "Economy" = '4.17'
null
general
ชื่อใดมีโครงสร้างภายในโมเลกุลเป็น no และมีลิงก์ของเว็บเซิร์ฟเวอร์ และมีการเปรียบเทียบเป็น no?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no?It is not neccessary to use all the tables.
table_36082: "Name" [ text] "Comparative" [ text] "Link" [ text]
SELECT "Name" FROM table_36082 WHERE "Intra-molecular structure" = 'no' AND "Link" = 'webserver' AND "Comparative" = 'no'
null
general
รหัสสำหรับหลักสูตรในช่วงฤดูใบไม้ร่วงปี 2552 หรือฤดูใบไม้ผลิปี 2553 มีรหัสอะไรบ้าง?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What are the ids for courses in the Fall of 2009 or the Spring of 2010?It is not neccessary to use all the tables.
prereq: course_id [ text] prereq_id [ text]
SELECT course_id FROM section WHERE semester = 'Fall' AND year = 2009 UNION SELECT course_id FROM section WHERE semester = 'Spring' AND year = 2010
null
general
ประเทศใดมีเหรียญรางวัลมากที่สุด ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
which country had the highest number of medals ?It is not neccessary to use all the tables.
table_203_812: id [ number] "rank" [ number] "nation" [ text] "gold" [ number] "silver" [ number] "bronze" [ number] "total" [ number]
SELECT "nation" FROM table_203_812 ORDER BY "total" DESC LIMIT 1
null
general
ใครมาเป็นอันดับสามในอังกฤษ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Who came in third in England?It is not neccessary to use all the tables.
table_35950: "Nation" [ text] "Skip" [ text] "Third" [ text] "Second" [ text] "Lead" [ text]
SELECT "Third" FROM table_35950 WHERE "Nation" = 'england'
null
general
1 เหรียญมีกี่ชาติ ?ไม่จำเป็นต้องใช้ทุกโต๊ะ
what number of nations received 1 medal ?It is not neccessary to use all the tables.
table_204_595: id [ number] "rank" [ number] "nation" [ text] "gold" [ number] "silver" [ number] "bronze" [ number] "total" [ number]
SELECT COUNT("nation") FROM table_204_595 WHERE "total" = 1
null
general
การสูบบุหรี่หรือการใช้สารเสพติดอย่างผิดกฎหมายไม่จำเป็นต้องใช้โต๊ะทั้งหมด
smoking or illicit substance abuseIt is not neccessary to use all the tables.
table_train_174: "id" [ int] "fasting_plasma_glucose_fpg" [ float] "hemoglobin_a1c_hba1c" [ float] "substance_dependence" [ bool] "estimated_glomerular_filtration_rate_egfr" [ int] "allergy_to_insulin_lispro" [ bool] "urine_albumin_to_creatinine_ratio_uacr" [ int] "smoking" [ bool] "NOUSE" [ float]
SELECT * FROM table_train_174 WHERE smoking = 1 OR substance_dependence = 1
null
general
ชื่อการทดสอบเพศและห้องปฏิบัติการของวิชา id 2560 คืออะไร ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is gender and lab test name of subject id 2560?It is not neccessary to use all the tables.
procedures: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT demographic.gender, lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.subject_id = "2560"
null
general
อาร์ตเรนเนอร์มีกี่คะแนน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many points did art renner have?It is not neccessary to use all the tables.
table_25647137_2: points [ VARCHAR] player [ VARCHAR]
SELECT COUNT(points) FROM table_25647137_2 WHERE player = "Art Renner"
null
general
จะเกิดปฏิกิริยาอย่างไรเมื่อประเทศสวีเดนและเลนสูงกว่า 6? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the react when the country is sweden and the lane is higher than 6?It is not neccessary to use all the tables.
table_44191: "Heat" [ real] "Lane" [ real] "Name" [ text] "Country" [ text] "Mark" [ text] "React" [ real]
SELECT SUM("React") FROM table_44191 WHERE "Country" = 'sweden' AND "Lane" > '6'
null
general
อันดับสูงสุดสำหรับทีมว่ายน้ำชายในอัลบูเคอร์คีคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the highest rank for the boys swimming team in Albuquerque?It is not neccessary to use all the tables.
table_name_72: rank [ INTEGER] sport [ VARCHAR] city [ VARCHAR]
SELECT MAX(rank) FROM table_name_72 WHERE sport = "boys swimming" AND city = "albuquerque"
null
general
ตั้งชื่อปีที่ผู้จัดพิมพ์เป็น argonaut games sierra entertainmentไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the year when the publisher was argonaut games sierra entertainmentIt is not neccessary to use all the tables.
table_name_50: year [ VARCHAR] publisher [ VARCHAR]
SELECT year FROM table_name_50 WHERE publisher = "argonaut games sierra entertainment"
null
general
ชื่อเรื่องของตอนที่มีรหัสการผลิตของปี 2010 คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the title of the episode with a production code of 2010?It is not neccessary to use all the tables.
table_26429658_1: title [ VARCHAR] production_code [ VARCHAR]
SELECT title FROM table_26429658_1 WHERE production_code = 2010
null
general
สถาบันที่แชเปิลฮิลล์ รัฐนอร์ธแคโรไลนา เข้าร่วมกับสถาบันเมื่อใด?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
when did the institution at chapel hill, North carolina join acc?It is not neccessary to use all the tables.
table_28744929_1: joined_acc [ VARCHAR] location [ VARCHAR]
SELECT joined_acc FROM table_28744929_1 WHERE location = "Chapel Hill, North Carolina"
null
general
ครั้งสุดท้ายที่ผู้ป่วย 006-158689 มีค่า mchc สูงสุดในปี 11/ปีที่แล้วคือเมื่อใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
when was the last time that patient 006-158689 had maximum mchc value in 11/last year?It is not neccessary to use all the tables.
diagnosis: diagnosisid [ number] patientunitstayid [ number] diagnosisname [ text] diagnosistime [ time] icd9code [ text]
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 = '006-158689')) AND lab.labname = 'mchc' AND DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', lab.labresulttime) = '11' ORDER BY lab.labresult DESC, lab.labresulttime DESC LIMIT 1
null
general
ทีมเจ้าบ้านของเกมนี้เสมอกันหมายเลข 34 คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the home team of the game with tie number 34?It is not neccessary to use all the tables.
table_name_76: home_team [ VARCHAR] tie_no [ VARCHAR]
SELECT home_team FROM table_name_76 WHERE tie_no = "34"
null
general
ทีมไหนวางหลังแคนาดา ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
what team placed after canada ?It is not neccessary to use all the tables.
table_203_486: id [ number] "place" [ number] "team" [ text] "matches" [ number] "won" [ number] "drawn" [ number] "lost" [ number] "difference" [ text] "points" [ number]
SELECT "team" FROM table_203_486 WHERE "place" > (SELECT "place" FROM table_203_486 WHERE "team" = 'canada') ORDER BY "place" LIMIT 1
null
general
ครั้งแรกที่ผู้ป่วย 002-58884 ได้รับเข็มฉีดยา 50 มล. เดกซ์โทรส 50 % iv โซลินและแลคเตทริงเกอร์ iv 1,000 มล. ถุงในเวลาเดียวกันเมื่อเดือนที่แล้ว? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
when was the first time when patient 002-58884 was prescribed 50 ml syringe dextrose 50 % iv soln and lactated ringers iv 1000 ml bag at the same time last month?It is not neccessary to use all the tables.
diagnosis: diagnosisid [ number] patientunitstayid [ number] diagnosisname [ text] diagnosistime [ time] icd9code [ text]
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = '50 ml syringe: dextrose 50 % iv soln' AND patient.uniquepid = '002-58884' AND DATETIME(medication.drugstarttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'lactated ringers iv : 1000 ml bag' AND patient.uniquepid = '002-58884' AND DATETIME(medication.drugstarttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE DATETIME(t1.drugstarttime) = DATETIME(t2.drugstarttime) ORDER BY t1.drugstarttime LIMIT 1
null
general
คะแนนของ BC Open ที่นิวยอร์กคือเท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the score of the B.C. Open in New York?It is not neccessary to use all the tables.
table_name_65: score [ VARCHAR] location [ VARCHAR] tournament [ VARCHAR]
SELECT score FROM table_name_65 WHERE location = "new york" AND tournament = "b.c. open"
null
general
ยางในการแข่งขันที่ Bruce Mclaren มีรอบเร็วที่สุดคืออะไร?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What is the tyre on the race where Bruce Mclaren had the fastest lap?It is not neccessary to use all the tables.
table_name_58: tyre [ VARCHAR] fastest_lap [ VARCHAR]
SELECT tyre FROM table_name_58 WHERE fastest_lap = "bruce mclaren"
null
general
หมายเลขหมวดหมู่ที่ออกในเดือนพฤศจิกายน 2550 คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the category number that was released in November 2007?It is not neccessary to use all the tables.
table_name_85: cat__number [ VARCHAR] release_date [ VARCHAR]
SELECT cat__number FROM table_name_85 WHERE release_date = "november 2007"
null
general
Jean alesi และกริดที่น้อยกว่า 5 ใช้เวลานานเท่าไหร่? ไม่จำเป็นต้องใช้ตารางทั้งหมด
How much time does it take for jean alesi and grids lesser than 5?It is not neccessary to use all the tables.
table_53348: "Driver" [ text] "Constructor" [ text] "Laps" [ real] "Time/Retired" [ text] "Grid" [ real]
SELECT "Time/Retired" FROM table_53348 WHERE "Grid" < '5' AND "Driver" = 'jean alesi'
null
general
วันที่ 9 เมษายน ได้คะแนนเท่าไร?ไม่จำเป็นต้องใช้ทุกตารางครับ
Date of april 9 had what score?It is not neccessary to use all the tables.
table_36525: "Date" [ text] "Opponent" [ text] "Score" [ text] "Loss" [ text] "Attendance" [ real] "Record" [ text]
SELECT "Score" FROM table_36525 WHERE "Date" = 'april 9'
null
general
นับจำนวนแม่ทัพที่มีแต่ละอันดับ เห็นภาพตามแผนภูมิแท่ง และเรียงลำดับตามแกน y จากน้อยไปมาก โปรดไม่จำเป็นต้องใช้ตารางทั้งหมด
Count the number of captains that have each rank Visualize by bar chart, and order by the y-axis in ascending please.It is not neccessary to use all the tables.
captain: Captain_ID [ int] Name [ text] Ship_ID [ int] age [ text] Class [ text] Rank [ text]
SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*)
null
general
ผลรวมใดมีสถิติเพลย์ออฟ (0-1) และสถิติทีมเยือน (1-1) ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Overall has a playoff record of (0-1) and an away record of (1-1)?It is not neccessary to use all the tables.
table_14559: "Opponent" [ text] "OVERALL" [ text] "HOME" [ text] "AWAY" [ text] "PLYFF" [ text]
SELECT "OVERALL" FROM table_14559 WHERE "PLYFF" = '(0-1)' AND "AWAY" = '(1-1)'
null
general
ผลลัพธ์ของสถานที่ในเมืองเอดมันตัน ประเทศแคนาดา คืออะไร ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the Result of Venue of edmonton, canada?It is not neccessary to use all the tables.
table_name_54: result [ VARCHAR] venue [ VARCHAR]
SELECT result FROM table_name_54 WHERE venue = "edmonton, canada"
null
general
วันที่สำหรับโฮมดีทรอยต์และผู้มาเยือนคือชิคาโกคือวันที่ใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the date for the home detroit and visitor was chicago?It is not neccessary to use all the tables.
table_74986: "Date" [ text] "Visitor" [ text] "Score" [ text] "Home" [ text] "Record" [ text]
SELECT "Date" FROM table_74986 WHERE "Home" = 'detroit' AND "Visitor" = 'chicago'
null
general
สถิติในหนึ่งสัปดาห์หลังจาก 7 แต้มเทียบกับซานดิเอโก ชาร์จเจอร์สเป็นอย่างไรบ้าง? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the Record in a week later than 7 against the San Diego Chargers?It is not neccessary to use all the tables.
table_12453: "Week" [ real] "Date" [ text] "Opponent" [ text] "Result" [ text] "Record" [ text] "Attendance" [ real]
SELECT "Record" FROM table_12453 WHERE "Week" > '7' AND "Opponent" = 'san diego chargers'
null
general
นับจำนวนผู้ป่วยที่ได้รับการรักษาด้วยหัตถการหลอดอาหารอักเสบเฉียบพลันในปีนี้ ไม่จำเป็นต้องใช้ทุกตาราง
count the number of patients who have been treated with a creat esophagastr sphinc procedure in this year.It is not neccessary to use all the tables.
microbiologyevents: row_id [ number] subject_id [ number] hadm_id [ number] charttime [ time] spec_type_desc [ text] org_name [ text]
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'creat esophagastr sphinc') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
null
general
สถานที่ใดที่มีสถานีรถไฟหลักของบันเบอรีและมีประชากรมากกว่า 28,672 คนคือสถานที่ใด?ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
What was the place that had a main railway station of banbury and a population bigger than 28,672?It is not neccessary to use all the tables.
table_65502: "Place" [ text] "Population" [ real]
SELECT "Place" FROM table_65502 WHERE "Population" > '28,672' AND "Main Railway station" = 'banbury'
null
general
นักพายคนไหนมี FA เป็นบันทึก?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What rowers have FA as the notes?It is not neccessary to use all the tables.
table_64414: "Rank" [ real] "Rowers" [ text] "Country" [ text] "Time" [ text] "Notes" [ text]
SELECT "Rowers" FROM table_64414 WHERE "Notes" = 'fa'
null
general
มีการรายงานการแข่งขันว่าทีมผู้ชนะคือทีมแข่งของ Newman Wachs และเสาเป็นของ Carl Skerlong หรือไม่ ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl SkerlongIt is not neccessary to use all the tables.
table_20119: "Rd" [ real] "Race" [ text] "Report" [ text]
SELECT "Report" FROM table_20119 WHERE "Pole Position" = 'Carl Skerlong' AND "Winning team" = 'Newman Wachs Racing'
null
general
ค้นหาเที่ยวบินจากโตรอนโตไปซานดิเอโกด้วยการแวะพักที่วอชิงตันบน DL ไม่จำเป็นต้องใช้ตารางทั้งหมด
find a flight from TORONTO to SAN DIEGO with a layover in WASHINGTON on DLIt is not neccessary to use all the tables.
airport_service: city_code [ varchar] airport_code [ varchar] miles_distant [ int] direction [ varchar] minutes_distant [ int]
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DIEGO' AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'WASHINGTON' AND CITY_2.state_code = 'DC' AND flight_stop.stop_airport = AIRPORT_SERVICE_2.airport_code AND flight.flight_id = flight_stop.flight_id AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'TORONTO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'DL'
null
general
ชื่อเสียงเฉลี่ยต่อวันเพิ่มขึ้นจากโพสต์เก่าๆ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Average reputation gain per day from old posts.It is not neccessary to use all the tables.
ReviewRejectionReasons: Id [ number] Name [ text] Description [ text] PostTypeId [ number]
SELECT temp.Average, u.Id AS "user_link", u.Reputation FROM (SELECT SUM(CASE p.PostTypeId WHEN 1 THEN 5 WHEN 2 THEN 10 ELSE 0 END) / 31.0 AS "Average", p.OwnerUserId FROM Votes AS v INNER JOIN Posts AS p ON v.PostId = p.Id WHERE v.VoteTypeId = 2 AND p.CreationDate < '2018-01-01' AND v.CreationDate BETWEEN '2018-07-01' AND '2018-07-31' AND p.CommunityOwnedDate IS NULL AND NOT p.OwnerUserId IS NULL GROUP BY p.OwnerUserId ORDER BY SUM(CASE p.PostTypeId WHEN 1 THEN 5 WHEN 2 THEN 10 ELSE 0 END) DESC LIMIT 100) AS temp INNER JOIN Users AS u ON temp.OwnerUserId = u.Id
null
general
สนาม Bahrain International Circuit คือวันที่เท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What's the date of Bahrain International Circuit?It is not neccessary to use all the tables.
table_name_95: date [ VARCHAR] circuit [ VARCHAR]
SELECT date FROM table_name_95 WHERE circuit = "bahrain international circuit"
null
general
ผู้ป่วย 021-227292 มีการหายใจมากกว่า 21.0 ในวันนี้หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
had patient 021-227292 have a respiration greater than 21.0 today?It is not neccessary to use all the tables.
intakeoutput: intakeoutputid [ number] patientunitstayid [ number] cellpath [ text] celllabel [ text] cellvaluenumeric [ number] intakeoutputtime [ time]
SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-227292')) AND vitalperiodic.respiration > 21.0 AND NOT vitalperiodic.respiration IS NULL AND DATETIME(vitalperiodic.observationtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day')
null
general
ผู้เล่นที่มีช่วงปี 1998-2009 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the player with a Span of 1998-2009?It is not neccessary to use all the tables.
table_32835: "Player" [ text] "Span" [ text] "Start" [ text] "Tries" [ text] "Conv" [ text] "Pens" [ text] "Drop" [ text] "Lost" [ text] "Draw" [ text]
SELECT "Player" FROM table_32835 WHERE "Span" = '1998-2009'
null
general
สำหรับบันทึกเหล่านั้นจากผลิตภัณฑ์และผู้ผลิตผลิตภัณฑ์แต่ละราย ให้ส่งคืนแผนภูมิแท่งเกี่ยวกับการกระจายของสำนักงานใหญ่และผลรวมของผู้ผลิต และจัดกลุ่มตามแอตทริบิวต์สำนักงานใหญ่ แสดงรายการโดยเรียงลำดับตาม Y ไม่จำเป็นต้องใช้ตารางทั้งหมด
For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter, list in desc by the Y.It is not neccessary to use all the tables.
Products: Code [ INTEGER] Name [ VARCHAR(255)] Price [ DECIMAL] Manufacturer [ INTEGER]
SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Manufacturer) DESC
null
general
แสดงรายการเที่ยวบินทั้งหมดจากบอสตันไปซานฟรานซิสโกบน UA ไม่จำเป็นต้องใช้ตารางทั้งหมด
list all flights from BOSTON to SAN FRANCISCO on UAIt is not neccessary to use all the tables.
airport: airport_code [ varchar] airport_name [ text] airport_location [ text] state_code [ varchar] country_name [ varchar] time_zone_code [ varchar] minimum_connect_time [ int]
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 = 'BOSTON' AND flight.to_airport = AIRPORT_SERVICE_0.airport_code AND flight.from_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'UA'
null
general
สำหรับพนักงานที่ไม่ได้ทำงานในแผนกที่มีผู้จัดการที่มีรหัสระหว่าง 100 ถึง 200 โปรดแสดงการแจกจ่ายอีเมลและ manager_id ในแผนภูมิแท่งให้ฉันดู ไม่จำเป็นต้องใช้ตารางทั้งหมด
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of email and manager_id in a bar chart.It is not neccessary to use all the tables.
regions: REGION_ID [ decimal(50)] REGION_NAME [ varchar(25)]
SELECT EMAIL, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
null
general
ตอนที่ 2 ชื่อเรื่องว่าอะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the title for episode 2?It is not neccessary to use all the tables.
table_73188: "Title" [ text]
SELECT "Title" FROM table_73188 WHERE "Episode #" = '2'
null
general
ซีซั่นแรกที่มีผู้ชม 8.4 ล้านคนฉายรอบปฐมทัศน์เมื่อใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
When did the season premiere that saw 8.4 million viewers first air?It is not neccessary to use all the tables.
table_31392: "Season" [ text] "Ranking" [ text]
SELECT "Season premiere" FROM table_31392 WHERE "Viewers (in millions)" = '8.4'
null
general
การแข่งขัน Sea Pines Heritage Classic จัดขึ้นที่ใด? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What is the location of the Sea Pines Heritage Classic tournament?It is not neccessary to use all the tables.
table_34701: "Date" [ text] "Tournament" [ text] "Location" [ text] "Winner" [ text] "Score" [ text]
SELECT "Location" FROM table_34701 WHERE "Tournament" = 'sea pines heritage classic'
null
general
นับจำนวนโพสต์ ไม่จำเป็นต้องใช้ทุกตาราง
Count the amount of posts.It is not neccessary to use all the tables.
Tags: Id [ number] TagName [ text] Count [ number] ExcerptPostId [ number] WikiPostId [ number]
SELECT COUNT(*) FROM Users INNER JOIN Badges ON Users.Id = Badges.Id
null
general
ใครได้คะแนนเสียงน้อยที่สุด ?ไม่จำเป็นต้องใช้ทุกโต๊ะ
who received the least amount of votes ?It is not neccessary to use all the tables.
table_204_786: id [ number] "riding" [ text] "candidate" [ text] "gender" [ text] "residence" [ text] "occupation" [ text] "votes" [ number] "%" [ number] "rank" [ text]
SELECT "candidate" FROM table_204_786 ORDER BY "votes" LIMIT 1
null
general
ประเทศใดที่เปิดตัวในวันที่ 3 เมษายน 1990? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the Country with a Launched that is april 3, 1990?It is not neccessary to use all the tables.
table_39892: "Channel" [ text] "Country" [ text] "Type" [ text] "Launched" [ text] "Description" [ text]
SELECT "Country" FROM table_39892 WHERE "Launched" = 'april 3, 1990'
null
general
Central Crossing ชนะการแข่งขัน OCC Championship กี่ครั้งแล้ว?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
How many times have Central Crossing won the OCC Championship?It is not neccessary to use all the tables.
table_49702: "School" [ text]
SELECT SUM("OCC Championships") FROM table_49702 WHERE "School" = 'central crossing'
null
general
คะแนนในปี 1990 เป็นเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
What's the score in 1990?It is not neccessary to use all the tables.
table_name_29: score [ VARCHAR] year [ VARCHAR]
SELECT score FROM table_name_29 WHERE year = "1990"
null
general
ผลรวมของคะแนนเมื่อบ้านคือ 'พิตส์เบิร์ก' วันที่คือ '21 ธันวาคม' และเมื่อผู้เข้าร่วมมากกว่า 5,307 คน ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
What is the sum of Points, when Home is 'Pittsburgh', when Date is 'December 21', and when Attendance is greater than 5,307?It is not neccessary to use all the tables.
table_47365: "Date" [ text] "Visitor" [ text] "Score" [ text] "Home" [ text] "Attendance" [ real] "Record" [ text] "Points" [ real]
SELECT SUM("Points") FROM table_47365 WHERE "Home" = 'pittsburgh' AND "Date" = 'december 21' AND "Attendance" > '5,307'
null
general
ตั้งชื่อวันที่สำหรับบันทึก 74-84ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the date for record of 74-84It is not neccessary to use all the tables.
table_80089: "Date" [ text] "Opponent" [ text] "Score" [ text] "Loss" [ text] "Record" [ text]
SELECT "Date" FROM table_80089 WHERE "Record" = '74-84'
null
general
ระบุจำนวนผู้ป่วยที่มีตำแหน่งจำหน่ายคือ snf และโรคหลักคือน้ำตาลในเลือดสูง โดยไม่จำเป็นต้องใช้ตารางทั้งหมด
provide the number of patients whose discharge location is snf and primary disease is hyperglycemia?It is not neccessary to use all the tables.
prescriptions: subject_id [ text] hadm_id [ text] icustay_id [ text] drug_type [ text] drug [ text] formulary_drug_cd [ text] route [ text] drug_dose [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "HYPERGLYCEMIA"
null
general
นับจำนวนผู้ที่ได้รับยา methadone hcl ในการเยี่ยมโรงพยาบาลครั้งเดียวกัน หลังจากได้รับการผ่าตัดแบบต่อเนื่องเป็นเวลานาน 96 ชั่วโมง จนถึงปี 2102 ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
count the number of people who were prescribed methadone hcl in the same hospital visit after having received a cont inv mec ven 96+ hrs procedure until 2102.It is not neccessary to use all the tables.
d_icd_diagnoses: row_id [ number] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id 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 = 'cont inv mec ven 96+ hrs') AND STRFTIME('%y', procedures_icd.charttime) <= '2102') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'methadone hcl' AND STRFTIME('%y', prescriptions.startdate) <= '2102') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id
null
general
เกมประเภทใดที่มีผล 00? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What type of game had a 00 result?It is not neccessary to use all the tables.
table_37777: "Date" [ text] "City" [ text] "Opponent" [ text] "Results\u00b9" [ text]
SELECT "Type of game" FROM table_37777 WHERE "Results\u00b9" = '0:0'
null
general
ทองคำที่เล็กกว่า 2 และอันดับ 4 และประเทศฮังการี (ฮุน) และทองแดงที่เล็กกว่า 1 มีจำนวนเงินทั้งหมดเท่าไร?ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
Gold smaller than 2, and a Rank of 4, and a Nation of hungary (hun), and a Bronze smaller than 1 had what total number of silver?It is not neccessary to use all the tables.
table_name_48: silver [ VARCHAR] bronze [ VARCHAR] nation [ VARCHAR] gold [ VARCHAR] rank [ VARCHAR]
SELECT COUNT(silver) FROM table_name_48 WHERE gold < 2 AND rank = "4" AND nation = "hungary (hun)" AND bronze < 1
null
general
ใครชนะประเภทชายเดี่ยวเมื่อ lau sui fei ชนะประเภทหญิงเดี่ยว?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Who won the mens singles when lau sui fei won the womens singles?It is not neccessary to use all the tables.
table_30302:
SELECT "Mens Singles" FROM table_30302 WHERE "Womens Singles" = 'Lau Sui Fei'
null
general
เอกสารเกี่ยวกับ NELL ไม่จำเป็นต้องใช้ตารางทั้งหมด
papers about NELLIt is not neccessary to use all the tables.
journal: journalid [ int] journalname [ varchar]
SELECT DISTINCT paper.paperid FROM dataset, paper, paperdataset WHERE dataset.datasetname = 'NELL' AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid
null
general
ระบุชื่อผลิตภัณฑ์ทั้งหมดพร้อมจำนวนข้อร้องเรียนที่ได้รับด้วยแผนภูมิแท่ง และฉันต้องการจัดอันดับตามแกน x จากน้อยไปมาก โปรดใช้ตารางทั้งหมดไม่จำเป็น
List the name of all products along with the number of complaints that they have received with a bar chart, and I want to rank by the x axis in ascending please.It is not neccessary to use all the tables.
Complaints: complaint_id [ INTEGER] product_id [ INTEGER] customer_id [ INTEGER] complaint_outcome_code [ VARCHAR(20)] complaint_status_code [ VARCHAR(20)] complaint_type_code [ VARCHAR(20)] date_complaint_raised [ DATETIME] date_complaint_closed [ DATETIME] staff_id [ INTEGER]
SELECT product_name, COUNT(*) FROM Products AS t1 JOIN Complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name ORDER BY product_name
null
general
ในปี 2105 ผู้ป่วยได้รับยา maalox 006-47576 หรือไม่ไม่จำเป็นต้องใช้ตารางทั้งหมด
in 2105 patient 006-47576 had been prescribed maalox?It is not neccessary to use all the tables.
lab: labid [ number] patientunitstayid [ number] labname [ text] labresult [ number] labresulttime [ time]
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 = '006-47576')) AND medication.drugname = 'maalox' AND STRFTIME('%y', medication.drugstarttime) = '2105'
null
general
เกิดอะไรขึ้นในสัปดาห์ที่ 14 เมื่อผลลัพธ์ของสัปดาห์ที่ 11 คือมิชิแกน (7-2)?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What happened in week 14 when week 11's result was Michigan (7-2)?It is not neccessary to use all the tables.
table_58921:
SELECT "Week 14 Dec 3" FROM table_58921 WHERE "Week 11 Nov 12" = 'michigan (7-2)'
null
general
โปรดให้แผนภูมิแท่งเพื่อแสดงจำนวนนักร้องทั้งหมดที่ร้องเพลงที่ได้รับคะแนนสูงสุด 3 อันดับแรกจากประเทศต่างๆ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Please give me a bar chart to show the total number of singers who sang the top 3 most highly rated songs from different countries.It is not neccessary to use all the tables.
genre: g_name [ varchar2(20)] rating [ varchar2(10)] most_popular_in [ varchar2(50)]
SELECT T1.country, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T1.country ORDER BY T2.rating DESC LIMIT 3
null
general
ตั้งชื่อการย้ายไปที่สำหรับ fraIt ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the moving to for fraIt is not neccessary to use all the tables.
table_name_22: moving_to [ VARCHAR] country [ VARCHAR]
SELECT moving_to FROM table_name_22 WHERE country = "fra"
null
general