context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_23539 (
"Starting price" text,
"Number" real,
"Name" text,
"Age" real,
"Weight (st, lb)" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Colours" text
) | What horse had a starting price of 14/1 and weighted 10-7? | SELECT "Name" FROM table_23539 WHERE "Starting price" = '14/1' AND "Weight (st, lb)" = '10-7' | wikisql |
CREATE TABLE table_name_93 (
record VARCHAR,
opponent VARCHAR
) | What record has @ ottawa senators as the opponent? | SELECT record FROM table_name_93 WHERE opponent = "@ ottawa senators" | sql_create_context |
CREATE TABLE table_name_87 (
club VARCHAR,
score VARCHAR
) | What club had a score of 18.1? | SELECT club FROM table_name_87 WHERE score = "18.1" | sql_create_context |
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
) | What are the first name and last name of all the teachers? | SELECT DISTINCT firstname, lastname FROM teachers | spider |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text
)
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 te... | 找一下患者14728609住在3965242这家医院的就诊记录里出院科室名字不带正骨的 | SELECT * FROM hz_info JOIN zyjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND person_info_hz_i... | css |
CREATE TABLE table_18359 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | Who were the candidates in the district won by the incumbent Del Latta? | SELECT "Candidates" FROM table_18359 WHERE "Incumbent" = 'Del Latta' | wikisql |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
... | In this next semester what will Dr. Charlotte Winston be teaching ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Charlotte Winston%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor... | advising |
CREATE TABLE table_name_98 (
name VARCHAR,
overall VARCHAR,
round VARCHAR
) | What name has an overall less than 268, and 1 as the round? | SELECT name FROM table_name_98 WHERE overall < 268 AND round = 1 | sql_create_context |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE 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,
... | 63411800这个病患在02年11月23日到08年8月3期间买了多少次西药 | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '63411800' AND t_kc22.STA_DATE BETWEEN '2002-11-23' AND '2008-08-03' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE f... | css |
CREATE TABLE table_204_525 (
id number,
"rank" number,
"player" text,
"county" text,
"tally" text,
"total" number,
"opposition" text
) | after declan lovett , who was ranked next in the 197172 national hurling league ? | SELECT "player" FROM table_204_525 WHERE id = (SELECT id FROM table_204_525 WHERE "player" = 'declan lovett') + 1 | squall |
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | 检验报告在检验结果指标记录38194766838对应什么单号? | SELECT BGDH FROM jyjgzbb WHERE JYZBLSH = '38194766838' | css |
CREATE TABLE table_name_76 (
Id VARCHAR
) | What is the lowest number of participants in 2010 when there were 0 participants in 2012? | SELECT MIN(2010) FROM table_name_76 WHERE 2012 < 0 | sql_create_context |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Visualize a scatter chart about the correlation between ACC_Percent and All_Games_Percent , and group by attribute ACC_Road. | SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY ACC_Road | nvbench |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId num... | Average question score/views by hour. | SELECT TIME_TO_STR(CreationDate, '%M') AS Month, TIME_TO_STR(CreationDate, '%Y') AS Year, ROUND(AVG(CAST(Score AS FLOAT)), 2) AS AvgScore, AVG(ViewCount) AS AvgViews FROM Posts WHERE PostTypeId = 1 GROUP BY TIME_TO_STR(CreationDate, '%M'), TIME_TO_STR(CreationDate, '%Y') ORDER BY TIME_TO_STR(CreationDate, '%Y'), TIME_T... | sede |
CREATE TABLE table_42810 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text
) | What is the score of the New Jersey home game? | SELECT "Score" FROM table_42810 WHERE "Home" = 'new jersey' | wikisql |
CREATE TABLE table_847 (
"Rnd" real,
"Circuit" text,
"GTO Winning Team" text,
"GTU Winning Team" text,
"TO Winning Team" text,
"TU Winning Team" text,
"Results" text
) | Who was the TO winning team when the TU winning team was Joe Richardson? | SELECT "TO Winning Team" FROM table_847 WHERE "TU Winning Team" = 'Joe Richardson' | 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 married patients had the diagnosis icd9 code 5570? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "MARRIED" AND diagnoses.icd9_code = "5570" | mimicsql_data |
CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE volume (
Volume_ID int,
V... | Display a pie chart for how many music festivals have had each kind of result, ordered descending by count? | SELECT Result, COUNT(*) FROM music_festival GROUP BY Result ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_53830 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
) | Who was the winner when the third place was fernando meligeni? | SELECT "Winner" FROM table_53830 WHERE "Third Place" = 'fernando meligeni' | wikisql |
CREATE TABLE table_name_35 (
tournament VARCHAR
) | What shows for 2010 when 2011 is 1r at the US Open tournament? | SELECT 2010 FROM table_name_35 WHERE 2011 = "1r" AND tournament = "us open" | sql_create_context |
CREATE TABLE txmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | 在2007年12月12日到2020年1月21日内患者34563100就诊过多少个医生? | SELECT COUNT(txmzjzjlb.ZZYSGH) FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '34563100' AND txmzjzjlb.JZKSRQ BETWEEN '2007-12-12' AND '2020-01-21' UNION SELECT COUNT(ftxmzjzjlb.ZZYSGH) FROM hz_info JOIN ftxmzjzjlb ON h... | css |
CREATE TABLE table_203_327 (
id number,
"player" text,
"country" text,
"year(s) won" text,
"r1" number,
"r2" number,
"total" number,
"to par" number
) | how long ago was it that don january won ? | SELECT present_ref - "year(s) won" FROM table_203_327 WHERE "player" = 'don january' | squall |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE T... | display users name and text comments. | SELECT DisplayName, 'text' FROM Users INNER JOIN Comments ON Users.Id = Comments.UserId WHERE Users.DisplayName LIKE 'Tawfik' | sede |
CREATE TABLE table_32774 (
"Valid" text,
"Within" text,
"Price in Euro" real,
"Price per Valid Day" text,
"Price per \"Within\" Day" text,
"Area" text
) | What is the lowest Euro for a ticket with a price per valid day of & 34? | SELECT MIN("Price in Euro") FROM table_32774 WHERE "Price per Valid Day" = '& 34' | wikisql |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE 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,
... | 患者严光辉曾经接受过什么治疗 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '严光辉' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLIN... | css |
CREATE TABLE table_58324 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) | Who is the winning driver that has a construction of brm? | SELECT "Winning driver" FROM table_58324 WHERE "Constructor" = 'brm' | wikisql |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE 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,
... | 查一下医疗就诊08917686657是哪天出院的 | SELECT gwyjzb.OUT_HOSP_DATE FROM gwyjzb WHERE gwyjzb.MED_CLINIC_ID = '08917686657' UNION SELECT fgwyjzb.OUT_HOSP_DATE FROM fgwyjzb WHERE fgwyjzb.MED_CLINIC_ID = '08917686657' | css |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospit... | what was the time of patient 030-8973's hospital admission last year? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '030-8973' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | eicu |
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) | Return a pie chart on how old is the average person for each job? | SELECT job, AVG(age) FROM Person GROUP BY job | nvbench |
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... | 患者43148907在05年1月3日到09年12月17日,是找的哪些工号及姓名的医务人员检测免疫球蛋白M(标准)的 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH ... | css |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
... | For those employees who was hired before 2002-06-21, a bar chart shows the distribution of job_id and the sum of manager_id , and group by attribute job_id. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | nvbench |
CREATE TABLE Order_Items (
item_id INTEGER,
order_item_status_code VARCHAR(15),
order_id INTEGER,
product_id INTEGER,
item_status_code VARCHAR(15),
item_delivered_datetime DATETIME,
item_order_quantity VARCHAR(80)
)
CREATE TABLE Mailshot_Campaigns (
mailshot_id INTEGER,
product_cate... | Create a bar chart showing the total number across premises type | SELECT premises_type, COUNT(*) FROM Premises GROUP BY premises_type | nvbench |
CREATE TABLE table_name_9 (
class VARCHAR,
weight VARCHAR
) | What is the class of the player with a weight of 242 pounds? | SELECT class FROM table_name_9 WHERE weight = 242 | sql_create_context |
CREATE TABLE table_71298 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the lowest rank of Ukraine with fewer than 14 silver medals, fewer than 3 bronze medals, and a total of 4 medals? | SELECT MIN("Rank") FROM table_71298 WHERE "Silver" < '14' AND "Bronze" < '3' AND "Total" = '4' AND "Nation" = 'ukraine' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... | count the number of patients whose diagnosis long title is morbid obesity and the lab test category is chemistry. | 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 = "Morbid obesity" AND lab."CATEGORY" = "Chemistry" | mimicsql_data |
CREATE TABLE table_name_26 (
date VARCHAR,
result VARCHAR
) | When was the game with a result of w 27-24 (ot)? | SELECT date FROM table_name_26 WHERE result = "w 27-24 (ot)" | sql_create_context |
CREATE TABLE table_name_59 (
score VARCHAR,
attendance VARCHAR
) | What is the score of the game that had 359 people in attendance? | SELECT score FROM table_name_59 WHERE attendance = "359" | sql_create_context |
CREATE TABLE table_19800 (
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" text
) | How many different directors are associated with the writer Gaby Chiappe? | SELECT COUNT("Director") FROM table_19800 WHERE "Writer" = 'Gaby Chiappe' | 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,
... | 患者53796219为疾病L85.935,门诊诊断的D2聚体(柠檬酸盐)的结果定量及其单位数据均为? | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON 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 jybgb.YLJGDM = jyjgzbb... | css |
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... | Bar chart x axis time y axis meter_100, and show by the y axis from high to low. | SELECT Time, meter_100 FROM swimmer ORDER BY meter_100 DESC | nvbench |
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 admitted before the year 2155 had the drug name bismuth subsalicylate? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2155" AND prescriptions.drug = "Bismuth Subsalicylate" | mimicsql_data |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | what is the number of patients whose marital status is widowed and diagnoses short title is nb transitory tachypnea? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "WIDOWED" AND diagnoses.short_title = "NB transitory tachypnea" | mimicsql_data |
CREATE TABLE table_name_67 (
remixed_by VARCHAR,
length VARCHAR
) | Who remixed the version with a length of 4:22? | SELECT remixed_by FROM table_name_67 WHERE length = "4:22" | sql_create_context |
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
StuID INTEGE... | A bar chart for what are the number of the first names of all students in Smith Hall?, and show by the bar in ascending. | SELECT Fname, COUNT(Fname) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' GROUP BY Fname ORDER BY Fname | nvbench |
CREATE TABLE table_34401 (
"Club" text,
"Wins" real,
"Last Win" text,
"Runners-up" real,
"Last Runners-up" real
) | What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1? | SELECT COUNT("Last Runners-up") FROM table_34401 WHERE "Last Win" = '1999' AND "Runners-up" > '1' | wikisql |
CREATE TABLE table_65760 (
"Name" text,
"Nationality" text,
"4.30" text,
"4.45" text,
"4.55" text,
"Result" real
) | What is the 4.45 for Yelena Isinbayeva? | SELECT "4.45" FROM table_65760 WHERE "Name" = 'yelena isinbayeva' | wikisql |
CREATE TABLE table_name_94 (
laps INTEGER,
grid VARCHAR
) | what is the highest laps when the grid is 1? | SELECT MAX(laps) FROM table_name_94 WHERE grid = 1 | sql_create_context |
CREATE TABLE table_name_41 (
round VARCHAR,
school VARCHAR
) | What is the total number of rounds that UCLA has? | SELECT COUNT(round) FROM table_name_41 WHERE school = "ucla" | sql_create_context |
CREATE TABLE table_203_812 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | which country won only one medal , a bronze medal ? | SELECT "nation" FROM table_203_812 WHERE "total" = 1 AND "bronze" = 1 | squall |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
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 n... | 在2012年9月17日到2021年6月15日内84842097患者被开出的所有检验报告单的检验报告单号一共都有哪些? | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE hz_info.RYBH = '84842097' AND jybgb.BGRQ BETWEEN '2012-09-17' AND '2021-06-15' UNION... | css |
CREATE TABLE table_name_3 (
total_goals INTEGER,
position VARCHAR,
league_apps VARCHAR,
total_apps VARCHAR
) | What is the fewest total goals scored for players with under 171 league appearances, 151 total appearances, and the DF position? | SELECT MIN(total_goals) FROM table_name_3 WHERE league_apps < 171 AND total_apps = 151 AND position = "df" | sql_create_context |
CREATE TABLE table_name_59 (
played INTEGER,
position VARCHAR,
lost VARCHAR,
name VARCHAR
) | What is the most elevated Played that has a Lost smaller than 12, and a Name of ec amberg (n), and a Position smaller than 4? | SELECT MAX(played) FROM table_name_59 WHERE lost < 12 AND name = "ec amberg (n)" AND position < 4 | sql_create_context |
CREATE TABLE table_31120 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | What is the season # for the production code 3.89? | SELECT "Season #" FROM table_31120 WHERE "Production code" = '3.89' | wikisql |
CREATE TABLE table_1013129_10 (
position VARCHAR,
player VARCHAR
) | All players are position mark polak. | SELECT position FROM table_1013129_10 WHERE player = "Mark Polak" | sql_create_context |
CREATE TABLE table_39931 (
"Date" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | Which Interview subject has a Centerfold model of athena lundberg? | SELECT "Interview subject" FROM table_39931 WHERE "Centerfold model" = 'athena lundberg' | wikisql |
CREATE TABLE table_65345 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | What date was the score 3 3, and away team was Barnet? | SELECT "Date" FROM table_65345 WHERE "Score" = '3–3' AND "Away team" = 'barnet' | wikisql |
CREATE TABLE table_204_932 (
id number,
"#" number,
"title" text,
"time" text,
"lead vocals" text,
"notes" text
) | which song is the only one that is shorter than where the spirit is ? | SELECT "title" FROM table_204_932 WHERE "time" < (SELECT "time" FROM table_204_932 WHERE "title" = 'where the spirit is') | squall |
CREATE TABLE table_name_11 (
date VARCHAR,
result VARCHAR
) | Which Date has a Result of 3 4? | SELECT date FROM table_name_11 WHERE result = "3–4" | sql_create_context |
CREATE TABLE table_54355 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the score for Hawthorn when they were the away team? | SELECT "Away team score" FROM table_54355 WHERE "Away team" = 'hawthorn' | wikisql |
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... | For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of first_name and employee_id . | SELECT FIRST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_72840 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) | What stadium hosted the June 7 game and how many visitors were there? | SELECT "Location/Attendance" FROM table_72840 WHERE "Date" = 'June 7' | wikisql |
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journali... | When was Recurrent Neural Network proposed ? | SELECT DISTINCT paper.year FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Recurrent Neural Network' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid GROUP BY paper.year ORDER BY paper.year | scholar |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 69621807的团伙成员最常去看病的几位医生的排序看一下 | SELECT OUT_DIAG_DOC_CD, OUT_DIAG_DOC_NM FROM t_kc21 WHERE PERSON_ID = '69621807' GROUP BY OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC | css |
CREATE TABLE table_name_2 (
decision VARCHAR,
home VARCHAR,
date VARCHAR
) | What was the decision from the Vancouver home game on April 21? | SELECT decision FROM table_name_2 WHERE home = "vancouver" AND date = "april 21" | sql_create_context |
CREATE TABLE table_39082 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) | What is the mean number of events where the rank is 1 and there are more than 3 wins? | SELECT AVG("Events") FROM table_39082 WHERE "Rank" = '1' AND "Wins" > '3' | wikisql |
CREATE TABLE table_test_30 (
"id" int,
"ejection_fraction_ef" int,
"multiple_long_bone_fractures" bool,
"extracellular_volume_expansion" bool,
"pregnancy_or_lactation" bool,
"bleeding" int,
"serum_potassium" float,
"prosthetic_heart_valve" bool,
"hbg" int,
"anticoagulation" bool,... | renal failure ( creatinine > 2 mg / dl ) or hyperkalemia ( serum potassium > 5.5 mg / dl ) | SELECT * FROM table_test_30 WHERE renal_disease = 1 OR creatinine_clearance_cl > 2 OR hyperkalemia = 1 OR serum_potassium > 5.5 | criteria2sql |
CREATE TABLE table_19507 (
"Rank" real,
"State" text,
"Revenue (millions)" text,
"Population" real,
"Revenue per capita" text,
"Spending (millions)" text,
"Spending per capita" text,
"Net contribution per capita" text,
"Presidential majority 2000/2004" text,
"Presidential majorit... | How many times was presidential majority 2000/2004 recorded when obamacare: fed/ state/ partnership was Utah shop? | SELECT COUNT("Presidential majority 2000/2004") FROM table_19507 WHERE "Obamacare: Fed/ State/ Partnership" = 'Utah shop' | wikisql |
CREATE TABLE table_test_24 (
"id" int,
"history_of_bleeding_diathesis" bool,
"bleeding" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"blood_draw" bool,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"allergy_to_clopidogrel" bool,
"cardiogenic_shock" boo... | cardiogenic shock or symptomatic hypotension or sitting sbp < 95 mmhg | SELECT * FROM table_test_24 WHERE cardiogenic_shock = 1 OR symptomatic_hypotension = 1 OR systolic_blood_pressure_sbp < 95 | criteria2sql |
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_DIRE_CD text,
MED_DIRE_NM text,... | 朱韵诗这个病人在14年6月5日到18年7月1日期间住过几次院 | SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.PERSON_NM = '朱韵诗' AND t_kc21.IN_HOSP_DATE BETWEEN '2014-06-05' AND '2018-07-01' AND t_kc21.CLINIC_TYPE = '住院' | css |
CREATE TABLE table_name_13 (
record VARCHAR,
points VARCHAR,
home VARCHAR
) | What record has points less than 16, and detroit as the home? | SELECT record FROM table_name_13 WHERE points < 16 AND home = "detroit" | sql_create_context |
CREATE TABLE party (
party_id number,
year number,
party text,
governor text,
lieutenant_governor text,
comptroller text,
attorney_general text,
us_senate text
)
CREATE TABLE county (
county_id number,
county_name text,
population number,
zip_code text
)
CREATE TABLE el... | Who were the governors of the parties associated with delegates from district 1? | SELECT T2.governor FROM election AS T1 JOIN party AS T2 ON T1.party = T2.party_id WHERE T1.district = 1 | spider |
CREATE TABLE table_2508633_6 (
nfl_team VARCHAR,
player VARCHAR
) | Name the total number for nfl team for ellis gardner | SELECT COUNT(nfl_team) FROM table_2508633_6 WHERE player = "Ellis Gardner" | sql_create_context |
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 ReviewTaskResultTypes (
Id number,
Na... | City and Language - Brains. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, COUNT(p.Id) FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE UPPER(u.Location) LIKE UPPER('%' + '##YourLocation:string##... | sede |
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... | give me the number of patients whose admission year is less than 2139 and lab test name is urea nitrogen, urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2139" AND lab.label = "Urea Nitrogen, Urine" | mimicsql_data |
CREATE TABLE table_203_59 (
id number,
"country" text,
"2000" number,
"2001" number,
"2002" number,
"2003" number,
"2004" number,
"2005" number,
"2006" number,
"2007" number,
"2008" number,
"2009" number,
"2010" number,
"2011" number
) | besides australia which other countries produced more than 100 in the year 2000 ? | SELECT "country" FROM table_203_59 WHERE "country" <> 'australia' AND "2000" > 100 | squall |
CREATE TABLE table_name_30 (
first_aired VARCHAR,
role VARCHAR
) | What's the first aired date when Professor Hubert Whitehead was the role? | SELECT first_aired FROM table_name_30 WHERE role = "professor hubert whitehead" | sql_create_context |
CREATE TABLE table_203_338 (
id number,
"#" number,
"title" text,
"date" text,
"director" text,
"story" text,
"synopsis" text,
"notes" text
) | who directed the least number of the inspector episodes in 1967 ? | SELECT "director" FROM table_203_338 GROUP BY "director" ORDER BY COUNT(*) LIMIT 1 | squall |
CREATE TABLE table_204_125 (
id number,
"state" text,
"type" text,
"name" text,
"title" text,
"royal house" text,
"from" text,
"to" text
) | which ruler came first , si jun or min ? | SELECT "name" FROM table_204_125 WHERE "name" IN ('si jun', 'min') ORDER BY "from" LIMIT 1 | squall |
CREATE TABLE table_55880 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | Which away team has a score of more that 11.13 (79) | SELECT "Away team" FROM table_55880 WHERE "Away team score" = '11.13 (79)' | wikisql |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE fare (
fare_id int,
from_... | what is the least expensive flight from DENVER to ATLANTA | 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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.... | atis |
CREATE TABLE table_name_96 (
country VARCHAR,
player VARCHAR
) | What country is player thomas bj rn from? | SELECT country FROM table_name_96 WHERE player = "thomas bjørn" | sql_create_context |
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 mzjzjlb (
HXPLC number,
HZXM ... | 患者53751020全部检验报告单中的标本采集部位在2000年10月30日到2002年2月6日内都是哪一部位? | SELECT zyjybgb.BBCJBW FROM hz_info JOIN mzjzjlb JOIN zyjybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '53751020' AND zyjybgb.BGRQ BETWEEN '2000-10-30' AND '2002-... | css |
CREATE TABLE table_name_10 (
l2_cache VARCHAR,
idle_power VARCHAR,
model_number VARCHAR
) | What is the L2 Cache for Model Number nano u3400 with an Idle Power of 100mw? | SELECT l2_cache FROM table_name_10 WHERE idle_power = "100mw" AND model_number = "nano u3400" | sql_create_context |
CREATE TABLE table_name_63 (
tournament VARCHAR
) | What is the 2011 when the Tournament was the grand slam tournaments? | SELECT 2011 FROM table_name_63 WHERE tournament = "grand slam tournaments" | sql_create_context |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of price , and group by attribute name, order by the x-axis from low to high. | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | nvbench |
CREATE TABLE table_6891 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | What is the average Against when the drawn is more than 2 and the Difference of- 17, and a Played smaller than 20? | SELECT AVG("Against") FROM table_6891 WHERE "Drawn" > '2' AND "Difference" = '- 17' AND "Played" < '20' | wikisql |
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId nu... | Questions posted this year, by day. | SELECT DATE(CreationDate) AS dt, COUNT(Id) AS num, AVG(CAST(Score AS FLOAT)) AS AvgScore FROM Posts WHERE YEAR(CreationDate) >= YEAR(CURRENT_TIMESTAMP()) AND PostTypeId = 1 GROUP BY DATE(CreationDate) ORDER BY DATE(CreationDate) | sede |
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 text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | 给患者42593363在医疗就诊67404927173中做检验的科室有哪些?编码是什么 | SELECT JYKSBM, JYKSMC FROM jybgb WHERE JZLSH = '67404927173' | css |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChang... | Top Flutter Users in Vietnam. | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id =... | sede |
CREATE TABLE table_56933 (
"District" real,
"Place of Birth" text,
"Delegate" text,
"Party" text,
"Took Office" real,
"Committee" text
) | Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee? | SELECT "Place of Birth" FROM table_56933 WHERE "Took Office" > '1982' AND "District" < '43' AND "Committee" = 'health and government operations' | 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 that died were diagnosed with ketoacidosis, type i [juvenile type], not stated as uncontrolled? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.long_title = "Diabetes with ketoacidosis, type I [juvenile type], not stated as uncontrolled" | mimicsql_data |
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 PR... | How many professors for each first name? Show me a bar chart, could you display Y-axis from low to high order? | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM PROFESSOR AS T1 JOIN EMPLOYEE AS T2 ON T1.EMP_NUM = T2.EMP_NUM GROUP BY EMP_FNAME ORDER BY COUNT(EMP_FNAME) | nvbench |
CREATE TABLE table_22302 (
"Player" text,
"FCSL Team" text,
"Years Played" text,
"Year Drafted" real,
"Round" text,
"MLB Team" text
) | When 2006 is the year played and winter park is the fcsl team who is the player? | SELECT "Player" FROM table_22302 WHERE "FCSL Team" = 'Winter Park' AND "Years Played" = '2006' | wikisql |
CREATE TABLE table_65156 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
) | What is the notes for the team from Denmark? | SELECT "Notes" FROM table_65156 WHERE "Country" = 'denmark' | wikisql |
CREATE TABLE table_78529 (
"Superlative" text,
"Actor" text,
"Record Set" text,
"Year" text,
"Notes" text
) | What year did actor Richard Farnsworth get nominated for an award? | SELECT "Year" FROM table_78529 WHERE "Actor" = 'richard farnsworth' | wikisql |
CREATE TABLE table_1341973_6 (
result VARCHAR,
incumbent VARCHAR
) | What was the result of the election of the incumbent harry r. sheppard? | SELECT result FROM table_1341973_6 WHERE incumbent = "Harry R. Sheppard" | sql_create_context |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
... | Are there any course I should take before HJCS 276 ? | SELECT DISTINCT advisory_requirement FROM course WHERE department = 'HJCS' AND number = 276 | advising |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id num... | since 2105 what were the top four most frequent specimen tests given to patients within the same hospital visit after being diagnosed with sirs, nos? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnos... | mimic_iii |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE 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,
... | 药品076984-q在医疗就诊04253943415中的剂型是什么?规格是什么? | SELECT t_kc22.DOSE_FORM, t_kc22.SPEC FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '04253943415' AND t_kc22.SOC_SRT_DIRE_CD = '076984-q' | css |
CREATE TABLE table_71512 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) | What team hosted at Tampa Stadium? | SELECT "Host Team" FROM table_71512 WHERE "Stadium" = 'tampa stadium' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.