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... | มีอัพโหลดรูปภาพไปยังเว็บไซต์แล้วกี่รูป จำนวนโพสต์ที่มีรูปภาพโฮสต์โดยimgur.com หลังจากที่มีการนำการอัปโหลดรูปภาพขึ้นเว็บไซต์ขึ้นมาใช้ | WITH c AS (SELECT OwnerUserId, Body, 1 AS t FROM Posts WHERE CreationDate >= 'August 13, 2010') SELECT OwnerUserId AS "user_link", SUM(t) AS Count FROM c WHERE Body LIKE '%imgur.com%' GROUP BY OwnerUserId WITH ROLLUP ORDER BY SUM(t) DESC |
ปลาเฮร์ริงน้ำจืด เป็นกลุ่มปลาขนาดอะไร | ขนาดเล็กกลุ่มหนึ่ง | |
เกรนไดเซอร์มีกี่ตอน | 74ตอน | |
จอห์น วิค แรงกว่านรก 3 เขียนบทโดยใคร | ดีเรก โคลสแตด | |
ลิเทียมคลอไรด์ เป็นสารประกอบประเภทใด | สารประกอบไอออนิก | |
พอร์เชอ คาร์เรรา GT ผลิตขึ้นในประเทศอะไร | ประเทศเยอรมนี | |
ชุมเห็ดไทยเป็นพืชจัดอยู่ในวงศ์ของพรรณไม้ชนิดใด | วงศ์ : Leguminosae | |
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
)
| จากที่ผู้ป่วย 40059 เข้ารับการรักษาในโรงพยาบาลมาแล้วกี่ชั่วโมง | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 40059 AND admissions.dischtime IS NULL |
เรียวอิจิ มาเอดะ เล่นตำแหน่งอะไร | กองหน้าตัวรุก | |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
| ผู้ใช้คนแรกที่ลงคะแนนปิดกระทู้ที่ถูกปิดไปแล้ว ส่งคืน user ID ของผู้ใช้คนแรกที่ลงคะแนนปิดคำถามที่ถูกปิดไปเมื่อไม่นานมานี้ เรียงตามเวลาปิด | SELECT PostHistory.PostId AS "post_link", PostHistory.CreationDate AS PostClosureDate, PostHistory.UserId AS "user_link", PostHistory.Comment AS PostClosureComment, CAST(SUBSTRING(PostHistory.Text, STR_POSITION(PostHistory.Text, 'Voters') + 15, STR_POSITION(PostHistory.Text, 'Display') - STR_POSITION(PostHistory.Text, ... |
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-141797 ในครั้งวัดล่าสุดเมื่อเทียบกับครั้งแรกที่วัดในครั้งที่เข้ารับการรักษาครั้งสุดท้ายนั้นต่างกันเท่าไร | SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-141797' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) AND NOT patient.admissionweight IS N... |
อำเภอสุวรรณภูมิก่อตั้งเมื่อใด | ปี พ.ศ. 2256 | |
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 number = ROW_NUMBER() OVER (ORDER BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate))), COUNT(Posts.Id) AS Total FROM Posts WHERE (PostTypeId = 1 AND CreationDate >= '##Date1##' AND CreationDate <= '##Date2##') GROUP BY STR(YEAR(CreationDate)) + '-' + STR(MONTH(CreationDate)) ORDER BY STR(YEAR(CreationDa... |
โดยอดีตจักรพรรดิซันโจได้เสนอเงื่อนไขต่อ ? | ฟุจิวะระ โนะ มิชินะงะ | |
โยฮัน คริสทีอัน โรเซนมึลเลอร์ เกิดที่ไหน | ฮิลบูร์กเฮาเซน | |
ธรีเวิลด์เทรดเซ็นเตอร์คืออะไร | อาคารที่กำลังก่อสร้างเป็นส่วนหนึ่งของอาคารชุดเวิลด์เทรดเซ็นเตอร์ใหม่ | |
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,
... | ความสูงครั้งล่าสุดของผู้ป่วย 005-80291 ณ วันที่ 2105/10 คือเท่าไหร่ | SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-80291') AND NOT patient.admissionheight IS NULL AND STRFTIME('%y-%m', patient.unitadmittime) <= '2105-10' ORDER BY patient.unitadmittime DESC LIMIT... |
กาปรี อยู่แคว้นอะไร | แคว้นคัมปาเนีย | |
102 ปิดกรุงเทพฯปล้น ฉายเมื่อวันที่เท่าไร | 29 เมษายน พ.ศ. 2547 | |
อกริเพียว โฮลดิ้งส์ เป็นบริษัทเกี่ยวกับอะไร | บริษัทประกอบธุรกิจการลงทุน | |
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
) | ผู้ป่วย 77177 เข้าโรงพยาบาลเวลาอะไรในปี 2101 | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 77177 AND STRFTIME('%y', admissions.admittime) = '2101' |
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... | เลือก id จากโพสต์ที่มี ViewCount > 100000 | SELECT Id, Title FROM Posts WHERE ViewCount > 100000 |
บัลลังก์ดาว ดำเนินการโดยใคร | สุริวิภา กุลตังวัฒนา | |
คอนสตันติน เชียร์เนนโค เสียชีวิตเมื่อไร | 10 มีนาคม ค.ศ. 1985 | |
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)
) | ส่งคืนฮิสโตแกรมจำนวนใบแจ้งหนี้ที่เรียกเก็บจากแต่ละรัฐ และจัดเรียงแกน x จากต่ำไปสูง | SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY billing_state |
วลาดีมีร์ ครัมนิค เป็นแชมป์โลกหมากรุกสากลอย่างไร้ข้อโต้แย้ง ตั้งแต่ปีอะไร | ค.ศ. 2006 ถึง 2007 | |
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%') |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
| การทำซ้ำที่เกิดขึ้นอย่างควบคุมไม่ได้: คำถามที่มีการทำซ้ำมากที่สุด http://meta.stackexchange.com/a/244636/200117 | SELECT l.RelatedPostId AS "post_link", COUNT(l.PostId) AS "Duplicate Count" FROM PostLinks AS l WHERE l.LinkTypeId = 3 GROUP BY l.RelatedPostId ORDER BY 'Duplicate Count' DESC 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
)
| ชื่อเสียงโดยเฉลี่ยของผู้ใช้ SO ในเมืองแมนเชสเตอร์ สหราชอาณาจักร | SELECT AVG(Reputation) AS "average_reputation", COUNT(Id) AS "total_users" FROM Users WHERE LOWER(Location) LIKE '%manchester, united kingdom' AND Reputation > 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,
... | คนไข้หมายเลข 004-32341 เข้ารับการรักษาในโรงพยาบาลครั้งแรกเมื่อ 2 ปีที่แล้ว ได้รับการเข้ารับการรักษาเพราะอะไร | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '004-32341' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime LIMIT 1 |
เทย่า โรเจอร์ส มีผลงาน ภาพยนตร์เรื่องแรกที่เพิ่งผ่านตามมาคืออะไร | 303 กลัว/กล้า/อาฆาต มิวสิกวีดีโอ | |
ปลาซิวแก้วมีชื่อทางวิทยาศาสตร์ว่าอย่างไร | วิทยาศาสตร์: Clupeichthys aesarnensis | |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
| หาโพสต์ที่ถูกลบหมายเลข 1257021 | SELECT * FROM PostHistory WHERE PostId = 1257021 |
CREATE TABLE Bookings (
Booking_ID INTEGER,
Customer_ID INTEGER,
Workshop_Group_ID VARCHAR(100),
Status_Code CHAR(15),
Store_ID INTEGER,
Order_Date DATETIME,
Planned_Delivery_Date DATETIME,
Actual_Delivery_Date DATETIME,
Other_Order_Details VARCHAR(255)
)
| แสดงวันจัดส่งที่วางแผนไว้ทั้งหมดและถังขยะตามปีในแผนภูมิเส้น จัดเรียงจากมากไปน้อยตาม X | SELECT Planned_Delivery_Date, COUNT(Planned_Delivery_Date) FROM Bookings ORDER BY Planned_Delivery_Date 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 COUNT(Id) AS CountOfScore, Score FROM Posts AS p WHERE p.PostTypeId = 1 AND Score BETWEEN -20 AND 20 GROUP BY Score ORDER BY Score |
แบล็คพิ้งค์มีสมาชิกทั้งหมดกี่คน | ประกอบด้วยสมาชิกจำนวนสี่คน | |
กลยุทธ์ส่งเสียงบูรพาฝ่าตีประจิม หรืออีกชื่อหนึ่งว่าอะไร | เซิงตงจี๋ซี | |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
| ค้นหาความคิดเห็นระหว่างวันที่ที่กำหนด | SELECT PostId AS "post_link", Id AS "comment_link", UserId AS "user_link", DATE(CreationDate) FROM Comments WHERE (LOWER(Text) LIKE LOWER('%##SearchString##%')) AND DATE(CreationDate) BETWEEN @StartDate AND @EndDate ORDER BY CreationDate 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
)
| จำนวนผู้ใช้ที่มี 1 rep | SELECT COUNT(*) FROM Users WHERE Reputation = 1 AND (CreationDate = LastAccessDate) |
CREATE TABLE Assets (
asset_id INTEGER,
maintenance_contract_id INTEGER,
supplier_company_id INTEGER,
asset_details VARCHAR(255),
asset_make VARCHAR(20),
asset_model VARCHAR(20),
asset_acquired_date DATETIME,
asset_disposed_date DATETIME,
other_asset_details VARCHAR(255)
)
| แสดงจำนวนสินทรัพย์และจัดกลุ่มสินทรัพย์ที่สร้างในรูปแบบแผนภูมิแท่ง โดยเรียงลำดับในแบบเพิ่มขึ้นตามจำนวนสินทรัพย์ที่สร้างขึ้น | SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY COUNT(asset_make) |
อากิเลส โฮเซ กุซมัน มาตูเตได้แชมป์เรียกชื่อว่าอะไร | แชมป์เวเนซุเอลารุ่นฟลายเวต | |
ทะเลญี่ปุ่นถูกล้อมรอบด้วยประเทศใด | ประเทศญี่ปุ่น เกาหลีใต้ เกาหลีเหนือ และรัสเซีย | |
CREATE TABLE Bookings (
Booking_ID INTEGER,
Customer_ID INTEGER,
Workshop_Group_ID VARCHAR(100),
Status_Code CHAR(15),
Store_ID INTEGER,
Order_Date DATETIME,
Planned_Delivery_Date DATETIME,
Actual_Delivery_Date DATETIME,
Other_Order_Details VARCHAR(255)
)
| แสดงวันที่การจัดส่งที่วางแผนและบรรจุลงกล่องทั้งหมดเป็นปีในแผนภูมิเส้น และจัดอันดับจากสูงไปต่ำตามแกน X | SELECT Planned_Delivery_Date, COUNT(Planned_Delivery_Date) FROM Bookings ORDER BY Planned_Delivery_Date DESC |
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
)
| ครั้งแรกที่ผู้ป่วย 70645 เข้ารับการรักษาในโรงพยาบาลในปีที่แล้วคือวันไหน | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 70645 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.admittime 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-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',... |
กีฬายิมนาสติก ประกอบไปด้วยกี่รายการ | ยี่สิบรายการ | |
แมทธิว มัวร์ ฮาร์ดี ทำอาชีพอะไร | แมต ฮาร์ดี | |
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
)
| ในปีนี้มีผู้ป่วยหมายเลข 49654 เข้ารับการรักษาหรือไม่ | SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 49654 AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 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
)
| รายชื่อผู้ใช้: Top N - อินเดีย - พร้อมรายการยกเว้น False positive รายชื่อผู้ใช้ในอินเดีย | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE (LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND') AND LENGTH(Location) > 1 LIMIT 100 |
ประสบความสำเร็จในอัมบั้มอะไร | ไฮบริดทีโอรี | |
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 NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-1 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
)
| ผู้ถือชื่อเสียง 250 อันดับแรกจากอินเดีย | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%Pakistan%' OR UPPER(Location) LIKE '%Pak' ORDER BY Reputation DESC LIMIT 250 |
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
)
| ผู้ใช้ระดับสูงจาก Pune, India ผู้ใช้ระดับสูงจาก Pune, India | 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 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
)
| ผู้คน 20 อันดับต้นๆ ที่เรียกว่า Tunaki | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(DisplayName) LIKE '%skeet%' ORDER BY Reputation DESC LIMIT 20 |
อัมบั้ม คิงไซร์ ออกในปีอะไร | พ.ศ. 2547 | |
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", Location, Reputation FROM Users WHERE UPPER(LEFT(Location, 5)) = 'INDIA' AND Reputation >= '##minimumReputation##' ORDER BY Location |
อำเภอกะพ้อ ตั้งอยู่ทางทิศอะไร | ทิศตะวันออกเฉียงใต้ | |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
| ผู้ป่วย 5905 เป็นเพศอะไร | SELECT patients.gender FROM patients WHERE patients.subject_id = 5905 |
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
)
| 5 โปรแกรมเมอร์จาก StackOverflowers ที่เก่งที่สุดใน Coimbatore | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%singapore%' OR UPPER(Location) LIKE '%SINGAPORE%' OR Location LIKE '%singapore%' AND Reputation >= 10000 ORDER BY Reputation DESC LIMIT 25 |
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,
... | วันที่ 06/ปีที่แล้ว คนไข้หมายเลข 017-55081 วัดน้ำหนักครั้งแรกได้เท่าไร | SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-55081') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-... |
CREATE TABLE constructorStandings (
constructorStandingsId INTEGER,
raceId INTEGER,
constructorId INTEGER,
points REAL,
position INTEGER,
positionText TEXT,
wins INTEGER
)
| พล็อตแผนภูมิแบบกระจาย จำนวน(*) โดย constructorid | SELECT COUNT(*), constructorId FROM constructorStandings GROUP BY constructorId |
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... | แสดงโพสต์เกี่ยวกับ Jon Skeet | SELECT Title, ViewCount, Id FROM Posts WHERE PostTypeId = 1 AND Title LIKE '%Jon Skeet%' OR Title LIKE '%Jon-Skeet%' |
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", CreationDate FROM Posts WHERE CreationDate >= '02.07.2018' AND CreationDate <= '02.08.2018' |
จักรพรรดิโกะ-อิจิโจ จักรพรรดิองค์ที่ 68 แห่งราชวงศ์ญี่ปุ่นตามที่ได้จัดเรียงไว้ใน ? | รายพระนามจักรพรรดิญี่ปุ่น | |
มีการใช้ธงแสดงสัญชาติอย่างเป็นทางการครั้งแรกที่ใด | พิธีสวนสนามที่เมือง โพโลเควน (ปีเตอร์สเบิร์ก) | |
คลื่นความร้อนกินเวลามาแล้วกี่วัน | 32 วัน | |
บราเธอร์ส เป็นภาพยนตร์สัญชาติอะไร | อเมริกัน | |
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
)
| 1000 ผู้ใช้ที่ใช้มากที่สุดในอินเดีย | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%IND' ORDER BY Reputation DESC LIMIT 1000 |
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... | ให้ฉันดู 2 เครดิต Bioinformatics Seminar | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Bioinformatics Seminar%' OR name LIKE '%Bioinformatics Seminar%') AND credits = 2 |
หลังจากเกิดการรั่วไหลของเอกสารปานามาใครประกาศลาออก | นายกรัฐมนตรีไอซ์แลนด์ ซิกมึนตืร์ ตาวิด กึนน์เลยค์ซอน | |
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... | จำนวนคำถาม MSE | SELECT COUNT(*) AS count FROM Posts WHERE PostTypeId = 1 |
ฮันส์ โมโดร มีอาชีพอะไร | นักการเมืองฝ่ายซ้าย | |
การขนส่งเอชเอ็ม บริการเส้นทางใด บ้าง | เส้นทางจากเมโทรมะนิลาไปยังเมืองต่าง ๆ | |
ปลากระมังเป็นสัตว์น้ำที่อยู่ในวงศ์ประเภทใด | วงศ์ปลาตะเพียน (Cyprinidae) | |
ก่อตั้งขึ้นเมื่อ วันที่เท่าไหร่ ? | วันที่ 30 พฤษภาคม พ.ศ. 2512 | |
พระเจ้าซินด๊อกเป็นลูกของใคร ? | แดอาชาน กับ องค์หญิงเยคยอม | |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
| บอกฉันหน่อยได้ไหมว่าวันเกิดของคนไข้หมายเลข 76494 คือวันไหน? | SELECT patients.dob FROM patients WHERE patients.subject_id = 76494 |
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 DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 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
)
| 50 ผู้ใช้ลำดับต้น ๆ จากนิวซีแลนด์ | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%zealand' ORDER BY Reputation DESC LIMIT 50 |
ประเทศออสเตรเลียมีประชากรเท่าไหร่ | ประชากร 23.1 ล้านคน | |
เกิดวันที่อะไร | 7 มิถุนายน 1974 | |
พระอังคาร คือใคร | เทวดานพเคราะห์องค์หนึ่ง | |
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(1) AS nbe_answers, Questions.OwnerUserId AS "user_link", AVG(Answers.Score) AS A_score, AVG(Questions.Score) AS Q_score FROM Posts AS Questions, Posts AS Answers WHERE Questions.PostTypeId = 1 AND Answers.PostTypeId = 2 AND Answers.ParentId = Questions.Id AND Answers.OwnerUserId = '##UserId1##' GROUP BY Qu... |
หญ้าตัดฅน คือภาพยนตร์อะไร | ภาพยนตร์คัลท์ขาวดำหลุดโลก | |
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,
... | ผู้ป่วยรหัส 008-10139 ในปีนี้ได้เข้าห้องฉุกเฉินหรือไม่ | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '008-10139' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 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... | คำถามแย่ๆ ที่พิจารณาจากการโหวตและการปิด | SELECT Score, CASE WHEN NOT ClosedDate IS NULL THEN 'N' ELSE 'Er' END AS "closed?", Title AS "post_link" FROM Posts WHERE PostTypeId = 1 AND (NOT ClosedDate IS NULL OR Score < -3) ORDER BY Score LIMIT 500 |
ส่วนจัดแสดง Korean Fish ประกอบไปด้วยอะไร | ตู้ปลาขนาดเล็ก และปลาน้ำจืดหลากหลายชนิด ทั้งปลาพื้นเมืองของเกาหลี และปลาพื้นที่อื่น | |
แสงจักรราศี คืออะไร | แสงสว่างเรืองรองจาง ๆ เป็นโครงรูปสามเหลี่ยมหยาบ ๆ | |
จักรธร ขจรไชยกูล เกิดที่อำเภออะไร | อ.หาดใหญ่ | |
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 จาก Arizona | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE Reputation >= (SELECT Reputation FROM Users WHERE Id = 5285908) AND (UPPER(Location) LIKE '% AZ%' OR UPPER(Location) LIKE '% ARIZONA%') ORDER BY Reputation DESC |
ชื่อเดิมของครูบากัญจนอรัญญวาสีมหาเถรชื่อว่าอะไร | ปอย | |
CREATE TABLE Assets (
asset_id INTEGER,
maintenance_contract_id INTEGER,
supplier_company_id INTEGER,
asset_details VARCHAR(255),
asset_make VARCHAR(20),
asset_model VARCHAR(20),
asset_acquired_date DATETIME,
asset_disposed_date DATETIME,
other_asset_details VARCHAR(255)
)
| วาดแผนภูมิแท่งจากสินทรัพย์ที่ผลิตกับจำนวนสินทรัพย์ที่ผลิต แล้วแสดงใน Asc โดย X | SELECT asset_make, COUNT(asset_make) FROM Assets GROUP BY asset_make ORDER BY asset_make |
อาสนวิหารออลอรง เรียกชื่อเต็มว่าอะไร ? | อาสนวิหารนักบุญมารีย์แห่งออลอรง | |
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') |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
| AP/55 มีข้อจำกัดอะไร | SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP/55' |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
| มีการสั่งยามีโทโพรลอลทาร์เทรต 25 มก. กี่ใบสั่งยาตั้งแต่เมื่อ 4 ปีที่แล้ว | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'metoprolol tartrate 25 mg tab' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year') |
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(*) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.