context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
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,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | how many patients whose age is less than 86 and procedure short title is rt & lt heart angiocard? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "86" AND procedures.short_title = "Rt & lt heart angiocard" | mimicsql_data |
CREATE TABLE table_204_669 (
id number,
"rank" number,
"athlete" text,
"nationality" text,
"time" text
) | who was the only contestant from switzerland to place in the top 50 ? | SELECT "athlete" FROM table_204_669 WHERE "nationality" = 'switzerland' AND "rank" <= 50 | squall |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE labevents (
row... | when did patient 5142 receive a prescription for the last time in the previous month, via po route? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5142) AND prescriptions.route = 'po' AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') ORDER BY prescri... | mimic_iii |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversa... | Top User Of a Perticular Tag in India. | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", TagName, 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 ... | sede |
CREATE TABLE table_name_52 (
notes VARCHAR,
rank VARCHAR
) | What are the notes of the number 1 rank? | SELECT notes FROM table_name_52 WHERE rank = 1 | sql_create_context |
CREATE TABLE table_10363 (
"Candidate" text,
"Total Receipts" real,
"Loans Received" real,
"Receipts w/o Loans" real,
"Money Spent" real,
"Cash On Hand" real,
"Total Debt" real,
"Cash on Hand Minus Debt" real
) | What is the average cash on hand of a candidate with receipts w/o loans of 19,951,290 and less than 17,556,672 spent? | SELECT AVG("Cash On Hand") FROM table_10363 WHERE "Receipts w/o Loans" = '19,951,290' AND "Money Spent" < '17,556,672' | wikisql |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | Tags used in conjunction with [tag:harry-potter]. | SELECT t.TagName AS TagName, t.Count AS TagCountTotal, COUNT(p.Id) OVER (PARTITION BY t.Id) AS TagCount, p.Id AS "post_link", p.Tags AS Tags, exc.Body AS Excerpt FROM Tags AS target JOIN PostTags AS pt ON (target.Id = pt.TagId) JOIN Posts AS p ON (pt.PostId = p.Id) JOIN PostTags AS tp ON (p.Id = tp.PostId) JOIN Tags AS... | sede |
CREATE TABLE table_name_11 (
position VARCHAR,
height VARCHAR
) | What is the Position of the Player with a Height of 2.11? | SELECT position FROM table_name_11 WHERE height = 2.11 | sql_create_context |
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program (
program_id int,
name varchar,
... | Other than Prof. Brian Kennedy , name the professor who teaches 301 . | SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 301 AND NOT instructor.name LIKE '%Brian Kennedy%' AND offering_instructor.instructor_id = instructor.instructor_id AND offe... | advising |
CREATE TABLE table_2496 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
) | What is the point total for the Formula Renault 2.0 Italy series? | SELECT COUNT("Points") FROM table_2496 WHERE "Series" = 'Formula Renault 2.0 Italy' | wikisql |
CREATE TABLE table_name_87 (
date_married VARCHAR,
name_dates VARCHAR
) | When did Louise, Princess royal get married? | SELECT date_married FROM table_name_87 WHERE name_dates = "louise, princess royal" | sql_create_context |
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,
... | 在08年10月25日到15年12月6日这段日子病人吕莹玉使用的药品有多些是自付比例低于0.73的呢? | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '吕莹玉' AND t_kc22.STA_DATE BETWEEN '2008-10-25' AND '2015-12-06' AND t_kc22.SELF_PAY_PRO < 0.73 | css |
CREATE TABLE table_name_98 (
course VARCHAR,
year VARCHAR,
location VARCHAR
) | what is the course at midlothian, illinois for a year before 1934? | SELECT course FROM table_name_98 WHERE year < 1934 AND location = "midlothian, illinois" | sql_create_context |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid... | how many patients were diagnosed with cabg < 7days and did not come back to hospital within 2 months since 4 years ago? | SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'cabg < 7days' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t1) -... | eicu |
CREATE TABLE table_name_95 (
voting_order VARCHAR,
commentator VARCHAR
) | What was the voting order when the commentator was renato tagliani? | SELECT voting_order FROM table_name_95 WHERE commentator = "renato tagliani" | sql_create_context |
CREATE TABLE table_204_834 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text
) | what come after rex f. | SELECT "name" FROM table_204_834 WHERE id = (SELECT id FROM table_204_834 WHERE "name" = 'rex favero') + 1 | squall |
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,
... | Among patients discharged on short term hospital, calculate the total number of those born before 1837 | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.dob_year < "1837" | mimicsql_data |
CREATE TABLE table_11575 (
"Crew" real,
"Open 1st VIII" text,
"Open 2nd VIII" text,
"Open 3rd VIII" text,
"Year 11 1st VIII" text,
"Year 11 2nd VIII" text,
"Year 11 3rd VIII" text,
"Year 10 1st Quad" text,
"Year 10 2nd Quad" text,
"Year 10 3rd Quad" text,
"Year 10 4th Quad" t... | What is the Open 1st VIII for the 2012 crew? | SELECT "Open 1st VIII" FROM table_11575 WHERE "Crew" = '2012' | wikisql |
CREATE TABLE table_1275 (
"Con- gress" text,
"District" text,
"Vacator" text,
"Election date" text,
"Successor" text,
"Took seat" text
) | Name the number of districts for december 1799 | SELECT COUNT("District") FROM table_1275 WHERE "Election date" = 'December 1799' | wikisql |
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 drug that was prescribed during the same hospital encounter to patient 007-1517 after having received a therapeutic antibacterials - vancomycin procedure until 70 months ago? | SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | eicu |
CREATE TABLE hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id number
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ tim... | 把医疗机构2360255的科室321在二零一一年十一月二十四日到二零一六年四月十九日内处理的住院就诊记录查看一下 | SELECT COUNT(*) FROM zyjzjlb JOIN hz_info_zyjzjlb JOIN hz_info ON hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.zyjzjlb_id = zyjzjlb.zyjzjlb_id AND hz_info_zyjzjlb.YLJGDM = hz_info.YLJGDM WHERE hz_info.YLJGDM = '23... | css |
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... | 在患者邹宏富的医疗记录中,查一下医疗费总额高过6492.34元的入院诊断疾病名和编码 | SELECT t_kc24.t_kc21_OUT_DIAG_DIS_CD, t_kc24.t_kc21_OUT_DIAG_DIS_NM FROM t_kc24 WHERE t_kc24.t_kc21_PERSON_NM = '邹宏富' AND t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 6492.34) | css |
CREATE TABLE table_7524 (
"Event" text,
"2006\u201307" text,
"2007\u201308" text,
"2008\u201309" text,
"2010\u201311" text
) | Which Event has a 2007 08 of n/a? | SELECT "Event" FROM table_7524 WHERE "2007\u201308" = 'n/a' | wikisql |
CREATE TABLE table_37838 (
"District" text,
"District Headquarters" text,
"Area (km 2 .)" real,
"Population 1991 Census" real,
"Population 2001 Census" real
) | What is the number of Population 2001 Census that has jharsuguda District Headquarters with an Area smaller than 2,081? | SELECT COUNT("Population 2001 Census") FROM table_37838 WHERE "District Headquarters" = 'jharsuguda' AND "Area (km 2 .)" < '2,081' | wikisql |
CREATE TABLE table_name_71 (
score VARCHAR,
set_2 VARCHAR
) | What is the Score for Set 2 of 24 26? | SELECT score FROM table_name_71 WHERE set_2 = "24–26" | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE procedures... | i was wondering what patient 15754's average value of temperature c (calc) on 09/05/2104 was? | SELECT AVG(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15754)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temp... | mimic_iii |
CREATE TABLE country (
country_id number,
country text,
last_update time
)
CREATE TABLE payment (
payment_id number,
customer_id number,
staff_id number,
rental_id number,
amount number,
payment_date time,
last_update time
)
CREATE TABLE actor (
actor_id number,
first_n... | What are the names and ids of the different categories, and how many films are in each? | SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id | spider |
CREATE TABLE table_name_83 (
tonnage___grt__ INTEGER,
deaths VARCHAR,
date VARCHAR,
fate VARCHAR,
flag VARCHAR
) | How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2? | SELECT SUM(tonnage___grt__) FROM table_name_83 WHERE fate = "sunk" AND flag = "great britain" AND date = "26 september 1940" AND deaths = 2 | 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 the number of patients whose marital status is single and lab test name is potassium, whole blood? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "SINGLE" AND lab.label = "Potassium, Whole Blood" | mimicsql_data |
CREATE TABLE contacts (
contact_id number,
customer_id number,
gender text,
first_name text,
last_name text,
contact_phone text
)
CREATE TABLE customer_orders (
order_id number,
customer_id number,
order_date time,
order_status_code text
)
CREATE TABLE addresses (
address_i... | Show the product type and name for the products with price higher than 1000 or lower than 500. | SELECT product_type_code, product_name FROM products WHERE product_price > 1000 OR product_price < 500 | spider |
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, draw a bar chart about the distribution of name and the average of price , and group by attribute name, and list by the y 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.Price | nvbench |
CREATE TABLE table_61257 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the rank for the Mixed Team nation with a total of less than 13? | SELECT "Rank" FROM table_61257 WHERE "Total" < '13' AND "Nation" = 'mixed team' | wikisql |
CREATE TABLE table_63085 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue No." text
) | what is the date when the format is cd (limited edition steel-box) from united kingdom? | SELECT "Date" FROM table_63085 WHERE "Format" = 'cd (limited edition steel-box)' AND "Country" = 'united kingdom' | wikisql |
CREATE TABLE table_name_38 (
bike__40km_ VARCHAR,
swim__15km_ VARCHAR
) | What is the time for the bike (40km) when the swim (1.5km) is 19:56? | SELECT bike__40km_ FROM table_name_38 WHERE swim__15km_ = "19:56" | sql_create_context |
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... | 检测指标名称、结果定量单位跟检验指标记录48654562475一致,但结果定量和它不一样的检验指标记录有哪些 | SELECT * FROM jyjgzbb WHERE JCZBMC = (SELECT JCZBMC FROM jyjgzbb WHERE JYZBLSH = '48654562475') AND JCZBJGDW = (SELECT JCZBJGDW FROM jyjgzbb WHERE JYZBLSH = '48654562475') AND JCZBJGDL <> (SELECT JCZBJGDL FROM jyjgzbb WHERE JYZBLSH = '48654562475') | css |
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Student_Course_Enro... | What are the number of the dates of the latest logon of the students with family name 'Jaskolski' or 'Langosh'?, and show in descending by the Y. | SELECT date_of_latest_logon, COUNT(date_of_latest_logon) FROM Students WHERE family_name = "Jaskolski" OR family_name = "Langosh" ORDER BY COUNT(date_of_latest_logon) DESC | nvbench |
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT a string plus a number. | SELECT 'Brent' + '100' | sede |
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... | tell me the short title of procedure for procedure icd9 code 9744. | SELECT procedures.short_title FROM procedures WHERE procedures.icd9_code = "9744" | mimicsql_data |
CREATE TABLE table_name_31 (
population VARCHAR,
area__km²_ VARCHAR
) | What is the Population of the nation that has an Area (km ) of 70,273? | SELECT population FROM table_name_31 WHERE area__km²_ = "70,273" | sql_create_context |
CREATE TABLE table_17355408_5 (
high_assists VARCHAR,
game VARCHAR
) | Name the high assists for 29 game | SELECT high_assists FROM table_17355408_5 WHERE game = 29 | sql_create_context |
CREATE TABLE table_name_50 (
developer_s_ VARCHAR,
platform_s_ VARCHAR
) | Who was the developer of Wii? | SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii" | sql_create_context |
CREATE TABLE table_name_26 (
press VARCHAR
) | Who is the 92.5 with the press of 282.5? | SELECT 925 FROM table_name_26 WHERE press = "282.5" | sql_create_context |
CREATE TABLE table_13604 (
"General election" real,
"Name" text,
"Share of votes" text,
"Seats" real,
"Share of seats" text
) | How much General election has a Share of votes of 17%? | SELECT SUM("General election") FROM table_13604 WHERE "Share of votes" = '17%' | 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,
... | 名为曹欣德的这位患者被门诊诊断为疾病Y51.041,查一下编号为909845检测指标的结果定量及其单位 | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jy... | css |
CREATE TABLE table_name_15 (
club VARCHAR,
location VARCHAR
) | Which club is located in Thomson, Victoria? | SELECT club FROM table_name_15 WHERE location = "thomson, victoria" | sql_create_context |
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working... | Bar chart of sum age from each nationality, and display by the x axis from high to low. | SELECT Nationality, SUM(Age) FROM journalist GROUP BY Nationality ORDER BY Nationality DESC | nvbench |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
... | what were the top three most frequent laboratory tests that followed within 2 months for patients who took non-cardiac angiography - angiography of arteries of extremities, bilateral in this year? | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'non-cardiac angiography - angiography of arteries of... | eicu |
CREATE TABLE 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
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE icustays (
row... | count the number of patients who were diagnosed with gangrene within 2 months after being diagnosed with ami anterolateral, init since 6 years ago. | 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 = 'gangrene') AND DAT... | mimic_iii |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score num... | Top 2500 SO Users from NC. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE Location LIKE '%NC%' OR LOWER(Location) LIKE '%north carolina%' AND NOT LOWER(Location) LIKE '%france%' AND NOT Location LIKE '%NCR%' ORDER BY Reputation DESC LIMIT 2500 | sede |
CREATE TABLE table_10096 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | When the Away team was essendon, what was the Venue they played at? | SELECT "Venue" FROM table_10096 WHERE "Away team" = 'essendon' | wikisql |
CREATE TABLE table_40033 (
"Country" text,
"Men's race" real,
"Women's race" real,
"Men's wheelchair" real,
"Women's Wheelchair" real,
"Total" real
) | What's the sum of Men's race when Women's race is less than 1, Women's Wheelchair is 1, Men's wheelchair is more than 3 and the Total is more than 3? | SELECT SUM("Men's race") FROM table_40033 WHERE "Women's race" < '1' AND "Women's Wheelchair" = '1' AND "Total" > '3' AND "Men's wheelchair" > '3' | wikisql |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(... | For all employees who have the letters D or S in their first name, give me the comparison about the amount of hire_date over the hire_date bin hire_date by weekday by a bar chart, show by the how many hire date in ascending. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) | nvbench |
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
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,
t... | For Core what classes do I need ? | SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id | advising |
CREATE TABLE table_41377 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | What was the 2nd leg score for the tie that had a 5-0 first leg score? | SELECT "2nd leg" FROM table_41377 WHERE "1st leg" = '5-0' | wikisql |
CREATE TABLE table_26673 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real,
"Left" real
) | What university team is referred to as the tigers? | SELECT "Institution" FROM table_26673 WHERE "Nickname" = 'Tigers' | wikisql |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_fli... | from LAS VEGAS to NEW YORK a nonstop TW and fare | 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 = 'LAS VEGAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CIT... | atis |
CREATE TABLE table_name_2 (
gold VARCHAR,
event VARCHAR,
silver VARCHAR
) | Who received gold when the event is time trial details and silver is simon richardson great britain (gbr)? | SELECT gold FROM table_name_2 WHERE event = "time trial details" AND silver = "simon richardson great britain (gbr)" | sql_create_context |
CREATE TABLE table_62249 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | What is Home Team, when Date is '22 Nov 1989', and when Away Team is 'Bath City'? | SELECT "Home team" FROM table_62249 WHERE "Date" = '22 nov 1989' AND "Away team" = 'bath city' | wikisql |
CREATE TABLE table_64780 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
) | What's the constituency number of the Seoni district and has none reserved? | SELECT "Constituency number" FROM table_64780 WHERE "Reserved for ( SC / ST /None)" = 'none' AND "District" = 'seoni' | wikisql |
CREATE TABLE table_17429402_7 (
occ_championships INTEGER,
last_outright_occ_championship VARCHAR
) | What is the fewest number of occ championships for the team that last won an outright occ championship in 2006? | SELECT MIN(occ_championships) FROM table_17429402_7 WHERE last_outright_occ_championship = "2006" | sql_create_context |
CREATE TABLE table_67602 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | What is the smallest lane for rank 6? | SELECT MIN("Lane") FROM table_67602 WHERE "Rank" = '6' | wikisql |
CREATE TABLE table_68566 (
"Station" text,
"Frequency" real,
"Network Affiliation" text,
"Format" text,
"City of License" text,
"Status" text
) | What is the status of the independent station KPFB? | SELECT "Status" FROM table_68566 WHERE "Network Affiliation" = 'independent' AND "Station" = 'kpfb' | wikisql |
CREATE TABLE table_412 (
"Jurisdiction" text,
"Voted Yes" real,
"Percent Yes" text,
"Voted No" real,
"Percent No" text
) | what is the minimum voted no where percent no is 56.6 | SELECT MIN("Voted No") FROM table_412 WHERE "Percent No" = '56.6' | wikisql |
CREATE TABLE table_37427 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | What event did Rashid Sidek participate in? | SELECT "Event" FROM table_37427 WHERE "Name" = 'rashid sidek' | wikisql |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | For those records from the products and each product's manufacturer, give me the comparison about the sum of revenue over the name , and group by attribute name by a bar chart, and sort by the x axis in ascending. | SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | nvbench |
CREATE TABLE table_name_82 (
position VARCHAR,
year VARCHAR
) | Which position was in 2009? | SELECT position FROM table_name_82 WHERE year = 2009 | sql_create_context |
CREATE TABLE table_57443 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | On what date was a two-way tie (8) the high rebound? | SELECT "Date" FROM table_57443 WHERE "High rebounds" = 'two-way tie (8)' | wikisql |
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases IN... | Bar chart x axis year y axis total number of avg(price), order in desc by the sum avg(price). | SELECT Year, SUM(AVG(Price)) FROM wine ORDER BY SUM(AVG(Price)) DESC | nvbench |
CREATE TABLE table_19229713_4 (
_number INTEGER,
us_viewers__million_ VARCHAR
) | Name the number for viewers being 1.87 | SELECT MAX(_number) FROM table_19229713_4 WHERE us_viewers__million_ = "1.87" | sql_create_context |
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_... | Show the number of document type for different document type description in a bar chart. | SELECT Document_Type_Description, COUNT(Document_Type_Description) FROM Ref_Document_Types GROUP BY Document_Type_Description | 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... | Number of tag-info edits (including deleted users). | SELECT PostId, COUNT(*) FROM (SELECT h.RevisionGUID, h.PostId, h.Id, h.UserId AS "user_link", h.UserDisplayName FROM PostHistory AS h JOIN Posts AS p ON h.PostId = p.Id WHERE (p.PostTypeId IN (4, 5)) AND (h.PostHistoryTypeId IN (2, 5))) AS data GROUP BY PostId ORDER BY COUNT(*) DESC | sede |
CREATE TABLE table_78508 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What was the average amount of laps for competitors with a grid that was more than 11 and a Time/Retired of +28.108? | SELECT AVG("Laps") FROM table_78508 WHERE "Time/Retired" = '+28.108' AND "Grid" > '11' | wikisql |
CREATE TABLE table_name_46 (
week VARCHAR,
attendance INTEGER
) | What week had an Attendance smaller than 21,097? | SELECT COUNT(week) FROM table_name_46 WHERE attendance < 21 OFFSET 097 | sql_create_context |
CREATE TABLE table_46328 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What shows for the location and attendance when the record is 41 36? | SELECT "Location Attendance" FROM table_46328 WHERE "Record" = '41–36' | wikisql |
CREATE TABLE table_name_18 (
pick INTEGER,
school VARCHAR
) | What is the highest pick from Washington? | SELECT MAX(pick) FROM table_name_18 WHERE school = "washington" | sql_create_context |
CREATE TABLE table_name_63 (
province VARCHAR,
airport VARCHAR
) | Which province is Luogang International Airport located in? | SELECT province FROM table_name_63 WHERE airport = "luogang international airport" | sql_create_context |
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
) | Return the dates of birth for entrepreneurs who have either the investor Simon Woodroffe or Peter Jones, and count them by a bar chart, rank from low to high by the y axis. | SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" ORDER BY COUNT(Date_of_Birth) | nvbench |
CREATE TABLE table_name_14 (
country VARCHAR,
score VARCHAR
) | What country has a score of 73-72-67=212? | SELECT country FROM table_name_14 WHERE score = 73 - 72 - 67 = 212 | sql_create_context |
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),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | For those employees who did not have any job in the past, show me about the change of salary over hire_date in a line chart, could you order X in ascending order? | SELECT HIRE_DATE, SALARY FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE | nvbench |
CREATE TABLE table_name_77 (
elevation__ft_ INTEGER,
isolation VARCHAR,
range VARCHAR,
peak_name VARCHAR
) | WHAT IS THE ELEVATION OF THE UNAKA MOUNTAINS, IN ROAN HIGH BLUFF PEAK, AND ISOLATION LARGER THAN 1.54? | SELECT AVG(elevation__ft_) FROM table_name_77 WHERE range = "unaka mountains" AND peak_name = "roan high bluff" AND isolation > 1.54 | sql_create_context |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
sy... | tell me the daily maximum sao2 of patient 022-199074 during this hospital encounter. | SELECT MAX(vitalperiodic.sao2) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-199074' AND patient.hospitaldischargetime IS NULL)) A... | eicu |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | 患者柏曼衍在2003年11月1日到2008年6月26日这五年里,在医疗机构8406678开了多少西药? | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '柏曼衍' AND t_kc22.STA_DATE BETWEEN '2003-11-01' AND '2008-06-26' AND t_kc21.MED_SER_ORG_NO = '8406678' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE table_16380 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text
) | when did 'unpleasantville' air? | SELECT "Original air date" FROM table_16380 WHERE "Title" = 'Unpleasantville' | wikisql |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_icd_diagnoses (
... | how much did patient 23070's weight differ from the value measured at 2105-12-12 04:00:00 compared to the value measured at 2105-12-08 03:00:00? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23070)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'a... | mimic_iii |
CREATE TABLE table_34188 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text,
"Year joined" real,
"Previous conference" text
) | Which IHSAA Class has a Mascot of wildcats? | SELECT "IHSAA Class" FROM table_34188 WHERE "Mascot" = 'wildcats' | wikisql |
CREATE TABLE table_19758 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Jockey" text,
"Winner/2nd" text
) | What is the group name when 3yo hcp restricted maiden was raced? | SELECT "Group" FROM table_19758 WHERE "Race" = '3yo Hcp Restricted Maiden' | wikisql |
CREATE TABLE table_16376436_1 (
college VARCHAR,
player VARCHAR
) | Which college did Leon Perry attend? | SELECT college FROM table_16376436_1 WHERE player = "Leon Perry" | sql_create_context |
CREATE TABLE table_59333 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | What is Score, when Opponent is 'Daniel Gimeno-Traver'? | SELECT "Score" FROM table_59333 WHERE "Opponent" = 'daniel gimeno-traver' | wikisql |
CREATE TABLE table_70498 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | What was the aggregate score that had Union Douala as Team 1? | SELECT "Agg." FROM table_70498 WHERE "Team 1" = 'union douala' | wikisql |
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
) | What are the ranks of captains that are both in the Cutter and Armed schooner classes? | SELECT rank FROM captain WHERE class = 'Cutter' INTERSECT SELECT rank FROM captain WHERE class = 'Armed schooner' | spider |
CREATE TABLE table_name_87 (
home_team VARCHAR,
away_team VARCHAR
) | What is the home teams score when north melbourne is the away team? | SELECT home_team AS score FROM table_name_87 WHERE away_team = "north melbourne" | sql_create_context |
CREATE TABLE table_69260 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What nation with Rank 1 won the fewest gold medals while winning more than 11 silver but fewer than 7 bronze medals? | SELECT MIN("Gold") FROM table_69260 WHERE "Silver" > '11' AND "Rank" = '1' AND "Bronze" < '7' | wikisql |
CREATE TABLE table_27293285_6 (
won VARCHAR,
tries_for VARCHAR
) | How many matches were won by the teams that scored exactly 61 tries for? | SELECT won FROM table_27293285_6 WHERE tries_for = "61" | sql_create_context |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id... | count the number of patients who have been on 3% normal saline intake. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = '3% normal saline' A... | mimic_iii |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE month (
... | i would like a schedule of flights from DENVER to SAN FRANCISCO on tuesday | SELECT DISTINCT FLIGHT_0.arrival_time, FLIGHT_0.departure_time 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 AS FLIGHT_0, flight AS FLIGHT_1, flight_leg WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ... | atis |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
Last... | User List: DownVotes by percentage. | SELECT Id AS "user_link", UpVotes, DownVotes, ROUND(CAST(DownVotes AS FLOAT) / (UpVotes + DownVotes) * 100, 2) AS DownVotesPCT FROM Users WHERE DownVotes > '##MinDownVotes##' ORDER BY DownVotesPCT DESC LIMIT 300 | sede |
CREATE TABLE table_204_855 (
id number,
"year" number,
"date" text,
"winner" text,
"result" text,
"loser" text,
"attendance" number,
"location" text
) | what is the number of games that the detriot lions lost in the 1980s ? | SELECT COUNT(*) FROM table_204_855 WHERE "loser" = 'detroit lions' | squall |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_i... | was there any record of the microbiology test for the mrsa screen of patient 14990 until 10/2104? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14990) AND microbiologyevents.spec_type_desc = 'mrsa screen' AND STRFTIME('%y-%m', microbiologyevents.charttime) <= '2104-10' | mimic_iii |
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,
... | 吴嘉惠这个病患腰部的各项指标的检验咋样 | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZ... | css |
CREATE TABLE table_name_40 (
club VARCHAR,
goals VARCHAR,
season VARCHAR
) | What club had over 0 goals in 2011? | SELECT club FROM table_name_40 WHERE goals > 0 AND season = "2011" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.