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
แสดงภาพแผนภูมิแท่งสำหรับชื่อและรหัสของลูกค้าที่มีบัญชีตั้งแต่สองบัญชีขึ้นไปคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Visualize a bar chart for what are the first names and ids for customers who have two or more accounts?It is not neccessary to use all the tables.
Financial_Transactions: transaction_id [ INTEGER] account_id [ INTEGER] invoice_number [ INTEGER] transaction_type [ VARCHAR(15)] transaction_date [ DATETIME] transaction_amount [ DECIMAL(194)] transaction_comment [ VARCHAR(255)] other_transaction_details [ VARCHAR(255)]
SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id
null
general
เอสโตริลเปิดได้นานแค่ไหน ?ไม่จำเป็นต้องใช้ทุกโต๊ะ
how long did the estoril open last ?It is not neccessary to use all the tables.
table_204_85: id [ number] "dates" [ text] "tournament" [ text] "winner" [ text] "notes" [ text]
SELECT "dates" - "dates" FROM table_204_85 WHERE "tournament" = 'estoril open'
null
general
มีคนไข้กี่คนที่ได้รับการตรวจปริมาณปัสสาวะในห้องปฏิบัติการที่แต่งงานแล้ว?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many of the patients who had a lab test for urine volume are married?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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.label = "Urine Volume"
null
general
มีกี่เขตที่มีความหนาแน่นของประชากรไม่ต่ำกว่า 1,000.0 คน ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many districts have a population density of at lest 1000.0 ?It is not neccessary to use all the tables.
table_204_739: id [ number] "districts" [ text] "ubigeo" [ number] "area\n(km2)" [ number] "population" [ number] "created" [ text] "postal\ncode" [ number]
SELECT COUNT("districts") FROM table_204_739 WHERE "population density\n(/km2)" >= 1000.0
null
general
ในแต่ละปีมีกี่หลักสูตรในภาควิชาจิตวิทยา? ส่งกลับแผนภูมิเส้น จัดอันดับ asc ตามแกน X ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many courses are in the Psychology department for each year? Return a line chart, rank in asc by the X-axis.It is not neccessary to use all the tables.
time_slot: time_slot_id [ varchar(4)] day [ varchar(1)] start_hr [ numeric(2)] start_min [ numeric(2)] end_hr [ numeric(2)] end_min [ numeric(2)]
SELECT year, COUNT(year) FROM course AS T1 JOIN section AS T2 ON T1.course_id = T2.course_id WHERE T1.dept_name = 'Psychology' GROUP BY year ORDER BY year
null
general
ค่าใช้จ่ายรวมขั้นต่ำของโรงพยาบาลเพื่อรวมการตรวจชิ้นเนื้อไขกระดูกเมื่อ 2 ปีที่แล้วเป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the minimum total hospital cost to include bone marrow biopsy since 2 years ago?It is not neccessary to use all the tables.
prescriptions: row_id [ number] subject_id [ number] hadm_id [ number] startdate [ time] enddate [ time] drug [ text] dose_val_rx [ text] dose_unit_rx [ text] route [ text]
SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'bone marrow biopsy')) AND DATETIME(cost.chargetime) >= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY cost.hadm_id) AS t1
null
general
แสดงเที่ยวบินจากลอสแอนเจลิสไปพิตส์เบิร์กซึ่งมาถึงพิตส์เบิร์กในวันจันทร์ ไม่จำเป็นต้องใช้ตารางทั้งหมด
show me the flights from LOS ANGELES to PITTSBURGH which arrive at PITTSBURGH on mondayIt is not neccessary to use all the tables.
date_day: month_number [ int] day_number [ int] year [ int] day_name [ varchar]
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, state WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND date_day.day_number = 21 AND date_day.month_number = 2 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LOS ANGELES' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND state.state_code = CITY_0.state_code AND state.state_name = 'state_name0'
null
general
แสดงอายุเฉลี่ยของผู้ขับขี่จากเมืองบ้านเกิดเดียวกันโดยใช้กราฟแท่ง เรียงลำดับจำนวนรวมจากต่ำไปสูง ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show the average age of drivers from the same home city using a bar graph, sort total number from low to high order.It is not neccessary to use all the tables.
school_bus: School_ID [ int] Driver_ID [ int] Years_Working [ int] If_full_time [ bool]
SELECT Home_city, AVG(Age) FROM driver GROUP BY Home_city ORDER BY AVG(Age)
null
general
การทดสอบใดที่มีผล 'ผ่าน' ส่งกลับวันที่ที่ทำการทดสอบ และนับด้วยแผนภูมิแท่ง จัดอันดับตาม X ในรายละเอียด ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which tests have 'Pass' results? Return the dates when the tests were taken, and count them by a bar chart, rank by the X in desc.It is not neccessary to use all the tables.
Course_Authors_and_Tutors: author_id [ INTEGER] author_tutor_ATB [ VARCHAR(3)] login_name [ VARCHAR(40)] password [ VARCHAR(40)] personal_name [ VARCHAR(80)] middle_name [ VARCHAR(80)] family_name [ VARCHAR(80)] gender_mf [ VARCHAR(1)] address_line_1 [ VARCHAR(80)]
SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" GROUP BY date_test_taken ORDER BY date_test_taken DESC
null
general
แสดงสถานที่และจำนวนการแสดงที่แตกต่างกันในแต่ละสถานที่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Show different locations and the number of performances at each location.It is not neccessary to use all the tables.
member_attendance: member_id [ number] performance_id [ number] num_of_pieces [ number]
SELECT location, COUNT(*) FROM performance GROUP BY location
null
general
ผู้ได้รับบาดเจ็บส่วนเสริมของ 46 คนจาก 656 คนมีอะไรบ้าง?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What were the wounded for complement of 46 off 656 men?It is not neccessary to use all the tables.
table_17195: "Unit" [ text] "Commander" [ text] "Complement" [ text] "Killed" [ text] "Wounded" [ text] "Missing" [ text]
SELECT "Wounded" FROM table_17195 WHERE "Complement" = '46 off 656 men'
null
general
s-count-ratioไม่จำเป็นต้องใช้ตารางทั้งหมด
s-count-ratioIt is not neccessary to use all the tables.
PostTypes: Id [ number] Name [ text]
SELECT u.Id AS "user_link", u.DisplayName, u.Reputation, COUNT(p.Id) AS "posts_count", (CAST(u.Reputation AS FLOAT) / CAST(COUNT(p.Id) AS FLOAT)) AS "ratio" FROM Users AS u LEFT JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE (p.PostTypeId = 1 OR p.PostTypeId = 2) AND u.Id = '##UserId:int##' GROUP BY u.Id, u.DisplayName, u.Reputation ORDER BY Ratio DESC LIMIT 1
null
general
Third ใดที่มีการข้ามของ ellen vogt?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Third has a Skip of ellen vogt?It is not neccessary to use all the tables.
table_name_58: third [ VARCHAR] skip [ VARCHAR]
SELECT third FROM table_name_58 WHERE skip = "ellen vogt"
null
general
สำหรับพนักงานที่ได้รับการว่าจ้างก่อนวันที่ 21-06-2545 โปรดแสดงการกระจายของ Hire_date และจำนวน Hire_date bin Hire_date ตามเวลาในแผนภูมิแท่ง โปรดเรียงลำดับจากมากไปน้อยตามแกน y ไม่จำเป็นต้องใช้ โต๊ะทั้งหมด
For those employees who was hired before 2002-06-21, show me about the distribution of hire_date and the amount of hire_date bin hire_date by time in a bar chart, sort in descending by the y-axis please.It is not neccessary to use all the tables.
job_history: EMPLOYEE_ID [ decimal(60)] START_DATE [ date] END_DATE [ date] JOB_ID [ varchar(10)] DEPARTMENT_ID [ decimal(40)]
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY COUNT(HIRE_DATE) DESC
null
general
คะแนนทีมเหย้าอยู่ที่สนามใด 17.19 (121)?ไม่จำเป็นต้องใช้ตารางทั้งหมด
At what Venue was the Home team score 17.19 (121)?It is not neccessary to use all the tables.
table_55019: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT "Venue" FROM table_55019 WHERE "Home team score" = '17.19 (121)'
null
general
มีเครื่องยนต์ที่แตกต่างกันกี่เครื่องสำหรับรุ่นที่มีชื่อรุ่น 97G00?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many different engines are there for the model with model designation 97G00?It is not neccessary to use all the tables.
table_23970: "Engine" [ text]
SELECT COUNT("Engine") FROM table_23970 WHERE "Model Designation" = '97G00'
null
general
แสดงแผนภูมิเส้นสำหรับราคาเฉลี่ยของไวน์แต่ละรายการเป็นเท่าใด โดยแสดงรายการตามแกน X จากมากไปน้อย ไม่จำเป็นต้องใช้ตารางทั้งหมด
Display a line chart for what is the average prices of wines for each each?, list by the X-axis in descending.It is not neccessary to use all the tables.
appellations: No [ INTEGER] Appelation [ TEXT] County [ TEXT] State [ TEXT] Area [ TEXT] isAVA [ TEXT]
SELECT Year, AVG(Price) FROM wine GROUP BY Year ORDER BY Year DESC
null
general
สำหรับพนักงานทุกคนที่มีตัวอักษร D หรือ S ในชื่อ ให้เห็นภาพแผนภูมิแท่งเกี่ยวกับการแจกแจงของ job_id และค่าเฉลี่ยของ department_id และจัดกลุ่มตามแอตทริบิวต์ job_id ไม่จำเป็นต้องใช้ตารางทั้งหมด
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the average of department_id , and group by attribute job_id.It is not neccessary to use all the tables.
regions: REGION_ID [ decimal(50)] REGION_NAME [ varchar(25)]
SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID
null
general
คะแนนใดมีคะแนน 64 และเกม 49 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which Score has Points of 64, and a Game of 49?It is not neccessary to use all the tables.
table_name_5: score [ VARCHAR] points [ VARCHAR] game [ VARCHAR]
SELECT score FROM table_name_5 WHERE points = 64 AND game = 49
null
general
บอกชื่อพร้อมพื้นที่เอเคตาฮูน่า ครับ ไม่จำเป็นต้องใช้ทุกโต๊ะครับ
Tell me the name with area of eketahunaIt is not neccessary to use all the tables.
table_66982: "Name" [ text] "Years" [ text] "Gender" [ text] "Area" [ text] "Authority" [ text] "Decile" [ real] "Roll" [ real]
SELECT "Name" FROM table_66982 WHERE "Area" = 'eketahuna'
null
general
แผนภูมิแท่ง x ปีแกน y จำนวนรวมของค่าเฉลี่ย (ราคา) ไม่จำเป็นต้องใช้ตารางทั้งหมด
Bar chart x axis year y axis total number of avg(price)It is not neccessary to use all the tables.
grapes: ID [ INTEGER] Grape [ TEXT] Color [ TEXT]
SELECT Year, SUM(AVG(Price)) FROM wine
null
general
การแข่งขันโตเกียว ญี่ปุ่น และสกอร์ 4 6, 6, 4, 6 4 มีกำหนดแนบวันไหน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Tournament of tokyo, japan, and a Score of 4 6, 6 4, 6 4 had which date attached?It is not neccessary to use all the tables.
table_5135: "Date" [ text] "Tournament" [ text] "Surface" [ text] "Score" [ text]
SELECT "Date" FROM table_5135 WHERE "Tournament" = 'tokyo, japan' AND "Score" = '4–6, 6–4, 6–4'
null
general
ผู้เล่นคนไหนเกิดในปี 1983?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What player was born in 1983?It is not neccessary to use all the tables.
table_12962773_16: player [ VARCHAR] year_born [ VARCHAR]
SELECT player FROM table_12962773_16 WHERE year_born = 1983
null
general
ผลรวมของ # 100 ใดที่มีฤดูกาลปี 1990 และ Against of Warwickshire? ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which sum of # 100 has a Season of 1990, and an Against of warwickshire?It is not neccessary to use all the tables.
table_name_33: _number_100 [ INTEGER] season [ VARCHAR] against [ VARCHAR]
SELECT SUM(_number_100) FROM table_name_33 WHERE season = "1990" AND against = "warwickshire"
null
general
มีกี่ทริปที่ไม่สิ้นสุดในซานฟรานซิสโก?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many trips did not end in San Francisco?It is not neccessary to use all the tables.
station: id [ number] name [ text] lat [ number] long [ number] dock_count [ number] city [ text] installation_date [ text]
SELECT COUNT(*) FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id WHERE T2.city <> "San Francisco"
null
general
หมายเลขเสมอกันเมื่อเจ้าบ้านคือพอร์ทเวลคืออะไร?ไม่จำเป็นต้องใช้ทุกตาราง
What is the tie number when the home team is Port Vale?It is not neccessary to use all the tables.
table_name_72: tie_no [ VARCHAR] home_team [ VARCHAR]
SELECT tie_no FROM table_name_72 WHERE home_team = "port vale"
null
general
พื้นผิวของทัวร์นาเมนต์วันที่ 10 พฤษภาคม 2552 เป็นอย่างไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the surface for the May 10, 2009 tournament?It is not neccessary to use all the tables.
table_71174: "Date" [ text] "Tournament" [ text] "Surface" [ text] "Partner" [ text] "Opponents" [ text] "Score" [ text]
SELECT "Surface" FROM table_71174 WHERE "Date" = 'may 10, 2009'
null
general
ทีมไหนเล่นในเกมที่ 2 ไม่จำเป็นต้องใช้ตารางทั้งหมด
what team played in game 2It is not neccessary to use all the tables.
table_name_24: road_team [ VARCHAR] game [ VARCHAR]
SELECT road_team FROM table_name_24 WHERE game = "game 2"
null
general
ฮอลแลนด์ลอปเป็นเพศอะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
whatis the gender wher ethe species is holland lop?It is not neccessary to use all the tables.
table_26615633_3: gender [ VARCHAR] species [ VARCHAR]
SELECT gender FROM table_26615633_3 WHERE species = "Holland Lop"
null
general
วันไหนที่แพ้นิวยอร์กไจแอนต์และผลการแข่งขัน 23-17?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which date had a loser of New York Giants and a result of 23-17?It is not neccessary to use all the tables.
table_name_77: date [ VARCHAR] loser [ VARCHAR] result [ VARCHAR]
SELECT date FROM table_name_77 WHERE loser = "new york giants" AND result = "23-17"
null
general
โดยเฉพาะประเทศนั้นคือประเภทใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the type where the country is esp?It is not neccessary to use all the tables.
table_11891841_2: type [ VARCHAR] country [ VARCHAR]
SELECT type FROM table_11891841_2 WHERE country = "ESp"
null
general
ทีมชื่อ Boumediene Abderahmane คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the team with the name Boumediene Abderahmane?It is not neccessary to use all the tables.
table_name_48: teams [ VARCHAR] name [ VARCHAR]
SELECT teams FROM table_name_48 WHERE name = "boumediene abderahmane"
null
general
ค่าบายโดยเฉลี่ยสำหรับการสูญเสีย 15 ครั้งและก่อนปี 1874 คือเท่าใด ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the average Byes for the losses of 15, and before 1874?It is not neccessary to use all the tables.
table_40599: "Wins" [ real] "Byes" [ real] "Losses" [ real] "Draws" [ real] "Against" [ real]
SELECT AVG("Byes") FROM table_40599 WHERE "Losses" = '15' AND "Against" < '1874'
null
general
นักกีฬาคนไหนมีผลการแข่งขัน 18.55 ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Which athlete, has an 18.55 resultIt is not neccessary to use all the tables.
table_name_43: athlete [ VARCHAR] result [ VARCHAR]
SELECT athlete FROM table_name_43 WHERE result = 18.55
null
general
ผู้ใช้อันดับต้นๆ ในจำนวนคำตอบใน R.ไม่จำเป็นต้องใช้ตารางทั้งหมด
Top users in number of answers in R.It is not neccessary to use all the tables.
PostNoticeTypes: Id [ number] ClassId [ number] Name [ text] Body [ text] IsHidden [ boolean] Predefined [ boolean] PostNoticeDurationId [ number]
SELECT COUNT(t2.Score) AS number_of_answers, t2.OwnerUserId FROM Posts AS t1 INNER JOIN Posts AS t2 ON t1.Id = t2.ParentId WHERE t1.Tags LIKE '%<homework>%' GROUP BY t2.OwnerUserId ORDER BY number_of_answers DESC
null
general
ใครเป็นคนเขียนตอนที่มีรหัสการผลิตเป็น 176206 ไม่จำเป็นต้องใช้ตารางทั้งหมด
who are the writers of the episode whose production code is 176206?It is not neccessary to use all the tables.
table_30653: "No." [ real] "#" [ real] "Title" [ text]
SELECT "Written by" FROM table_30653 WHERE "Production code" = '176206'
null
general
เรียงลำดับตามคะแนนคำตอบเฉลี่ย ไม่รวมวิกิชุมชน / โพสต์ปิด ไม่จำเป็นต้องใช้ตารางทั้งหมด
s ordered by average answer score excluding community wiki / closed posts.It is not neccessary to use all the tables.
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 (SELECT OwnerUserId AS "user_link", COUNT(Posts.Id) AS Questions, CAST(AVG(CAST(Score AS FLOAT)) AS FLOAT(6, 2)) AS "average_question_score" FROM Posts WHERE PostTypeId = 1 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL GROUP BY OwnerUserId ORDER BY COUNT(Posts.Id) DESC LIMIT 500) ORDER BY 'average_question_score' DESC
null
general
มีผู้ป่วยกี่รายที่ได้รับการทดสอบของเหลวในห้องปฏิบัติการและได้รับการวินิจฉัยว่าเป็นภาวะหัวใจล้มเหลวเฉียบพลัน/เรื้อรัง ซิสโตลิก/ไดแอสโตลิก? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
How many patients had a joint fluid lab test done and were diagnosed with acute/chronic systolic/diastolic heart failure?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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Ac/chr syst/dia hrt fail" AND lab.fluid = "Joint Fluid"
null
general
ฉันต้องการให้แผนภูมิแท่งแสดงค่าเฉลี่ยการปกคลุมของเมฆในวันที่มีอัตราการปกคลุมของเมฆสูงสุด 5 อันดับในแต่ละวัน ไม่จำเป็นต้องใช้ตารางทั้งหมด
I want a bar chart to show the average cloud cover of the dates that have the 5 highest cloud cover rates each day.It is not neccessary to use all the tables.
station: id [ INTEGER] name [ TEXT] lat [ NUMERIC] long [ NUMERIC] dock_count [ INTEGER] city [ TEXT] installation_date [ TEXT]
SELECT date, AVG(cloud_cover) FROM weather
null
general
Pentyrch RFC มีการพยายามต่อต้านกี่ครั้ง?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many tries against did Pentyrch RFC have?It is not neccessary to use all the tables.
table_name_92: tries_against [ VARCHAR] club [ VARCHAR]
SELECT tries_against FROM table_name_92 WHERE club = "pentyrch rfc"
null
general
รายชื่ออาจารย์ผู้สอนตามลำดับตัวอักษร ไม่จำเป็นต้องใช้ตารางทั้งหมด
List in alphabetic order the names of all distinct instructors.It is not neccessary to use all the tables.
prereq: course_id [ text] prereq_id [ text]
SELECT DISTINCT name FROM instructor ORDER BY name
null
general
เมื่อทีมเยือนเป็นนอริชซิตี้สกอร์เท่าไหร่?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the score when the away team was norwich city?It is not neccessary to use all the tables.
table_24887326_8: score_1 [ VARCHAR] away_team [ VARCHAR]
SELECT score_1 FROM table_24887326_8 WHERE away_team = "Norwich City"
null
general
วิทยาลัยเอกชนแห่งใดที่เก่าแก่ที่สุดและมีชื่อเล่นว่า Mountaineers?ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which of the private colleges is the oldest, and whose nickname is the Mountaineers?It is not neccessary to use all the tables.
table_74673: "Institution" [ text] "Nickname" [ text] "Location" [ text] "Founded" [ real] "Type" [ text] "Enrollment" [ real]
SELECT MIN("Founded") FROM table_74673 WHERE "Type" = 'private' AND "Nickname" = 'mountaineers'
null
general
สำนักงานแต่ละแห่งมีหลักสูตรกี่หลักสูตร? ขอดูแผนภูมิแท่งหน่อย คุณช่วยแสดงตามแกน x เป็นการอธิบายได้ไหม ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many courses for each office? Show me a bar chart, could you show by the x-axis in desc please?It is not neccessary to use all the tables.
ENROLL: CLASS_CODE [ varchar(5)] STU_NUM [ int] ENROLL_GRADE [ varchar(50)]
SELECT PROF_OFFICE, COUNT(PROF_OFFICE) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY PROF_OFFICE ORDER BY PROF_OFFICE DESC
null
general
สำหรับพนักงานที่ไม่ได้ทำงานในแผนกที่มีผู้จัดการที่มีรหัสระหว่าง 100 ถึง 200 ให้ส่งคืนแผนภูมิแท่งเกี่ยวกับการแจกแจงของ Last_name และ Employee_id และฉันต้องการเรียงลำดับจากน้อยไปหามากด้วย X ไม่จำเป็นต้องใช้ทั้งหมด ตาราง
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of last_name and employee_id , and I want to sort in ascending by the X.It is not neccessary to use all the tables.
countries: COUNTRY_ID [ varchar(2)] COUNTRY_NAME [ varchar(40)] REGION_ID [ decimal(100)]
SELECT LAST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME
null
general
เสมอกัน 0-0 มีกี่เกม?ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many number of games ended in a 0-0 tie?It is not neccessary to use all the tables.
betfront: year [ number] datetime [ time] country [ text] competion [ text] match [ text] home_opening [ number] draw_opening [ number] away_opening [ number] home_closing [ number] draw_closing [ number] away_closing [ number]
SELECT COUNT(*) FROM football_data WHERE fthg = 0 AND ftag = 0
null
general
เล็กกว่า 4 และเงินมากกว่า 0 และอันดับ 3 และทองแดงน้อยกว่า 6 ดังนั้นผลรวมของทองคำคือเท่าใด ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze smaller than 6 then what is the sum of the gold?It is not neccessary to use all the tables.
table_name_77: total [ INTEGER] bronze [ VARCHAR] rank [ VARCHAR] gold [ VARCHAR] silver [ VARCHAR]
SELECT SUM(total) FROM table_name_77 WHERE gold < 4 AND silver > 0 AND rank = "3" AND bronze < 6
null
general
ตำแหน่งต่ำสุดเมื่อภาษาโครเอเชียคืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the lowest place when the language is croatian?It is not neccessary to use all the tables.
table_62273: "Draw" [ real] "Language" [ text] "Artist" [ text] "Song" [ text] "Place" [ real] "Points" [ real]
SELECT MIN("Place") FROM table_62273 WHERE "Language" = 'croatian'
null
general
ผลลัพธ์ในฤดูกาล 2005-06 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the Result in the 2005-06 Season?It is not neccessary to use all the tables.
table_name_9: result [ VARCHAR] season [ VARCHAR]
SELECT result FROM table_name_9 WHERE season = "2005-06"
null
general
จำนวนผู้ชมโดยเฉลี่ยที่ดูตอนก่อนตอนที่ 11 โดยมีส่วนแบ่ง 4 คือเท่าไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the average number of million viewers that watched an episode before episode 11 with a share of 4?It is not neccessary to use all the tables.
table_name_28: viewers__millions_ [ INTEGER] episode__number [ VARCHAR] share [ VARCHAR]
SELECT AVG(viewers__millions_) FROM table_name_28 WHERE episode__number < 11 AND share = "4"
null
general
ชื่อใดที่มีช่องทางน้อยกว่า 8 โดยมีรัสเซียเป็นประเทศ โดยมีคะแนน 8.07 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Which name has a lane less than 8, russia as the country, with a mark of 8.07?It is not neccessary to use all the tables.
table_name_88: name [ VARCHAR] mark [ VARCHAR] lane [ VARCHAR] country [ VARCHAR]
SELECT name FROM table_name_88 WHERE lane < 8 AND country = "russia" AND mark = "8.07"
null
general
ในเขตใดที่ได้รับการเลือกตั้งครั้งแรกในปี พ.ศ. 2481 ไม่จำเป็นต้องใช้ตารางทั้งหมด
In what district was incumbent first elected in 1938?It is not neccessary to use all the tables.
table_18489: "District" [ text] "Incumbent" [ text] "Party" [ text] "Result" [ text] "Candidates" [ text]
SELECT "District" FROM table_18489 WHERE "First elected" = '1938'
null
general
คะแนนของทัวร์นาเมนต์ที่จัดขึ้นในปี 1974 เป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What was the score of the tournament that was held in 1974?It is not neccessary to use all the tables.
table_4537: "Outcome" [ text] "Date" [ real] "Tournament" [ text] "Surface" [ text] "Partner" [ text]
SELECT "Score in the final" FROM table_4537 WHERE "Date" = '1974'
null
general
บอกประเทศสำหรับซานฮวนหน่อยสิไม่จำเป็นต้องใช้ตารางทั้งหมด
Tell me the country for san juanIt is not neccessary to use all the tables.
table_31773: "City" [ text] "Country" [ text] "IATA" [ text] "ICAO" [ text] "Airport" [ text]
SELECT "Country" FROM table_31773 WHERE "City" = 'san juan'
null
general
จุดสูงสุดของ charles oakley , kevin willis (11) คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the High points of charles oakley , kevin willis (11)?It is not neccessary to use all the tables.
table_name_55: high_points [ VARCHAR] high_rebounds [ VARCHAR]
SELECT high_points FROM table_name_55 WHERE high_rebounds = "charles oakley , kevin willis (11)"
null
general
คุณช่วยบอกฉันหน่อยว่าเที่ยวบินที่ออกจากพิตส์เบิร์กประมาณเที่ยงคืนไปโอ๊คแลนด์ไม่จำเป็นต้องใช้ตารางทั้งหมด
could you tell me the flights leaving PITTSBURGH around midnight for OAKLANDIt is not neccessary to use all the tables.
ground_service: city_code [ text] airport_code [ text] transport_type [ text] ground_fare [ 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, flight WHERE ((flight.departure_time >= 2330 OR flight.departure_time < 30) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
null
general
ครูแต่ละคนสอนกี่หลักสูตร? แสดงแผนภูมิแท่งโดยจัดกลุ่มตามชื่อผู้สอน และจัดอันดับตามชื่อจากน้อยไปหามาก ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many courses each teacher taught? Show me a bar chart grouping by instructor's first name, and rank by the names in ascending.It is not neccessary to use all the tables.
STUDENT: STU_NUM [ int] STU_LNAME [ varchar(15)] STU_FNAME [ varchar(15)] STU_INIT [ varchar(1)] STU_DOB [ datetime] STU_HRS [ int] STU_CLASS [ varchar(2)] STU_GPA [ float(8)] STU_TRANSFER [ numeric] DEPT_CODE [ varchar(18)] STU_PHONE [ varchar(4)] PROF_NUM [ int]
SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY EMP_FNAME ORDER BY EMP_FNAME
null
general
เกมนี้เล่นที่ไหนเมื่อทีมเยือนทำคะแนนได้ 14.15 (99)?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Where was the game played when the away team scored 14.15 (99)?It is not neccessary to use all the tables.
table_56616: "Venue" [ text] "Crowd" [ real] "Date" [ text]
SELECT "Venue" FROM table_56616 WHERE "Away team score" = '14.15 (99)'
null
general
ผู้เล่นคนไหนที่จบแน่นและมีรอบสูงกว่า 3? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Which player is a tight end with a round higher than 3?It is not neccessary to use all the tables.
table_name_4: name [ VARCHAR] position [ VARCHAR] round [ VARCHAR]
SELECT name FROM table_name_4 WHERE position = "tight end" AND round > 3
null
general
มีกี่ชุดว่ายน้ำที่มีชุดราตรีใหญ่กว่า 9 และบทสัมภาษณ์ใหญ่กว่า 8.405 ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?It is not neccessary to use all the tables.
table_name_32: swimsuit [ VARCHAR] evening_gown [ VARCHAR] interview [ VARCHAR]
SELECT COUNT(swimsuit) FROM table_name_32 WHERE evening_gown > 9 AND interview > 8.405
null
general
ซึ่งสร้างโดยมีชื่อของเยเกอร์ภาคเหนือหรือไม่ไม่จำเป็นต้องใช้ทุกตาราง
Which Built by has a Name of northern jaeger?It is not neccessary to use all the tables.
table_37545: "Name" [ text] "Length" [ text] "Tonnage" [ real] "Year" [ real] "Engines" [ text] "Horsepowers" [ real]
SELECT "Built by" FROM table_37545 WHERE "Name" = 'northern jaeger'
null
general
คำตอบยอดนิยมสำหรับความคิดเห็นของฉัน แสดงความคิดเห็นที่ได้คะแนนสูงสุดเพื่อรวม '@yourname' แน่นอนว่าผู้คนสามารถตอบกลับคุณโดยใช้ชื่อผู้ใช้ของคุณเพียงบางส่วน และชื่อผู้ใช้ของคุณสามารถเปลี่ยนแปลงได้ และผู้ใช้รายอื่นสามารถมีชื่อเหมือนกับคุณได้ ดังนั้นจึงไม่ถูกต้อง 100% ไม่จำเป็นต้องใช้ตารางทั้งหมด
Most popular replies to my comments. Shows the highest-scoring comments to include '@yourname'. Of course, people can reply to you with only part of your username, and your username can change, and other users can have the same name as you, so it's not 100% accurate.It is not neccessary to use all the tables.
ReviewTaskTypes: Id [ number] Name [ text] Description [ text]
SELECT Comments.PostId AS "post_link", Users.DisplayName, Comments.Score, Comments.Text, Comments.CreationDate FROM Comments LEFT JOIN Users ON Comments.UserId = Users.Id WHERE Comments.Text LIKE '%@##UserName##%' ORDER BY Comments.Score DESC LIMIT 100
null
general
% (1960) ของเคาน์ตีที่มี % (2040) เท่ากับ 3.4 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the % (1960) of the county with a % (2040) of 3.4?It is not neccessary to use all the tables.
table_name_98: _percentage__1960_ [ VARCHAR] _percentage__2040_ [ VARCHAR]
SELECT COUNT(_percentage__1960_) FROM table_name_98 WHERE _percentage__2040_ = 3.4
null
general
อายุและวันเดือนปีเกิดของชื่อ paul edwards คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is age and date of birth of subject name paul edwards?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 demographic.age, demographic.dob FROM demographic WHERE demographic.name = "Paul Edwards"
null
general
แสดงภาพแผนภูมิแท่งเกี่ยวกับการกระจายของ ACC_Road และ School_ID และจัดกลุ่มตามแอตทริบิวต์ ACC_Home ไม่จำเป็นต้องใช้ตารางทั้งหมด
Visualize a bar chart about the distribution of ACC_Road and School_ID , 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 ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road
null
general
จำนวนเกมที่เขาเล่นในปี 2545 มากกว่าหรือน้อยกว่าจำนวนที่เขาเล่นในปี 2551 หรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
is the number of games he played in 2002 more or less than the amount he played in 2008 ?It is not neccessary to use all the tables.
table_203_597: id [ number] "year" [ number] "team" [ text] "games" [ number] "carries" [ number] "yards" [ number] "touchdowns" [ number] "fumbles" [ number]
SELECT (SELECT "games" FROM table_203_597 WHERE "year" = 2002) > (SELECT "games" FROM table_203_597 WHERE "year" = 2008)
null
general
บอกฉันว่าคอนสตรัคเตอร์ที่มี 35 รอบและมีกริดมากกว่า 5 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Tell me the constructor that has 35 Laps with a grid more than 5It is not neccessary to use all the tables.
table_name_61: constructor [ VARCHAR] laps [ VARCHAR] grid [ VARCHAR]
SELECT constructor FROM table_name_61 WHERE laps = 35 AND grid > 5
null
general
โรคหลอดเลือดหัวใจตีบ (cad) ที่บันทึกโดยประวัติของกล้ามเนื้อหัวใจตาย ไม่จำเป็นต้องใช้ตารางทั้งหมด
coronary artery disease ( cad ) documented by history of myocardial infarctionIt is not neccessary to use all the tables.
table_train_271: "id" [ int] "renal_disease" [ bool] "hepatic_disease" [ bool] "smoking" [ bool] "coronary_artery_disease_cad" [ bool] "serum_creatinine" [ float] "body_mass_index_bmi" [ float] "myocardial_infarction" [ bool] "NOUSE" [ float]
SELECT * FROM table_train_271 WHERE coronary_artery_disease_cad = 1 OR myocardial_infarction = 1
null
general
ตั้งแต่ 36 เดือนที่ผ่านมา ผู้ป่วย 13,329 รายได้รับยา hydromorphone pf, iso-osmotic dextrose หรือ clindamycin หรือไม่ไม่จำเป็นต้องใช้ตารางทั้งหมด
have since 36 months ago patient 13329 been prescribed hydromorphone p.f., iso-osmotic dextrose or clindamycin?It is not neccessary to use all the tables.
cost: row_id [ number] subject_id [ number] hadm_id [ number] event_type [ text] event_id [ number] chargetime [ time] cost [ number]
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13329) AND prescriptions.drug IN ('hydromorphone p.f.', 'iso-osmotic dextrose', 'clindamycin') AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-36 month')
null
general
ในปี พ.ศ. 2105 การรักษาสี่อันดับแรกที่ผู้ป่วยได้รับบ่อยที่สุดในช่วงเดือนเดียวกันหลังได้รับการถ่ายเซลล์แบบแพ็คคืออะไร? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
in 2105, what were the top four most frequent procedures that patients received during the same month after receiving a packed cell transfusion?It is not neccessary to use all the tables.
inputevents_cv: row_id [ number] subject_id [ number] hadm_id [ number] icustay_id [ number] charttime [ time] itemid [ number] amount [ number]
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, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'packed cell transfusion') AND STRFTIME('%y', procedures_icd.charttime) = '2105') 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 STRFTIME('%y', procedures_icd.charttime) = '2105') 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 <= 4)
null
general
สำนักงานใหญ่ของสถานที่ซึ่งประชากรในปี 2554 อยู่ที่ 3811738 อยู่ที่ไหน? ไม่จำเป็นต้องใช้ตารางทั้งหมด
Where is the headquarters of the place whose population in 2011 was 3811738?It is not neccessary to use all the tables.
table_1610301_1: headquarters [ VARCHAR] population__2011_ [ VARCHAR]
SELECT headquarters FROM table_1610301_1 WHERE population__2011_ = 3811738
null
general
อะไรคือความแตกต่างของอัตราการเต้นของหัวใจในผู้ป่วย 015-96048 ที่วัดที่ 2105-08-15 095700 เทียบกับค่าที่วัดที่ 2105-08-15 095200?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the difference of heartrate in patient 015-96048 measured at 2105-08-15 095700 compared to the value measured at 2105-08-15 095200?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 (SELECT vitalperiodic.heartrate FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-96048')) AND NOT vitalperiodic.heartrate IS NULL AND vitalperiodic.observationtime = '2105-08-15 09:57:00') - (SELECT vitalperiodic.heartrate FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-96048')) AND NOT vitalperiodic.heartrate IS NULL AND vitalperiodic.observationtime = '2105-08-15 09:52:00')
null
general
ตำแหน่งใดที่เครื่องบินเจ็ตของนิวยอร์กสูญหายก่อนปี 1997 และผลลัพธ์เป็น 31 28? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the location when the new york jets lost earlier than 1997 and a Result of 31 28?It is not neccessary to use all the tables.
table_74997: "Year" [ real] "Date" [ text] "Winner" [ text] "Result" [ text] "Loser" [ text] "Location" [ text]
SELECT "Location" FROM table_74997 WHERE "Loser" = 'new york jets' AND "Year" < '1997' AND "Result" = '31–28'
null
general
ผลลัพธ์คืออะไร เมื่อชื่อต้นฉบับคือ 'Qala'? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is Result, when Original Title is 'Qala'?It is not neccessary to use all the tables.
table_name_38: result [ VARCHAR] original_title [ VARCHAR]
SELECT result FROM table_name_38 WHERE original_title = "qala"
null
general
hba1c > 12 % ;ไม่จำเป็นต้องใช้ทุกตาราง
hba1c > 12 % ;It is not neccessary to use all the tables.
table_train_241: "id" [ int] "blood_sugars" [ int] "c_peptide_level" [ float] "hemoglobin_a1c_hba1c" [ float] "glucometer" [ bool] "creatinine_clearance_cl" [ float] "symptoms_hypoglycemic_episodes" [ bool] "hypoglycemia" [ bool] "hba1c" [ float] "diabetes" [ bool] "NOUSE" [ float]
SELECT * FROM table_train_241 WHERE hba1c > 12
null
general
ในปี 06/ปีที่แล้ว ผู้ป่วย 017-55081 ชั่งน้ำหนักครั้งแรกเท่าไหร่?ไม่จำเป็นต้องใช้ตารางทั้งหมด
in 06/last year, how much did patient 017-55081 weigh for the first time?It is not neccessary to use all the tables.
intakeoutput: intakeoutputid [ number] patientunitstayid [ number] cellpath [ text] celllabel [ text] cellvaluenumeric [ number] intakeoutputtime [ time]
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', '-1 year') AND STRFTIME('%m', patient.unitadmittime) = '06' ORDER BY patient.unitadmittime LIMIT 1
null
general
ตั้งชื่อค่าเฉลี่ยสำหรับอันดับ 3 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the average for rank of 3It is not neccessary to use all the tables.
table_27496841_3: average [ VARCHAR] rank_by_average [ VARCHAR]
SELECT average FROM table_27496841_3 WHERE rank_by_average = 3
null
general
ครั้งแรกจนกระทั่ง 51 เดือนที่แล้ว ผู้ป่วย 021-49171 กำหนดให้ยา warfarin sod และ acetaminophen 500 mg po tab พร้อมกันเมื่อใด?ไม่จำเป็นต้องใช้ทุกตาราง
for the first time until 51 months ago, when was patient 021-49171 prescribed warfarin sod and acetaminophen 500 mg po tabs at the same time?It is not neccessary to use all the tables.
diagnosis: diagnosisid [ number] patientunitstayid [ number] diagnosisname [ text] diagnosistime [ time] icd9code [ text]
SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'warfarin sod' AND patient.uniquepid = '021-49171' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-51 month')) AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'acetaminophen 500 mg po tabs' AND patient.uniquepid = '021-49171' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-51 month')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE DATETIME(t1.drugstarttime) = DATETIME(t2.drugstarttime) ORDER BY t1.drugstarttime LIMIT 1
null
general
ผู้เล่นคนไหนที่สูง 2.01 ม.?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
What player is 2.01 m tall?It is not neccessary to use all the tables.
table_12962773_2: player [ VARCHAR] height [ VARCHAR]
SELECT player FROM table_12962773_2 WHERE height = "2.01"
null
general
ใครคือผู้เล่นที่มีส่วนสูง 6-5 ทุกคน? ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
Who is every player with a height of 6-5?It is not neccessary to use all the tables.
table_22824297_1: player [ VARCHAR] height [ VARCHAR]
SELECT player FROM table_22824297_1 WHERE height = "6-5"
null
general
ตั้งชื่อเป้าหมายเอฟเอคัพน้อยที่สุดโดยแอปเอฟเอคัพเป็น 2 และ fw ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the least fa cup goals with fa cup apps being 2 and fwIt is not neccessary to use all the tables.
table_3697: "Position" [ text] "Nationality" [ text] "Name" [ text]
SELECT MIN("FA Cup goals") FROM table_3697 WHERE "FA Cup apps" = '2' AND "Position" = 'FW'
null
general
อัตราการรอดชีวิตสองปีของผู้ป่วยติดเชื้อที่ต้องสงสัย nb obsrv คือเท่าใด? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the two year survival rate of nb obsrv suspct infect patients?It is not neccessary to use all the tables.
d_icd_procedures: row_id [ number] icd9_code [ text] short_title [ text] long_title [ text]
SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.charttime) > 2 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.subject_id, t1.charttime 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 = 'nb obsrv suspct infect') GROUP BY admissions.subject_id HAVING MIN(diagnoses_icd.charttime) = diagnoses_icd.charttime) AS t1 WHERE STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', t1.charttime) > 2 * 365) AS t2 JOIN patients ON t2.subject_id = patients.subject_id
null
general
ค้นหารหัสเพลงที่มีอยู่ในรูปแบบ MP4 และมีความละเอียดต่ำกว่า 1,000 ไม่จำเป็นต้องใช้ตารางทั้งหมด
Find the id of songs that are available in mp4 format and have resolution lower than 1000.It is not neccessary to use all the tables.
genre: g_name [ text] rating [ text] most_popular_in [ text]
SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000
null
general
อันดับที่เล็กที่สุดที่มีน้อยกว่า 2 วิง มากกว่า 26 อีเวนต์ และน้อยกว่า 1,831,211 ดอลลาร์คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the smallest rank with less than 2 wings, more than 26 events, and less than $1,831,211?It is not neccessary to use all the tables.
table_54369: "Rank" [ real] "Player" [ text] "Country" [ text] "Events" [ real] "Wins" [ real]
SELECT MIN("Rank") FROM table_54369 WHERE "Wins" < '2' AND "Earnings ( $ )" < '1,831,211' AND "Events" > '26'
null
general
บอกฉันว่าไดรเวอร์ที่ชนะสำหรับ avusrennenไม่จำเป็นต้องใช้ตารางทั้งหมด
Tell me the winning driver for avusrennenIt is not neccessary to use all the tables.
table_name_70: winning_driver [ VARCHAR] name [ VARCHAR]
SELECT winning_driver FROM table_name_70 WHERE name = "avusrennen"
null
general
ดาบ canadar เปิดให้บริการมานานแค่ไหน ?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
how long was the canadair sabre in service ?It is not neccessary to use all the tables.
table_204_161: id [ number] "name" [ text] "primary\nrole(s)" [ text] "service\nperiod" [ text] "#\nused" [ number]
SELECT "service\nperiod" - "service\nperiod" FROM table_204_161 WHERE "name" = 'canadair sabre'
null
general
ครั้งสุดท้ายที่ผู้ป่วย 65569 ได้รับการสั่งยาผ่านทาง iv ในปี 05/ปีนี้คือเมื่อใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
when was the last time patient 65569 was prescribed a drug through iv route in 05/this year?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 prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65569) AND prescriptions.route = 'iv' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', prescriptions.startdate) = '05' ORDER BY prescriptions.startdate DESC LIMIT 1
null
general
ตั้งชื่อประเภทสำหรับปีที่ออกของชาร์ตแรกที่น้อยกว่าปี 1980 และที่มาของจาเมกา ไม่จำเป็นต้องใช้ตารางทั้งหมด
Name the genre for release-year of firsst charted less than 1980 and origin of jamaicaIt is not neccessary to use all the tables.
table_name_92: genre [ VARCHAR] release_year_of_first_charted_record [ VARCHAR] country_of_origin [ VARCHAR]
SELECT genre FROM table_name_92 WHERE release_year_of_first_charted_record < 1980 AND country_of_origin = "jamaica"
null
general
แต่ละองค์กรได้รับทุนสนับสนุนทั้งหมดเป็นจำนวนเท่าใด? ระบุรหัสองค์กรด้วย ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the total amount of grants given by each organisations? Also list the organisation id.It is not neccessary to use all the tables.
Project_Staff: staff_id [ DOUBLE] project_id [ INTEGER] role_code [ VARCHAR(10)] date_from [ DATETIME] date_to [ DATETIME] other_details [ VARCHAR(255)]
SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id
null
general
ค่าเฉลี่ยของฮีตทั้งหมดของผู้แข่งขันด้วยเวลา 59.11 และเลนสูงกว่า 3 เป็นเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the average of all Heats of competitors with a Time of 59.11 and a lane higher than 3?It is not neccessary to use all the tables.
table_14927: "Heat" [ real] "Lane" [ real] "Name" [ text] "Nationality" [ text] "Time" [ text]
SELECT AVG("Heat") FROM table_14927 WHERE "Time" = '59.11' AND "Lane" > '3'
null
general
คะแนนสำหรับการแข่งขันที่คู่ต่อสู้ในรอบชิงชนะเลิศคือ James Cerretani Todd Perry คืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the score for the match where the opponent in the final was james cerretani todd perry?It is not neccessary to use all the tables.
table_33657: "Date" [ text] "Tournament" [ text] "Surface" [ text] "Partner" [ text] "Score" [ text]
SELECT "Score" FROM table_33657 WHERE "Opponents in the final" = 'james cerretani todd perry'
null
general
วันศุกร์ที่หกคืออะไร เมื่อวันจันทร์ที่สองเป็นวันจันทร์? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is friday day six when monday day two is isnin?It is not neccessary to use all the tables.
table_1277350_7: friday_day_six [ VARCHAR] monday_day_two [ VARCHAR]
SELECT friday_day_six FROM table_1277350_7 WHERE monday_day_two = "Isnin"
null
general
สถิติในบ้านของสโมสรมัคคาบีเทลอาวีฟคืออะไร?ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the home record for the Maccabi Tel-Aviv club?It is not neccessary to use all the tables.
table_name_85: home [ VARCHAR] club [ VARCHAR]
SELECT home FROM table_name_85 WHERE club = "maccabi tel-aviv"
null
general
ผลรวมของการแข่งขันคืออะไร เมื่อโพเดียมน้อยกว่า 3 เมื่อชนะเป็น 0 เมื่อฤดูกาลคือหลังปี 2001 และเมื่อคะแนนเป็น 32? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?It is not neccessary to use all the tables.
table_name_82: races [ INTEGER] points [ VARCHAR] season [ VARCHAR] podiums [ VARCHAR] wins [ VARCHAR]
SELECT SUM(races) FROM table_name_82 WHERE podiums < 3 AND wins = 0 AND season > 2001 AND points = "32"
null
general
มีค่า rz (arcsecond) กี่ค่าที่สอดคล้องกับค่า ary (arcsecond) 0.247 ไม่จำเป็นต้องใช้ตารางทั้งหมด
How many values of r z (arcsecond) correspond with a r y (arcsecond) value of 0.247?It is not neccessary to use all the tables.
table_15318324_1: r_z___arcsecond__ [ VARCHAR] r_y___arcsecond__ [ VARCHAR]
SELECT r_z___arcsecond__ FROM table_15318324_1 WHERE r_y___arcsecond__ = "−0.247"
null
general
จำนวนผู้เชี่ยวชาญที่กระตือรือร้นต่อสัปดาห์ ไม่จำเป็นต้องใช้ตารางทั้งหมด
Number of active experts per week.It is not neccessary to use all the tables.
PostTypes: Id [ number] Name [ text]
SELECT YR_WK, COUNT(*) AS NumActiveExperts FROM (SELECT (TIME_TO_STR(p.CreationDate, '%y') + (TIME_TO_STR(p.CreationDate, '%W') - 1) / 52.0) AS YR_WK, u.Id AS UID, COUNT(*) AS NumAnswers FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id AND p.PostTypeId = 2 AND p.Score > 0 GROUP BY (TIME_TO_STR(p.CreationDate, '%y') + (TIME_TO_STR(p.CreationDate, '%W') - 1) / 52.0), u.Id) AS AnsPerUPerWk WHERE NumAnswers > 1 GROUP BY YR_WK ORDER BY YR_WK
null
general
อันดับสูงสุดของเหรียญรางวัลทั้งหมดน้อยกว่า 15 เหรียญทองแดง มากกว่า 2 เหรียญ 0 เหรียญทอง และ 1 เหรียญเงิน ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the highest rank of the medal total less than 15, more than 2 bronzes, 0 gold and 1 silver?It is not neccessary to use all the tables.
table_75730: "Rank" [ real] "Gold" [ real] "Silver" [ real] "Bronze" [ real] "Total" [ real]
SELECT MAX("Rank") FROM table_75730 WHERE "Total" < '15' AND "Bronze" > '2' AND "Gold" = '0' AND "Silver" = '1'
null
general
มีกี่คนที่เล่น Frank ในลอนดอน?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
How many people play Frank in London?It is not neccessary to use all the tables.
table_16090: "Character" [ text] "London" [ text] "Brazil" [ text]
SELECT COUNT("London") FROM table_16090 WHERE "Character" = 'Frank'
null
general
สำหรับการแข่งขันใดๆ ที่ออกสตาร์ทด้วยคะแนน 14 คะแนน อะไรคือจุดจบที่ต่ำที่สุด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
For any races with a start of 14 what was the lowest finish?It is not neccessary to use all the tables.
table_name_61: finish [ INTEGER] start [ VARCHAR]
SELECT MIN(finish) FROM table_name_61 WHERE start = 14
null
general
D 46 กับ D 43 กับ r 3 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
What is the D 46 with a D 43 with r 3?It is not neccessary to use all the tables.
table_52300:
SELECT "D 46 \u221a" FROM table_52300 WHERE "D 43 \u221a" = 'r 3'
null
general