context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) CREATE TABLE zyjzjlb ( YLJGDM text, JZLSH text, MZJZLSH text, KH text, KLX number, HZXM text, WDBZ number, RYDJSJ time, RYTJDM number, RYTJMC text, JZKSDM text, JZKSMC text, RZBQDM t...
患者的检测指标673489的参考值范围下限和上限在门诊诊断为疾病S24.591中是什么?
SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDBM = 'S24.591' AND jyjgzbb.JCZBDM = '673489'
css
CREATE TABLE table_47788 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
What nation had more than 3 bronze, 0 gold, and a total of 9?
SELECT "Nation" FROM table_47788 WHERE "Bronze" > '3' AND "Gold" = '0' AND "Total" = '9'
wikisql
CREATE TABLE mzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH text, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZZMC ...
列出在2001年9月1日到2013年5月9日内患者72522384被开出的所有检验报告单的检验报告单号分别是哪些?
SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND person_info_hz_info.KH = hz_info.KH AND pers...
css
CREATE TABLE table_47626 ( "Year" real, "Winner" text, "Runners-up" text, "Aggregate" text, "1st leg" text, "2nd leg" text )
What was the 2nd leg for 2004?
SELECT "2nd leg" FROM table_47626 WHERE "Year" = '2004'
wikisql
CREATE TABLE table_14497 ( "Team" text, "Games Played" real, "Wins" real, "Losses" real, "Ties" real, "Goals For" real, "Goals Against" real )
what is the number of losses with wins less than 4 and goals against more than 39?
SELECT COUNT("Losses") FROM table_14497 WHERE "Goals Against" > '39' AND "Wins" < '4'
wikisql
CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY number, F...
看一下病患鲁同济的医疗记录中哪几次开的药品金额大于8376.61元?列出医疗就诊编码
SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '鲁同济' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 8376.61) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '鲁同济' AND fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22...
css
CREATE TABLE table_22626 ( "Country" text, "TV Network(s)" text, "Series Premiere" text, "Weekly Schedule" text, "Status" text )
What is every weekly schedule of TV network Viasat 4?
SELECT "Weekly Schedule" FROM table_22626 WHERE "TV Network(s)" = 'Viasat 4'
wikisql
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) C...
which patients were ordered to get wbc, pleural lab test?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "WBC, Pleural"
mimicsql_data
CREATE TABLE table_35610 ( "Rank" text, "Margin" text, "Opponent" text, "Venue" text, "Season" text )
What season has 195 runs as a margin?
SELECT "Season" FROM table_35610 WHERE "Margin" = '195 runs'
wikisql
CREATE TABLE table_17370 ( "Year" real, "Division" text, "League" text, "Reg. Season" text, "Playoffs" text, "Open Cup" text )
What was the result of the open cup when they finished 4th in the regular season?
SELECT "Open Cup" FROM table_17370 WHERE "Reg. Season" = '4th'
wikisql
CREATE TABLE classroom ( building VARCHAR, capacity INTEGER )
Find the maximum and average capacity among rooms in each building.
SELECT MAX(capacity), AVG(capacity), building FROM classroom GROUP BY building
sql_create_context
CREATE TABLE table_17288845_9 ( score VARCHAR, game VARCHAR )
Name the score for game 63
SELECT score FROM table_17288845_9 WHERE game = 63
sql_create_context
CREATE TABLE table_name_83 ( batsmen VARCHAR, year VARCHAR )
Who is the Batsman from the year 1982?
SELECT batsmen FROM table_name_83 WHERE year = "1982"
sql_create_context
CREATE TABLE table_train_170 ( "id" int, "alt" float, "hemoglobin_a1c_hba1c" float, "ast" float, "allergy_to_peanuts" bool, "a1c" float, "bilirubin" float, "NOUSE" float )
allergy to peanuts
SELECT * FROM table_train_170 WHERE allergy_to_peanuts = 1
criteria2sql
CREATE TABLE school ( School_Colors VARCHAR, Enrollment VARCHAR )
List the school color of the school that has the largest enrollment.
SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1
sql_create_context
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) ...
what are the three most frequent drugs which are prescribed to hypertension - hypertensive emergency/urgency female patients in 60 or above within 2 months after they have been diagnosed with hypertension - hypertensive emergency/urgency until 4 years ago?
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 = 'hypertension - hypertensive emergency/urgency' AND...
eicu
CREATE TABLE 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 t...
provide me the number of patients on main drug type prescription who have the diagnoses of poisoning by other opiates and related narcotics.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Poisoning-opiates NEC" AND prescriptions.drug_type = "MAIN"
mimicsql_data
CREATE TABLE table_name_88 ( score VARCHAR, away_team VARCHAR )
What was the score fore the away team Dartford?
SELECT score FROM table_name_88 WHERE away_team = "dartford"
sql_create_context
CREATE TABLE table_79077 ( "Number" real, "Year Start" real, "Year End" real, "Name" text, "Home Club" text )
Which Number has a Name of cooper, c. kenneth, and a Year End larger than 1984?
SELECT AVG("Number") FROM table_79077 WHERE "Name" = 'cooper, c. kenneth' AND "Year End" > '1984'
wikisql
CREATE TABLE mzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH text, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZZMC ...
从02年1月12日起到04年5月29日时患者章淑华所有检验报告单的审核日期是什么时候?
SELECT jybgb.SHSJ FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB ...
css
CREATE TABLE gyb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE text, IN...
9616667这家医疗机构当前的在院人数
SELECT COUNT(*) FROM qtb WHERE qtb.MED_SER_ORG_NO = '9616667' AND qtb.HOSP_STS > 0 UNION SELECT COUNT(*) FROM gyb WHERE gyb.MED_SER_ORG_NO = '9616667' AND gyb.HOSP_STS > 0 UNION SELECT COUNT(*) FROM zyb WHERE zyb.MED_SER_ORG_NO = '9616667' AND zyb.HOSP_STS > 0 UNION SELECT COUNT(*) FROM mzb WHERE mzb.MED_SER_ORG_NO = '...
css
CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE Users ( Id number, Reputation number,...
Rank users by what fraction of their answers are accepted.
SELECT Users.Id AS "user_link", COUNT(*) AS "Answers", CAST(COUNT(CASE WHEN q.AcceptedAnswerId = a.Id THEN 1 END) AS FLOAT) / COUNT(*) AS "Fraction" FROM Posts AS a INNER JOIN Posts AS q ON a.ParentId = q.Id INNER JOIN Users ON a.OwnerUserId = Users.Id GROUP BY Users.Id HAVING COUNT(*) >= @MinAnswers ORDER BY 'Fraction...
sede
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) ...
what is the number of patients whose year of birth is less than 2170 and lab test name is other cells?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2170" AND lab.label = "Other Cells"
mimicsql_data
CREATE TABLE table_name_69 ( manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR )
Which Manufacturer has 1 lap and had an accident?
SELECT manufacturer FROM table_name_69 WHERE laps = 1 AND time_retired = "accident"
sql_create_context
CREATE TABLE table_7932 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
Which Record has a Team of philadelphia?
SELECT "Record" FROM table_7932 WHERE "Team" = 'philadelphia'
wikisql
CREATE TABLE table_name_48 ( cup_apps INTEGER, league_apps INTEGER )
How many cop apps in the season with fewer than 12 league apps?
SELECT SUM(cup_apps) FROM table_name_48 WHERE league_apps < 12
sql_create_context
CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time...
count the number of patients who were diagnosed with peritoneum injury-open and did not come to hospital within 2 months since 4 years ago.
SELECT (SELECT COUNT(DISTINCT t1.subject_id) 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 = 'peritoneum...
mimic_iii
CREATE TABLE table_47575 ( "Season" real, "Date" text, "Score" text, "Winner" text, "Venue" text, "Competition round" text )
On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?
SELECT "Date" FROM table_47575 WHERE "Venue" = 'estadio alejandro villanueva' AND "Season" > '2003' AND "Competition round" = 'torneo apertura' AND "Winner" = 'universitario'
wikisql
CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE hz_info ( KH text, KLX number...
在患者陶歌韵的诊疗记录里,从02年8月1日到10年6月21日这期间,为其检测游离甲状腺素(三代)的医务人员有哪几位,报一下工号及姓名
SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jy...
css
CREATE TABLE table_204_436 ( id number, "date" text, "time" text, "opponent" text, "site" text, "tv" text, "result" text, "attendance" number, "record" text )
how many games did the 201213 austin peay state governors basketball team win ?
SELECT COUNT(*) FROM table_204_436 WHERE "result" = 'w'
squall
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, Creation...
How many people are from India.
SELECT COUNT(Location), MAX(Reputation) FROM Users WHERE Location LIKE '%India%'
sede
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, a...
how many times has the nonop cardiac/vasc exam been performed?
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 = 'nonop cardiac/vasc exam')
mimic_iii
CREATE TABLE table_13533 ( "Place" real, "Team" text, "Played" real, "Draw" real, "Lost" real, "Goals Scored" real, "Goals Conceded" real, "Points" real )
How many total draws was played less than 18 with 11 losts?
SELECT SUM("Draw") FROM table_13533 WHERE "Lost" = '11' AND "Played" < '18'
wikisql
CREATE TABLE 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 t...
how many patients uses the drug code quet25?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "QUET25"
mimicsql_data
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE diagnosis ( diagn...
so how many hours have passed since patient 005-48105 was admitted to the hospital?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '005-48105' AND patient.hospitaldischargetime IS NULL
eicu
CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id num...
Average number of answers to questions without accepted answer.
SELECT AVG(AnswerCount + 0.000001) FROM Posts WHERE PostTypeId = 1 AND AcceptedAnswerId IS NULL
sede
CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC...
患者邹嘉禧在09年10月29日到11年7月16日,是找的哪些工号及姓名的医务人员检测指标704270的
SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZ...
css
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE vitalperiodi...
has patient 007-10135 been prescribed glucagon (human recombinant) 1 mg/ml solution for injection in a year before.
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-10135')) AND medication.drugname = 'glucagon (human recombinant) 1 mg/...
eicu
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellv...
have patient 025-44495 undergone any vte prophylaxis - factor xa inhibitor procedure in this year?
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495')) AND treatment.treatmentname = 'vte prophylaxis - factor xa inhi...
eicu
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
provide the name of drug and route of administration for the drug with drug code d12.5w250l.
SELECT prescriptions.drug, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "D12.5W250I"
mimicsql_data
CREATE TABLE table_name_59 ( notes VARCHAR, rank INTEGER )
what is the notes when the rank is less than 2?
SELECT notes FROM table_name_59 WHERE rank < 2
sql_create_context
CREATE TABLE table_23465864_4 ( sat_29_aug VARCHAR, tues_25_aug VARCHAR )
What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?
SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = "23' 18.82 97.102mph"
sql_create_context
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time )...
count the number of prescribed drugs patient 015-33415 has been prescribed in the last hospital encounter.
SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-33415' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hosp...
eicu
CREATE TABLE table_name_54 ( position VARCHAR, school_country VARCHAR )
What position does the player from arkansas play?
SELECT position FROM table_name_54 WHERE school_country = "arkansas"
sql_create_context
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( Scho...
Show team_id from each team name, rank by the y axis from low to high.
SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_ID
nvbench
CREATE TABLE table_name_96 ( rank VARCHAR, team VARCHAR, points VARCHAR )
Which rank has a team of Suzuki with under 16 points?
SELECT rank FROM table_name_96 WHERE team = "suzuki" AND points < 16
sql_create_context
CREATE TABLE table_name_84 ( date VARCHAR, score VARCHAR )
When was the score l 111 122 (ot)?
SELECT date FROM table_name_84 WHERE score = "l 111–122 (ot)"
sql_create_context
CREATE TABLE table_24229 ( "Competition" text, "Round" text, "Opponent" text, "Result" text, "Score" text, "Home/Away" text, "Venue" text, "Attendance" text, "Date" text )
Name the attendance for loss result and salford city reds
SELECT "Attendance" FROM table_24229 WHERE "Result" = 'Loss' AND "Opponent" = 'Salford City Reds'
wikisql
CREATE TABLE table_56729 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text )
What was the team's record on May 17?
SELECT "Record" FROM table_56729 WHERE "Date" = 'may 17'
wikisql
CREATE TABLE table_25816476_2 ( air_date VARCHAR, team_guest_captain VARCHAR )
How many entries are shown for an air date when the team guest captain was stephen k amos?
SELECT COUNT(air_date) FROM table_25816476_2 WHERE team_guest_captain = "Stephen K Amos"
sql_create_context
CREATE TABLE t_kc22 ( MED_EXP_DET_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, MED_EXP_BILL_ID text, SOC_SRT_DIRE_CD text, SOC_SRT_DIRE_NM text, DIRE_TYPE number, CHA_ITEM_LEV number, MED_INV_ITEM_TYPE text, MED_DIRE_CD text, MED_DIRE_NM text,...
过去患者郎曼吟得过哪些疾病?
SELECT IN_DIAG_DIS_CD, IN_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_NM = '郎曼吟'
css
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
how many patients are with american indian/alaska native ethnicity and with drug name hydromorphone?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND prescriptions.drug = "Hydromorphone"
mimicsql_data
CREATE TABLE table_name_23 ( opponent VARCHAR, date VARCHAR )
who is the opponent on 18 january 1993?
SELECT opponent FROM table_name_23 WHERE date = "18 january 1993"
sql_create_context
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid num...
what is the name of the diagnostic that patient 022-127032 first was received since 2101?
SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-127032')) AND STRFTIME('%y', diagnosis.diagnosistime) >= '210...
eicu
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserD...
Scores and Misc info for questions.
WITH VoteCounts AS (SELECT SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS UpVotes, SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) AS DownVotes, PostId FROM Votes INNER JOIN Posts ON Votes.PostId = Posts.Id WHERE ABS(CAST((JULIANDAY(CreationDate) - JULIANDAY(Posts.CreationDate)) AS INT)) < @timeWindow GROUP BY Post...
sede
CREATE TABLE table_26615633_3 ( gender VARCHAR, species VARCHAR )
whatis the gender wher ethe species is holland lop?
SELECT gender FROM table_26615633_3 WHERE species = "Holland Lop"
sql_create_context
CREATE TABLE store ( store_id TINYINT UNSIGNED, manager_staff_id TINYINT UNSIGNED, address_id SMALLINT UNSIGNED, last_update TIMESTAMP ) CREATE TABLE address ( address_id SMALLINT UNSIGNED, address VARCHAR(50), address2 VARCHAR(50), district VARCHAR(20), city_id SMALLINT UNSIGNED, ...
A bar chart for what are the number of the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa?, I want to sort by the y axis in ascending.
SELECT payment_date, COUNT(payment_date) FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa' ORDER BY COUNT(payment_date)
nvbench
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL number, JCZBJGDW text, ...
患者苏晓莉检验下肢的各项指标结果如何?
SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jy...
css
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
how many patients are with mechanical complication of colostomy and enterostormy diagnosis with abnormal lab test status?
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.long_title = "Mechanical complication of colostomy and enterostomy" AND lab.flag = "abnormal"
mimicsql_data
CREATE TABLE table_2844 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
Who has the most rebounds for game 42?
SELECT "High rebounds" FROM table_2844 WHERE "Game" = '42'
wikisql
CREATE TABLE table_name_4 ( votes VARCHAR, artist VARCHAR, place VARCHAR )
What is the total number of votes Sahlene with a place below 1 has?
SELECT COUNT(votes) FROM table_name_4 WHERE artist = "sahlene" AND place > 1
sql_create_context
CREATE TABLE table_66021 ( "Peak" text, "Country" text, "Elevation (m)" real, "Prominence (m)" real, "Col (m)" real )
Which Col (m) has an Elevation (m) smaller than 1,624?
SELECT MIN("Col (m)") FROM table_66021 WHERE "Elevation (m)" < '1,624'
wikisql
CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE airport ( airport_code varchar, airport_name text,...
what flights from MILWAUKEE to SAN JOSE on wednesday on AA
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 ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN JOSE' AND date_day.day_number = 23 AND date_day.month_number = 4 AND...
atis
CREATE TABLE table_44204 ( "Publication" text, "Country" text, "Accolade" text, "Year" real, "Rank" real )
What is the lowest Year, when Rank is greater than 85?
SELECT MIN("Year") FROM table_44204 WHERE "Rank" > '85'
wikisql
CREATE TABLE table_15778 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" text )
Who is the opponent the Seattle Seahawks played when their record was 1-3?
SELECT "Opponent" FROM table_15778 WHERE "Record" = '1-3'
wikisql
CREATE TABLE table_11869952_1 ( institutional_authority VARCHAR, rocket_launch VARCHAR )
Which authority has a rocket launch called shahpar-2?
SELECT institutional_authority FROM table_11869952_1 WHERE rocket_launch = "Shahpar-2"
sql_create_context
CREATE TABLE table_65450 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354?
SELECT COUNT("Week") FROM table_65450 WHERE "Opponent" = 'at san francisco 49ers' AND "Attendance" < '34,354'
wikisql
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospita...
patient 015-52724 had been prescribed medication since 11/2105?
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-52724')) AND STRFTIME('%y-%m', medication.drugstarttime) >= '2105-11'
eicu
CREATE TABLE marketing_regions ( marketing_region_code text, marketing_region_name text, marketing_region_descriptrion text, other_details text ) CREATE TABLE ref_payment_methods ( payment_method_code text, payment_method_description text ) CREATE TABLE addresses ( address_id text, lin...
What are the minimum, average, and maximum quantities ordered? Check all the invoices.
SELECT MIN(order_quantity), AVG(order_quantity), MAX(order_quantity) FROM invoices
spider
CREATE TABLE table_name_4 ( third INTEGER, club VARCHAR, runners_up VARCHAR, winners VARCHAR )
Which Third has Runners-up of 0, and Winners of 0, and a Club of far rabat?
SELECT AVG(third) FROM table_name_4 WHERE runners_up = 0 AND winners = 0 AND club = "far rabat"
sql_create_context
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
what is drug name of drug code bag?
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.formulary_drug_cd = "BAG"
mimicsql_data
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
count the number of patients whose age is less than 50 and item id is 50952?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "50" AND lab.itemid = "50952"
mimicsql_data
CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE wdmzjzjlb ( HXPLC number, HZX...
门诊诊断为混合性焦虑障碍的病人他们的籍贯代码、名称还有相应人数数据分别是多少?
SELECT person_info.JGDM, person_info.JGMC, COUNT(person_info.RYBH) FROM person_info JOIN hz_info JOIN wdmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE wdmzjzjlb.JZZDSM = '混合性焦虑障碍' GROUP BY person_info.JGDM UNION SELECT...
css
CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, MZZYZDZZBM...
从03年1月23日至2006年7月17日之间何秀越病患所有检测结果指标记录的质检人为85147197的检验指标流水号是多少?
SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jyb...
css
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) C...
count the number of patients whose year of birth is less than 2047 and diagnoses short title is chr diastolic hrt fail?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2047" AND diagnoses.short_title = "Chr diastolic hrt fail"
mimicsql_data
CREATE TABLE table_name_24 ( population INTEGER, area__km_2__ VARCHAR, density__pop_per_km_2__ VARCHAR, rank VARCHAR )
What is the average population of the region with a density less than 487, a rank of 9, and an area larger than 377,944?
SELECT AVG(population) FROM table_name_24 WHERE density__pop_per_km_2__ < 487 AND rank = 9 AND area__km_2__ > 377 OFFSET 944
sql_create_context
CREATE TABLE table_28881 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text )
What party did candidate george mcduffie (j) represent?
SELECT "Party" FROM table_28881 WHERE "Candidates" = 'George McDuffie (J)'
wikisql
CREATE TABLE table_40218 ( "Administrative Panel" real, "Agricultural Panel" real, "Cultural and Educational Panel" real, "Industrial and Commercial Panel" real, "Labour Panel" real, "National University of Ireland" real, "University of Dublin" real, "Nominated by the Taoiseach" real, ...
Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2?
SELECT COUNT("Total") FROM table_40218 WHERE "Labour Panel" < '5' AND "Administrative Panel" < '1' AND "National University of Ireland" < '2'
wikisql
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
what is the number of patients whose item id is 51255 and lab test abnormal status is abnormal?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51255" AND lab.flag = "abnormal"
mimicsql_data
CREATE TABLE table_14325808_1 ( population__2011_census_ VARCHAR, area__km²_ VARCHAR )
How many places according to the 2011 census of whatever population have an area of 132.79 kilometers squared?
SELECT COUNT(population__2011_census_) FROM table_14325808_1 WHERE area__km²_ = "132.79"
sql_create_context
CREATE TABLE table_name_93 ( venue VARCHAR, result VARCHAR )
Which venue led to a draw?
SELECT venue FROM table_name_93 WHERE result = "draw"
sql_create_context
CREATE TABLE 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 ) CREATE TABLE CO...
What is the average student GPA for every department? Return a pie chart.
SELECT DEPT_CODE, AVG(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE
nvbench
CREATE TABLE table_67087 ( "Pick #" text, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
Which player was Pick #40?
SELECT "Player" FROM table_67087 WHERE "Pick #" = '40'
wikisql
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
how many patients whose primary disease is femoral artery thrombosis and year of death is less than or equal to 2154?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "FEMORAL ARTERY THROMBOSIS" AND demographic.dod_year <= "2154.0"
mimicsql_data
CREATE TABLE table_40859 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
What Opponent has an Attendance that is 26,880?
SELECT "Opponent" FROM table_40859 WHERE "Attendance" = '26,880'
wikisql
CREATE TABLE table_44884 ( "Round" real, "Pick" real, "Position" text, "Nationality" text, "College/Team" text )
What is Nationality, when Round is less than 2, and when College/Team is 'CB L'Hospitalet'?
SELECT "Nationality" FROM table_44884 WHERE "Round" < '2' AND "College/Team" = 'cb l''hospitalet'
wikisql
CREATE TABLE regular_order_products ( product_id VARCHAR ) CREATE TABLE products ( product_name VARCHAR, product_price VARCHAR, product_id VARCHAR )
Find the name and price of the product that has been ordered the greatest number of times.
SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1
sql_create_context
CREATE TABLE person_info_hz_info ( RYBH text, KH number, KLX number, YLJGDM number ) CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text ) CREATE TABLE mzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLS...
列出患者蒋清淑门诊诊断名称不包含维生素的在医院6779932中有哪些门诊就诊记录?
SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_i...
css
CREATE TABLE table_37045 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
What's the score for Toronto Maple Leafs on November 10?
SELECT "Score" FROM table_37045 WHERE "Home" = 'toronto maple leafs' AND "Date" = 'november 10'
wikisql
CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL number, JCZBJGDW text, JCZBJGDX text, JCZBMC text, JLDW text, JYRQ time, JYZBLSH text, ...
报告人工号以及姓名在检验报告单46227509627中,是什么?
SELECT jybgb.BGRGH, jybgb.BGRXM FROM jybgb WHERE jybgb.BGDH = '46227509627'
css
CREATE TABLE table_1867 ( "Team" text, "Location" text, "County" text, "Division" text, "Home ground" text, "Coach" text, "Captain" text )
Who is the coach of the team in Leicester?
SELECT "Coach" FROM table_1867 WHERE "Location" = 'Leicester'
wikisql
CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, MED_DIRE_CD tex...
团伙成员43929858最常开的药品排序是什么次序
SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '43929858' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC
css
CREATE TABLE table_name_2 ( crowd VARCHAR, home_team VARCHAR )
What was the attendance when Fitzroy played as home team?
SELECT COUNT(crowd) FROM table_name_2 WHERE home_team = "fitzroy"
sql_create_context
CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, depart...
what kind of ground transportation is there once i get to DALLAS
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DALLAS' AND ground_service.city_code = city.city_code
atis
CREATE TABLE circuits ( circuitId INTEGER, circuitRef TEXT, name TEXT, location TEXT, country TEXT, lat REAL, lng REAL, alt TEXT, url TEXT ) CREATE TABLE status ( statusId INTEGER, status TEXT ) CREATE TABLE constructorStandings ( constructorStandingsId INTEGER, rac...
What are the names of all the Japanese constructors that have earned more than 5 points, and count them by a bar chart, and list by the X-axis from low to high please.
SELECT name, COUNT(name) FROM constructors AS T1 JOIN constructorStandings AS T2 ON T1.constructorId = T2.constructorId WHERE T1.nationality = "Japanese" AND T2.points > 5 GROUP BY name ORDER BY name
nvbench
CREATE TABLE table_55571 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
Where did the home team score 14.21 (105) with a crowd larger than 13,828?
SELECT "Venue" FROM table_55571 WHERE "Crowd" > '13,828' AND "Home team score" = '14.21 (105)'
wikisql
CREATE TABLE table_41826 ( "Office" text, "Democratic ticket" text, "Republican ticket" text, "Socialist ticket" text, "Constitutional ticket" text, "Law Preservation ticket" text )
What office was law preservation ticket holder William E. Barron running for?
SELECT "Office" FROM table_41826 WHERE "Law Preservation ticket" = 'william e. barron'
wikisql
CREATE TABLE table_name_34 ( points VARCHAR, races VARCHAR )
What was the points with 7 races?
SELECT points FROM table_name_34 WHERE races = "7"
sql_create_context
CREATE TABLE table_name_75 ( thai_name VARCHAR, abbr VARCHAR )
What is the Thai name for the word abbreviated . .?
SELECT thai_name FROM table_name_75 WHERE abbr = "มี.ค."
sql_create_context
CREATE TABLE device ( device_id number, device text, carrier text, package_version text, applications text, software_platform text ) CREATE TABLE shop ( shop_id number, shop_name text, location text, open_date text, open_year number ) CREATE TABLE stock ( shop_id number...
What is the average quantity of stocks?
SELECT AVG(quantity) FROM stock
spider