context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_71891 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | Who was the opponent at GCM D.O.G. 4? | SELECT "Opponent" FROM table_71891 WHERE "Event" = 'gcm – d.o.g. 4' | wikisql |
CREATE TABLE table_70091 (
"Project" text,
"Year" text,
"Location" text,
"Capacity" real,
"Suites" text,
"Architect" text,
"Cost" text
) | Which location has a capacity larger than 52,000? | SELECT "Location" FROM table_70091 WHERE "Capacity" > '52,000' | 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,
... | 把医院医院4876950全部医疗就诊的记录里患者的平均岁数按科室名字和入院诊断编码的差异列出来 | SELECT gwyjzb.MED_ORG_DEPT_NM, gwyjzb.IN_DIAG_DIS_CD, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '4876950' GROUP BY gwyjzb.MED_ORG_DEPT_NM, gwyjzb.IN_DIAG_DIS_CD UNION SELECT fgwyjzb.MED_ORG_DEPT_NM, fgwyjzb.IN_DIAG_DIS_CD, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '48769... | css |
CREATE TABLE table_61415 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) | What is sheffield united's away team? | SELECT "Away team" FROM table_61415 WHERE "Home team" = 'sheffield united' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAno... | Top 150 users from Bulgaria. | SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Bulgaria%' OR Location LIKE '%Sofia%' ORDER BY Reputation DESC LIMIT 150 | sede |
CREATE TABLE table_name_25 (
losses INTEGER,
club VARCHAR,
draws VARCHAR,
goals_against VARCHAR,
goal_difference VARCHAR
) | What losses did racing de santander, that scored less than 68 goals, had a goal difference of less than 23 and 10 draws? | SELECT MAX(losses) FROM table_name_25 WHERE goals_against < 68 AND goal_difference < 23 AND draws = 10 AND club = "racing de santander" | sql_create_context |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
... | when was last time that patient 008-30575 had the minimum sao2 until 5 days ago? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '008-30575')) AND NOT vitalperiodic.sao2 IS NULL AND... | eicu |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... | what is the last drug which was prescribed to patient 016-29746 via ivs route since 96 months ago? | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-29746')) AND medication.routeadmin = 'ivs' AND DATETIME(medicat... | eicu |
CREATE TABLE table_38299 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall WC points (Rank)" text
) | What name has a 1st (m) greater than 124.5, and a 2nd (m) greater than 136? | SELECT "Name" FROM table_38299 WHERE "1st (m)" > '124.5' AND "2nd (m)" > '136' | wikisql |
CREATE TABLE table_name_28 (
year INTEGER,
points VARCHAR
) | Which is the highest year that has 3 points? | SELECT MAX(year) FROM table_name_28 WHERE points = 3 | sql_create_context |
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 ... | 从2003年7月21日到2012年9月2日这段时间内,病人蒋智敏所有检验结果指标记录中的检测方法列一下 | SELECT jyjgzbb.JCFF 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... | css |
CREATE TABLE Students_in_Detention (
student_id INTEGER,
detention_id INTEGER,
incident_id INTEGER
)
CREATE TABLE Addresses (
address_id INTEGER,
line_1 VARCHAR(120),
line_2 VARCHAR(120),
line_3 VARCHAR(120),
city VARCHAR(80),
zip_postcode VARCHAR(20),
state_province_county VARC... | Return a scatter chart about the correlation between student_id and monthly_rental , and group by attribute other_details. | SELECT student_id, monthly_rental FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC | nvbench |
CREATE TABLE table_204_364 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
) | what venue was before beijing , china ? | SELECT "venue" FROM table_204_364 WHERE id = (SELECT id FROM table_204_364 WHERE "venue" = 'beijing, china') - 1 | squall |
CREATE TABLE table_60830 (
"Aircraft" text,
"Introduced" real,
"Retired" text,
"Seating" text,
"Notes" text
) | When was the aircraft introduced that could seat 115 people? | SELECT AVG("Introduced") FROM table_60830 WHERE "Seating" = '115' | wikisql |
CREATE TABLE table_33512 (
"Date" text,
"Result" text,
"Score" text,
"Stadium" text,
"City" text,
"Crowd" real
) | What is the name of the stadium in Brisbane? | SELECT "Stadium" FROM table_33512 WHERE "City" = 'brisbane' | wikisql |
CREATE TABLE table_3569 (
"District" real,
"Incumbent" text,
"Party" text,
"Elected" text,
"Status" text,
"2010 Candidates" text
) | What was the status of the election featuring incumbent margaret kaiser? | SELECT "Status" FROM table_3569 WHERE "Incumbent" = 'Margaret Kaiser' | wikisql |
CREATE TABLE table_44589 (
"Season" real,
"Series" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Position" text
) | What are the Poles for Season 2006 | SELECT "Poles" FROM table_44589 WHERE "Season" = '2006' | wikisql |
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE status (
station_i... | Draw a bar chart for what is the name of every city that has at least 15 stations and how many stations does it have?, display Y from low to high order. | SELECT city, COUNT(*) FROM station GROUP BY city ORDER BY COUNT(*) | nvbench |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate ti... | when was patient 4401's arterial bp mean first measured on the current icu visit? | SELECT chartevents.charttime 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 = 4401) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHE... | mimic_iii |
CREATE TABLE table_name_92 (
gold INTEGER,
total VARCHAR,
bronze VARCHAR
) | For countries with total number of medals less than 5 and more than 2 bronze medals, what's the lowest number of gold medals? | SELECT MIN(gold) FROM table_name_92 WHERE total < 5 AND bronze > 2 | sql_create_context |
CREATE TABLE gwyjzb (
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,
... | 在医院9383115中,根据入院诊断疾病编码列出不同疾病的平均患者年龄是多少岁 | SELECT gwyjzb.IN_DIAG_DIS_CD, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '9383115' GROUP BY gwyjzb.IN_DIAG_DIS_CD UNION SELECT fgwyjzb.IN_DIAG_DIS_CD, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '9383115' GROUP BY fgwyjzb.IN_DIAG_DIS_CD | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | how many patients were admitted in the emergency room for the procedure titled percutan aspiration gb? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.short_title = "Percutan aspiration gb" | mimicsql_data |
CREATE TABLE table_29444 (
"Episode" text,
"Date" text,
"Official ITV rating (millions)" text,
"Weekly rank" real,
"Share (%)" text,
"Official ITV HD rating (millions)" text,
"Total ITV viewers (millions)" text
) | How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million? | SELECT "Total ITV viewers (millions)" FROM table_29444 WHERE "Official ITV HD rating (millions)" = '1.12' | wikisql |
CREATE TABLE table_50037 (
"Year" real,
"Round" text,
"Player" text,
"Nationality" text,
"Position" text,
"College/High School/Club" text
) | What round is sf/sg player sly williams from a year after 1965 from? | SELECT "Round" FROM table_50037 WHERE "Position" = 'sf/sg' AND "Year" > '1965' AND "Player" = 'sly williams' | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(4... | For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of job_id and department_id . | SELECT JOB_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_62157 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | What Player's Score is 69-68-66-70=273? | SELECT "Player" FROM table_62157 WHERE "Score" = '69-68-66-70=273' | wikisql |
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... | 患者70820807以前的治疗方案查一下 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '70820807' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费' | css |
CREATE TABLE table_name_59 (
constructor VARCHAR,
grid VARCHAR,
time_retired VARCHAR
) | who is the constructor when the grid is more than 10 and the time/retired is +1 lap? | SELECT constructor FROM table_name_59 WHERE grid > 10 AND time_retired = "+1 lap" | sql_create_context |
CREATE TABLE table_67731 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | What is the highest top-25 with more than 9 top-10 but less than 29 events? | SELECT MAX("Top-25") FROM table_67731 WHERE "Top-10" > '9' AND "Events" < '29' | wikisql |
CREATE TABLE table_204_644 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game site" text,
"bye" text
) | who was the opponent in the last game played ? | SELECT "opponent" FROM table_204_644 ORDER BY "week" DESC LIMIT 1 | squall |
CREATE TABLE table_73491 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | Name the championship for clay and corrado barazzutti | SELECT "Championship" FROM table_73491 WHERE "Surface" = 'Clay' AND "Opponent in the final" = 'Corrado Barazzutti' | 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... | 在患者03414513517就诊期间产生的医疗费有多少是个人自理的? | SELECT t_kc24.PER_SOL FROM t_kc24 JOIN t_kc21_t_kc24 JOIN t_kc21 ON t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID AND t_kc21_t_kc24.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '03414513517' | css |
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
) | How many tracks do we have? | SELECT COUNT(*) FROM track | spider |
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 diagnosis short title is mental disor nec oth dis and lab test category is blood gas. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Mental disor NEC oth dis" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_name_77 (
home_team VARCHAR,
away_team VARCHAR
) | What is the home team score when the away team is Essendon? | SELECT home_team AS score FROM table_name_77 WHERE away_team = "essendon" | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
d... | what time did patient 92846 get his last urine out foley output on this month/20? | SELECT outputevents.charttime FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 92846)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urin... | mimic_iii |
CREATE TABLE table_2850912_3 (
nationality VARCHAR,
player VARCHAR
) | What country is Trent Yawney from? | SELECT nationality FROM table_2850912_3 WHERE player = "Trent Yawney" | sql_create_context |
CREATE TABLE table_27370 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | Name the college for houston oilers | SELECT "College" FROM table_27370 WHERE "NFL Team" = 'Houston Oilers' | wikisql |
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 intakeoutput (
in... | what is the total cost of a maximum hospital with a drug called 37.5 g tube : dextrose (diabetic use) 40 % po gel the previous year? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = '37.5 g tube : dextrose (diabetic use) 40 % po ... | eicu |
CREATE TABLE table_17881033_1 (
division_north VARCHAR,
season VARCHAR
) | what is the division north in 2007 08 | SELECT division_north FROM table_17881033_1 WHERE season = "2007–08" | sql_create_context |
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
)
... | give me the number of patients whose age is less than 59 and drug name is ranitidine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "59" AND prescriptions.drug = "Ranitidine" | mimicsql_data |
CREATE TABLE table_2980 (
"Series" real,
"Start date" text,
"End date" text,
"Episodes" real,
"Average viewers (millions)" text
) | How many different end dates are there for the series seen by 4.2 million people? | SELECT COUNT("End date") FROM table_2980 WHERE "Average viewers (millions)" = '4.2' | wikisql |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CR... | list all flights from BOSTON to SAN FRANCISCO with the maximum number of stops | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.stops = (SELECT MAX(FLIGHTalias1.stops) FROM airport_service AS... | atis |
CREATE TABLE table_name_34 (
pick__number INTEGER,
player VARCHAR,
rd__number VARCHAR
) | What's the largest pick number for corrie d'alessio with a rd number over 6? | SELECT MAX(pick__number) FROM table_name_34 WHERE player = "corrie d'alessio" AND rd__number > 6 | sql_create_context |
CREATE TABLE table_80441 (
"D 48 +" text,
"D 47 +" text,
"D 46 +" text,
"D 45 O" text,
"D 44 O" text,
"D 43 \u221a" text,
"D 42 \u221a" text,
"D 41 \u221a" text
) | What is the value of D 47 + when the value of D 44 O is r 24? | SELECT "D 47 +" FROM table_80441 WHERE "D 44 O" = 'r 24' | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | what is the number of patients admitted before the year 2187 who have procedure icd9 code 3806? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2187" AND procedures.icd9_code = "3806" | mimicsql_data |
CREATE TABLE table_7212 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | What manner of departure was Dick Advocaat replaced by? | SELECT "Manner of departure" FROM table_7212 WHERE "Replaced by" = 'dick advocaat' | wikisql |
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
)
... | count the number of patients whose insurance is medicaid and primary disease is mesenteric ischemia? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "MESENTERIC ISCHEMIA" | mimicsql_data |
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age int
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year ... | Show all countries and the number of people from each country with a bar chart. | SELECT Country, COUNT(*) FROM people GROUP BY Country | nvbench |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerU... | Users from the Dominican Republic. | SELECT * FROM Users WHERE Location = 'Dominican Republic' ORDER BY Reputation DESC | sede |
CREATE TABLE table_204_961 (
id number,
"title" text,
"director" text,
"production" text,
"music" text,
"cast" text,
"release date" text
) | tell me the number of directors for arunthathi . | SELECT "director" FROM table_204_961 WHERE "title" = 'arunthathi' | squall |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
... | when did the last microbiology test take place for patient 26313 in 03/last year? | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26313) AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', microbiolo... | mimic_iii |
CREATE TABLE table_name_74 (
longitude VARCHAR,
year_named VARCHAR,
name VARCHAR
) | What is the longitude of Carmenta Farra in 1994? | SELECT longitude FROM table_name_74 WHERE year_named = 1994 AND name = "carmenta farra" | sql_create_context |
CREATE TABLE table_50372 (
"Start Date/Time" text,
"Duration" text,
"End Time" text,
"Spacecraft" text,
"Crew" text
) | The EVA that started 8 July 12:38 was from what spacecraft? | SELECT "Spacecraft" FROM table_50372 WHERE "Start Date/Time" = '8 july 12:38' | wikisql |
CREATE TABLE table_11827596_4 (
music_director VARCHAR,
co_singer VARCHAR,
film_name VARCHAR
) | What was the number of music directors where the suresh wadkar co singer of bhayanak? | SELECT COUNT(music_director) FROM table_11827596_4 WHERE co_singer = "Suresh Wadkar" AND film_name = "Bhayanak" | sql_create_context |
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 procedures (
... | give me the number of patients who have had open biopsy of soft tissue procedure and stayed in the hospital for more than 20 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "20" AND procedures.short_title = "Open biopsy soft tissue" | mimicsql_data |
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... | 从零零年一月二十四号到零四年四月十四号,患者85533304这个甲状腺摄取实验情况怎么样 | SELECT * 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 = jyjgzbb.BGDH WHERE hz_info.RYBH = '... | css |
CREATE TABLE table_56576 (
"Particle" text,
"Symbol" text,
"Makeup" text,
"Rest mass MeV / c 2" text,
"Isospin I" text,
"Spin ( Parity ) J P" text,
"Commonly decays to" text
) | Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3 2 +? | SELECT "Particle" FROM table_56576 WHERE "Makeup" = 'd s s' AND "Spin ( Parity ) J P" = '3⁄2 +' | wikisql |
CREATE TABLE table_14819 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | What rank had less than 200 laps with a finish of 26? | SELECT "Rank" FROM table_14819 WHERE "Laps" < '200' AND "Finish" = '26' | wikisql |
CREATE TABLE table_60650 (
"Mission" text,
"Location" text,
"Type" text,
"Head of Mission" text,
"Position" text,
"List" text
) | what is the mission when the location is rome? | SELECT "Mission" FROM table_60650 WHERE "Location" = 'rome' | wikisql |
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... | 在医疗机构2064104中的科室2722在02年8月18日到10年5月12日内处理了多少住院就诊的病人? | SELECT COUNT(*) FROM zyjzjlb WHERE YLJGDM = '2064104' AND JZKSDM = '2722' AND RYDJSJ BETWEEN '2002-08-18' AND '2010-05-12' | css |
CREATE TABLE table_44483 (
"Season" real,
"Player" text,
"Club" text,
"Nationality" text,
"Goals" real
) | What club did united states player ty harden play for? | SELECT "Club" FROM table_44483 WHERE "Nationality" = 'united states' AND "Player" = 'ty harden' | wikisql |
CREATE TABLE table_name_27 (
human_gene__protein_ VARCHAR,
mouse_ortholog VARCHAR
) | What is the human gene that has a mouse ortholog of LIG1? | SELECT human_gene__protein_ FROM table_name_27 WHERE mouse_ortholog = "lig1" | sql_create_context |
CREATE TABLE table_33345 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | In what week was the game on August 24, 1956 played in front of 40,175 fans? | SELECT MAX("Week") FROM table_33345 WHERE "Date" = 'august 24, 1956' AND "Attendance" > '40,175' | wikisql |
CREATE TABLE table_9674 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real,
"League position" text
) | What date was Notts County the opponent and the league position was 1st? | SELECT "Date" FROM table_9674 WHERE "Opponents" = 'notts county' AND "League position" = '1st' | wikisql |
CREATE TABLE table_19572 (
"Rank" real,
"Country" text,
"International tourist arrivals (2012)" text,
"International tourist arrivals (2011)" text,
"Change (2011 to 2012)" text,
"Change (2010 to 2011)" text
) | When the change (2011 to 2012) is +13.4% what is the country? | SELECT "Country" FROM table_19572 WHERE "Change (2011 to 2012)" = '+13.4%' | 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... | get the number of patients diagnosed with acute pancreatitis who have main type drug prescription. | 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 = "Acute pancreatitis" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABL... | Find the number of the names of catalog entries with level number 8, list by the x axis in desc. | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY catalog_entry_name DESC | nvbench |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TAB... | calculate the two year survival rate of those who were diagnosed with valve replacement < 7days - mitral. | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 2 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOI... | eicu |
CREATE TABLE repair (
repair_ID int,
name text,
Launch_Date text,
Notes text
)
CREATE TABLE machine (
Machine_ID int,
Making_Year int,
Class text,
Team text,
Machine_series text,
value_points real,
quality_rank int
)
CREATE TABLE technician (
technician_id real,
Nam... | Show me the proportion on what are the names of the technicians and how many machines are they assigned to repair? | SELECT Name, COUNT(*) FROM repair_assignment AS T1 JOIN technician AS T2 ON T1.technician_id = T2.technician_id GROUP BY T2.Name | nvbench |
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 ... | 名为奚芳蕤的患者过去有过什么异常情况么? | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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_MZJZ... | css |
CREATE TABLE companies (
id number,
name text,
headquarters text,
industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value_billion text
)
CREATE TABLE office_locations (
building_id number,
company_id number,
move_in_year number
)
CRE... | Which buildings have more than one company offices? Give me the building names. | SELECT T2.name FROM office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1 | spider |
CREATE TABLE table_3518 (
"Episode #" text,
"Season Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text
) | What is the number of air dates titled 'The Big Job'? | SELECT COUNT("Original air date") FROM table_3518 WHERE "Title" = 'The Big Job' | wikisql |
CREATE TABLE table_13713 (
"Year" real,
"MISS EARTH" text,
"Miss Air (1st Runner-up)" text,
"Miss Water (2nd Runner-up)" text,
"Miss Fire (3rd Runner-up)" text
) | What year was Caroline Medina Miss Fire (3rd Runner-up)? | SELECT AVG("Year") FROM table_13713 WHERE "Miss Fire (3rd Runner-up)" = 'caroline medina' | wikisql |
CREATE TABLE table_name_70 (
opposition VARCHAR,
social_democrats__a_ VARCHAR
) | What opposition do 31.1% of Social Democrats have? | SELECT opposition FROM table_name_70 WHERE social_democrats__a_ = "31.1%" | sql_create_context |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | 把医疗机构2360255的科室321在二零一一年十一月二十四日到二零一六年四月十九日内处理的住院就诊记录查看一下 | SELECT COUNT(*) FROM zyjzjlb WHERE YLJGDM = '2360255' AND JZKSDM = '321' AND RYDJSJ BETWEEN '2011-11-24' AND '2016-04-19' | css |
CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
) | Return a pie chart showing how many members have visited for each college location. | SELECT College_Location, COUNT(College_Location) FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID GROUP BY College_Location ORDER BY T2.Name | nvbench |
CREATE TABLE table_49583 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text,
"Source" text
) | What is the Nat with a mutual consent loan return and has a free transfer fee? | SELECT "Nat." FROM table_49583 WHERE "Transfer fee" = 'free' AND "Type" = 'mutual consent loan return' | wikisql |
CREATE TABLE table_name_8 (
losses INTEGER,
draws VARCHAR,
byes VARCHAR
) | What is the lowest draw that is greater than 0 and byes greater than 0? | SELECT MIN(losses) FROM table_name_8 WHERE draws > 0 AND byes > 0 | sql_create_context |
CREATE TABLE table_8969 (
"City" text,
"Chinese" text,
"Pinyin" text,
"Province" text,
"Urban Population (2010)" real,
"Administrative Population (2010)" real
) | What is the highest urban population for Guangxi province? | SELECT MAX("Urban Population (2010)") FROM table_8969 WHERE "Province" = 'guangxi' | wikisql |
CREATE TABLE table_8257 (
"Channel" real,
"Video" text,
"Aspect" text,
"PSIP Short Name" text,
"Programming" text
) | Which Channel has an Aspect of 4:3 and a Programming of me-tv? | SELECT "Channel" FROM table_8257 WHERE "Aspect" = '4:3' AND "Programming" = 'me-tv' | 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... | what is the number of patients whose age is less than 89 and drug code is meto10i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "89" AND prescriptions.formulary_drug_cd = "METO10I" | mimicsql_data |
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
CREATE TABLE files (
f_id numbe... | What are the names of all singers that are from the UK and released a song in English? | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" | spider |
CREATE TABLE table_71660 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | Who was the Away captain for the Test match of Australia in England where the Result was AUS by 264 runs? | SELECT "Away captain" FROM table_71660 WHERE "Result" = 'aus by 264 runs' | wikisql |
CREATE TABLE table_name_42 (
chassis VARCHAR,
engine VARCHAR
) | What was the Zakspeed 1500/4 1.5 l4 t chassis? | SELECT chassis FROM table_name_42 WHERE engine = "zakspeed 1500/4 1.5 l4 t" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
h... | what was the name of the organism that was found on the first blood, venipuncture microbiology test patient 031-16123 received since 09/2104? | SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-16123')) AND microlab.culturesite = 'blood, venipuncture' AND STRFTIM... | eicu |
CREATE TABLE table_18278508_6 (
scores_by_each_individual_judge VARCHAR,
co_contestant__yaar_vs_pyaar_ VARCHAR
) | How many different combinations of scores by individual judges were given to the contestant competing against Mukul Dev? | SELECT COUNT(scores_by_each_individual_judge) FROM table_18278508_6 WHERE co_contestant__yaar_vs_pyaar_ = "Mukul Dev" | sql_create_context |
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 (
... | provide the number of patients whose ethnicity is black/cape verdean and lab test name is potassium, urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND lab.label = "Potassium, Urine" | mimicsql_data |
CREATE TABLE table_name_21 (
score VARCHAR,
opponent_in_the_final VARCHAR
) | In the final against Ashley Harkleroad what was the score? | SELECT score FROM table_name_21 WHERE opponent_in_the_final = "ashley harkleroad" | sql_create_context |
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... | find the number of patients admitted in emergency whose drug route is ed. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.route = "ED" | mimicsql_data |
CREATE TABLE table_203_413 (
id number,
"rank" text,
"city" text,
"population" number,
"area\n(km2)" number,
"density\n(inhabitants/km2)" number,
"altitude\n(mslm)" number
) | what is the difference between the population of ovada and the population of serravalle scrivia ? | SELECT (SELECT "population" FROM table_203_413 WHERE "city" = 'ovada') - (SELECT "population" FROM table_203_413 WHERE "city" = 'serravalle scrivia') | squall |
CREATE TABLE table_51026 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Bonus Points" text,
"Points" text
) | What was drawn for 6 bonus points and is against 410 points? | SELECT "Drawn" FROM table_51026 WHERE "Bonus Points" = '6' AND "Points against" = '410' | wikisql |
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 allergy (
allergy... | what is the maximum total hospital cost to include a procedure called treatment of hypernatremia - desmopressin this year? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'treatment of hypernatremia - desmopressin'))... | eicu |
CREATE TABLE table_name_76 (
to_par INTEGER,
player VARCHAR
) | What is the lowest To Par, when Player is 'Johnny Miller'? | SELECT MIN(to_par) FROM table_name_76 WHERE player = "johnny miller" | sql_create_context |
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... | how many patients had the drug code syringes and lab test fluid other body fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "SYRINGENS" AND lab.fluid = "Other Body Fluid" | mimicsql_data |
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE com... | Is 633 offered next term ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 633 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | advising |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time... | Top Average Answer Scores - Mathematica Tags. | WITH scores AS (SELECT DISTINCT u.Id AS UserId, a.Title, a.Id AS "Post Link", a.Score FROM Posts AS q INNER JOIN PostTags AS xqt ON xqt.PostId = q.Id INNER JOIN Tags AS t ON t.Id = xqt.TagId AND t.TagName LIKE '%mathematica%' INNER JOIN Posts AS a ON a.ParentId = q.Id INNER JOIN PostTypes AS pt ON pt.Id = a.PostTypeId ... | sede |
CREATE TABLE table_5670 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | What was the score of the game that led to an 80-63 record? | SELECT "Score" FROM table_5670 WHERE "Record" = '80-63' | wikisql |
CREATE TABLE table_name_5 (
venue VARCHAR,
date VARCHAR
) | At which venue did the game on 28 october 2013 take place? | SELECT venue FROM table_name_5 WHERE date = "28 october 2013" | sql_create_context |
CREATE TABLE Document_Drafts (
document_id INTEGER,
draft_number INTEGER,
draft_details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
document_type_code CHAR(15),
document_type_description VARCHAR(255)
)
CREATE TABLE Documents (
document_id INTEGER,
document_status_code CHAR(15),
do... | How many employees does each role have? Plot a bar chart listing role id and number of employees, and could you order Y in descending order? | SELECT T1.role_code, COUNT(*) FROM Roles AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code ORDER BY COUNT(*) DESC | nvbench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.