input stringclasses 87
values | instruction stringlengths 0 626 | output stringlengths 1 794 |
|---|---|---|
วิทยาการคอมพิวเตอร์เกี่ยวกับด้านไหนบ้าง | ด้านซอฟต์แวร์ ฮาร์ดแวร์ และ เครือข่าย | |
จังหวัดเฟลโฟลันด์ ตั้งอยู่ส่วนในของประเทศ | ตั้งอยู่ตอนกลางของประเทศ | |
สมเด็จพระเจ้าอยู่หัวมหาวชิราลงกรณ บดินทรเทพยวรางกูร พระราชทานพระราโชวาท ได้พระทานราชโอวาทวันเด็กแห่งชาติ ปีอะไร | 2562 | |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
| ผู้ป่วยเลขที่ 7524 เกิดวันที่เท่าไหร่ครับ/คะ | SELECT patients.dob FROM patients WHERE patients.subject_id = 7524 |
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
)
| ผู้ป่วย 62977 ในปี 2101 เข้ารักษาตัวในโรงพยาบาลครั้งแรกเมื่อใด | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 62977 AND STRFTIME('%y', admissions.admittime) = '2101' ORDER BY admissions.admittime LIMIT 1 |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
| ยาที่ได้รับตามความต้องการมาแล้ว 4 ปีมีจำนวนกี่ใบสั่งยา | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'definity' AND DATETIME(medication.drugstarttime) >= 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 Id AS "user_link", DisplayName, Reputation FROM Users ORDER BY Reputation DESC LIMIT 500 |
พระเจ้าบรมวงศ์เธอ พระองค์เจ้านุ่มเป็นใคร | พระราชธิดาพระองค์ที่ 11 ในพระบาทสมเด็จพระพุทธยอดฟ้าจุฬาโลกมหาราช | |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
| ในช่วง 4 ปีที่ผ่านมามีการสั่งยา enoxaparin sodium 40 mg/0.4ml sc soln จำนวนกี่ใบสั่งยา | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'enoxaparin sodium 40 mg/0.4ml sc soln' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-4 year') |
แบร์ กริลพูดได้กี่ภาษา | 3 ภาษา | |
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 ViewCount >= 100 AND Score = 0 ORDER BY ViewCount DESC |
ดีปา นูซันตารา ไอดิต คือใคร | ป็นผู้นำพรรคคอมมิวนิสต์อินโดนีเซียระหว่าง พ.ศ. 2494 – 2508 | |
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... | évolution de la moyenne et du nombre de questions en 2015 par semaine. Evolution of mean score and number of questions in 2015 by week | SELECT TIME_TO_STR(p.CreationDate, '%W') AS weekOfCreation, AVG(p.Score) AS meanQuestionScore, COUNT(p.Id) AS NumberOfPosts FROM Posts AS p WHERE p.PostTypeId = 1 AND TIME_TO_STR(p.CreationDate, '%Y') = 2015 GROUP BY TIME_TO_STR(p.CreationDate, '%W') ORDER BY TIME_TO_STR(p.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... | วิธีการวาดเส้นพร้อมเส้นคั่นในแผนภูมิ Pareto | SELECT Title FROM Posts WHERE Title LIKE '%Pareto%' |
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... | มีแล็บของ 527 ไหมครับ | SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 527 |
สิปปนนท์ เกตุทัตถึงแก่อนิจกรรมด้วยอะไร | โรคมะเร็งในกระดูก | |
ที่หยุดรถไฟทุ่งน้ำซึม ปัจจุบันเปิดใช้งานหรือไม่ | ปัจจุบันไม่มีการใช้งานแล้ว | |
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
)
| เลือกหมายเลขแถว() OVER(ORDER BY ชื่อเสียง DESC) AS [#], Id AS [User Link], ชื่อเสียง | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%croatia%') 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,
... | มีผู้ป่วยที่พ้นจากโรงพยาบาลในรอบ 2 ปีที่ผ่านมากี่คน | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE NOT patient.hospitaldischargetime IS NULL AND DATETIME(patient.hospitaldischargetime) >= 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,
... | แจ้งเพศของคนไข้ 035-19890 | SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '035-19890' |
พระองค์ทรงเป็นกษัตริย์พระองค์แรกของไทยที่ได้รับการยกย่องพระองค์ยังทำอะไรเพื่อสร้างชื่อเสียง | ทรงประดิษฐ์ตัวอักษรไทย | |
พระสุสานขององค์ชายโซฮยอนอยู่ที่ใด | เมืองโกยาง จังหวัดคยองกี | |
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... | มีผู้ใช้กี่คนกันที่ตอบคำถามมากกว่า N คำถาม | SELECT CommentCount, COUNT(*) FROM Posts WHERE PostTypeId = 1 AND CreationDate > DATEADD(DAY, -90, CURRENT_TIMESTAMP()) AND AnswerCount = 0 GROUP BY CommentCount |
SMAP เริ่มต้นด้วยสมาชิก 6 คน หลังจากฝึกฝน ด้านต่างๆ ทั้งการร้องการเต้น รวมถึงเล่นละคร ร่วมเป็นพิธีกรในหลายรายการ จนมีฝีมือ ที่เป็นที่พอใจแล้ว ในวันที่เท่าไหร่ ? | 9/9/1991 | |
เครโทส เป็นนักรบอะไร | นักรบสปาร์ตัน | |
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
)
| รายชื่อผู้ใช้ 100 อันดัในสหรัฐอาหรับเอมิเรตส์ | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%pakistan%' ORDER BY Reputation DESC LIMIT 100 |
เอพิโทรคอยด์ คืออะไร | เป็นตัวอย่างหนึ่งของโลกัสที่สร้างขึ้นจากจุดบนจานที่กลิ้งไปรอบรูปวงกลม (เส้นสีน้ำเงิน) | |
ปืร์เมอแร็นด์ จำนวนประชากรเพิ่มในปีอะไร | ค.ศ. 1960 | |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
| จำนวนแก้ไขต่อโพสต์ | SELECT PostId, COUNT(*) FROM PostHistory WHERE NOT PostId IS NULL GROUP BY PostId ORDER BY PostId, NEWID() |
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(A.Id) FROM Posts AS A WHERE A.PostTypeId = 2 |
อเวนเจอร์ส: เผด็จศึก ผลิตโดยใคร | มาร์เวลสตูดิโอส์ | |
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... | มีห้องปฏิบัติการของวิชา 285 หรือเปล่า | SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 285 |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
| ค้นหาคีย์เวิร์ดในคอมเมนต์ผู้ใช้ | SELECT CONCAT('http://stackoverflow.com/questions/', PostId), Score, Text, CreationDate FROM Comments WHERE Text LIKE '%##Keyword1##%' AND Text LIKE '%##Keyword2##%' AND Text LIKE '%##Keyword3##%' COLLATE Latin1_General_100_CI_AI_SC ORDER BY CreationDate DESC |
มานิตย์ ภู่อารีย์ เกิดวันที่เท่าไร | 3 ธันวาคม พ.ศ. 2478 | |
สมาคมวิทยุสมัครเล่นแห่งประเทศไทย ก่อตั้งกี่คน | 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
)
| ผู้ใช้ที่ชื่อเดียวกันกับฉันซึ่งมี Twiter ในส่วน "เกี่ยวกับฉัน" | SELECT COUNT(*) FROM Users WHERE DisplayName LIKE 'Abby %' AND WebsiteUrl LIKE '%twitter%' |
หนังสือพิมพ์มักถูกพิมพ์ในกระดาษอะไร | กระดาษสำหรับพิมพ์หนังสือพิมพ์โดยเฉพาะ ซึ่งมีราคาถูก | |
ลอน นอล เกิดขึ้นจังหวัดอะไร | จังหวัดไพรแวง | |
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... | 50 ผู้ถามคำถามมากที่สุดใน MSE | SELECT OwnerUserId AS "user_link", COUNT(*) AS QuestionsCount FROM Posts WHERE NOT OwnerUserId IS NULL AND OwnerUserId != -1 GROUP BY OwnerUserId ORDER BY COUNT(*) DESC LIMIT 50 |
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 LOWER('%##NombrePais##%') ORDER BY Reputation 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 Id, Reputation, LastAccessDate FROM Users WHERE Reputation >= 3000 AND LastAccessDate >= DATEADD(dd, -30, GETDATE()) |
สะพานมิตรภาพเวียดนาม–ญี่ปุ่นมีอีกชื่อเรียกหนึ่งว่าสะพานอะไร | สะพานเหญิตเติน | |
พระสุนทรโวหารหรือสุนทรภู่เป็นกวีเอกในสมัยใด | กรุงรัตนโกสินทร์ | |
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)
)
| แสดงแผนภูมิแท่งให้ฉันว่ามีการเรียกเก็บจากรัฐใดไปแล้วเท่าใด และแสดงโดยแกน Y แบบลดหลั่น | SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY COUNT(*) DESC |
จอร์จ แฮริสันเสียชีวิตด้วยสาเหตุใด | มะเร็งปอด | |
่่่่กวีโด ดา ซีเอนา เรียกอีกชื่่อหนึ่งว่าอะไร | กุยโด ดิ กราเซียโน | |
ปลาดุมชีเป็นปลาน้ำจืดที่จัดอยู่ในวงศ์ใด | วงศ์ปลาเสือดำ (Nandidae) | |
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 DATE(STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate))) AS FullDate, COUNT(*) AS Total FROM Users GROUP BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) + '-' + STR(DAY(CreationDate)) ORDER BY FullDate DESC |
ประเสริฐศรี จันทน์อาภรณ์ เกิดวันที่เท่าไร | 18 มีนาคม พ.ศ. 2482 | |
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-4309 ถึงออกจากโรงพยาบาลครั้งแรกเมื่อ 1 ปีที่ผ่านมา | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '027-4309' AND DATETIME(patient.hospitaldischargetime) <= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaldischargetime LIMIT 1 |
วัยร้ายเฟรชชี่ เป็นละครโทรทัศน์ของบริษัทใด ในเครืออะไร | บริษัท เมจิค แอ็ดเวอร์เทนเม้นท์ จำกัด(ในเครือบริษัท อาร์เอส จำกัด (มหาชน)) | |
ใครคือผีประจำบ้านสลิธีริน | บารอนเลือด | |
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
)
| เวลาเข้าโรงพยาบาลของผู้ป่วย 22756 คืออะไร | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 22756 |
ปลากระดี่อินเดีย แพร่กระจายพันธ์ในทวีปอะไร | อินเดียไปจนถึงพม่า | |
บรูซลีเกิดที่ใด | ซานฟรานซิสโก | |
CREATE TABLE products (
product_id number,
product_type_code text,
product_name text,
product_price number
)
| id และชื่อของสินค้าที่มีราคาต่ำกว่า 600 หรือสูงกว่า 900 คืออะไร | SELECT product_id, product_name FROM products WHERE product_price < 600 OR product_price > 900 |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
| 10 แท็กยอดนิยมใน SO เรียงตามจำนวน | SELECT TagName, Count FROM Tags ORDER BY Count 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... | หางคำตอบยาวๆ ตอบประเด็นนี้ที่ meta กระทู้ถามใน Statistics - http://meta.stats.stackexchange.com/q/2083/1036
ผมเริ่มสงสัยว่าเว็บเรายังมีผู้ใช้ไม่มากนัก โดยคำนวณจากหางให้ดูเมื่อเทียบกับเว็บอื่น | SELECT OwnerUserId, COUNT(*) AS TotalAnswers FROM Posts WHERE PostTypeId = 2 GROUP BY OwnerUserId ORDER BY TotalAnswers DESC |
เหตุผลในการจัดสร้างประตูชัยเวลลิงตันและประตูชัยมาร์เบิลอาร์ชคืออะไร | เพื่อฉลองชัยชนะของสหราชอาณาจักรเหนือฝรั่งเศสในสงครามนโปเลียน | |
วัดทุ่งเศรษฐีตั้งอยู่ที่ไหน | หมู่ 7 บ้านห้วยบง ตำบลป่าเซ่า อำเภอเมือง จังหวัดอุตรดิตถ์ | |
การบุกครองหมู่เกาะคูริล หรือเรียกว่าอะไร ? | ปฏิบัติการขึ้นบกหมู่เกาะคูริล | |
วิศวกรรมสารสนเทศและการสื่อสารมีไว้สำหรับอะไร | สำหรับอุตสาหกรรมหรือองค์กรวิสาหกิจที่มีสถาปัตยกรรมเทคโนโลยีสารสนเทศและสารสนเทศขนาดใหญ่ | |
ทัวร์นาเมนต์ที่เล่นก่อนหน้านี้ที่อยู่ภายใต้อายุไม่เกินเท่าไร | อายุไม่เกิน 17 ปี | |
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-161415 แตกต่างจากค่าวัดล่าสุดในการมาโรงพยาบาลครั้งแรก เมื่อเทียบกับค่าที่วัดครั้งสุดท้ายก่อนค่าที่วัดล่าสุดในการมาโรงพยาบาลครั้งแรก แตกต่างกันกี่หน่วย | SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-161415' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL O... |
ดนตรีแทร็ป (อีดีเอ็ม) เกิดขึ้นในปีอะไร | ค.ศ. 2012 | |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
| คำพ้องความหมายสร้างขึ้นผ่าน 4 โหวต | SELECT * FROM TagSynonyms WHERE Score >= 4 |
พระยมี เชื่อว่าพระองค์เกี่ยวข้องกับอะไร | พระกฤษณะ | |
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 ผ่านมาแล้วกี่วันนับตั้งแต่ผู้ป่วยพักในวอร์ด 608 ครั้งสุดท้าย | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '015-23047' AND patient.wardid = 608 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime 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... | ค่าต่ำสุด ค่าสูงสุด และจำนวนคำตอบเฉลี่ยต่อโพสต์ จำนวนคำตอบต่อโพสต์ที่น้อยที่สุด สูงที่สุด และค่าเฉลี่ยบน Stack Overflow | SELECT MIN(Posts.AnswerCount) AS "minimum_#_of_answers", AVG(CAST(Posts.AnswerCount AS FLOAT)) AS "average_#_of_answers", MAX(Posts.AnswerCount) AS "maximum_#_of_answers" FROM Posts WHERE Posts.PostTypeId = 1 |
ไวกิงหมายถึงอะไร | ชนเผ่านักรบ นักการค้า และนักตั้งถิ่นฐานจากนอร์เวย์ สวีเดน และเดนมาร์ก | |
เครื่องดื่ม คืออะไร | สิ่งที่มนุษย์จัดเตรียมสำหรับดื่ม | |
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
)
| ผู้ป่วย 12952 เข้ารักษาที่โรงพยาบาลในปี 2105 | SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 12952 AND STRFTIME('%y', admissions.admittime) = '2105' |
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... | แสดงโพสต์ที่ประกอบด้วย apt-cache ในเนื้อหา | SELECT Id AS "post_link", CreationDate FROM Posts WHERE Body LIKE '%apt-cache%' ORDER BY CreationDate DESC |
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 |
อิซาเบล ลูคัส เกิดวันที่เท่าไร | 29 มกราคม ค.ศ. 1985 | |
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-8398 ต่ำสุดในแต่ละวันในครั้งล่าสุดที่เข้ารักษาตัวอยู่ในโรงพยาบาลมีค่าเท่าไร | SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-8398' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS NULL G... |
สนามกีฬาโอลิมปิก ตั้งอยู่ในกรุงอะไร | กรุงอาชกาบัต | |
CREATE TABLE VoteTypes (
Id number,
Name text
)
| รูปแบบการโหวตมีอะไรบ้าง | SELECT * FROM VoteTypes |
ท่าอากาศยานนาฮะ อยู่ประเทศอะไร | ประเทศญี่ปุ่น | |
ปลาตูหนาเป็นปลาที่จัดอยู่ในวงศ์ใด | วงศ์ปลาตูหนา (Anguilidae) | |
ลาดทวีป มีความลาดชันเท่าไร | 65 องศา | |
ปฏิบัติการทางทหารของโซเวียต มีจุดมุ่งหมายเพื่ออะไร ? | เพื่อยึดหมู่เกาะคูริลจากญี่ปุ่นในปี 1945 โดยเป็นส่วนหนึ่งของปฏิบัติการการรุกทางยุทธศาสตร์แมนจูเรีย | |
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, Score, ViewCount, AnswerCount FROM Posts WHERE PostTypeId = 2 AND YEAR(CreationDate) > 2015 |
ใครคือสมาชิกลำดับที่ 5 ของโอเอซิส | โนล แกลลาเกอร์ | |
ปลากดอเมริกันมีชื่อทางวิทยาศาสตร์ว่าอย่างไร | ชื่อวิทยาศาสตร์ว่า Ictalurus punctatus | |
มาโคโตะ เป็นนักกีฬาอะไร | นักคาราเต้ | |
เอโลวีนเคยใช้ชื่อปลอมว่าอะไร? | เดิร์นเฮล์ม (Dernhelm) | |
ทะเลแดง เชื่อมกับมหาสมุทรอินเดียที่อ่าวอะไร | อ่าวเอเดน | |
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... | เนื้อหาในรายวิชา MATSCIE 489 เป็นอะไร | SELECT DISTINCT name FROM course WHERE department = 'MATSCIE' AND number = 489 |
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
)
| ในการเข้ารับการรักษาครั้งแรก ผู้ป่วย 18866 เข้าแผนก ER หรือไม่ | SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 18866 AND admissions.admission_location = 'emergency room admit' AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime 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... | หลักสูตรใดที่ให้ 10 หน่วยกิต | SELECT DISTINCT name, number FROM course WHERE credits = 10 AND department = 'EECS' |
ท่าอากาศยานนานาชาติอินช็อน อยู่เมืองอะไร | เมืองอินช็อน | |
ต้นเทียนบ้านมีชื่อทางวิทยาศาสตร์ว่าอย่างไร | ชื่อวิทยาศาสตร์ : Impatiens balsamina L. | |
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
) | คนไข้ 41014 เข้ารับการรักษาตัวในโรงพยาบาลในปีที่แล้วหรือไม่ | SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 41014 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') |
บริษัทแพร่สัญญาณอเมริกัน ก่อตั้งปีอะไร | พ.ศ. 2486 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.