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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
จำนวนคำถามที่ถามในเว็บไซต์ก่อนเดต
|
SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND CreationDate < '##Date##'
|
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 อันดับผู้ใช้สูงสุดจากเนปาล
|
SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Nepal%' ORDER BY Reputation DESC LIMIT 150
|
CREATE TABLE film (
film_id number,
title text,
description text,
release_year time,
language_id number,
original_language_id number,
rental_duration number,
rental_rate number,
length number,
replacement_cost number,
rating text,
special_features text,
last_update time
)
|
คืนชื่อหนังที่จัดประเภท R
|
SELECT title FROM film WHERE rating = 'R'
|
ซูเปอร์ฮีโรในภาษาไทยว่ายอดมนุษย์สื่อถึงอะไร
|
พระพุทธเจ้าที่สามารถผจญเอาชนะมาร คือ ความชั่ว ได้ เพราะแก่นของซูเปอร์ฮีโรคือความดีย่อมชนะความชั่ว
|
|
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 Id, DisplayName, Reputation FROM Users ORDER BY Reputation DESC LIMIT 10
|
ปลากะรังปากแม่น้ำนั้นเป็นปลาทะเลจัดอยู่ในวงศ์ใด
|
วงศ์ปลากะรัง (Serranidae)
|
|
เบอร์นาร์ด คืออะไร
|
แอนิชันสั้นๆ
|
|
ในปี 2007 นี้ องค์การอาหารและการเกษตรโลก (FAO) และองค์การสหประชาชาติ (UN) (ในนามโครงการน้ำเพื่อชีวิต) (Water for life) เป็นผู้จัดร่วม ในหัวข้องาน(ธีม) ว่าอะไร
|
Coping with Water Scarcity
|
|
เดอะเฟซเมนไทยแลนด์ ซีซัน 2 เป็นรายการอะไร
|
รายการเรียลลิตี
|
|
สัตว์เลี้ยงลูกด้วยนมกี่ชนิด
|
71 ชนิด
|
|
สาธารณรัฐยูกันดา เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูร้อน ปี ค.ศ อะไร
|
ค.ศ. 1960
|
|
ศูนย์แพทยศาสตรศึกษาชั้นคลินิก โรงพยาบาลสรรพสิทธิประสงค์ตั้งมาเพื่อสอนใคร
|
นักศึกษาแพทย์ตามหลักสูตรแพทยศาสตรบัณฑิตของคณะแพทยศาสตร์ มหาวิทยาลัยขอนแก่น
|
|
บริษัทฯ จึงได้เสนอข้อตกลงเพื่อการชดเชยกับสมาคมชาวประมงในปีใด?
|
1926 และ 1943
|
|
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_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
|
หลักสูตรไหนใน Machine Learning ที่มีค่า 15 หน่วยกิต
|
SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Machine Learning%' OR name LIKE '%Machine Learning%') AND credits = 15
|
ปัญหาจากการออกจากสังกัดอาร์เอส
|
ไม่อยากจะกดดันตัวเองในเรื่องของการทำงาน
|
|
CREATE TABLE races (
raceId INTEGER,
year INTEGER,
round INTEGER,
circuitId INTEGER,
name TEXT,
date TEXT,
time TEXT,
url TEXT
)
|
กราฟแท่งแสดงจำนวนการแข่งขันของชนชาติต่างๆ ทั้งหมดที่จัดขึ้นระหว่างปี 2009 ถึง 2011
|
SELECT name, COUNT(name) FROM races WHERE year BETWEEN 2009 AND 2011 GROUP BY name
|
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
)
|
เวลาเข้ารับการรักษาในโรงพยาบาลของคนไข้ 52604 เมื่อ 4 ปีที่แล้วคือเวลาเท่าไร?
|
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 52604 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-4 year')
|
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
)
|
คนไข้ 8991 เข้ารับการรักษาในโรงพยาบาลครั้งล่าสุดเมื่อปีที่ผ่านมา
|
SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 8991 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime DESC LIMIT 1
|
อาณาจักรพืช ประกอบด้วยอะไรบ้าง
|
ประกอบด้วย ไม้ยืนต้น ไม้ดอก พืชล้มลุก และเฟิร์น พบได้ทั้งบนบกและในน้ำ
|
|
สปีดเดมอน เป็นเพลงของใคร
|
นักร้องชาวอเมริกัน ไมเคิล แจ็กสัน
|
|
ปลาตะพากเป็นปลาน้ำจืดที่จัดอยู่ในวงศ์อะไร
|
วงศ์ปลาตะเพียน (Cyprinidae)
|
|
แอร์ฮาร์ท ไฮเดิน ได้รับการแต่งตั้งให้เป็นหัวหน้าของหน่วยเอ็สเอ็ส,ระดับชั้นหัวกะทิของหน่วยเอ็สอานปีใด ?
|
ค.ศ. 1927
|
|
ท่าอากาศยานนานาชาติโลแกน อยู่เมืองอะไร
|
เมืองบอสตัน
|
|
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,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
|
คนไข้เลขที่ 006-125738 ล่าสุดเข้ารับการรักษาที่โรงพยาบาลเมื่อ 2104 อย่างไร
|
SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '006-125738' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime 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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
สมาชิกที่ได้ตอบคำถามที่แตกต่างมากที่สุด
|
SELECT A.OwnerUserId AS "user_link", COUNT(DISTINCT A.ParentId) AS "distinct_questions_answered" FROM Posts AS A WHERE A.PostTypeId = 2 AND A.OwnerUserId > 0 GROUP BY A.OwnerUserId ORDER BY 'distinct_questions_answered' DESC
|
Meki หมายถึงอะไร
|
เด็กสาวทั้ง 8 ที่มีเอกลักษณ์ของตัวเอง ที่ถือกุญแจคนละอัน
|
|
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
)
|
จำนวนผู้ใช้ที่มี 1 rep
|
SELECT COUNT(*) FROM Users WHERE Reputation = 1 AND (CreationDate = LastAccessDate)
|
วัดดอนจันทร์ ตั้งเป็นวัดเมื่อเดือนอะไร ?
|
สิงหาคม
|
|
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
|
รายการที่มีกิจกรรมสุดท้ายเป็นการ CW-ification
|
SELECT ph.PostId AS "post_link", revisions = 'site://posts/' + CAST(ph.PostId AS TEXT) + '/revisions' FROM PostHistory AS ph WHERE (ph.PostHistoryTypeId = 16) AND ph.Id IN (SELECT MAX(Id) AS last FROM PostHistory GROUP BY PostId) ORDER BY ph.PostId DESC
|
สับปะรดมีชื่อทางวิทยาศาสตร์ว่าอย่างไร
|
ชื่อวิทยาศาสตร์ : Ananas comosus Merr.
|
|
ปาโอโล อุชเชลโล มีอาชีพอะไร
|
จิตรกรสมัยศิลปะเรอเนซองส์
|
|
นโยบายการแข่งขัน การลงทุนและสิทธิทรัพย์สินทางปัญญา จะมีการเสนอร่างอย่างไร
|
มีการเสนอร่างต่อสมัชชาสหภาพแอฟริกาในเดือนมกราคม 2563
|
|
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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
ค้นหาคำตอบจากข้อความและชื่อผู้ใช้
|
SELECT * FROM Posts WHERE OwnerUserId = '##UserId##' AND ParentId > 0 AND Body LIKE '%##Text##%'
|
สมเด็จพระราชินีนาถบียาตริชแห่งโปรตุเกส เกิดวันที่เท่าไร
|
7 กุมภาพันธ์ ค.ศ. 1373
|
|
จันทน์ขาว เป็นพืชในวงศ์อะไร
|
วงศ์ย่านตีเมีย
|
|
ปลาฉนากจะงอยปากแคบมีขนาดโตเต็มที่กี่เมตร
|
ขนาดโตเต็มที่ราว 4 เมตร
|
|
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_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
|
เพื่อให้ได้ 18 หน่วยกิต ควรลงวิชาอะไรบ้าง
|
SELECT DISTINCT name, number FROM course WHERE credits = 18 AND department = 'EECS'
|
รัชพล นาวันโน ปัจจุบันเซ็นสัญญากับทีมอะไร
|
ทีมพีที ประจวบ
|
|
สุภรภ์เพ็ญ หลวงเทพนิมิต ชื่อเดิมว่าอะไร
|
สุภรเพ็ญ หลวงเทพ
|
|
SMAP ได้ถูกจัดอันดับศิลปินไอดอลที่ยอดขายรวมตั้งแต่เดบิวต์ทั้งซิงเกิล อัลบั้มและDVDได้มากที่สุดเป็นอันดับ 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,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
|
น้ำหนักต่ำสุดรายวันของผู้ป่วยหมายเลข 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 GROUP BY STRFTIME('%y-%m-%d', patient.unitadmittime)
|
CREATE TABLE Products (
product_id INTEGER,
product_type_code VARCHAR(10),
product_name VARCHAR(80),
product_price DECIMAL(19,4)
)
|
แสดงราคาผลิตภัณฑ์สูงสุดสำหรับแต่ละประเภทผลิตภัณฑ์ในกราฟแท่ง ฉันต้องการจัดเรียงจากน้อยไปมากตามจำนวนทั้งหมด
|
SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code ORDER BY MAX(product_price)
|
โจเซฟ เชริดัน เล ฟานิว มีอาชีพอะไร
|
นักประพันธ์แนวกอทิก
|
|
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
)
|
เมื่อไหร่ที่ผู้ป่วยหมายเลข 76005 เข้ารับการรักษาในโรงพยาบาลครั้งล่าสุดเมื่อปีที่แล้ว
|
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 76005 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime DESC LIMIT 1
|
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
|
EA ย่อมาจากอะไร
|
SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'EA'
|
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
|
ผู้ใช้ที่มีเหรียญบรอนซ์แท็กส่วนตัว
|
SELECT B.Name, B.UserId AS "user_link" FROM Badges AS B WHERE Class = 3 AND TagBased = 1 AND (SELECT COUNT(B2.Name) FROM Badges AS B2 WHERE B2.Name = B.Name AND B2.Class = 3 AND B2.TagBased = 1) = 1 GROUP BY B.Name, B.UserId ORDER BY B.Name
|
จอห์น วิลค์ส บูธ มีอาชีพอะไร
|
นักแสดงละครเวที
|
|
ครึ่งชีวิตใช้อธิบายอะไรได้บ้าง
|
ปริมาณใด ๆ ก็ตามที่มีสลายตัวแบบเอ็กโพเนนเชียลด้วย
|
|
สาธารณรัฐเอลซัลวาดอร์ เข้าร่วมแข่งขันกีฬาโอลิมปิกฤดูอะไร
|
ฤดูร้อน
|
|
ขอทราบชื่อสินค้าหน่อย
|
The Net
|
|
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 '%gothenburg%' OR UPPER(Location) LIKE '%GOTHENBURG%' OR Location LIKE '%Gothenburg%' AND Reputation >= 1000 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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
การนับโพสต์ตามอายุเป็นวัน
|
WITH PostAge AS (SELECT Id, DATEDIFF(day, CreationDate, @LastVote) AS Age FROM Posts WHERE PostTypeId = '##PostTypeId:int?2##'), PostsByAge AS (SELECT Age, COUNT(*) AS Count FROM PostAge GROUP BY Age) SELECT Age, Count, SUM(Count) OVER (ORDER BY Age DESC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS RollingCount FROM PostsByAge ORDER BY Age
|
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
|
ลิงค์ไปยังความคิดเห็นของฉันโดยเรียงตามคะแนน
|
SELECT COUNT(*) AS CommentCount, Score FROM Comments WHERE UserId = @UserId GROUP BY Score ORDER BY Score 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,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
|
คนไข้รหัส 028-39354 ได้รับการตรวจเยี่ยมผู้ป่วยสุดท้ายเมื่อ 4 ปีที่แล้วอะไร
|
SELECT patient.wardid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-39354') AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY patient.unitadmittime DESC LIMIT 1
|
ฮย็อนซ็อง มีสมาชิกครอบครัวกี่คน
|
4 คน ได้แก่ คุณพ่อ, คุณแม่, พี่ชาย, และตัวเขาเอง
|
|
คริส จอห์น เกิดวันที่เท่าไร
|
14 กันยายน พ.ศ. 2522
|
|
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,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
|
ผู้ป่วยรหัส 006-71495 ตั้งแต่วันที่ 02/2104 มีน้ำหนักตัวน้อยที่สุดต่อวันเท่าไร
|
SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-71495') AND NOT patient.admissionweight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) <= '2104-02' GROUP BY STRFTIME('%y-%m-%d', patient.unitadmittime)
|
เดอะซิมส์ 4 เอาต์ดอร์รีทรีต วางจำหน่ายเมื่อใด
|
13 มกราคม 2558
|
|
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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
เลือกจาก post โดยมี limit อยู่ที่ 10
|
SELECT * FROM Posts WHERE Score > 1000
|
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
|
ช่วยบอกฉันที ว่า วิธีใช้ยาแท็บเล็ตโพแทสเซียมคลอไรด์ คือ
|
SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'potassium chloride tab'
|
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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
ค้นหาคำตอบโดยข้อความและ User ID
|
SELECT * FROM Posts WHERE OwnerUserId = '##UserId##' AND ParentId > 0 AND Body LIKE '%##Text##%'
|
แอร์เคบีแซด ก่อตั้งในปีอะไร
|
ค.ศ. 2010
|
|
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 * FROM Users WHERE LastAccessDate LIKE '%2018%'
|
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
)
|
คนไข้หมายเลข 28484 เคยไปห้องฉุกเฉินเมื่อ 3 ปีที่แล้วหรือไม่
|
SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 28484 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year')
|
แอสกีคืออะไร
|
รหัสมาตรฐานของสหรัฐอเมริกาเพื่อการแลกเปลี่ยนสารสนเทศ
|
|
ราคาเท่าไรหรอครับ
|
ไม่ทราบราคาของสินค้า
|
|
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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
ทดสอบคิวรีสำหรับแถวที่ว่าง
|
SELECT Posts.Id AS "post_link" FROM Posts WHERE Posts.OwnerUserId = @UserId
|
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
|
ค้นหานักแสดงที่เกิดในเมือง Austin ที่เกิดหลังปี 1980 ทั้งหมด
|
SELECT name FROM actor WHERE birth_city = 'Austin' AND birth_year > 1980
|
แผ่นดินไหวในมณฑลยูนนาน เกิดขึ้นใกล้ที่ไหน
|
พรมแดนพม่า
|
|
เพชฌฆาตกระสุนเปลือย ออกฉายในปีอะไร
|
ค.ศ. 1992
|
|
อาร์เอ็มเอส โอลิมปิก คือชื่อของอะไร
|
เรือเดินสมุทร
|
|
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
)
|
เปอร์เซ็นต์ของผู้ใช้ที่มีค่า reputation เกินระดับที่กำหนดให้
|
SELECT ((SELECT CAST(COUNT(*) AS FLOAT) FROM Users WHERE Reputation >= 15) / (SELECT COUNT(*) FROM Users))
|
แบร์ กริล มีจริงว่าอะไร
|
เอ็ดเวิร์ด ไมเคิล กริล
|
|
ในระบบฟุตบอลลีกอาชีพของประเทศไทย หลังจากที่ก่อนหน้านี้เคยลงแข่งขันระดับสมัครเล่นในฟุตบอลชิงถ้วยพระราชทานประเภทต่างๆ ภายใต้ชื่อว่าอะไร ?
|
เทศบาลเมืองเสนา
|
|
ชาร์ล เดอ โกล มีชื่อเต็มว่าอะไร
|
ชาร์ล อ็องเดร โฌแซ็ฟ มารี เดอ โกล
|
|
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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
จำนวนโพสต์ต่อปี
|
SELECT YEAR(CreationDate), COUNT(Id) FROM Posts WHERE AnswerCount > 1 GROUP BY YEAR(CreationDate)
|
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
|
แท็กที่มีการใช้มากกว่าหนึ่งครั้ง และไม่มีหน้า wiki สำหรับแท็กนั้น
|
SELECT t.* FROM Tags AS t WHERE t.Count > 1 AND (t.ExcerptPostId IS NULL OR t.WikiPostId IS NULL) ORDER BY t.Count DESC, t.Id DESC
|
ราคาเท่าไรหรอครับ
|
ราคา 1 ตารางฟุตขึ้นไป 230 บาท
|
|
โรลเลอร์โคสเตอร์ไทคูน ตัวเกมวางจำหน่ายสำหรับอะไร
|
ไมโครซอฟท์ วินโดวส์
|
|
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
|
แจ้งจำนวนการผ่าตัดลอกพังผืดครั้งล่าสุดให้ทราบด้วย
|
SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'fasciotomy' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
|
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
)
|
ผู้ป่วยหมายเลข 65467 มีประวัติเข้ารับการรักษาในโรงพยาบาลกี่ครั้งในรอบหนึ่งปีที่ผ่านมา
|
SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 65467 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
|
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,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
|
คะแนนเฉลี่ยของคำถาม(ต่อวันระหว่างวันที่)
|
SELECT DATE(p.CreationDate), AVG(CAST(p.Score AS FLOAT)) FROM Posts AS p WHERE p.PostTypeId = 1 AND p.CreationDate >= '##Date1##' AND p.CreationDate <= '##Date2##' GROUP BY DATE(p.CreationDate) ORDER BY DATE(p.CreationDate)
|
รูดอล์ฟ อีมิว คาลมาน สร้างแบบจำลองอะไร
|
คณิตศาสตร์ของระบบ
|
|
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
|
ค้นหาผู้ใช้ที่ให้รางวัลมากที่สุดต่อโพสต์
|
SELECT UserId AS "user_link", PostId AS "post_link", COUNT(*) AS Bounties FROM Votes WHERE VoteTypeId = 8 AND CreationDate >= '2011-09-09 11:00:00' GROUP BY UserId, PostId ORDER BY Bounties DESC
|
ปลาน้ำเงินมีชื่อทางวิทยาศาสตร์ว่าอย่างไร
|
ชื่อวิทยาศาสตร์ว่า Phalacronotus apogon
|
|
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
)
|
แสดงรหัสวิธีการชำระเงินทั้งหมดและจำนวนคำสั่งซื้อสำหรับแต่ละรหัสในแผนภูมิแท่ง แสดงตามแกน y จากต่ำไปสูง
|
SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*)
|
ช่วงสงงครามโลกครั้งที่สองเยอรมันจับมือกับฝ่ายใด
|
เข้าเป็นพันธมิตรกับอิตาลีและฝ่ายอักษะที่เล็กกว่า
|
|
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
)
|
ผู้ป่วย 14397 รับการรักษาครั้งสุดท้ายในโรงพยาบาลอย่างไร
|
SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 14397 ORDER BY admissions.admittime DESC LIMIT 1
|
CREATE TABLE Teachers (
teacher_id INTEGER,
address_id INTEGER,
first_name VARCHAR(80),
middle_name VARCHAR(80),
last_name VARCHAR(80),
gender VARCHAR(1),
cell_mobile_number VARCHAR(40),
email_address VARCHAR(40),
other_details VARCHAR(255)
)
|
ใช้แผนภูมิแท่งเพื่อหานามสกุลของครูโดยเรียงลำดับตามตัวอักษร
|
SELECT last_name, COUNT(last_name) FROM Teachers GROUP BY last_name ORDER BY last_name
|
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_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
|
หลักสูตร CSP 100 คืออะไร
|
SELECT DISTINCT name FROM course WHERE department = 'CSP' AND number = 100
|
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_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
|
MATSCIE 489 คืออะไร
|
SELECT DISTINCT name FROM course WHERE department = 'MATSCIE' AND number = 489
|
ปืร์เมอแร็นด์ คืออะไร
|
เทศบาลและเมือง
|
|
ฝ่ายใดมีเสบียงอาหารอุดมสมบูรณ์ มีความได้เปรียบอย่างไร
|
มีโอกาสชนะแล้วครึ่งหนึ่ง
|
|
ฟุตบอลทีมชาติสโลวาเกียเข้ารอบฟุตบอลโลก เป็นครั้งแรกตั้งแต่ได้รับอิสระ คือปี ?
|
2010
|
|
พระโลกนาถมรณภาพที่ไหน
|
ประเทศพม่า
|
|
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 ที่มีไบโอของคำที่ระบุ
|
SELECT 'id' AS "user_link" FROM Users WHERE AboutMe LIKE '%##SearchText##%' 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_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
|
ฉันจะได้เครดิตกี่หน่วย สำหรับ 425
|
SELECT DISTINCT credits FROM course WHERE department = 'EECS' AND number = 425
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.