Datasets:
AIAT
/

thai_instruction
stringlengths
8
429
eng_instruction
stringlengths
16
503
table
stringlengths
11
2.09k
sql
stringlengths
9
2.37k
pandas
stringlengths
1
635
real_table
stringclasses
2 values
ยาที่สั่งจ่ายบ่อยที่สุดห้าอันดับแรกในปีนี้คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what are the top five most commonly prescribed medicines during this year?It is not neccessary to use all the tables.
icustays: row_id [ number] subject_id [ number] hadm_id [ number] icustay_id [ number] first_careunit [ text] last_careunit [ text] first_wardid [ number] last_wardid [ number] intime [ time] outtime [ time]
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 5
null
general
ตั้งชื่อเมืองที่อนุญาตด้วยความถี่ 90.1 fm ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the city of license with frequency of 90.1 fmIt is not neccessary to use all the tables.
table_71970: "Frequency" [ text] "Class" [ text]
SELECT "City of license" FROM table_71970 WHERE "Frequency" = '90.1 fm'
null
general
การประชุมของ Dick Hyland คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was Dick Hyland's conv?It is not neccessary to use all the tables.
table_54680: "Player" [ text] "Tries" [ text] "Conv" [ text] "Venue" [ text] "Date" [ text]
SELECT "Conv" FROM table_54680 WHERE "Player" = 'dick hyland'
null
general
แสดงภาพความสัมพันธ์ระหว่าง Team_ID และ All_Games_Percent และจัดกลุ่มตามแอตทริบิวต์ ACC_Home ไม่จำเป็นต้องใช้ตารางทั้งหมด
Visualize the relationship between Team_ID and All_Games_Percent , and group by attribute ACC_Home.It is not neccessary to use all the tables.
university: School_ID [ int] School [ text] Location [ text] Founded [ real] Affiliation [ text] Enrollment [ real] Nickname [ text] Primary_conference [ text]
SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY ACC_Home
null
general
ก่อนปี 2170 มีผู้ป่วยที่ได้รับยาเข้าหลอดเลือดดำเข้าทางหลอดเลือดดำกี่ราย ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many patients with an iv bolus route of drug administration were admitted before 2170?It is not neccessary to use all the tables.
diagnoses: subject_id [ text] hadm_id [ text] icd9_code [ text] short_title [ text] long_title [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2170" AND prescriptions.route = "IV BOLUS"
null
general
โรคหัวใจพิการแต่กำเนิด ไม่จำเป็นต้องใช้ทุกโต๊ะ
congenital heart disease.It is not neccessary to use all the tables.
table_train_72: "id" [ int] "extracorporeal_membrane_oxygenation_ecmo_cannulation" [ bool] "heart_disease" [ bool] "meningitis_or_encephalitis" [ bool] "sepsis" [ bool] "cancer" [ bool] "prisoners" [ bool] "NOUSE" [ float]
SELECT * FROM table_train_72 WHERE heart_disease = 1
null
general
ตำแหน่งใดมีคะแนนรวมน้อยกว่า 64 และรอบที่ 1 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which position has an Overall smaller than 64, and a Round of 1?It is not neccessary to use all the tables.
table_name_14: position [ VARCHAR] overall [ VARCHAR] round [ VARCHAR]
SELECT position FROM table_name_14 WHERE overall < 64 AND round = 1
null
general
สโมสรใดมีสนามเหย้าไม่มี?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Which club, had a home ground of n/a?It is not neccessary to use all the tables.
table_63931: "Club" [ text] "League/Division" [ text] "Location" [ text]
SELECT "Club" FROM table_63931 WHERE "Home Ground" = 'n/a'
null
general
ด้วยจำนวนประชากรในปี 2548 จำนวน 572 คน ชื่อเดิมคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
With the population in 2005 of 572, what is the former name?It is not neccessary to use all the tables.
table_24239: "Nr." [ real] "District" [ text]
SELECT "Former Name" FROM table_24239 WHERE "Population (2005)" = '572'
null
general
ตำแหน่งไหนได้ 50 คะแนน ไม่จำเป็นต้องใช้ทุกตาราง
Which position earned 50 points?It is not neccessary to use all the tables.
table_17256857_1: fin_pos [ INTEGER] points [ VARCHAR]
SELECT MAX(fin_pos) FROM table_17256857_1 WHERE points = "50"
null
general
แคนตันเล่นได้กี่สถานี ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
how many stations played in canton ?It is not neccessary to use all the tables.
table_204_793: id [ number] "call-sign" [ text] "location" [ text] "rf" [ number] "psip" [ number] "programming" [ text]
SELECT COUNT(*) FROM table_204_793 WHERE "location" = 'canton'
null
general
s.ไม่จำเป็นที่จะต้องใช้ทุกตาราง
s.It is not neccessary to use all the tables.
PostHistoryTypes: Id [ number] Name [ text]
SELECT YEAR(p.CreationDate), SUM(CASE WHEN NOT t.Id IS NULL THEN 1 ELSE 0 END) / CAST(COUNT(p.Id) AS FLOAT) AS "ratio of id requests" FROM Posts AS p JOIN PostTags AS pt ON pt.PostId = p.Id LEFT OUTER JOIN Tags AS t ON t.Id = pt.TagId AND t.TagName = 'single-word-requests' WHERE p.PostTypeId = 1 GROUP BY YEAR(p.CreationDate)
null
general
จำนวนชื่อเรื่องในโลกใหม่เป็นเท่าใด ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the total of titles on new worlds ?It is not neccessary to use all the tables.
table_204_689: id [ number] "year" [ number] "title" [ text] "album" [ text] "uk" [ number] "b-sides" [ text]
SELECT COUNT("title") FROM table_204_689 WHERE "album" = 'new worlds'
null
general
อะไรเล่นที่ 800 เมื่อ Grey's Anatomy เล่นที่ 900 และ Ugly Betty เล่นที่ 830? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What played at 800 when Grey's Anatomy played at 900 and Ugly Betty played at 830?It is not neccessary to use all the tables.
table_42059: "8:00" [ text] "8:30" [ text] "9:00" [ text] "9:30" [ text] "10:00" [ text]
SELECT "8:00" FROM table_42059 WHERE "9:00" = 'grey''s anatomy' AND "8:30" = 'ugly betty'
null
general
IATA ของสนามบินใดคือ SEA?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What Airport's IATA is SEA?It is not neccessary to use all the tables.
table_79540: "City" [ text] "Country" [ text] "IATA" [ text] "ICAO" [ text] "Airport" [ text]
SELECT "Airport" FROM table_79540 WHERE "IATA" = 'sea'
null
general
รายงานที่ระบุชื่อการแข่งขันว่า ลองบีช กรังด์ปรีซ์ ชื่ออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the name of the report that lists the race name as long beach grand prix?It is not neccessary to use all the tables.
table_16256: "Rnd" [ text] "Circuit" [ text] "City/Location" [ text] "Date" [ text] "Report" [ text]
SELECT "Report" FROM table_16256 WHERE "Race Name" = 'Long Beach Grand Prix'
null
general
หากโหมดกราฟิกน้อยกว่า 1.0 เซลล์ถ่านคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
If graphics mode is less than 1.0, what are the char cells?It is not neccessary to use all the tables.
table_18950885_3: char_cells [ VARCHAR] graphics_mode [ INTEGER]
SELECT char_cells FROM table_18950885_3 WHERE graphics_mode < 1.0
null
general
ใครเล่นกีฬากรีฑา?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Who playes the sport of athletics?It is not neccessary to use all the tables.
table_32972: "Year" [ real] "Sportsperson" [ text] "Team" [ text] "Sport" [ text]
SELECT "Sportsperson" FROM table_32972 WHERE "Sport" = 'athletics'
null
general
ผู้ใช้ 50 อันดับแรกจากบังคลาเทศ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Top 50 users from Bangladesh.It is not neccessary to use all the tables.
SuggestedEditVotes: Id [ number] SuggestedEditId [ number] UserId [ number] VoteTypeId [ number] CreationDate [ time] TargetUserId [ number] TargetRepChange [ number]
SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Bangladesh%' ORDER BY Reputation DESC LIMIT 150
null
general
บอกวันที่ของ dinah pfizenmaier anna zaja และผู้ชนะให้ฉันทราบ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Tell me the date for dinah pfizenmaier anna zaja and winnerIt is not neccessary to use all the tables.
table_4426: "Outcome" [ text] "Date" [ text] "Tournament" [ text] "Surface" [ text] "Partner" [ text] "Opponents" [ text] "Score" [ text]
SELECT "Date" FROM table_4426 WHERE "Outcome" = 'winner' AND "Opponents" = 'dinah pfizenmaier anna zaja'
null
general
คู่ต่อสู้เป็นทีมใดเมื่อมีคะแนน 5 4 (11)?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What team was the opponent when there was a score of 5 4 (11)?It is not neccessary to use all the tables.
table_71033: "Date" [ text] "Opponent" [ text] "Score" [ text] "Loss" [ text] "Attendance" [ real] "Record" [ text]
SELECT "Opponent" FROM table_71033 WHERE "Score" = '5–4 (11)'
null
general
คู่ต่อสู้ในสัปดาห์ที่ 12 คือใคร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Who was the opponent in week 12?It is not neccessary to use all the tables.
table_67450: "Week" [ real] "Date" [ text] "Opponent" [ text] "Result" [ text] "Attendance" [ real]
SELECT "Opponent" FROM table_67450 WHERE "Week" = '12'
null
general
สถาบันใดก่อตั้งในปี พ.ศ. 2466?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which institution was founded in 1923?It is not neccessary to use all the tables.
table_18975: "Institution" [ text] "Location" [ text] "Founded" [ real] "Affiliation" [ text] "Enrollment" [ real] "Nickname" [ text]
SELECT "Institution" FROM table_18975 WHERE "Founded" = '1923'
null
general
คำถามที่มีการโหวต X จำนวน..ไม่จำเป็นต้องใช้ทุกตาราง
Questions with X amount of votes..It is not neccessary to use all the tables.
PendingFlags: Id [ number] FlagTypeId [ number] PostId [ number] CreationDate [ time] CloseReasonTypeId [ number] CloseAsOffTopicReasonTypeId [ number] DuplicateOfQuestionId [ number] BelongsOnBaseHostAddress [ text]
SELECT p.Id AS "post_link", p.Score, (SELECT COUNT(v.Id) FROM Votes AS v WHERE v.VoteTypeId IN (2, 3) AND v.PostId = p.Id) AS VoteCount, p.CreationDate FROM Posts AS p WHERE p.Score < '##ScoreInput##' AND (p.CreationDate < GETDATE() AND p.CreationDate > DATEADD(day, -'##DaysAgo##', GETDATE())) ORDER BY p.CreationDate DESC
null
general
ใบอนุญาตใดที่มีระบบ Amiga และชื่อของ Pocketuae?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which License has a System of amiga, and a Name of pocketuae?It is not neccessary to use all the tables.
table_55128: "Name" [ text] "System" [ text] "Platform" [ text] "License" [ text]
SELECT "License" FROM table_55128 WHERE "System" = 'amiga' AND "Name" = 'pocketuae'
null
general
อะไรคือขั้นตอนที่ได้รับคำสั่งมากที่สุดสามขั้นตอนสำหรับผู้ป่วยที่เคยได้รับการวินิจฉัยว่าเป็นโรคลิ้นหัวใจไมทรัล ซึ่งเกิดขึ้นภายในเดือนเดียวกันของปีที่แล้ว? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what are the three most commonly ordered procedures for patients who have previously been diagnosed with mitral valve disorder, which occurred within the same month last year?It is not neccessary to use all the tables.
d_labitems: row_id [ number] itemid [ number] label [ text]
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'mitral valve disorder') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.icd9_code) AS t3 WHERE t3.c1 <= 3)
null
general
ตั้งชื่อ Box Score ซึ่งมีทีมเยือนนิวซีแลนด์เบรกเกอร์ในวันที่ 7 กุมภาพันธ์หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the Box Score which has an Away team of new zealand breakers on 7 february?It is not neccessary to use all the tables.
table_name_68: Box [ VARCHAR] away_team [ VARCHAR] date [ VARCHAR]
SELECT Box AS score FROM table_name_68 WHERE away_team = "new zealand breakers" AND date = "7 february"
null
general
ปี 1985 ซึ่งมี BB +HBP เท่ากับ 39 มี Number อะไรบ้าง?ไม่จำเป็นต้องใช้ตารางทั้งหมด
The year of 1985 which has a BB +HBP of 39 has what Number listed?It is not neccessary to use all the tables.
table_name_37: number [ VARCHAR] year [ VARCHAR] bb_ [ VARCHAR] hbp [ VARCHAR]
SELECT number FROM table_name_37 WHERE bb_ + hbp = 39 AND year = "1985"
null
general
ฉันต้องการคลาส ACC แบบง่าย ไม่จำเป็นต้องใช้ตารางทั้งหมด
An easy ACC class is what I need .It is not neccessary to use all the tables.
student: student_id [ int] lastname [ varchar] firstname [ varchar] program_id [ int] declare_major [ varchar] total_credit [ int] total_gpa [ float] entered_as [ varchar] admit_term [ int] predicted_graduation_semester [ int] degree [ varchar] minor [ varchar] internship [ varchar]
SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department LIKE '%ACC%' AND program_course.course_id = course.course_id AND program_course.workload < 3
null
general
มีกี่ฤดูกาลที่มี Rob Masek?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many seasons feature Rob Masek?It is not neccessary to use all the tables.
table_2140071_8: season [ VARCHAR] coach [ VARCHAR]
SELECT COUNT(season) FROM table_2140071_8 WHERE coach = "Rob Masek"
null
general
ในปี 1994 การแข่งขันใดที่จัดขึ้นในซีรีส์ ATP Mastersไม่จำเป็นต้องใช้ตารางทั้งหมด
In 1994 what tournament held a ATP masters seriesIt is not neccessary to use all the tables.
table_name_38: tournament [ VARCHAR]
SELECT 1994 FROM table_name_38 WHERE tournament = "atp masters series"
null
general
คืนจำนวนองค์กรให้ฉัน ไม่จำเป็นต้องใช้ตารางทั้งหมด
return me the number of the organizations .It is not neccessary to use all the tables.
domain: did [ int] name [ varchar]
SELECT COUNT(DISTINCT (name)) FROM organization
null
general
ความยาวคืออะไร เมื่อความยาวลำกล้องคือ 750 มม. / 29.5 นิ้ว ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is Length, when Barrel Length is 750mm / 29.5 in?It is not neccessary to use all the tables.
table_name_46: length [ VARCHAR] barrel_length [ VARCHAR]
SELECT length FROM table_name_46 WHERE barrel_length = "750mm / 29.5 in"
null
general
ใครคือผู้เล่นที่ดีที่สุดในฤดูกาล 1998?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Who is the best player in the 1998 season?It is not neccessary to use all the tables.
table_2527617_1: best_player [ VARCHAR] season [ VARCHAR]
SELECT best_player FROM table_2527617_1 WHERE season = 1998
null
general
เมื่อครบ 182 รอบแล้วเข้ารอบเท่าไหร่?ไม่จำเป็นต้องใช้ทุกโต๊ะ
When completing 182 laps, what was the qual.?It is not neccessary to use all the tables.
table_14658: "Year" [ text] "Start" [ text] "Qual" [ text] "Rank" [ text] "Finish" [ text] "Laps" [ real]
SELECT "Qual" FROM table_14658 WHERE "Laps" = '182'
null
general
กี่ครั้งแล้วที่ Bastien Bourdais คว้าแชมป์ champ car world series ระหว่างปี 2005 ถึง 2007 ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
how many times did s bastien bourdais win the champ car world series between 2005 and 2007 ?It is not neccessary to use all the tables.
table_203_99: id [ number] "season" [ number] "date" [ text] "driver" [ text] "team" [ text] "chassis" [ text] "engine" [ text] "report" [ text]
SELECT COUNT(*) FROM table_203_99 WHERE "season" >= 2005 AND "season" <= 2007 AND "driver" = 'sebastien bourdais'
null
general
ผู้ป่วยที่เสียชีวิตมีอาการปวด ruq กี่ราย?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What number of patients that died had ruq pain?It is not neccessary to use all the tables.
demographic: subject_id [ text] hadm_id [ text] name [ text] marital_status [ text] age [ text] dob [ text] gender [ text] language [ text] religion [ text] admission_type [ text] days_stay [ text] insurance [ text] ethnicity [ text] expire_flag [ text] admission_location [ text] discharge_location [ text] diagnosis [ text] dod [ text] dob_year [ text] dod_year [ text] admittime [ text] dischtime [ text] admityear [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "RUQ PAIN"
null
general
เมื่อผลออกมาเป็น l 13-7 ot คู่ต่อสู้คือใคร?ไม่จำเป็นต้องใช้ทุกโต๊ะ
When the result was l 13-7 ot, who was the opponent?It is not neccessary to use all the tables.
table_name_27: opponent [ VARCHAR] result [ VARCHAR]
SELECT opponent FROM table_name_27 WHERE result = "l 13-7 ot"
null
general
ผู้ใช้ 10 อันดับแรกตามคะแนนคำตอบเฉลี่ย ไม่จำเป็นต้องใช้ตารางทั้งหมด
Top 10 users by average answer score.It is not neccessary to use all the tables.
ReviewTaskTypes: Id [ number] Name [ text] Description [ text]
SELECT OwnerUserId AS "user_link", AVG(Score), COUNT(*) AS NumAnswers FROM Posts WHERE PostTypeId = 2 AND OwnerUserId > 0 GROUP BY OwnerUserId ORDER BY AVG(Score) DESC LIMIT 10
null
general
แสดงให้ฉันดูเกี่ยวกับการแจกแจงของ Sex และค่าเฉลี่ยของ Weight และจัดกลุ่มตามคุณลักษณะ Sex ในแผนภูมิแท่ง และแสดงรายการแกน y จากสูงไปต่ำ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show me about the distribution of Sex and the average of Weight , and group by attribute Sex in a bar chart, and list y axis from high to low order.It is not neccessary to use all the tables.
candidate: Candidate_ID [ int] People_ID [ int] Poll_Source [ text] Date [ text] Support_rate [ real] Consider_rate [ real] Oppose_rate [ real] Unsure_rate [ real]
SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight) DESC
null
general
คะแนนของเกมตั้งแต่วันที่ 18 กรกฎาคมเป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the score of the game from July 18?It is not neccessary to use all the tables.
table_46133: "Game" [ real] "Date" [ text] "Opponent" [ text] "Score" [ text] "Location/Attendance" [ text] "Record" [ text]
SELECT "Score" FROM table_46133 WHERE "Date" = 'july 18'
null
general
นับจำนวนผู้ป่วยชาวเอเชียที่เสียชีวิตในหรือก่อนปี 2158 ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
Count the number of asian patients who died in or before 2158.It is not neccessary to use all the tables.
prescriptions: subject_id [ text] hadm_id [ text] icustay_id [ text] drug_type [ text] drug [ text] formulary_drug_cd [ text] route [ text] drug_dose [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "ASIAN" AND demographic.dod_year <= "2158.0"
null
general
แสดงหมายเลขยี่ห้อของแต่ละยี่ห้อ จำนวนรวมลำดับจากน้อยไปหามาก ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show the number of brand from each brand, order total number in ascending order.It is not neccessary to use all the tables.
mountain: id [ int] name [ text] Height [ real] Prominence [ real] Range [ text] Country [ text]
SELECT brand, COUNT(brand) FROM camera_lens GROUP BY brand ORDER BY COUNT(brand)
null
general
จำนวนการแข่งขันที่เกิดขึ้นด้วยคะแนน 257 เป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the number of races that took place with points of 257?It is not neccessary to use all the tables.
table_34902: "Driver" [ text] "Points" [ real] "Season" [ text] "Races" [ real]
SELECT SUM("Races") FROM table_34902 WHERE "Points" = '257'
null
general
ตั้งชื่อหญิงสาวส่วนใหญ่เมื่อ 5.11ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the most maidens when e.r. 5.11It is not neccessary to use all the tables.
table_20276: "Name" [ text] "Maidens" [ real] "Wickets" [ real] "Extras" [ real] "E.R." [ text]
SELECT MAX("Maidens") FROM table_20276 WHERE "E.R." = '5.11'
null
general
ฝ่ายตรงข้ามคืออะไรก่อนวันที่ 31 ตุลาคมด้วยสถิติ 2-3-1 หลังเกมที่ 5?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the Opponent before October 31 with a Record of 2-3-1 after Game 5?It is not neccessary to use all the tables.
table_name_52: opponent [ VARCHAR] record [ VARCHAR] october [ VARCHAR] game [ VARCHAR]
SELECT opponent FROM table_name_52 WHERE october < 31 AND game > 5 AND record = "2-3-1"
null
general
วันที่ 12 มีนาคมมีการแข่งขันกี่เกม?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
How many games were held on March 12?It is not neccessary to use all the tables.
table_27715173_10: game [ VARCHAR] date [ VARCHAR]
SELECT COUNT(game) FROM table_27715173_10 WHERE date = "March 12"
null
general
ยาที่ใช้บ่อยที่สุดสามชนิดที่จ่ายให้กับผู้ป่วยอายุ 40 ปีในเดือนเดียวกันหลังจากได้รับการวินิจฉัยว่ากระดูกหัก - ซี่โครงตั้งแต่ 5 ปีที่แล้วคืออะไร? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
what is the three most frequent medication that was prescribed in the same month to the patients aged 40s after they had been diagnosed with bone fracture(s) - ribs, since 5 years ago?It is not neccessary to use all the tables.
diagnosis: diagnosisid [ number] patientunitstayid [ number] diagnosisname [ text] diagnosistime [ time] icd9code [ text]
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bone fracture(s) - ribs' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-5 year')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugname, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE patient.age BETWEEN 40 AND 49 AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-5 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.drugstarttime AND DATETIME(t1.diagnosistime, 'start of month') = DATETIME(t2.drugstarttime, 'start of month') GROUP BY t2.drugname) AS t3 WHERE t3.c1 <= 3
null
general
วันที่เริ่มต้นการจองของอพาร์ทเมนท์ที่มีมากกว่า 2 ห้องนอนในแต่ละวันธรรมดาคือจำนวนเท่าใด? โปรดวาดแผนภูมิแท่งและเรียงลำดับตาม Y จากต่ำไปสูง ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the number of booking start dates of the apartments with more than 2 bedrooms for each weekday? Draw a bar chart, and order by the Y from low to high please.It is not neccessary to use all the tables.
View_Unit_Status: apt_id [ INTEGER] apt_booking_id [ INTEGER] status_date [ DATETIME] available_yn [ BIT]
SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 2 ORDER BY COUNT(booking_start_date)
null
general
ผู้ใช้ SO อันดับต้นๆ จากไต้หวัน ไม่จำเป็นต้องใช้ตารางทั้งหมด
Top SO users from Taiwan.It is not neccessary to use all the tables.
SuggestedEditVotes: Id [ number] SuggestedEditId [ number] UserId [ number] VoteTypeId [ number] CreationDate [ time] TargetUserId [ number] TargetRepChange [ number]
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS Link, DisplayName, Reputation, Location FROM Users WHERE (LOWER(Location) LIKE '%taiwan%' OR UPPER(Location) LIKE '%Taiwan%' OR Location LIKE '% %') ORDER BY Reputation DESC LIMIT 50
null
general
รางวัลสำหรับการแข่งขันที่อิบารากิคืออะไร?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What is the prize for the tournament at Ibaraki?It is not neccessary to use all the tables.
table_28342: "Dates" [ text] "Tournament" [ text] "Location" [ text] "Winner" [ text]
SELECT "Prize fund ( \uffe5 )" FROM table_28342 WHERE "Location" = 'Ibaraki'
null
general
การทดสอบในห้องปฏิบัติการครั้งล่าสุดที่ผู้ป่วย 25050 ทำเมื่อ 105 เดือนที่แล้วชื่ออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what was the name of the last lab test that patient 25050 had since 105 months ago?It is not neccessary to use all the tables.
labevents: row_id [ number] subject_id [ number] hadm_id [ number] itemid [ number] charttime [ time] valuenum [ number] valueuom [ text]
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25050) AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-105 month') ORDER BY labevents.charttime DESC LIMIT 1)
null
general
ใบสั่งยามอร์ฟีนซัลเฟตครั้งสุดท้ายสำหรับผู้ป่วย 010-38092 คือเมื่อใดนับตั้งแต่ 97 เดือนที่แล้ว?ไม่จำเป็นต้องใช้ตารางทั้งหมด
when was the last prescription time for morphine sulfate for patient 010-38092 since 97 months ago?It is not neccessary to use all the tables.
allergy: allergyid [ number] patientunitstayid [ number] drugname [ text] allergyname [ text] allergytime [ time]
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-38092')) AND medication.drugname = 'morphine sulfate' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-97 month') ORDER BY medication.drugstarttime DESC LIMIT 1
null
general
มีผู้ป่วยกี่รายที่ได้รับการสั่งจ่ายยาพื้นฐานและมีการทดสอบในห้องปฏิบัติการเซลล์อื่นในห้องปฏิบัติการ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many patients who have been prescribed base drug type had other cell lab test in the lab?It is not neccessary to use all the tables.
lab: subject_id [ text] hadm_id [ text] itemid [ text] charttime [ text] flag [ text] value_unit [ text] label [ text] fluid [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "BASE" AND lab.label = "Other Cell"
null
general
ความสัมพันธ์ระหว่างรหัสบัญชีและชื่อสำหรับทุกบัญชีคืออะไร? ส่งกลับแผนภูมิกระจาย ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the relationship between account id and name for all accounts? Return a scatter chart.It is not neccessary to use all the tables.
Product_Categories: production_type_code [ VARCHAR(15)] product_type_description [ VARCHAR(80)] vat_rating [ DECIMAL(194)]
SELECT account_id, account_name FROM Accounts
null
general
สมมาตรการกลับตัวคืออะไร เมื่อไม่มีการปกครองแบบเผด็จการ และประสิทธิภาพของพาเรโตไม่มี? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the reversal symmetry when non-dicatorship is no and pareto efficiency is no?It is not neccessary to use all the tables.
table_13432: "Non-dictatorship" [ text] "Majority" [ text] "Monotone" [ text] "Condorcet" [ text]
SELECT "Reversal symmetry" FROM table_13432 WHERE "Non-dictatorship" = 'no' AND "Pareto efficiency" = 'no'
null
general
วันที่ของเกมมีสถิติ 18 10 2 คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the date of the game with the record of 18 10 2?It is not neccessary to use all the tables.
table_name_60: date [ VARCHAR] record [ VARCHAR]
SELECT date FROM table_name_60 WHERE record = "18–10–2"
null
general
ขอแผนภูมิแท่งเพื่อแสดงจำนวนวันที่อุณหภูมิสูงสุดมากกว่าหรือเท่ากับ 80 ในแต่ละปี และเรียงลำดับจำนวนทั้งหมดจากมากไปน้อย ไม่จำเป็นต้องใช้ตารางทั้งหมด
Give me a bar chart to show how many days with a max temperature greater than or equal to 80 for each year, and sort total number from high to low order.It is not neccessary to use all the tables.
trip: id [ INTEGER] duration [ INTEGER] start_date [ TEXT] start_station_name [ TEXT] start_station_id [ INTEGER] end_date [ TEXT] end_station_name [ TEXT] end_station_id [ INTEGER] bike_id [ INTEGER] subscription_type [ TEXT] zip_code [ INTEGER]
SELECT date, COUNT(date) FROM weather WHERE max_temperature_f >= 80 ORDER BY COUNT(date) DESC
null
general
Taper/in ใดที่มีปลายเล็กมากกว่า 0.7000000000000001 และเรียวที่ #19 และปลายขนาดใหญ่มากกว่า 2.375 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Taper/in that has a Small end larger than 0.7000000000000001, and a Taper of #19, and a Large end larger than 2.375?It is not neccessary to use all the tables.
table_76927: "Taper" [ text] "Length" [ real]
SELECT MIN("Taper/ in") FROM table_76927 WHERE "Small end" > '0.7000000000000001' AND "Taper" = '#19' AND "Large end" > '2.375'
null
general
การจบฤดูกาลที่ดีที่สุดสำหรับปี 206 ในรายการเงินคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the best finish for 206 on the money list?It is not neccessary to use all the tables.
table_4209: "Player" [ text] "Starts" [ real]
SELECT "Best finish" FROM table_4209 WHERE "Money list rank" = '206'
null
general
แสดงตำแหน่งผู้เล่นที่พบบ่อยที่สุดในฤดูกาลการแข่งขัน ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show the most common position of players in match seasons.It is not neccessary to use all the tables.
match_season: POSITION [ VARCHAR]
SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY COUNT(*) DESC LIMIT 1
null
general
ศิลปินต้นฉบับของเพลง 'The Letter' คือใคร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Who is the original artist of the song choice ' The Letter '?It is not neccessary to use all the tables.
table_73924: "Episode" [ text] "Theme" [ text] "Result" [ text]
SELECT "Original artist" FROM table_73924 WHERE "Song choice" = ' The Letter '
null
general
ตั้งชื่อเวอร์ชันต่ำสุดด้วยรหัส u+1034a ที่เริ่มหลังปี 2001 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the lowest version with a code of u+1034a that began after 2001.It is not neccessary to use all the tables.
table_50667: "Character" [ text] "Code" [ text] "Name" [ text] "Version" [ real] "Year" [ real]
SELECT MIN("Version") FROM table_50667 WHERE "Code" = 'u+1034a' AND "Year" > '2001'
null
general
ตำแหน่งที่ผู้เล่นเลือกโดย Montreal Canadiens คืออะไร? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
What was the position of the player picked by the Montreal Canadiens?It is not neccessary to use all the tables.
table_1473672_5: position [ VARCHAR] nhl_team [ VARCHAR]
SELECT position FROM table_1473672_5 WHERE nhl_team = "Montreal Canadiens"
null
general
เกมที่ 7 กี่โมง? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What time was game 7?It is not neccessary to use all the tables.
table_name_25: time [ VARCHAR] game [ VARCHAR]
SELECT time FROM table_name_25 WHERE game = 7
null
general
ตั้งชื่อแบบฝึกหัดพื้นน้อยที่สุดสำหรับบาร์คู่ขนานมากกว่า 9.687 และม้าอานม้าน้อยกว่า 8.45 ไม่จำเป็นต้องใช้ทุกโต๊ะ
Name the least floor exercise for parallel bars more than 9.687 and pommel horse less than 8.45It is not neccessary to use all the tables.
table_name_58: floor_exercise [ INTEGER] pommel_horse [ VARCHAR] parallel_bars [ VARCHAR]
SELECT MIN(floor_exercise) FROM table_name_58 WHERE pommel_horse < 8.45 AND parallel_bars > 9.687
null
general
โกลด์โคสต์แห่งใดที่มีเมลเบิร์นใช่ และโอ๊คแลนด์ใช่? ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Gold Coast has Melbourne yes, and Auckland yes?It is not neccessary to use all the tables.
table_name_8: gold_coast [ VARCHAR] melbourne [ VARCHAR] auckland [ VARCHAR]
SELECT gold_coast FROM table_name_8 WHERE melbourne = "yes" AND auckland = "yes"
null
general
แผนภูมิวงกลม ธุรกรรมมีกี่ประเภท และแต่ละธุรกรรมเกิดขึ้นกี่รายการ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Pie chart. what are the different transaction types, and how many transactions of each have taken place?It is not neccessary to use all the tables.
Customers_Cards: card_id [ INTEGER] customer_id [ INTEGER] card_type_code [ VARCHAR(15)] card_number [ VARCHAR(80)] date_valid_from [ DATETIME] date_valid_to [ DATETIME] other_card_details [ VARCHAR(255)]
SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type
null
general
สำหรับพนักงานทุกคนที่มีตัวอักษร D หรือ S ในชื่อ แผนภูมิเส้นจะแสดงการเปลี่ยนแปลงของเงินเดือนมากกว่า Hire_date และคุณสามารถเรียงลำดับ HIRE_DATE จากสูงไปต่ำได้หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
For all employees who have the letters D or S in their first name, a line chart shows the change of salary over hire_date, and could you sort HIRE_DATE from high to low order?It is not neccessary to use all the tables.
departments: DEPARTMENT_ID [ decimal(40)] DEPARTMENT_NAME [ varchar(30)] MANAGER_ID [ decimal(60)] LOCATION_ID [ decimal(40)]
SELECT HIRE_DATE, SALARY FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE DESC
null
general
ค้นหาชื่อภาพยนตร์ทั้งหมดที่กำกับโดยสตีเว่น สปีลเบิร์ก ไม่จำเป็นต้องใช้ตารางทั้งหมด
Find the titles of all movies directed by steven spielberg.It is not neccessary to use all the tables.
Movie: title [ VARCHAR] director [ VARCHAR]
SELECT title FROM Movie WHERE director = 'Steven Spielberg'
null
general
ตัวเลขของซานโตโดมิงโก โดมินิกัน สำหรับสถิติโลกในรายการ Clean & Jerk คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk?It is not neccessary to use all the tables.
table_65002: "Snatch" [ text] "98kg" [ text]
SELECT "Santo Domingo , Dominican" FROM table_65002 WHERE "World record" = 'clean & jerk'
null
general
มีเที่ยวบินใดบ้างระหว่างวอชิงตันและซานฟรานซิสโก ออกจากวอชิงตันหลัง 18.00 น. ในวันพุธไม่จำเป็นต้องใช้ตารางทั้งหมด
what flights are there between WASHINGTON and SAN FRANCISCO leaving washington after 1800 on wednesdayIt is not neccessary to use all the tables.
flight_leg: flight_id [ int] leg_number [ int] leg_flight [ int]
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time > 1800 AND flight.flight_days = days.days_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
null
general
นับจำนวนคนไข้ที่ประกันเป็นของเอกชน และสถานที่รับเข้ารักษา คือ การส่งต่อคลินิก/ก่อนกำหนด ไม่จำเป็นต้องใช้ตารางทั้งหมด
count the number of patients whose insurance is private and admission location is clinic referral/premature.It is not neccessary to use all the tables.
prescriptions: subject_id [ text] hadm_id [ text] icustay_id [ text] drug_type [ text] drug [ text] formulary_drug_cd [ text] route [ text] drug_dose [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.admission_location = "CLINIC REFERRAL/PREMATURE"
null
general
นับจำนวนครั้งที่ผู้ป่วย 95,909 รายในระหว่างปีนี้ได้รับ bx ในช่องอกของช่องอก ไม่จำเป็นต้องใช้ตารางทั้งหมด
count the number of times patient 95909 during this year had received thoracoscopic pleural bx.It is not neccessary to use all the tables.
transfers: row_id [ number] subject_id [ number] hadm_id [ number] icustay_id [ number] eventtype [ text] careunit [ text] wardid [ number] intime [ time] outtime [ time]
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'thoracoscopic pleural bx') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 95909) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
null
general
ผู้ป่วย 011-31236 เข้ารับการรักษาจริงตั้งแต่ปี 2100 หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
has patient 011-31236 actually been admitted since 2100?It is not neccessary to use all the tables.
intakeoutput: intakeoutputid [ number] patientunitstayid [ number] cellpath [ text] celllabel [ text] cellvaluenumeric [ number] intakeoutputtime [ time]
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '011-31236' AND STRFTIME('%y', patient.hospitaladmittime) >= '2100'
null
general
สำหรับแต่ละห้องเรียนให้แสดงหมายเลขห้องเรียนและดูว่ามีนักเรียนกี่คนที่ใช้งานอยู่ ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
For each classroom, show the classroom number and find how many students are using it.It is not neccessary to use all the tables.
teachers: lastname [ text] firstname [ text] classroom [ number]
SELECT classroom, COUNT(*) FROM list GROUP BY classroom
null
general
ค้นหารายละเอียดร้านค้าที่สามารถเดินไปถึงได้ ไม่จำเป็นต้องใช้ทุกโต๊ะ
Find the details of the shops that can be reached by walk.It is not neccessary to use all the tables.
features: feature_id [ number] feature_details [ text]
SELECT T1.shop_details FROM shops AS T1 JOIN tourist_attractions AS T2 ON T1.shop_id = T2.tourist_attraction_id WHERE T2.how_to_get_there = "walk"
null
general
หัวข้อของการแข่งขันฟาร์มเรียงตามปีจากน้อยไปมากคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What are the themes of farm competitions sorted by year in ascending order?It is not neccessary to use all the tables.
competition_record: competition_id [ number] farm_id [ number] rank [ number]
SELECT theme FROM farm_competition ORDER BY year
null
general
คะแนนทีมเยือนของเซนต์คิลดาเป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was St Kilda's away team score?It is not neccessary to use all the tables.
table_4756: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT "Away team score" FROM table_4756 WHERE "Away team" = 'st kilda'
null
general
แสดงจำนวนบัญชีที่เปิดในแต่ละปีสำหรับทุกบัญชีและจัดกลุ่มตามรายละเอียดบัญชีอื่น ๆ ในแผนภูมิเส้นกลุ่ม ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show the number of accounts opened in each year for all accounts and group by other account details in a group line chart.It is not neccessary to use all the tables.
Product_Categories: production_type_code [ VARCHAR(15)] product_type_description [ VARCHAR(80)] vat_rating [ DECIMAL(194)]
SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts GROUP BY other_account_details
null
general
สำหรับผู้เล่น วอลลี จอห์นสัน ซึ่งมีเป้าหมายมากกว่า 0 ปีที่เปิดตัวช้ากว่าปี 1904 และเกมที่มากกว่า 136 เกม สโมสรคือปีใด? ไม่จำเป็นต้องใช้ตารางทั้งหมด
For player Wally Johnson, with goals larger than 0, the debut year later than 1904, and games greater than 136, what were the years at club?It is not neccessary to use all the tables.
table_name_5: years_at_club [ VARCHAR] player [ VARCHAR] games [ VARCHAR] goals [ VARCHAR] debut_year [ VARCHAR]
SELECT years_at_club FROM table_name_5 WHERE goals > 0 AND debut_year > 1904 AND games > 136 AND player = "wally johnson"
null
general
เลื่อนวันไหน (ฝน) เลื่อนเป็นวันที่ 7 ส.ค. เป็นคะแนน ?ไม่จำเป็นต้องใช้ทุกตารางครับ
What date has postponed (rain) rescheduled for august 7 as the score?It is not neccessary to use all the tables.
table_name_27: date [ VARCHAR] score [ VARCHAR]
SELECT date FROM table_name_27 WHERE score = "postponed (rain) rescheduled for august 7"
null
general
นับจำนวนผู้ป่วยที่ได้รับการวินิจฉัยว่าเป็นโรคลิ้นหัวใจตีบ-เอออร์ติกแต่ไม่ได้กลับมารักษาในโรงพยาบาลภายใน 2 เดือน จนถึง 1 ปีที่แล้ว ไม่จำเป็นต้องใช้ทุกโต๊ะ
count the number of patients who were diagnosed with valvular stenosis - aortic but did not come back to hospital within 2 months until 1 year ago.It is not neccessary to use all the tables.
allergy: allergyid [ number] patientunitstayid [ number] drugname [ text] allergyname [ text] allergytime [ time]
SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'valvular stenosis - aortic' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-1 year')) AS t1) - (SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'valvular stenosis - aortic' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-1 year')) AS t2 JOIN patient ON t2.uniquepid = patient.uniquepid WHERE t2.diagnosistime < patient.hospitaladmittime AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-1 year') AND DATETIME(patient.hospitaladmittime) BETWEEN DATETIME(t2.diagnosistime) AND DATETIME(t2.diagnosistime, '+2 month'))
null
general
ชนะน้อยที่สุดเมื่อมี 34 แต้มและเสมอเกิน 13 ครั้งคืออะไร?ไม่จำเป็นต้องใช้ทุกตาราง
What was the lowest win when there were 34 points and more than 13 draws?It is not neccessary to use all the tables.
table_62385: "Position" [ real] "Club" [ text] "Wins" [ real] "Draws" [ real] "Loses" [ real] "Points" [ real]
SELECT MIN("Wins") FROM table_62385 WHERE "Points" = '34' AND "Draws" > '13'
null
general
เวลา/เกษียณอายุใดที่มีรอบสนามน้อยกว่า 24 และผู้ผลิต Aprilia และ Grid ที่เล็กกว่า 12 และ Rider ของ ngel rodr guez?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Time/Retired has Laps smaller than 24, and a Manufacturer of aprilia, and a Grid smaller than 12, and a Rider of ngel rodr guez?It is not neccessary to use all the tables.
table_name_5: time_retired [ VARCHAR] rider [ VARCHAR] grid [ VARCHAR] laps [ VARCHAR] manufacturer [ VARCHAR]
SELECT time_retired FROM table_name_5 WHERE laps < 24 AND manufacturer = "aprilia" AND grid < 12 AND rider = "ángel rodríguez"
null
general
บอกโฮสต์วันที่ 13 มกราคม 2552 หน่อยสิ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Tell me the 13 january 2009 hostIt is not neccessary to use all the tables.
table_4343: "Country/Region" [ text] "Name" [ text] "Host" [ text] "Network" [ text] "Premiere" [ text] "Prize" [ text]
SELECT "Host" FROM table_4343 WHERE "Premiere" = '13 january 2009'
null
general
ผู้ป่วยที่เป็นโรคหลักเกิดแรกเกิดและเสียชีวิตน้อยกว่าหรือเท่ากับ 2,122 จำนวนเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the number of patients whose primary disease is newborn and year of death is less than or equal to 2122?It is not neccessary to use all the tables.
lab: subject_id [ text] hadm_id [ text] itemid [ text] charttime [ text] flag [ text] value_unit [ text] label [ text] fluid [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "NEWBORN" AND demographic.dod_year <= "2122.0"
null
general
โรงเรียนสำหรับผู้เล่นที่เป็นบ้านเกิดคือเมืองเออร์ไวน์ รัฐแคลิฟอร์เนีย คืออะไร?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What is the school for the player who's hometown was Irvine, CA?It is not neccessary to use all the tables.
table_11677100_18: school [ VARCHAR] hometown [ VARCHAR]
SELECT school FROM table_11677100_18 WHERE hometown = "Irvine, CA"
null
general
แสดงรหัสสำหรับพนักงานทุกคนที่ไม่มีใบรับรอง ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show ids for all employees who don't have a certificate.It is not neccessary to use all the tables.
flight: flno [ number] origin [ text] destination [ text] distance [ number] departure_date [ time] arrival_date [ time] price [ number] aid [ number]
SELECT eid FROM employee EXCEPT SELECT eid FROM certificate
null
general
รองชนะเลิศคืออะไรเมื่อผลรวมเป็น 5? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the runner-up when the total is 5?It is not neccessary to use all the tables.
table_name_51: runner_up [ VARCHAR] total [ VARCHAR]
SELECT runner_up FROM table_name_51 WHERE total = 5
null
general
เจ้าบ้านที่เล่นกับทีมเยือนที่ทำคะแนนได้ 13.11 (89) ชื่ออะไร?ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
What is the name of the home team that played an away team who scored 13.11 (89)?It is not neccessary to use all the tables.
table_54553: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT "Home team" FROM table_54553 WHERE "Away team score" = '13.11 (89)'
null
general
ค่าใช้จ่ายขั้นต่ำของโรงพยาบาลที่เกี่ยวข้องกับขั้นตอนที่เรียกว่าการบริหารผลิตภัณฑ์จากเลือดคือเท่าใด พลาสมาแช่แข็งสด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the hospitals minimum cost that involves a procedure called a blood product administration - fresh frozen plasma?It is not neccessary to use all the tables.
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]
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'blood product administration - fresh frozen plasma')) GROUP BY cost.patienthealthsystemstayid) AS t1
null
general
CC License ของ by-nc-sa 2.5 มีประเภทใดบ้าง? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What different types are there with a CC License of by-nc-sa 2.5?It is not neccessary to use all the tables.
table_32978: "Name" [ text] "Type" [ text]
SELECT "Type" FROM table_32978 WHERE "CC License" = 'by-nc-sa 2.5'
null
general
ตั้งชื่อจำนวนรีบาวด์สูงสำหรับ l 92 96 (ot)ไม่จำเป็นต้องใช้ทุกตาราง
Name the number of high rebounds for l 92 96 (ot)It is not neccessary to use all the tables.
table_25478: "Game" [ real] "Date" [ text] "Team" [ text] "Score" [ text] "Series" [ text]
SELECT COUNT("High rebounds") FROM table_25478 WHERE "Score" = 'L 92–96 (OT)'
null
general
สำหรับบันทึกเหล่านั้นจากผลิตภัณฑ์และผู้ผลิตแต่ละผลิตภัณฑ์ ให้เปรียบเทียบเกี่ยวกับโค้ดเหนือชื่อ และกลุ่มตามคุณลักษณะ สำนักงานใหญ่ด้วยแผนภูมิแท่ง ฉันต้องการสั่งซื้อตามแกน X ใน asc โปรดใช้ ไม่จำเป็น โต๊ะทั้งหมด
For those records from the products and each product's manufacturer, give me the comparison about code over the name , and group by attribute headquarter by a bar chart, I want to order by the X-axis in asc please.It is not neccessary to use all the tables.
Manufacturers: Code [ INTEGER] Name [ VARCHAR(255)] Headquarter [ VARCHAR(255)] Founder [ VARCHAR(255)] Revenue [ REAL]
SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name
null
general
อะไรคือผลลัพธ์ของ Chris Gratton และ Philadelphia Flyers ในฐานะทีมข้อเสนอ?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the result of Chris Gratton and Philadelphia Flyers as the Offer Team?It is not neccessary to use all the tables.
table_70648: "Player" [ text] "Date" [ text] "Result" [ text]
SELECT "Result" FROM table_70648 WHERE "Offer Team" = 'philadelphia flyers' AND "Player" = 'chris gratton'
null
general
ระบุจำนวนผู้ป่วยที่มีโรคหลักคือโรคหลอดเลือดหัวใจ\coronary artery bypass graft /sda และชื่อยาคือ glycopyrrolate?ไม่จำเป็นต้องใช้ตารางทั้งหมด
provide the number of patients whose primary disease is coronary artery disease\coronary artery bypass graft /sda and drug name is glycopyrrolate?It is not neccessary to use all the tables.
prescriptions: subject_id [ text] hadm_id [ text] icustay_id [ text] drug_type [ text] drug [ text] formulary_drug_cd [ text] route [ text] drug_dose [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT /SDA" AND prescriptions.drug = "Glycopyrrolate"
null
general
เมืองใดมีโทรจันเป็นทีม และเทย์เลอร์เป็นโรงเรียน? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What city has trojans as the team, and taylor as the school?It is not neccessary to use all the tables.
table_name_43: city [ VARCHAR] team [ VARCHAR] school [ VARCHAR]
SELECT city FROM table_name_43 WHERE team = "trojans" AND school = "taylor"
null
general
ขอรายชื่อผู้ป่วยที่เสียชีวิตในหรือก่อนปี 2126 ที่มีรหัสยา ggac5l ไม่จำเป็นต้องใช้ตารางทั้งหมด
Get me the list of patients who died on or before 2126 that had drug code ggac5l.It is not neccessary to use all the tables.
demographic: subject_id [ text] hadm_id [ text] name [ text] marital_status [ text] age [ text] dob [ text] gender [ text] language [ text] religion [ text] admission_type [ text] days_stay [ text] insurance [ text] ethnicity [ text] expire_flag [ text] admission_location [ text] discharge_location [ text] diagnosis [ text] dod [ text] dob_year [ text] dod_year [ text] admittime [ text] dischtime [ text] admityear [ text]
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2126.0" AND prescriptions.formulary_drug_cd = "GGAC5L"
null
general
บอกฉันหน่อยว่าผู้ป่วย 56009 มีเวลาเข้ารักษาในโรงพยาบาลจนถึง 21.00 น. หรือไม่ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
tell me patient 56009's hospital admission time until 2100?It is not neccessary to use all the tables.
outputevents: row_id [ number] subject_id [ number] hadm_id [ number] icustay_id [ number] charttime [ time] itemid [ number] value [ number]
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 56009 AND STRFTIME('%y', admissions.admittime) <= '2100'
null
general