input stringclasses 87
values | instruction stringlengths 0 626 | output stringlengths 1 794 |
|---|---|---|
สปีดเดมอน ว่างจำหน่ายเมื่อไร | 12 ตุลาคม ค.ศ. 1989 | |
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
)
| ผู้ใช้ใน Valencia จัดเรียงตามชื่อเสียง | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%valencia%' OR UPPER(Location) LIKE '%VLC' ORDER BY Reputation DESC |
โรงเรียนปัวสังกัดสำนักงานเขตพื้นที่การศึกษามัธยมศึกษาเขตใด | เขต 37 (แพร่-น่าน) | |
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,
... | ผู้ป่วยหมายเลข 018-20179 เข้ารับการรักษาในโรงพยาบาลผ่านห้องผ่าตัดครั้งแรกวันที่เท่าไร เมื่อ 1 ปีที่ผ่านมา | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaladmitsource = 'operating room' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaladmittime LIMIT 1 |
นายอนันต์ ได้รับเลือกตั้งสมัยแรก จากการเลือกตั้งสมาชิกสภาผู้แทนราษฎรไทยเป็นการทั่วไป ในปีใด ? | พ.ศ. 2512 | |
ราคาเท่าไรหรอครับ | ไม่ทราบราคาของสินค้า | |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
| เพศของคนไข้หมายเลข 22315 คืออะไร | SELECT patients.gender FROM patients WHERE patients.subject_id = 22315 |
เป็นพระธิดาพระองค์สุดท้องใน เจ้าหญิงที่มีชื่อว่า ? | เจ้าหญิงมาเรีย แคโรไลนาแห่งบูร์บง-ซิซิลีทั้งสอง | |
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
)
| แผนแบบสอบถาม GroupBy เมื่อเทียบกับแผนแบบสอบถาม Distinct | SELECT AGE FROM Users GROUP BY AGE |
ปลานิลมีชื่อเรียกทางวิทยาศาสตร์ว่าอย่างไร | ชื่อวิทยาศาสตร์ว่า Oreochromis niloticus | |
ออร์ซันมีเกเล ชื่อโบสถ์แปลว่าอะไร | สวนครัวของนักบุญมีคาแอล | |
ศาสตราจารย์ ออตโต เจสเปอร์เซน อยู่ประเทศอะไร | เดนมาร์ก | |
CREATE TABLE invoices (
id number,
customer_id number,
invoice_date time,
billing_address text,
billing_city text,
billing_state text,
billing_country text,
billing_postal_code text,
total number
)
| แสดงรายการจำนวนใบแจ้งหนี้และยอดเงินใบแจ้งหนี้รวมจากแคลิฟอร์เนีย | SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = "CA" |
แต่ละอำเภอแบ่งส่วนย่อยออกเป็นอะไร | ตำบล | |
อุทยานพระบรมราชานุสรณ์ พระบาทสมเด็จพระพุทธเลิศหล้านภาลัย เรียกสั้น ๆ ว่าอะไร | อุทยาน ร.2 | |
เรือสำราญที่ใหญ่ที่สุดในโลกคือเรืออะไรในปัจจุบัน | โอเอซิสออฟเดอะซีส์ | |
ซัมเมอร์สแลม เป็นรายการอะไร | รายการเพย์-เพอร์-วิว | |
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-149724 ในเดือนนี้คืออะไรครับ | SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-149724') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month',... |
"โทคิเมคิเมโมเรียล ออนไลน์" ซึ่งเป็นหนึ่งในซีรีส์เกมส์จีบสาวชื่อดังเรื่องอะไร ? | โทคิเมคิเมโมเรียล | |
ผู้ว่าราชการเมืองร้อยเอ็ดท่านแรก ดำรงตำแหน่งเมื่อไร | พ.ศ. ๒๔๔๘-๒๔๕๑ | |
แถบเมอบิอุสถูกค้นพบเมื่อไหร่ | พ.ศ. 2401 (ค.ศ. 1858) | |
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 Id AS "post_link", Score FROM Posts AS p WHERE YEAR(CreationDate) = '##year?2016##' AND p.PostTypeId = 2 ORDER BY Score DESC LIMIT 10 |
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 TIME_TO_STR(CreationDate, '%W'), COUNT(1) FROM Posts WHERE PostTypeId = 1 GROUP BY TIME_TO_STR(CreationDate, '%W') |
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 q.Id AS "post_link", q.Score, q.ViewCount, q.AnswerCount FROM Posts AS q WHERE q.PostTypeId = 1 AND q.ClosedDate IS NULL ORDER BY q.AnswerCount, q.ViewCount DESC |
ตราแผ่นดินของเบลีซ เริ่มใช้มาตั้งเเต่เมื่อไหร่ | พ.ศ. 2450 | |
เลนส์ตาที่ขุ่นทำให้เกิดสิ่งใด | แสงผ่านได้แย่กว่าปกติ | |
บรูซลีเป็นผู้คิดค้นศิลปะป้องกันตัวที่ชื่อว่าอะไร | จีทคุนโด้ | |
บริษัท กัลฟ์ เจพี จำกัด (GJP) ถือหุ้นร้อยละ เท่าไหร่ ? | ร้อยละ 40.0 | |
กามเทพออกศึก สร้างจาก ? | นิยายชื่อเดียวกัน | |
ภาษาเอิร์สยา อยู่ประเทศอะไร | ประเทศรัสเซีย | |
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 Title, ViewCount FROM Posts |
เจ้าชายนาเยฟ บิน อับดุลลาซิซ อัล ซาอุด สิ้นพระชนม์วัที่ ? | วันที่ 16 มิถุนายน ค.ศ. 2012 | |
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 Id AS "post_link", OwnerDisplayName FROM Posts WHERE OwnerDisplayName = '##UserDisplayname##' |
ชื่อเต็มของฮอกวอตส์คืออะไร | โรงเรียนคาถาพ่อมดแม่มดและเวทมนตร์ศาสตร์ฮอกวอตส์ (อังกฤษ: Hogwarts School of Witchcraft and Wizardry) | |
กรุงมินสค์ มีประชากรทั้งหมดกี่คน | 1,780,000 คน | |
ลัทธ์กมล ปิ่นโรจน์กีรติ ชื่อเล่นว่าอะไร | พิม | |
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
) | หาจำนวนผู้ป่วยที่เข้ารับการรักษาที่โรงพยาบาลตั้งแต่ 1 ปีก่อน | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-1 year') |
ขอทราบชื่อสินค้าหน่อย | Grey Circle | |
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
)
| ระยะเวลาที่ต้องนอนพักรักษาตัวของคนไข้หมายเลข 26195 ในการเข้ารักษาตัวในโรงพยาบาลครั้งแรกคือระยะเวลายาวนานเท่าไร | SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 26195 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1 |
นอตทิงแฮม (อังกฤษ: Nottingham นอตทิงเงิม) เป็นนครและเมืองหลวงของ | มณฑลนอตทิงแฮมเชอร์ในภาคการปกครองมิดแลนด์สตะวันออกของอังกฤษ และเป็นหนึ่งในกลุ่มเมืองใหญ่หลักของอังกฤษ | |
สมาคมฟุตบอลสโลวาเกีย่อตั้งในปีใด ? | ค.ศ. 1993 | |
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
)
| ผู้ใช้ที่มีอีเมลของ Stack Exchange Inc. ในส่วน 'เกี่ยวกับฉัน' โดเมนอีเมลที่มี: stackexchange.com และ stackoverflow.com | SELECT Id AS "user_link", AboutMe, WebsiteUrl FROM Users WHERE (AboutMe LIKE '%@stackexchange.com%' OR AboutMe LIKE '%@stackoverflow.com%' OR AboutMe LIKE '%valued associate%') |
อาคารเดิมของธรีเวิลด์เทรดเซ็นเตอร์มีความสูงเป็นอันดับใดของโลก | เป็นอาคารที่สูงที่สุดอันดับที่ 5 | |
เนอร์วานาประสบความสำเร็จกับซิงเกิลใด | Smells Like Teen Spirit | |
สะพานเหญิตเตินมีความกว้างทั้งหมดกี่ฟุต | 109 ฟุต | |
บริษัท อกริเพียว โฮลดิ้งส์ เป็นบริษัทประเภทอะไร | จำกัด (มหาชน) | |
พิพิธบางลำพู สร้างขึ้นเพื่ออะไร | ส่งเสริมและพัฒนาชุมชนบางลำพูให้เป็นแหล่งท่องเที่ยวบริเวณเกาะรัตนโกสินทร์ | |
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 TIME_TO_STR(CreationDate, '%h') AS hour, COUNT(CASE WHEN PostTypeId = 1 THEN 1 END) AS questions, COUNT(CASE WHEN PostTypeId = 2 THEN 1 END) AS answers FROM Posts WHERE PostTypeId IN (1, 2) GROUP BY TIME_TO_STR(CreationDate, '%h') |
วิยะดา อุมารินทร์ จบการศึกษาอะไร | โรงเรียนอัสสัมชัญคอนแวนต์ | |
วีกิมีกิ ได้เปิดเผยชื่อโปรเจกซ์ I-teen girls อย่างเป็นทางการชื่อว่าอะไน | วีกิ มีกิ | |
สโมสรฟุตบอลเซี่ยงไฮ้ เอสไอพีจี มีความจุเท่าไร | 56,842 ที่นั่ง | |
ใน พ.ศ. 2482 โรงเรียนที่เขาเรียนอยู่ปิดตัวเพราะขาดแคลนเงิน เขาจึงเข้าศึกษาในโรงเรียนของนิกายใด ? | นิกายเมโทดิสต์ | |
เอ๋อเหรอ ออกฉายเมื่อวันที่เท่าไร | 6 มกราคม พ.ศ. 2548 | |
CREATE TABLE 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
)
| ในช่วง 2 ปีที่ผ่านมา desmopressin nasal ได้สั่งจ่ายไปทั้งหมดกี่ครั้ง | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'desmopressin nasal' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-2 year') |
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,
... | ผ่านมาแล้วกี่ชั่วโมง นับตั้งแต่วันแรกที่คนไข้หมายเลข 032-24135 เข้ารับการรักษาในหอผู้ป่วย 1068 | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '032-24135' AND patient.wardid = 1068 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1 |
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' |
เทอร์โบ หรืออีกชื่อหนึ่งว่าอะไร | เทอร์โบชาร์จเจอร์ | |
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
)
| คนไข้หมายเลข 8569 เข้ารับการรักษาครั้งล่าสุดที่โรงพยาบาลในปีนี้ได้อย่างไร | SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 8569 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY admissions.admittime DESC LIMIT 1 |
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
)
| ผู้ใช้งาน Top 20 ที่ใช้ชื่อ DavidG ผู้ใช้งาน SO Top 20 จากประเทศจีน | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(DisplayName) = 'jon skeet' ORDER BY Reputation DESC LIMIT 20 |
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
)
| 4 ปีที่แล้ว คนไข้หมายเลข 52604 เข้ารับการรักษาที่โรงพยาบาลกี่โมง | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 52604 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-4 year') |
มูลนิธิมวยโลก ดำเนินงานโดยใคร | นายแจ๊ค เรนนี่ | |
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 |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
| คอมเมนต์ยอดนิยมสูงสุดสำหรับผู้ใช้ใน SFF | SELECT PostId AS "post_link", Score, Text FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC LIMIT 250 |
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.Id AS "post_link" FROM Posts AS p WHERE p.PostTypeId = 2 AND (p.Body LIKE '%I have never%' OR p.Body LIKE '%I''ve never%' OR p.Body LIKE '%never tried%') |
เทศบาลตำบลจันทบเพชร เดิมเป็นองค์การบริหารอะไร | ส่วนตำบลจันทบเพชร | |
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 Id BETWEEN 6000 AND 6500 |
CREATE TABLE VoteTypes (
Id number,
Name text
)
| ผู้ใช้ที่ได้คะแนนสูงสุด X อันดับแรก ผู้ใช้ที่ทำคะแนนได้เร็วที่สุด | SELECT * FROM VoteTypes |
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
)
| ผู้ป่วยรายสุดท้าย 96404 ออกจากโรงพยาบาล ตอนไหน | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 96404 ORDER BY admissions.dischtime 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 COUNT(DISTINCT p.AcceptedAnswerId), p2.OwnerUserId FROM Posts AS p, Posts AS p2 GROUP BY p2.OwnerUserId ORDER BY COUNT(DISTINCT p.AcceptedAnswerId) 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
)
| ผู้ใช้ SO สูงสุด 2500 คนแรกจากเยอรมนี | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%deutschland%' OR LOWER(Location) LIKE '%germany%' ORDER BY Reputation DESC LIMIT 2500 |
อันดับปลาซีกเดียวมีชื่อทางวิทยาศาสตร์ว่าอย่างไร | ชื่อวิทยาศาสตร์ว่า Pleuronectiformes | |
ซูเปอร์โบวล์ครั้งที่ 52 แข่งขันสนามอะไร | สนามยูเอสแบงค์ สเตเดียม | |
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
)
| ผู้ใช้งาน 150 คนแรกจากประเทศจีน ผู้ใช้งาน SO 150 คนแรกจากจีน | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%sweden%' OR UPPER(Location) LIKE '%SWEDEN%' OR Location LIKE '%SWEDEN%' AND Reputation >= 0 ORDER BY Reputation DESC LIMIT 150 |
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
)
| คนไข้ 42473 มาโรงพยาบาลเมื่อกี่ชั่วโมงแล้ว | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 42473 AND admissions.dischtime IS NULL |
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,
... | จนถึงเมื่อ 4 ปีที่แล้ว คนไข้หมายเลข 027-53836 เคยไปห้องฉุกเฉินไหม? | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '027-53836' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-4 year') |
ถิรวัฒน์ เลิศพิชชาพัชร์ จบการศึกษาอะไร | โรงเรียนเทพศิรินทร์ | |
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 FROM Users WHERE LOWER(Location) LIKE '%pune%' OR UPPER(Location) LIKE '%PUNE%' OR Location LIKE '%Pune%' AND Reputation >= 1000 ORDER BY Reputation DESC |
ชวด มีสัญลักษณ์เป็นอะไร | หนู | |
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-64535 เข้ามานอนโรงพยาบาลครั้งแรกรอบปีนี้ด้วยสาเหตุใด | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '002-64535' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY patient.hospitaladmittime LIMIT 1 |
สุภรภ์เพ็ญ หลวงเทพนิมิต เป็นรองเลขานุการของใคร | พระองค์สมเด็จพระนางเจ้าสิริกิติ์ พระบรมราชินีนาถ | |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
| `Comment` ซ้ำสำหรับ `PostHistoryTypeId IN (33, 34)` | SELECT Comment, COUNT(*) AS "Count" FROM PostHistory WHERE PostHistoryTypeId IN (33, 34) GROUP BY Comment HAVING COUNT(*) > 2 ORDER BY 'Count' DESC |
แซตเทอร์นาเลียคืออะไร | เทศกาลโรมันโบราณ | |
เลสลีนีลเซนผ่านการแต่งงานมากี่ครั้ง | 4 ครั้ง | |
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 invoices (
id INTEGER,
customer_id INTEGER,
invoice_date TIMESTAMP,
billing_address VARCHAR(70),
billing_city VARCHAR(40),
billing_state VARCHAR(40),
billing_country VARCHAR(40),
billing_postal_code VARCHAR(10),
total NUMERIC(10,2)
)
| แสดงรายการจำนวนใบแจ้งหนี้จากสหรัฐอเมริกา แยกตามแต่ละรัฐ แสดงภาพโดยการสร้างแผนภูมิแท่ง | SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state |
เดอะว้าวลาว ออกอากาศช่วงไหน | ทุกวันเสาร์เวลา 19.30 น. - 20.30 น. | |
GOOD TV จากช่องอะไร | เนกซ์สเตป | |
พงษ์ศักดิ์ จันทรุกขา เกิดที่จังหวัดอะไร | จังหวัดอุบลราชธานี | |
แยชือ ดูแด็ก เป็นคนประเทศอะไร | ประเทศโปแลนด์ | |
มหกรรมกีฬาโอลิมปิกฤดูร้อนครั้งที่ 20 จัดขึ้นเมืองอะไร | ที่เมืองมิวนิก | |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
| สำหรับโพสต์ที่สร้างในปี 2017 เวลาโดยเฉลี่ยระหว่าง คำถามที่ถูกสร้างและคำตอบที่ได้รับการยอมรับ | SELECT CreationDate FROM PostFeedback WHERE CAST(CreationDate AS DATETIME) BETWEEN '2017-01-01 00:00:00' AND '2017-12-31 23:59:59' |
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... | ฉันกำลังมองหาคอร์สเรียนที่ขึ้น 9 หน่วยกิต มีวิชาใดบ้าง | SELECT DISTINCT name, number FROM course WHERE credits = 9 AND department = 'EECS' |
พงษ์ศักดิ์ จันทรุกขา ชื่อเดิมว่าอะไร | นายสงคราม | |
อุทยานแห่งชาติเขาใหญ่ ตั้งอยู่ในอยู่พื้นที่ กี่อำเภอ | 11 อำเภอ | |
หมู่บ้านประวัติศาสตร์ฮาฮเวและยังดงได้ขึ้นทะเบียนเป็นมรดกโลกที่เมืองใด และประเทศอะไร ? | เมืองเซบิยา ประเทศสเปน | |
ป้องกันแชมป์ครั้งที่ 1 กับใคร | โมฮัมหมัด นูร์ฮูดา | |
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
)
| ชื่อสามัญมากที่สุดที่ใช้กับ Jon | SELECT DisplayName, COUNT(*) AS total FROM Users WHERE DisplayName LIKE 'Jon %' GROUP BY DisplayName ORDER BY DisplayName DESC LIMIT 10 |
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
)
| ตั้งแต่ปี 2104 คนไข้หมายเลข 70516 มาโรงพยาบาลครั้งสุดท้ายตอนไหน | SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 70516 AND STRFTIME('%y', admissions.admittime) >= '2104' ORDER BY admissions.admittime DESC LIMIT 1 |
ฟุตบอลทีมชาติปารากวัย เข้าร่วมฟุตบอลโลกกี่ครั้ง | 3 ครั้ง | |
มีการปรับปรุงบทนิยามของการตายเสียใหม่เพื่อให้สอดคล้องกับสถานการณ์ที่เปลี่ยนแปลงไป ซึ่งความจำเป็นเช่นว่านี้เกิดต้องกระทำรีบด่วนขึ้นเมื่ออุปกรณ์การพยุงชีวิต เช่นอะไร | การปลูกถ่ายอวัยวะ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.