input stringclasses 87
values | instruction stringlengths 0 626 | output stringlengths 1 794 |
|---|---|---|
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | ค้นหาคำที่เกี่ยวข้องกับพลังงานในส่วนเนื้อหาของโพสต์ | SELECT * FROM Posts WHERE ('body' LIKE '%energy%' OR 'body' LIKE '%energy consum%') |
มะริด มีชื่อวิทยาศาสตร์ว่าอะไร ? | Diospyros blancoi | |
อุบัติรักข้ามขอบฟ้า มีเนื้อหาเรื่องเกี่ยวกับอะไร ? | ความรักของวัยรุ่น 2 คู่ | |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
| มีการสั่งวิตามินรวมกี่รายการ | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'multivitamins' |
พอร์ตแลนด์ ตั้งอยู่ที่ใด | ตั้งอยู่ทางทิศเหนือของรัฐออริกอน ประเทศสหรัฐอเมริกา | |
CREATE TABLE table_test_31 (
"id" int,
"ejection_fraction_ef" int,
"macular_disease" bool,
"systemic" bool,
"alt" float,
"iud" bool,
"condom_with_spermicide" bool,
"gender" string,
"meropenem" bool,
"non_q_wave_myocardial_infarction" bool,
"hbcab" bool,
"unstable_angina" ... | ผู้ป่วยที่มีความเสี่ยงอย่างน้อย 2 ข้อต่อไปนี้: ความดันโลหิตสูง; โรคเบาหวานชนิดที่ ii; โรคไตเรื้อรัง; มีประวัติกล้ามเนื้อหัวใจตายหรือโรคหัวใจขาดเลือด; มีประวัติเส้นเลือดในสมองตีบ; โรคหลอดเลือดแดงส่วนปลาย | SELECT * FROM table_test_31 WHERE (CASE WHEN hypertension = 1 THEN 1 ELSE 0 END + CASE WHEN diabetic = 'ii' THEN 1 ELSE 0 END + CASE WHEN mellitus = 1 THEN 1 ELSE 0 END + CASE WHEN kidney_disease = 1 THEN 1 ELSE 0 END + CASE WHEN myocardial_infarction = 1 OR angina = 1 THEN 1 ELSE 0 END + CASE WHEN cerebral_infarction ... |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | สามารถเน้นหมวดที่ได้ 12 เครดิต หลังจากสำเร็จหรือไม่? | SELECT DISTINCT name, number FROM course WHERE credits = 12 AND department = 'EECS' |
สโมสรที่ตกรอบคัดเลือกเพลย์ออฟมาจากสมาคมฟุตบอลที่ได้สิทธิ์เพียงรอบคัดเลือกเพลย์ออฟจะได้สิทธิ์เข้าเล่นในรายการอะไร | รายการเอเอฟซีคัพ 2014 | |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | select * from posts limit 10; | SELECT * FROM Posts WHERE Score > 1000 |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
| ผู้ใช้ 50 อันดับต้นๆ จาก Iaşi (โรมาเนีย) | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, AboutMe, ProfileImageUrl FROM Users WHERE LOWER(Location) LIKE '%iasi%' ORDER BY Reputation DESC LIMIT 50 |
จักรพรรดิอังโกทรงทำสงครามสงครามแย่งชิงราชบัลลังก์กับใคร | เจ้าชายคินะชิ ผู้เป็นพระเชษฐา | |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | รับโพสต์วิกิชุมชนทั้งหมด | SELECT * FROM Posts WHERE OwnerUserId = -1 AND PostTypeId = 3 ORDER BY CreationDate DESC LIMIT 100 |
ราเชล แม็กอดัมส์ แสดงในภาพยนตร์ดัดแปลงจากบทประพันธ์เรื่องอะไร | The Notebook | |
อาคารเดิมของธรีเวิลด์เทรดเซ็นเตอร์สร้างขึ้นเพื่ออะไร | เป็นโรงแรม | |
นักคณิตศาสตร์บางท่านกล่าวว่าสี่ผู้ยิ่งใหญ่ของวงการคณิตศาสตร์มีใครบ้าง | อาร์คิมิดีส นิวตัน เกาส์ และออยเลอร์ | |
ยุทธนา เปื้องกลาง ได้รับทุนจากใคร | สมเด็จพระเทพรัตนราชสุดาฯ สยามบรมราชกุมารี | |
จัดสัน เวลลิเวอร์ สมรสกับใคร | เจน ดักลาส ฮัตชินส์ | |
CREATE TABLE procedures (
code number,
name text,
cost number
)
| ค้นหาสามขั้นตอนที่มีค่าใช้จ่ายแพงที่สุด | SELECT name FROM procedures ORDER BY cost LIMIT 3 |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | บอกฉันระยะเวลารักษาตัวใน ICU ในตอนแรกของผู้ป่วย 004-17866 | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-17866') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1 |
เครือข่ายบลูเนตเวิร์ก ของช่องอะไร | เอ็นบีซี เอบีซี | |
เป็นผู้กำกับร่วมของภาพยนตร์เรื่องอะไร ? | โบลท์ ซูเปอร์โฮ่ง ฮีโร่หัวใจเต็มร้อย และ บิ๊กฮีโร่ 6 | |
ธนาคารทิสโก้ จำกัด (มหาชน) เป็นธนาคารในประเทศใด ? | ประเทศไทย | |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
| ระดับชื่อเสียงโดยเฉลี่ยของผู้ใช้ตามปีและเดือน | SELECT AVG(Reputation * 1.0), TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m') FROM Users GROUP BY TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m') ORDER BY TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%m') |
ทะเลแดง มีความยาวประมาณเท่าไร | 1900 กิโลเมตร | |
ณภัทร ภู่ประเสริฐ มีอาชีพอะไร | นักฟุตบอล | |
การป้องกันไม่ให้เกิดโรคไข้เลือดออกทำได้อย่างไร | ทำโดยลดจำนวนแหล่งเพาะพันธุ์และจำนวนของยุง และป้องกันมิให้ยุงลายกัด | |
ปลาบึกมีชื่อทางวิทยาศาสตร์ว่าอย่างไร | ชื่อวิทยาศาสตร์: Pangasianodon gigas | |
ปลาตะพัดมีชื่อมีเรียกทางวิทายาศาสตร์ว่าอย่างไร | ชื่อวิทยาศาสตร์: Scleropages formosus | |
CREATE TABLE Assessment_Notes (
notes_id INTEGER,
student_id INTEGER,
teacher_id INTEGER,
date_of_notes DATETIME,
text_of_notes VARCHAR(255),
other_details VARCHAR(255)
)
| กราฟเส้นแสดงการประเมินในแต่ละวันที่เท่าไหร่ และเรียงลำดับในแกน x จากมากไปน้อย | SELECT date_of_notes, COUNT(date_of_notes) FROM Assessment_Notes ORDER BY date_of_notes DESC |
วันที่ 23 มีนาคม พ.ศ. 2449 ไทยสูญเสียดินแดนใดบ้าง | ดินแดนมณฑลบูรพา คือเขมรส่วนใน ได้แก่เสียมราฐ พระตะบอง และศรีโสภณ | |
ซาวน่าหรรษา เป็นรายการแนวอะไร | รายการวาไรตี้โชว์ | |
โรงเรียนบ้านกกค้อกกโพธิ์ .ในการเปิดสอนครั้งเรกนั้นมีจำนวนนักเรียนกี่คน | 71 คน | |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | คนไข้เลขที่ 015-23047 เข้าห้อง ICU มาแล้วกี่ชั่วโมง | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '015-23047' AND patient.unitdischargetime IS NULL |
ต้นแก้วออกดอกลักษณะใด | ดอกเป็นช่อใหญ่ ช่อสั้นออกตามปลายกิ่งหรือยอด ช่อหนึ่งมีดอกประมาณ 5-10 ดอก แต่ละดอกมีกลีบดอก 5 กลีบ | |
วัดสุวรรณคีรีวิหาร เป็พระอะไร | พระอารามหลวง ชั้นตรี ชนิดสามัญ | |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
| มีการสั่งให้ใช้แลคเตทริงเกอร์ IV : ถุงละ 1,000 มล กี่ครั้ง | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'lactated ringers iv : 1000 ml bag' |
พระเจ้าบรมวงศ์เธอ พระองค์เจ้างอนรถ พระนามเดิมว่าอะไร | พระองค์เจ้าชายงอนรถ | |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | คำนวณระยะเวลาที่ผู้ป่วย 002-56853 พักใน icu ครั้งสุดท้าย | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-56853') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | ผู้ป่วยรายที่ 027-142451 นอนอยู่ที่หอ 966 ในการเข้ารับบริการครั้งนี้เป็นเวลากี่ชั่วโมงแล้ว | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '027-142451' AND patient.wardid = 966 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1 |
เพื่อนพ้องน้องพี่ เป็นบริษัทเกี่ยวกับอะไร | ดำเนินธุรกิจสื่อสารมวลชน | |
แผ่นดินไหวในมณฑลยูนนาน เกิดขึ้นที่ประเทศอะไร | สาธารณรัฐประชาชนจีน | |
คาร์ล กุสตาฟ โมแซนเดอร์ เกิดที่เมืองใด | เกิดที่เมืองคาลมาร์ | |
ปลาแปบควายนั้นเป็นปลาที่อยู่วงศ์ย่อยของ Cultrinae อยากทราบว่าอยู่สกุลใด | สกุล Paralaubuca | |
สนามกีฬาโอลิมปิก เริ่มก่อสร้างในปีอะไร | ค.ศ. 2000 | |
ประยุทธ์ จันทร์โอชานำคณะรักษาความสงบแห่งชาติทำรัฐประหารเมื่อวันที่เท่าไหร่ | 22 พฤษภาคม 2557 | |
กองทัพอาหรับ นำโดย คอลิด บิน วะลีด เข้ายึดครองซีเรีย ในวันที่เท่าไร | 20 สิงหาคม | |
คณะพาณิชยศาสตร์และการบัญชี มหาวิทยาลัยธรรมศาสตร์ ก่อตั้งเมื่อวันที่เท่าไหร่ | วันที่ 23 พฤศจิกายน 2481 | |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
| เที่ยวบินมีชั้นบริการแบบใดบ้าง | SELECT DISTINCT booking_class FROM class_of_service |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | มีผู้ป่วยออกจากโรงพยาบาลกี่คนในปีนี้ | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
| ส่วนใหญ่ปิดและลบจุดที่ผู้ใช้จำหน่าย ประวัติการโพสต์ที่ถูกลบและปิด | SELECT Text, COUNT(Id) FROM PostHistory WHERE PostHistoryTypeId IN (10, 12) AND CreationDate > '2011-12-31' AND NOT Text LIKE '%},{%' GROUP BY Text HAVING COUNT(Id) > 99 ORDER BY COUNT(Id) DESC |
การเลือกตั้งสมาชิกสภาแห่งชาติ ใครเป็นผู้นำ | คิม จ็อง-อิล | |
เพีย ซุนด์ฮาแก ได้รับการประกาศให้เป็นหัวหน้าผู้ฝึกสอนฟุตบอลหญิงทีมชาติสหรัฐ เมื่อใด | 13 พฤศจิกายน ค.ศ. 2007 | |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
| แหล่งที่มาและการแก้ไขที่มี <i> | SELECT PostHistoryTypeId, PostId AS "post_link", CreationDate, Comment, Text FROM PostHistory WHERE PostHistoryTypeId IN (2, 5) AND Text LIKE '%<i>%' ORDER BY CreationDate DESC |
กงไกรลาศ เดิมเป็นแขวงหนึ่งของเมืองอะไร | เมืองสุโขทัย | |
ฟุรุซะโตะ รูปแบบซีดีขนาดกี่เซนติเมตร | 8 เซนติเมตร | |
ฮันส์ โมโดร เขาถูกตัดสินลงโทษการทุจริตการเลือกตั้งโดยศาลแขวงเดรสเดินในปีอะไร | ค.ศ. 1995 | |
พัทธ์ธีรา ศรุติพงศ์โภคิน จบการศึกษาจากประเทศอะไร | ประเทศนิวซีแลนด์ | |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
| รวมยอดคะแนนสูงสุดจากความคิดเห็น | SELECT UserId AS "user_link", SUM(Score) AS "total_score", COUNT(*) AS "#comments" FROM Comments WHERE UserId IN ('##UserID##') GROUP BY UserId ORDER BY SUM(Score) DESC |
CREATE TABLE Tourist_Attractions (
Tourist_Attraction_ID INTEGER,
Attraction_Type_Code CHAR(15),
Location_ID INTEGER,
How_to_Get_There VARCHAR(255),
Name VARCHAR(255),
Description VARCHAR(255),
Opening_Hours VARCHAR(255),
Other_Details VARCHAR(255)
)
| แสดงวิธีที่แตกต่างในการไปสถานที่ท่องเที่ยวและจำนวนสถานที่ท่องเที่ยวที่สามารถเข้าถึงได้ด้วยวิธีการที่เกี่ยวข้อง และพล็อตเป็นแผนภูมิแท่ง | SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There |
ปลาจีน ซึ่งล้วนแต่เป็นปลาในวงศ์อะไร | วงศ์ปลาตะเพียน | |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | ในปีนี้ผู้ป่วยหมายเลข 028-47306 มาโรงพยาบาลครั้งสุดท้าย เพื่อทำอะไร | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '028-47306' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 |
ชูชัย พระขรรค์ชัย หัดมวยครั้งแรกกับใคร | ครูปูน พระขรรค์ชัย | |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | ผู้ป่วยรหัส 009-15 เข้ารับการรักษาในหอผู้ป่วยใดเป็นหอผู้ป่วยแรกในปีที่แล้ว | SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-15') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY patient.unitadmittime LIMIT 1 |
ออทโทที่ 1 ดยุกแห่งเบราน์ชไวค์-ลือเนบูร์ก เป็นยุคคนแรกระหว่างปีอะไร | ค.ศ. 1235 | |
การเลือกตั้งแบบบัญชีรายชื่อในประเทศไทย ตั้งขึ้นในปีอะไร | พุทธศักราช 2550 | |
อัลละฮ์เปอลีฮารากันซุลตัน ประพันธ์เนื้อร้องโดยใคร | เปองีรัน ฮัจญี มูฮัมมัด ยูซุฟ บิน อับดุล ราฮิม | |
เมล บอชเนอร์ เกิดปีอะไร | 1940 | |
หน่วยความจำแฟลช มีลักษณะอย่างไร | การทำงานเป็นอิเล็กทรอนิกส์ทั้งหมด | |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | น้ำหนักเพิ่มขึ้นจากครั้งก่อนมาเท่าไร | SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-76924' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1) ... |
สนามกีฬาติณสูลานนท์ อยู่ตำบลอะไร | ตำบลบ่อยาง | |
ออร์ซันมีเกเล เป็นโบสถ์อะไร | คาทอลิก | |
พังก์โกส์อะคูสติก 2 อยู่ค่ายเพลงอะไร | ค่ายเพลงเฟียร์เลสเรเคิดส์ | |
ปลากระเบนขาวมีชื่อทางวิทยาศาสตร์ว่าอย่างไร | ชื่อวิทยาศาสตร์: Himantura signifer | |
ครุยเสนามาตย์ มีกี่ชั้น | 3 ชั้น | |
CREATE TABLE Products (
product_id INTEGER,
product_type_code VARCHAR(10),
product_name VARCHAR(80),
product_price DECIMAL(19,4)
)
| คืนค่าราคาเฉลี่ยของแต่ละประเภทผลิตภัณฑ์ แสดงผลด้วยแผนภูมิแท่ง ฉันต้องการจัดเรียงแบบเรียงจากน้อยไปมากตามแกน Y | SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code ORDER BY AVG(product_price) DESC |
Collaborative software คือแนวคิดที่สอดคล้องกับอะไร | Computer-supported cooperative work (CSCW) | |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
| 10 อันดับสูงสุดผู้ใช้ในประเทศ. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%##CountryName##%') ORDER BY Reputation DESC LIMIT 10 |
เอ็มบีเคเอนเตอร์เทนเมนต์ ชื่อเดิมชื่อว่าอะไร | คอร์คอนเทนส์มีเดีย | |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | คุณคิดว่า 579 มันใหญ่แค่ไหน | SELECT DISTINCT num_enrolled FROM course WHERE department = 'EECS' AND number = 579 |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | น้ำหนักของผู้ป่วย 006-118236 ล่าสุดเทียบกับน้ำหนักในครั้งล่าสุดที่เคยวัดที่โรงพยาบาลก่อนหน้าครั้งล่าสุด แตกต่างกันอย่างไร | SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-118236' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS N... |
แหลมโฟรเวิร์ดตั้งอยู่ที่ใด | จุดทางใต้สุดของแผ่นดินใหญ่ของทวีปอเมริกาใต้ อยู่ในแคว้นมากายาเนสและลาอันตาร์ตีกาชีเลนาของประเทศชิลี | |
ลฺหวี่ ปู้เหวย์ อยู่ในยุคอะไร | ยุครณรัฐ | |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
| รับความคิดเห็นตามรหัสผู้ใช้ | SELECT Id AS "comment_link", Score, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('%##CommentText##%') AND UserId = '##UserId##' ORDER BY Score DESC |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
| ค้นหาผู้ใช้โดยชื่อที่แสดง คัดกรองผู้ใช้ตามชื่อที่แสดง และชื่อประเทศ | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location, WebsiteUrl FROM Users WHERE LOWER(Location) LIKE LOWER('%##CityName##%') AND LOWER(DisplayName) LIKE LOWER('%##UserName##%') ORDER BY Reputation DESC |
ปลากัดอมไข่กระบี่ มีชื่อเรียกอีกชื่อหนึ่งว่าอะไร | ปลากัดหัวโม่งกระบี่ | |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | ค้นหาคำถามโดยใช้คีย์เวิร์ดใดๆ | SELECT p.CreationDate, p.Body, p.Id AS "post_link" FROM Posts AS p WHERE p.PostTypeId = 1 AND p.Body LIKE '%##keyword1##%' LIMIT 100 |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
| ผู้ใช้ที่มีชื่อเสียงซึ่งไม่ได้เข้าชมเว็บไซต์อีกต่อไป | SELECT Id AS "user_link", LastAccessDate FROM Users WHERE Reputation >= '##MinReputation##' ORDER BY LastAccessDate |
ซากูมะ โชซัง ภรรยาของเขาคือใคร | อาราอิ มัน | |
This Little Life ได้รับรางวัลอะไร | รางวัลบาฟต้า | |
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status_code VARCHAR(10),
order_date DATETIME
)
| แสดงรายการรหัสคำสั่งซื้อ และรหัสลูกค้าสำหรับคำสั่งซื้อที่อยู่ในสถานะยกเลิก โดยมีการจัดเรียงตามวันสั่งซื้อโดยใช้กราฟแบบกระจาย | SELECT order_id, customer_id FROM Customer_Orders WHERE order_status_code = "Cancelled" ORDER BY order_date |
แหล่งแซนาดูแสดงถึงวัฒนธรรมของชนชาติใด | การผสมผสานวัฒนธรรมของชาวมองโกลเร่ร่อนกับชาวจีนฮั่นเข้าด้วยกัน | |
อิซาเบล ลูคัส รู้จักครั้งแรกในละครโทรทัศน์ของอะไร | ออสเตรเลีย | |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | คำถามที่เข้าชมสูงสุดในปี 2015 | SELECT Title, ViewCount, Score FROM Posts WHERE CreationDate >= '20150101' ORDER BY ViewCount DESC |
ชะมดเช็ด มีแถบสีดำและขาวบริเวณไหน | ลำคอ | |
CREATE TABLE Invoices (
Invoice_ID INTEGER,
Order_ID INTEGER,
payment_method_code CHAR(15),
Product_ID INTEGER,
Order_Quantity VARCHAR(288),
Other_Item_Details VARCHAR(255),
Order_Item_ID INTEGER
)
| แสดงเป็นแท่งแผนภูมิ ซึ่งแยกประเภทรหัสวิธีการชำระเงินกับจำนวนคำสั่งซื้อที่ดำเนินการ และแสดงจาก X ในลำดับที่เพิ่มขึ้น | SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY payment_method_code |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | ผู้ป่วย 006-93378 มีน้ำหนักที่วัดครั้งที่สองในครั้งแรกที่ไปเยี่ยมที่โรงพยาบาลต่างจากครั้งแรกที่ไปเยี่ยมที่โรงพยาบาลเท่าไหร่ | SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-93378' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL OR... |
เลิฟเกม ร้องโดยใคร | เลดี้ กาก้า | |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
) | ผู้ป่วยรายที่ 594 มีอายุเท่าไหร่ในระหว่างการเข้ารับการรักษาในโรงพยาบาลครั้งสุดท้าย | SELECT admissions.age FROM admissions WHERE admissions.subject_id = 594 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | คำถาม (ทั้งหมดที่ตอบ ตอบไม่ได้ ผู้ใช้) ตามวันที่ | SELECT DATE(p.CreationDate) AS date, COUNT(DISTINCT p.OwnerUserId) AS users, SUM(1) AS total, SUM(CASE WHEN COALESCE(p.AcceptedAnswerId, 0) = 0 THEN 1 ELSE 0 END) AS unanswered, SUM(CASE WHEN COALESCE(p.AcceptedAnswerId, 0) = 0 THEN 0 ELSE 1 END) AS answered FROM Posts AS p GROUP BY DATE(p.CreationDate) ORDER BY DATE(p... |
ราชสหพันธ์ฟุตบอลสเปน เป็นหน่วยงานที่ทำหน้าที่ดูแลกิจการฟุตบอลต่าง ๆ ในประเทศสเปน ก่อตั้งขึ้นเมื่อปี ค.ศ. ใด? | 1913 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.