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
ตั้งชื่อจำนวนปีสำหรับ 6 3, 6 2 พื้นผิวแข็งไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the number of year for 6 3, 6 2 hard surfaceIt is not neccessary to use all the tables.
table_73489: "Outcome" [ text] "Year" [ real] "Championship" [ text] "Surface" [ text]
SELECT COUNT("Year") FROM table_73489 WHERE "Score in the final" = '6–3, 6–2' AND "Surface" = 'Hard'
null
general
แผนภูมิแท่งแสดงการกระจายของ All_Road และ ACC_Percent และลำดับ X จากลำดับสูงไปต่ำ ไม่จำเป็นต้องใช้ตารางทั้งหมด
A bar chart shows the distribution of All_Road and ACC_Percent , and order X from high to low order.It is not neccessary to use all the tables.
basketball_match: Team_ID [ int] School_ID [ int] Team_Name [ text] ACC_Regular_Season [ text] ACC_Percent [ text] ACC_Home [ text] ACC_Road [ text] All_Games [ text] All_Games_Percent [ int] All_Home [ text] All_Road [ text] All_Neutral [ text]
SELECT All_Road, ACC_Percent FROM basketball_match ORDER BY All_Road DESC
null
general
อะไรคือส่วนต่างของชัยชนะในการแข่งขัน Texas International Open?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the margin of victory at the Texas International Open?It is not neccessary to use all the tables.
table_name_44: margin_of_victory [ VARCHAR] tournament [ VARCHAR]
SELECT margin_of_victory FROM table_name_44 WHERE tournament = "texas international open"
null
general
ผู้ป่วย 18159 ได้รับยา albuterol 0.083% neb soln, labetalol hcl หรือ filgrastim ใน 12/2105 ไม่จำเป็นต้องใช้ตารางทั้งหมด
has patient 18159 been prescribed albuterol 0.083% neb soln, labetalol hcl, or filgrastim in 12/2105.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(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 18159) AND prescriptions.drug IN ('albuterol 0.083% neb soln', 'labetalol hcl', 'filgrastim') AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-12'
null
general
คลาสใดจนถึงปี 1928 มีปริมาณน้อยกว่า 440 และที่นั่ง 29/29 ไม่จำเป็นต้องใช้ตารางทั้งหมด
What Class to 1928 has the Quantity smaller than 440 and Seats of 29/29?It is not neccessary to use all the tables.
table_name_16: class_to_1928 [ VARCHAR] quantity [ VARCHAR] seats [ VARCHAR]
SELECT class_to_1928 FROM table_name_16 WHERE quantity < 440 AND seats = "29/29"
null
general
ฝ่ายใดที่ระบุไว้ใน Pennsylvania 8?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What are the parties listed for Pennsylvania 8?It is not neccessary to use all the tables.
table_28929: "District" [ text] "Incumbent" [ text] "Party" [ text] "Result" [ text] "Candidates" [ text]
SELECT "Party" FROM table_28929 WHERE "District" = 'Pennsylvania 8'
null
general
Gary Anderson มีความจุ 140+ กี่ตัว?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many 140+ did Gary Anderson have?It is not neccessary to use all the tables.
table_23722: "Player" [ text] "Played" [ real] "100+" [ real] "140+" [ real] "180s" [ real]
SELECT "140+" FROM table_23722 WHERE "Player" = 'Gary Anderson'
null
general
ใครคือคนขับรถในทีมของ Bob Keselowski?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Who is the Driver on Bob Keselowski's team?It is not neccessary to use all the tables.
table_name_57: driver_s_ [ VARCHAR] owner_s_ [ VARCHAR]
SELECT driver_s_ FROM table_name_57 WHERE owner_s_ = "bob keselowski"
null
general
มิกา ไฮโนเนน ซูซานนา ดาห์ลเบิร์ก ชนะประเภทคู่ผสมเมื่อใด? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
When did mika heinonen susanna dahlberg win mixed doubles?It is not neccessary to use all the tables.
table_name_55: year [ INTEGER] mixed_doubles [ VARCHAR]
SELECT AVG(year) FROM table_name_55 WHERE mixed_doubles = "mika heinonen susanna dahlberg"
null
general
มีกี่หลักสูตรที่มีข้อกำหนดเบื้องต้นสองประการ แสดงแผนภูมิแท่งโดยจัดกลุ่มตามชื่อ ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many courses have two prerequisites? Show me a bar chart grouping by title.It is not neccessary to use all the tables.
student: ID [ varchar(5)] name [ varchar(20)] dept_name [ varchar(20)] tot_cred [ numeric(30)]
SELECT title, COUNT(title) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY title
null
general
ผลลัพธ์ที่ได้คะแนน 70-73 คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
WHAT IS THE RESULT WITH A SCORE OF 70-73?It is not neccessary to use all the tables.
table_name_81: result [ VARCHAR] score [ VARCHAR]
SELECT result FROM table_name_81 WHERE score = "70-73"
null
general
เกมวันที่ 24 พฤษภาคมกับ Road Team Seattle คืออะไร? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What is the Game on May 24 with Road Team Seattle?It is not neccessary to use all the tables.
table_name_76: game [ VARCHAR] road_team [ VARCHAR] date [ VARCHAR]
SELECT game FROM table_name_76 WHERE road_team = "seattle" AND date = "may 24"
null
general
จำนวนการเล่นสูงสุดเมื่อเสมอกันคือมากกว่า 4 คะแนนได้รับมากกว่า 30 คะแนนและทำประตูได้ 37 ประตูให้กับทีม?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the highest number of plays when drawn is more than 4, more than 30 points were earned, and 37 goals scored for the team?It is not neccessary to use all the tables.
table_name_91: played [ INTEGER] points [ VARCHAR] drawn [ VARCHAR] goals_for [ VARCHAR]
SELECT MAX(played) FROM table_name_91 WHERE drawn > 4 AND goals_for = 37 AND points > 30
null
general
#รายการไหนที่ออกอากาศวันที่ 29 กันยายน 2551 มากที่สุด?ไม่จำเป็นต้องใช้ทุกตาราง
what is the most # that aired on september 29, 2008?It is not neccessary to use all the tables.
table_11235334_2: _number [ INTEGER] air_date [ VARCHAR]
SELECT MAX(_number) FROM table_11235334_2 WHERE air_date = "September 29, 2008"
null
general
จนถึงปี 2102 อะไรคือการทดสอบในห้องปฏิบัติการที่ได้รับคำสั่งมากที่สุดห้าอันดับแรกสำหรับผู้ป่วยในเดือนเดียวกันหลังจากได้รับการวินิจฉัยว่าเป็นโรคกระดูกสันหลังตีบตัน? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
until 2102, what are the top five most commonly ordered lab tests for patients in the same month after being diagnosed with spinal stenosis nos?It is not neccessary to use all the tables.
inputevents_cv: row_id [ number] subject_id [ number] hadm_id [ number] icustay_id [ number] charttime [ time] itemid [ number] amount [ number]
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'spinal stenosis nos') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2102') AS t1 JOIN (SELECT admissions.subject_id, labevents.itemid, labevents.charttime FROM labevents JOIN admissions ON labevents.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', labevents.charttime) <= '2102') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.itemid) AS t3 WHERE t3.c1 <= 5)
null
general
ผู้เล่นคนไหนเล่นให้กับทีม Boston Patriots?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which player played for the Boston Patriots?It is not neccessary to use all the tables.
table_66593: "Pick" [ real] "Team" [ text] "Player" [ text] "Position" [ text] "College" [ text]
SELECT "Player" FROM table_66593 WHERE "Team" = 'boston patriots'
null
general
คุณช่วยบอกคะแนน B เฉลี่ยที่มีตำแหน่งที่ 2 และคะแนนรวมน้อยกว่า 15.525 ให้ฉันหน่อยได้ไหม ไม่จำเป็นต้องใช้ตารางทั้งหมด
Can you tell me the average B Score that has the Position of 2nd, and the Total smaller than 15.525?It is not neccessary to use all the tables.
table_13920: "Position" [ text] "Gymnast" [ text] "Total" [ real]
SELECT AVG("B Score") FROM table_13920 WHERE "Position" = '2nd' AND "Total" < '15.525'
null
general
ทีม FMS นานาชาติเป็นตัวแทนของประเทศจำนวนกี่ประเทศ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many nations do the FMS international team represent?It is not neccessary to use all the tables.
table_2027: "Name" [ text] "Nation" [ text] "Seasons" [ text] "Poles" [ real] "Wins" [ real] "Podiums" [ real]
SELECT COUNT("Nation") FROM table_2027 WHERE "Name" = 'FMS International'
null
general
ค่ากลางสูงสุดของ Gallup ในเดือนมีนาคม 2551 สำหรับค่า Strategic Marking ต่ำกว่า 17 และค่า Gallup ขนาดกลางในเดือนพฤษภาคม 2551 มากกว่า 10 คือเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the highest medium Gallup March 2008 value for a Strategic Marking value under 17 and Medium Gallup May 2008 value over 10?It is not neccessary to use all the tables.
table_41222: "Party" [ text]
SELECT MAX("Medium Gallup, March 2008") FROM table_41222 WHERE "Strategic Marketing, March 2008" < '17' AND "Medium Gallup, May 2008" > '10'
null
general
ตั้งแต่ 2 ปีที่แล้ว การทดสอบทางจุลชีววิทยาที่พบบ่อยที่สุดสามอันดับแรกที่สั่งให้ผู้ป่วยภายในเดือนเดียวกันหลังจากได้รับเอ็นโดสก์เอานิ่วน้ำดีคืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
since 2 years ago, what are the top three most frequent microbiology tests ordered for patients within the same month after receiving the endosc remove bile stone?It is not neccessary to use all the tables.
labevents: row_id [ number] subject_id [ number] hadm_id [ number] itemid [ number] charttime [ time] valuenum [ number] valueuom [ text]
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime 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 = 'endosc remove bile stone') AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id WHERE DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-2 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 3
null
general
เมื่อสิ้นปี 2008 เหรียญกษาปณ์สูงสุดสำหรับศิลปินช่างแกะสลักโรงกษาปณ์ Royal Canadian Mint คือเท่าใด? ไม่จำเป็นต้องใช้ตารางทั้งหมด
When the Year is over 2008, what is the highest Mintage for the Royal Canadian Mint Engravers Artist?It is not neccessary to use all the tables.
table_name_46: mintage [ INTEGER] artist [ VARCHAR] year [ VARCHAR]
SELECT MAX(mintage) FROM table_name_46 WHERE artist = "royal canadian mint engravers" AND year > 2008
null
general
John Sullivan เขียนความยาว 30 นาทีทั้งหมดกี่ตอน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many episodes of 30 minutes were written by John Sullivan?It is not neccessary to use all the tables.
table_17641206_4: duration [ VARCHAR] written_by [ VARCHAR]
SELECT COUNT(duration) FROM table_17641206_4 WHERE written_by = "John Sullivan"
null
general
ทีมเจ้าบ้านใดได้คะแนน 9.7 (61)?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What home team scored 9.7 (61)?It is not neccessary to use all the tables.
table_4734: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT "Home team" FROM table_4734 WHERE "Home team score" = '9.7 (61)'
null
general
ยาสี่ชนิดที่พบบ่อยที่สุดที่จ่ายให้กับผู้ป่วยอายุ 20 ปีในระหว่างการไปโรงพยาบาลครั้งเดียวกัน หลังจากได้รับการวินิจฉัยว่าเป็นโรคกระดูกสันหลังส่วนเอวแบบ fx ในปีนี้? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
what were the four most common drugs prescribed to patients aged 20s during the same hospital visit after they had been diagnosed with fx lumbar vertebra-close this year?It is not neccessary to use all the tables.
d_labitems: row_id [ number] itemid [ number] label [ text]
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'fx lumbar vertebra-close') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.age BETWEEN 20 AND 29 AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 4
null
general
รถที่ขับไป 54 รอบ ยี่ห้ออะไร?ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
What is the make of the car that drove 54 laps?It is not neccessary to use all the tables.
table_32043: "Driver" [ text] "Constructor" [ text] "Laps" [ real] "Time/Retired" [ text] "Grid" [ real]
SELECT "Constructor" FROM table_32043 WHERE "Laps" = '54'
null
general
จำนวนผู้ป่วยที่จำหน่าย ณ สถานที่พักฟื้น/โรงพยาบาลส่วนต่าง ๆ และรหัสขั้นตอน icd9 คือ 5187 เป็นจำนวนเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the number of patients whose discharge location is rehab/distinct part hosp and procedure icd9 code is 5187?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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND procedures.icd9_code = "5187"
null
general
ผลเสมอกัน 52 ประตูและแพ้น้อยกว่า 15 นัดคือเท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the total draw count with 52 goals and less than 15 losses?It is not neccessary to use all the tables.
table_name_38: draws [ INTEGER] goals_against [ VARCHAR] losses [ VARCHAR]
SELECT SUM(draws) FROM table_name_38 WHERE goals_against = 52 AND losses < 15
null
general
ค้นหาสถานะคำสั่งซื้อของลูกค้าชื่อ 'เจอรามี' จัดกลุ่มตามสถานะคำสั่งซื้อแล้วนับ แสดงผลด้วยแผนภูมิแท่ง ไม่จำเป็นต้องใช้ตารางทั้งหมด
Find the status of orders which belong to the customer named 'Jeramie', group by order status, and count them. Show the result with a bar chart.It is not neccessary to use all the tables.
Customers: customer_id [ INTEGER] customer_name [ VARCHAR(80)] customer_details [ VARCHAR(255)]
SELECT T2.order_status, COUNT(T2.order_status) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie" GROUP BY order_status
null
general
การแข่งขันคือวันที่ 1995-08-06 คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the competition when the date is 1995-08-06?It is not neccessary to use all the tables.
table_48180: "Date" [ text] "Venue" [ text] "Score" [ text] "Result" [ text] "Competition" [ text]
SELECT "Competition" FROM table_48180 WHERE "Date" = '1995-08-06'
null
general
เจ้าบ้านเล่นที่สนามจังค์ชันโอวัลชื่ออะไร?ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
What was the name of the home team playing at the Junction Oval venue?It is not neccessary to use all the tables.
table_52176: "Venue" [ text] "Date" [ text]
SELECT "Home team" FROM table_52176 WHERE "Venue" = 'junction oval'
null
general
ยาสี่ชนิดที่พบบ่อยที่สุดที่จ่ายให้กับผู้ป่วยหญิงที่เป็นเม็ดโลหิตขาวอายุ 40 ปีภายใน 2 เดือนหลังจากได้รับการวินิจฉัยว่าเป็นเม็ดโลหิตขาวเมื่อปีที่แล้วคืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what are the four most frequent drugs that were prescribed to the leukocytosis female patients 40s within 2 months after having been diagnosed with leukocytosis last year?It is not neccessary to use all the tables.
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] hospitaladmitsource [ text] unitadmittime [ time] unitdischargetime [ time] hospitaldischargetime [ time] hospitaldischargestatus [ text]
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'leukocytosis' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.gender = 'female' AND patient.age BETWEEN 40 AND 49 AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t2.drugstarttime) BETWEEN DATETIME(t1.diagnosistime) AND DATETIME(t1.diagnosistime, '+2 month') GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 4
null
general
ในปี 2555 ค่าเฉลี่ยของความสำเร็จอยู่ที่เท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
In 2012 what was the average finish?It is not neccessary to use all the tables.
table_1012730_1: avg_finish [ VARCHAR] year [ VARCHAR]
SELECT avg_finish FROM table_1012730_1 WHERE year = 2012
null
general
ความสัมพันธ์ระหว่าง Team_ID และ ACC_Percent และจัดกลุ่มตามแอตทริบิวต์ All_Home คืออะไร ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the relationship between Team_ID and ACC_Percent , and group by attribute All_Home?It is not neccessary to use all the tables.
basketball_match: Team_ID [ int] School_ID [ int] Team_Name [ text] ACC_Regular_Season [ text] ACC_Percent [ text] ACC_Home [ text] ACC_Road [ text] All_Games [ text] All_Games_Percent [ int] All_Home [ text] All_Road [ text] All_Neutral [ text]
SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Home
null
general
มีผู้ป่วยที่เข้ารับการรักษาก่อนปี 2135 กี่รายที่ได้รับการวินิจฉัยว่าเป็นโรคไตวาย ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many patients admitted before the year 2135 are diagnosed with kidney fail, tubr necr?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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2135" AND diagnoses.short_title = "Ac kidny fail, tubr necr"
null
general
เบาหวานชนิดที่ 2 ( hba1c = > 7 % )ไม่จำเป็นต้องใช้ทุกตาราง
diabetes type ii ( hba1c = > 7 % )It is not neccessary to use all the tables.
table_dev_3: "id" [ int] "bleeding" [ int] "hemoglobin_a1c_hba1c" [ float] "trauma" [ bool] "diabetic" [ string] "creatinine_clearance_cl" [ float] "surgery" [ bool] "autonomic_dysfunction" [ bool] "urine_protein" [ int] "proteinuria" [ int] "body_mass_index_bmi" [ float] "NOUSE" [ float]
SELECT * FROM table_dev_3 WHERE diabetic = 'ii' OR hemoglobin_a1c_hba1c >= 7
null
general
คนไข้หญิงที่เกิดก่อนปี พ.ศ. 2364 มีกี่คน ไม่จำเป็นต้องใช้ทุกโต๊ะ
how many female patients were born before the year 1821?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.gender = "F" AND demographic.dob_year < "1821"
null
general
ค้นหาคำตอบคุณภาพต่ำของฉัน สิ่งนี้จะจัดอันดับคำถามของคุณตามความยาวของโพสต์ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Finding my Low Quality Answers. This will rank your Questions by the length of the post.It is not neccessary to use all the tables.
FlagTypes: Id [ number] Name [ text] Description [ text]
SELECT OwnerUserId AS "user_link", Id AS "post_link", LENGTH(Body) AS "length_of_post" FROM Posts WHERE NOT ParentId IS NULL AND OwnerUserId = '##UserId##' ORDER BY 'length_of_post'
null
general
ไดโตะตั้งอยู่ในจังหวัดใด?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
In what prefecture is Daito located?It is not neccessary to use all the tables.
table_2518850_4: prefecture [ VARCHAR] city_town [ VARCHAR]
SELECT prefecture FROM table_2518850_4 WHERE city_town = "Daito"
null
general
เลือก * จาก Users โดยที่ Reputation > 200000 ไม่จำเป็นต้องใช้ตารางทั้งหมด
select * from Users where Reputation > 200000.It is not neccessary to use all the tables.
PostLinks: Id [ number] CreationDate [ time] PostId [ number] RelatedPostId [ number] LinkTypeId [ number]
SELECT * FROM Users WHERE Reputation > 200000
null
general
นับจำนวนกัปตันที่มีแต่ละอันดับ เห็นภาพตามแผนภูมิแท่ง จัดอันดับตามจำนวนทั้งหมดจากมากไปน้อย ไม่จำเป็นต้องใช้ตารางทั้งหมด
Count the number of captains that have each rank Visualize by bar chart, rank by the the total number in descending.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(*) DESC
null
general
ประเทศคืออะไร เมื่อผู้เล่นคือ 'Hale Irwin'?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is Country, when Player is 'Hale Irwin'?It is not neccessary to use all the tables.
table_46660: "Player" [ text] "Country" [ text] "Total" [ text]
SELECT "Country" FROM table_46660 WHERE "Player" = 'hale irwin'
null
general
คะแนนทีมเหย้าใดที่มีคะแนนทีมเยือน 11.9 (75) ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Home team score has an Away team score of 11.9 (75)?It is not neccessary to use all the tables.
table_51357: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT "Home team score" FROM table_51357 WHERE "Away team score" = '11.9 (75)'
null
general
เมื่อริชมอนด์เล่นออกไป จำนวนคนที่ดูมากที่สุดคือเท่าไร?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
When richmond played away, what was the largest number of people who watched?It is not neccessary to use all the tables.
table_32567: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT MAX("Crowd") FROM table_32567 WHERE "Away team" = 'richmond'
null
general
หัวรถจักรขบวนสุดท้ายที่จะตั้งอยู่ในพิพิธภัณฑ์ไอน้ำ Bressingham ชื่ออะไร ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
what is the name of the last locomotive to be located at the bressingham steam museum ?It is not neccessary to use all the tables.
table_204_30: id [ number] "gauge" [ text] "name" [ text] "notes" [ text]
SELECT "name" FROM table_204_30 WHERE "current location" = 'bressingham steam museum' ORDER BY "year built" DESC LIMIT 1
null
general
กิจกรรมใดมีรายรับ 113,259 ดอลลาร์ และมีค่าเฉลี่ยมากกว่า 229.5 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Events has Earnings of $113,259, and an Average larger than 229.5?It is not neccessary to use all the tables.
table_40421: "Season" [ text] "Events" [ real] "Cashes" [ real] "Average" [ real] "Earnings" [ text]
SELECT MAX("Events") FROM table_40421 WHERE "Earnings" = '$113,259' AND "Average" > '229.5'
null
general
แสดงชื่อและรหัสของสถานที่ท่องเที่ยวที่มีผู้เข้าชมมากที่สุดหนึ่งครั้งด้วยแผนภูมิแท่ง และฉันต้องการแสดงจากต่ำไปสูงตามแกน X ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show the names and ids of tourist attractions that are visited at most once by a bar chart, and I want to show from low to high by the X-axis.It is not neccessary to use all the tables.
Shops: Shop_ID [ INTEGER] Shop_Details [ VARCHAR(255)]
SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID ORDER BY T1.Name
null
general
ความถี่ของ hot fm คืออะไร? ไม่จำเป็นต้องใช้ทุกตาราง
What is the frequency of hot fm?It is not neccessary to use all the tables.
table_1601792_3: frequency [ VARCHAR] station [ VARCHAR]
SELECT COUNT(frequency) FROM table_1601792_3 WHERE station = "Hot FM"
null
general
ความจุสูงสุดของสนามแลร์รี โกเมส คือเท่าใด?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What was the maximum capacity of larry gomes stadium?It is not neccessary to use all the tables.
table_25794138_1: capacity [ INTEGER] stadium [ VARCHAR]
SELECT MAX(capacity) FROM table_25794138_1 WHERE stadium = "Larry Gomes stadium"
null
general
ผู้ป่วย 029-22492 ได้รับมอร์ฟีน ออนแดนซีตรอน หรือแวนโคมัยซิน ปรึกษาร้านขายยาจนถึง 02/2105 หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
has patient 029-22492 been received morphine, ondansetron, or vancomycin consult to pharmacy until 02/2105?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 medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-22492')) AND medication.drugname IN ('morphine', 'ondansetron', 'vancomycin consult to pharmacy') AND STRFTIME('%y-%m', medication.drugstarttime) <= '2105-02'
null
general
เลกที่ 2 ของทีมบาร์เซโลน่า 2 คืออะไร?ไม่จำเป็นต้องใช้ทุกโต๊ะ
What is the 2nd leg for Barcelona Team 2?It is not neccessary to use all the tables.
table_name_49: team_2 [ VARCHAR]
SELECT 2 AS nd_leg FROM table_name_49 WHERE team_2 = "barcelona"
null
general
[WIP] ใครคือผู้ใช้ที่ตอบคำถามได้ดีที่สุดสำหรับชุดแท็ก?ไม่จำเป็นต้องใช้ตารางทั้งหมด
[WIP] Who are the top answering users for a set of tags?.It is not neccessary to use all the tables.
TagSynonyms: Id [ number] SourceTagName [ text] TargetTagName [ text] CreationDate [ time] OwnerUserId [ number] AutoRenameCount [ number] LastAutoRename [ time] Score [ number] ApprovedByUserId [ number] ApprovalDate [ time]
SELECT a.Id, a.ParentId, a.Score, a.OwnerUserId, q.Title, q.Tags, q.AnswerCount, q.FavoriteCount FROM Posts AS a INNER JOIN Posts AS q ON q.Id = a.ParentId INNER JOIN PostTags ON q.Id = PostTags.PostId INNER JOIN Users ON a.OwnerUserId = Users.Id WHERE PostTags.TagId IN (SELECT Id FROM Tags WHERE TagName IN (SELECT * FROM STRING_SPLIT(@TagList, ','))) AND a.Score >= 1 AND a.OwnerUserId = @UserId ORDER BY a.Score DESC LIMIT 25
null
general
ใครเป็นรองชนะเลิศในวันที่ 5 ส.ค. 2533?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Who was the runner-up on 5 aug 1990?It is not neccessary to use all the tables.
table_34802: "Date" [ text] "Tournament" [ text] "Runner-up" [ text]
SELECT "Runner-up" FROM table_34802 WHERE "Date" = '5 aug 1990'
null
general
ยี่ห้อและรุ่นใดที่จะเลิกผลิตในปี 2004 และมีหมายเลข (ปริมาณการสั่งซื้อ) 961-967 (รถโดยสาร 7 คัน)?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the make and model that retires in 2004, and has a numbers (quantity ordered) of 961-967 (7 buses)?It is not neccessary to use all the tables.
table_38825: "Length" [ text] "Year" [ real]
SELECT "Make/ Model" FROM table_38825 WHERE "Year Retired" = '2004' AND "Numbers (Quantity Ordered)" = '961-967 (7 buses)'
null
general
ผู้ป่วย 002-70965 ได้รับการสั่งยา nss infusion และ protonix ครั้งสุดท้ายพร้อมกันเมื่อใดนับตั้งแต่ 151 เดือนที่แล้ว? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
when was patient 002-70965 last prescribed with nss infusion and protonix at the same time since 151 months ago?It is not neccessary to use all the tables.
microlab: microlabid [ number] patientunitstayid [ number] culturesite [ text] organism [ text] culturetakentime [ time]
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'nss infusion' AND patient.uniquepid = '002-70965' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-151 month')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'protonix' AND patient.uniquepid = '002-70965' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-151 month')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE DATETIME(t1.drugstarttime) = DATETIME(t2.drugstarttime) ORDER BY t1.drugstarttime DESC LIMIT 1
null
general
มีคนไข้จำนวนกี่คนที่ปีที่เข้ารับการรักษาน้อยกว่า 2,194 และขั้นตอนการรักษาชื่อยาวคือการตรวจหลอดเลือดหัวใจของโครงสร้างหัวใจด้านขวา?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many patients whose admission year is less than 2194 and procedure long title is angiocardiography of right heart structures?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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2194" AND procedures.long_title = "Angiocardiography of right heart structures"
null
general
มีกี่แห่งที่มีจำนวนมากกว่า 1 เคาน์ตี ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many places have a larger amount that 1 county ?It is not neccessary to use all the tables.
table_204_356: id [ number]
SELECT COUNT("name of place") FROM table_204_356 WHERE "number of counties" > 1
null
general
เมื่ออันดับมากกว่า 3 โดยมีควอเตอร์ที่สองของ johnson & johnson 156,515.9 แล้วควอเตอร์ที่สี่คือเท่าไร?ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter?It is not neccessary to use all the tables.
table_name_86: fourth_quarter [ VARCHAR] rank [ VARCHAR] second_quarter [ VARCHAR]
SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.9"
null
general
สำหรับพนักงานที่มีเงินเดือนอยู่ในช่วง 8,000 ถึง 12,000 และค่าคอมมิชชันไม่เป็นค่าว่างหรือหมายเลขแผนกไม่เท่ากับ 40 โปรดแสดงให้ฉันดูเกี่ยวกับการแจกแจงของ job_id และผลรวมของ Employee_id และจัดกลุ่มตามแอตทริบิวต์ job_id ในแผนภูมิแท่ง จัดอันดับแกน y ตามลำดับจากมากไปน้อย ไม่จำเป็นต้องใช้ตารางทั้งหมด
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of job_id and the sum of employee_id , and group by attribute job_id in a bar chart, rank y axis in descending order.It is not neccessary to use all the tables.
employees: EMPLOYEE_ID [ decimal(60)] FIRST_NAME [ varchar(20)] LAST_NAME [ varchar(25)] EMAIL [ varchar(25)] PHONE_NUMBER [ varchar(20)] HIRE_DATE [ date] JOB_ID [ varchar(10)] SALARY [ decimal(82)] COMMISSION_PCT [ decimal(22)] MANAGER_ID [ decimal(60)] DEPARTMENT_ID [ decimal(40)]
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID) DESC
null
general
บรูคลิน ดอดเจอร์ส 3, นิวยอร์ก แยงกี้ 5 และเกมที่ใหญ่กว่า 1 มีผู้เข้าร่วมเป็นเท่าใด ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
brooklyn dodgers 3, new york yankees 5, and a Game larger than 1 had what attendance figure?It is not neccessary to use all the tables.
table_name_47: attendance [ INTEGER] score [ VARCHAR] game [ VARCHAR]
SELECT SUM(attendance) FROM table_name_47 WHERE score = "brooklyn dodgers – 3, new york yankees – 5" AND game > 1
null
general
คู่ต่อสู้คือใครในทัวร์นาเมนต์มายอร์ก้า 2 ประเทศสเปน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Who was the opponent in the mallorca 2, spain tournament?It is not neccessary to use all the tables.
table_name_54: opponent [ VARCHAR] tournament [ VARCHAR]
SELECT opponent FROM table_name_54 WHERE tournament = "mallorca 2, spain"
null
general
ในวันที่ 28 เดือนนี้ ค่า bp ของหลอดเลือดแดงหมายถึงค่าสูงสุดของผู้ป่วย 28447 เท่าไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
on this month/28 what was the arterial bp mean maximum value of patient 28447?It is not neccessary to use all the tables.
chartevents: row_id [ number] subject_id [ number] hadm_id [ number] icustay_id [ number] itemid [ number] charttime [ time] valuenum [ number] valueuom [ text]
SELECT MAX(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28447)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') AND STRFTIME('%d', chartevents.charttime) = '28'
null
general
การแข่งขันใดเกิดขึ้นที่ Iowa Speedway?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What race happened at Iowa Speedway?It is not neccessary to use all the tables.
table_name_91: race [ VARCHAR] track [ VARCHAR]
SELECT race FROM table_name_91 WHERE track = "iowa speedway"
null
general
ค้นหาจำนวนผู้ป่วยที่พูดภาษารัสเซียที่ได้รับการวินิจฉัยว่าติดเชื้อโพรทูส nos ไม่จำเป็นต้องใช้ตารางทั้งหมด
find the number of russian speaking patients who are diagnosed with proteus infection nos.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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.language = "RUSS" AND diagnoses.short_title = "Proteus infection NOS"
null
general
แสดงแผนภูมิวงกลมว่ามีเพลงจำนวนเท่าใดที่ปล่อยออกมาในแต่ละรูปแบบ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show me a pie chart for how many songs were released for each format?It is not neccessary to use all the tables.
genre: g_name [ varchar2(20)] rating [ varchar2(10)] most_popular_in [ varchar2(50)]
SELECT formats, COUNT(*) FROM files GROUP BY formats
null
general
การปรากฏตัวครั้งสุดท้ายของตัวละคร rikki sandoval ตอนใด? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What episode was the last appearance of the character, rikki sandoval?It is not neccessary to use all the tables.
table_16568: "Character" [ text] "Relationship" [ text]
SELECT "Last appearance" FROM table_16568 WHERE "Character" = 'Rikki Sandoval'
null
general
สัปดาห์ที่ 4 มีสัปดาห์ที่ 2 ของ samantha speer หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
What Week 4 has a Week 2 of samantha speer?It is not neccessary to use all the tables.
table_name_62: week_4 [ VARCHAR] week_2 [ VARCHAR]
SELECT week_4 FROM table_name_62 WHERE week_2 = "samantha speer"
null
general
ปาฏิหาริย์แมนและคันจูโร มัตสึยามะ ทั้งคู่คว้าแชมป์ที่เมืองใดในญี่ปุ่น ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมดเลย
miracle man and kanjyuro matsuyama both won the title in which japanese city ?It is not neccessary to use all the tables.
table_204_854: id [ number] "#" [ number] "wrestlers" [ text] "reign" [ number] "date" [ text] "days\nheld" [ number] "location" [ text] "notes" [ text]
SELECT "location" FROM table_204_854 WHERE "wrestlers" = 'miracle man' INTERSECT SELECT "location" FROM table_204_854 WHERE "wrestlers" = 'kanjyuro matsuyama'
null
general
มีผู้ชมชาวอเมริกันกี่ล้านคนสำหรับตอน 'คำสุดท้าย'? ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many millions of US viewers for the episode 'the last word'?It is not neccessary to use all the tables.
table_28791: "Title" [ text]
SELECT "U.S. viewers (millions)" FROM table_28791 WHERE "Title" = 'The Last Word'
null
general
แต่ละหลักสูตรมีนักศึกษาที่ลงทะเบียนจำนวนกี่คน? ระบุชื่อหลักสูตรและจำนวนนักเรียนที่ลงทะเบียน โดยแสดง X ตามลำดับจากมากไปน้อย ไม่จำเป็นต้องใช้ทุกตาราง
How many registed students do each course have? List course name and the number of their registered students, display X in descending order.It is not neccessary to use all the tables.
Courses: course_id [ VARCHAR(100)] course_name [ VARCHAR(120)] course_description [ VARCHAR(255)] other_details [ VARCHAR(255)]
SELECT course_name, COUNT(*) FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id JOIN Courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id ORDER BY course_name DESC
null
general
จัดกลุ่มและนับแอตทริบิวต์ name สำหรับการแสดงภาพแผนภูมิแท่ง โดยแสดงจากน้อยไปมากตามชื่อ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Group and count the name attribute for visualizing a bar chart, display in ascending by the Name.It is not neccessary to use all the tables.
journal: Journal_ID [ int] Date [ text] Theme [ text] Sales [ int]
SELECT Name, COUNT(Name) FROM editor GROUP BY Name ORDER BY Name
null
general
ประเทศใดที่มีอันดับสูงสุดด้วย 15 เหรียญเงิน และทั้งหมดไม่เกิน 47 เหรียญ? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
What is the highest ranked nation with 15 silver medals and no more than 47 total?It is not neccessary to use all the tables.
table_33568: "Rank" [ real] "Nation" [ text] "Gold" [ real] "Silver" [ real] "Bronze" [ real] "Total" [ real]
SELECT MAX("Rank") FROM table_33568 WHERE "Silver" = '15' AND "Total" < '47'
null
general
ซาฟารีใดมีช่วงไตรมาสที่ 4 ปี 2555?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What safari has 2012 q4 as the period?It is not neccessary to use all the tables.
table_name_58: safari [ VARCHAR] period [ VARCHAR]
SELECT safari FROM table_name_58 WHERE period = "2012 q4"
null
general
ผลลัพธ์ของ Zoe และ Matt คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is Zoe and Matt's result?It is not neccessary to use all the tables.
table_19744915_16: result [ VARCHAR] couple [ VARCHAR]
SELECT result FROM table_19744915_16 WHERE couple = "Zoe and Matt"
null
general
สำหรับพนักงานที่ไม่เคยมีงานทำในอดีต ให้วาดแผนภูมิแท่งเกี่ยวกับการกระจายของ job_id และผลรวมของ department_id และจัดกลุ่มตามแอตทริบิวต์ job_id จัดอันดับตามจำนวนรหัสแผนกทั้งหมดในรูปแบบ asc โปรดไม่จำเป็น เพื่อใช้ตารางทั้งหมด
For those employees who did not have any job in the past, draw a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id, rank by the total number of department id in asc please.It is not neccessary to use all the tables.
jobs: JOB_ID [ varchar(10)] JOB_TITLE [ varchar(35)] MIN_SALARY [ decimal(60)] MAX_SALARY [ decimal(60)]
SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(DEPARTMENT_ID)
null
general
แสดงราคาตั๋วเฉลี่ย ต่ำสุด และสูงสุดสำหรับนิทรรศการทุกปีก่อนปี 2552 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.It is not neccessary to use all the tables.
exhibition: ticket_price [ INTEGER] YEAR [ INTEGER]
SELECT AVG(ticket_price), MIN(ticket_price), MAX(ticket_price) FROM exhibition WHERE YEAR < 2009
null
general
ทีมไหนทำคะแนนได้ในวันที่ 7 พฤศจิกายน ไม่จำเป็นต้องใช้ตารางทั้งหมด
what team scored on november 7It is not neccessary to use all the tables.
table_name_65: record [ VARCHAR] date [ VARCHAR]
SELECT record FROM table_name_65 WHERE date = "november 7"
null
general
สำหรับพนักงานทุกคนที่มีตัวอักษร D หรือ S ในชื่อ ให้วาดแผนภูมิกระจายเกี่ยวกับความสัมพันธ์ระหว่างเงินเดือนและค่าคอมมิชชัน_pct ไม่จำเป็นต้องใช้ตารางทั้งหมด
For all employees who have the letters D or S in their first name, draw a scatter chart about the correlation between salary and commission_pct .It is not neccessary to use all the tables.
regions: REGION_ID [ decimal(50)] REGION_NAME [ varchar(25)]
SELECT SALARY, COMMISSION_PCT FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
null
general
วันนี้ผู้ป่วย 004-86136 ได้รับปัสสาวะออกเป็นครั้งแรกเมื่อใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
when was the first time that patient 004-86136 got a urine output today?It is not neccessary to use all the tables.
allergy: allergyid [ number] patientunitstayid [ number] drugname [ text] allergyname [ text] allergytime [ time]
SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-86136')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'urine' AND DATETIME(intakeoutput.intakeoutputtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') ORDER BY intakeoutput.intakeoutputtime LIMIT 1
null
general
มีคนไข้หญิงเข้าโรงพยาบาลด่วนกี่คน?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
how many female patients had urgent hospital admission?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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.admission_type = "URGENT"
null
general
ข้อมูลเกี่ยวกับเที่ยวบินจากพิตส์เบิร์กไปซานฟรานซิสโกไม่จำเป็นต้องใช้ตารางทั้งหมด
information on flights from PITTSBURGH to SAN FRANCISCOIt is not neccessary to use all the tables.
restriction: restriction_code [ text] advance_purchase [ int] stopovers [ text] saturday_stay_required [ text] minimum_stay [ int] maximum_stay [ int] application [ text] no_discounts [ text]
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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
null
general
อายุสูงสุดของผู้ป่วยที่เข้ารับบริการในห้องฉุกเฉินและโรคหลักคือทารกแรกเกิดคือเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is maximum age of patients whose admission location is emergency room admit and primary disease is newborn?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 MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "NEWBORN"
null
general
แข่งขันวันที่เท่าไหร่ด้วยคะแนนชนะ 7 (67-72-69-69=277)?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the date of the match with a winning score of 7 (67-72-69-69=277)?It is not neccessary to use all the tables.
table_47391: "Date" [ text] "Tournament" [ text] "Runner(s)-up" [ text]
SELECT "Date" FROM table_47391 WHERE "Winning score" = '–7 (67-72-69-69=277)'
null
general
สำหรับผู้ป่วย Charley Pescatore ระบุประเภทการรับเข้าและระยะเวลาการเข้าพักในโรงพยาบาลไม่จำเป็นต้องใช้ตารางทั้งหมด
For patient Charley Pescatore, specify the admission type and duration of stay in the hospitalIt 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 demographic.admission_type, demographic.days_stay FROM demographic WHERE demographic.name = "Charley Pescatore"
null
general
การแข่งขันกีฬาโอลิมปิกฤดูร้อนปี 2000 ที่ได้เหรียญทองแดงมีเหตุการณ์อะไรเกิดขึ้นบ้าง?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What is the event in the 2000 summer olympics with a bronze medal?It is not neccessary to use all the tables.
table_79397: "Olympics" [ text] "Name" [ text] "Country" [ text] "Medal" [ text] "Event" [ text]
SELECT "Event" FROM table_79397 WHERE "Medal" = 'bronze' AND "Olympics" = '2000 summer olympics'
null
general
ฝ่ายตรงข้ามคนใดมีเกมที่ใหญ่กว่า 23, ธันวาคมมากกว่า 8 และสถิติ 8-10-7?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which opponent has a game larger than 23, December larger than 8, and record of 8-10-7?It is not neccessary to use all the tables.
table_9025: "Game" [ real] "December" [ real] "Opponent" [ text] "Score" [ text] "Record" [ text]
SELECT "Opponent" FROM table_9025 WHERE "Game" > '23' AND "December" > '8' AND "Record" = '8-10-7'
null
general
ชื่อแฟนคลับที่มีวันที่สิ้นสุดคือ 1967-11-12 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the fan title with an end date of 1967-11-12?It is not neccessary to use all the tables.
table_3323: "Writer" [ text] "Artist(s)" [ text]
SELECT "Fan Title" FROM table_3323 WHERE "End Date" = '1967-11-12'
null
general
ทีมแพ้ไปกี่ครั้งในปี 1981 ?ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
how many losses did the team have in 1981 ?It is not neccessary to use all the tables.
table_204_319: id [ number] "mlb\nseason" [ number] "team\nseason" [ number] "league" [ text] "division" [ text] "finish" [ text] "wins" [ number] "losses" [ number] "gb" [ text] "postseason" [ text] "awards" [ text]
SELECT SUM("losses") FROM table_204_319 WHERE "mlb\nseason" = 1981
null
general
ใครเป็นผู้เขียน Bludgeoning Angel Dokuro-Chan?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Who is the author of Bludgeoning Angel Dokuro-Chan?It is not neccessary to use all the tables.
table_name_49: author [ VARCHAR] title [ VARCHAR]
SELECT author FROM table_name_49 WHERE title = "bludgeoning angel dokuro-chan"
null
general
จำนวนหลาที่มี 32 เท่ากับ 20 ใน 20 ไม่จำเป็นต้องใช้ตารางทั้งหมด
What number of Yards has 32 as an In 20?It is not neccessary to use all the tables.
table_name_90: yards [ VARCHAR] in_20 [ VARCHAR]
SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32
null
general
วันที่ 11 กรกฎาคม พ.ศ. 2546 นักกีฬาคนไหนได้แสดง?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
On 11 July 2003, which athlete performed?It is not neccessary to use all the tables.
table_53296: "Event" [ text] "Record" [ text] "Athlete" [ text] "Nationality" [ text] "Date" [ text]
SELECT "Athlete" FROM table_53296 WHERE "Date" = '11 july 2003'
null
general
การแข่งขันรอบที่ 2 คืออะไร เมื่อนักแข่งคือ 'Paul Radisich'?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What is Race 2, when Driver is 'Paul Radisich'?It is not neccessary to use all the tables.
table_8330: "Driver" [ text] "Team" [ text]
SELECT "Race 2" FROM table_8330 WHERE "Driver" = 'paul radisich'
null
general
กี่ปีได้รับรางวัลเทศกาลภาพยนตร์เวนิสและชื่อเรื่องตัณหาข้อควรระวัง?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many years have an Award of venice film festival, and a Title of lust, caution?It is not neccessary to use all the tables.
table_64622: "Award" [ text] "Category" [ text] "Year" [ real] "Title" [ text] "Result" [ text]
SELECT COUNT("Year") FROM table_64622 WHERE "Award" = 'venice film festival' AND "Title" = 'lust, caution'
null
general
นับจำนวนผู้ป่วยที่มีเชื้อชาติเป็นคนผิวดำ/อเมริกันแอฟริกัน และอายุน้อยกว่า 81 ปี ไม่จำเป็นต้องใช้ตารางทั้งหมด
count the number of patients whose ethnicity is black/african american and age is less than 81?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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.age < "81"
null
general
นับจำนวนผู้ป่วยที่ได้รับน้ำเกลือปกติ 3% ไม่จำเป็นต้องใช้ทุกตาราง
count the number of patients who have been on 3% normal saline intake.It is not neccessary to use all the tables.
procedures_icd: row_id [ number] subject_id [ number] hadm_id [ number] icd9_code [ text] charttime [ time]
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = '3% normal saline' AND d_items.linksto = 'inputevents_cv')))
null
general
ก่อนปี 1990 มีกี่เกม ?ไม่จำเป็นต้องใช้ทุกโต๊ะ
how many games are there before 1990 ?It is not neccessary to use all the tables.
table_204_121: id [ number] "year" [ text] "game" [ text] "developer" [ text] "setting" [ text] "platform" [ text] "notes" [ text]
SELECT COUNT("game") FROM table_204_121 WHERE "year" < 1990
null
general
ผู้ป่วยที่วินิจฉัยชื่อสั้นว่า arthropathy nos-unspec และผลการตรวจทางห้องปฏิบัติการคือเลือดมีจำนวนเท่าใด? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the number of patients whose diagnoses short title is arthropathy nos-unspec and lab test fluid is blood?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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Arthropathy NOS-unspec" AND lab.fluid = "Blood"
null
general
วาดแผนภูมิกระจายเกี่ยวกับความสัมพันธ์ระหว่าง Student_id และ month_rental ไม่จำเป็นต้องใช้ตารางทั้งหมด
Draw a scatter chart about the correlation between student_id and monthly_rental .It is not neccessary to use all the tables.
Students_in_Detention: student_id [ INTEGER] detention_id [ INTEGER] incident_id [ INTEGER]
SELECT student_id, monthly_rental FROM Student_Addresses ORDER BY monthly_rental DESC
null
general
แสดงความสัมพันธ์ระหว่างชื่อบัญชีและจำนวนธุรกรรมของแต่ละบัญชีในแผนภูมิกระจาย ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show the relationship between account name and the number of transactions for each account in a scatter chart.It is not neccessary to use all the tables.
Order_Items: order_item_id [ INTEGER] order_id [ INTEGER] product_id [ INTEGER] product_quantity [ VARCHAR(50)] other_order_item_details [ VARCHAR(255)]
SELECT account_name, COUNT(*) FROM Financial_Transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id
null
general
กระเป๋าเงินคืออะไรเมื่อผู้ฝึกสอนคือ Aidan O'Brien?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What was the purse when the trainer was Aidan O'Brien?It is not neccessary to use all the tables.
table_name_21: purse [ VARCHAR] trainer [ VARCHAR]
SELECT purse FROM table_name_21 WHERE trainer = "aidan o'brien"
null
general
ผู้เล่นคนไหนมี 6 แอสซิสต์?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which player had 6 assists?It is not neccessary to use all the tables.
table_27569: "Player" [ text] "Rebounds" [ real] "Assists" [ real] "Steals" [ real] "Blocks" [ real] "Points" [ real]
SELECT "Player" FROM table_27569 WHERE "Assists" = '6'
null
general