instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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,... | 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 '2015-07-20' AND '2019-03-28' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE table_13431 (
"Non-dictatorship" text,
"Pareto efficiency" text,
"Majority" text,
"Monotone" text,
"Consistency & Participation" text,
"Condorcet" text,
"Condorcet loser" text,
"Clone independence" text,
"Reversal symmetry" text
)
-- Using valid SQLite, answer the foll... | SELECT "Reversal symmetry" FROM table_13431 WHERE "Non-dictatorship" = 'yes' AND "Consistency & Participation" = 'no' AND "Clone independence" = 'yes' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,
... | SELECT JYKSBM, JYKSMC FROM jybgb WHERE BGDH = '00456578648' | css |
CREATE TABLE table_60610 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Area km 2 has an Official Name of southampton, and a Population larger than 1,... | SELECT MIN("Area km 2") FROM table_60610 WHERE "Official Name" = 'southampton' AND "Population" > '1,601' | wikisql |
CREATE TABLE person_info_hz_info (
RYBH text,
KH number,
KLX number,
YLJGDM number
)
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
J... | SELECT jybgb.BGDH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB ... | css |
CREATE TABLE table_54516 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps were completed in grid 18?
| SELECT SUM("Laps") FROM table_54516 WHERE "Grid" = '18' | wikisql |
CREATE TABLE table_48239 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Region, when the Catalog is 25AP 301?
| SELECT "Region" FROM table_48239 WHERE "Catalog" = '25ap 301' | wikisql |
CREATE TABLE table_34395 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the winners name at the western open?
| SELECT "Winner" FROM table_34395 WHERE "Tournament" = 'western open' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,... | SELECT JYXMDM, JYXMMC FROM jybgb WHERE BGDH = '71401875420' | css |
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... | 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 '2000-08-26' AND '2011-03-02' AND t_kc21.MED_SER_ORG_NO = '2367774' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
... | SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName | nvbench |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
va... | SELECT SUM(outputevents.value) 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 = 94293)) AND STRFTIME('%y-%m-%d', outputevents.charttime) = '2104-01-05' | mimic_iii |
CREATE TABLE table_22734 (
"State and District of Columbia" text,
"Obese adults" text,
"Overweight (incl. obese) adults" text,
"Obese children and adolescents" text,
"Obesity rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every percent... | SELECT "Overweight (incl. obese) adults" FROM table_22734 WHERE "Obese children and adolescents" = '12.4%' | wikisql |
CREATE TABLE table_11334 (
"Municipalities" text,
"Extension km\u00b2" text,
"Population (hab)" text,
"Density (hab/ km\u00b2 )" text,
"Altitude m" text,
"Distance Medell\u00edn Downtown ( km )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... | SELECT "Altitude m" FROM table_11334 WHERE "Distance Medell\u00edn Downtown ( km )" = '42' | wikisql |
CREATE TABLE table_name_63 (
position VARCHAR,
games_played VARCHAR,
w_l_d VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position had 5 games played and a record of 1-2-2?
| SELECT position FROM table_name_63 WHERE games_played = 5 AND w_l_d = "1-2-2" | sql_create_context |
CREATE TABLE table_name_93 (
player VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has 289 as the total?
| SELECT player FROM table_name_93 WHERE total = 289 | sql_create_context |
CREATE TABLE wdmzjzjlb (
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... | SELECT * FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
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... | SELECT COUNT(DISTINCT PERSON_ID) FROM t_kc21 WHERE IN_DIAG_DIS_CD = 'B81.078' | css |
CREATE TABLE table_26614365_1 (
old_galician__13th_15th_c_ VARCHAR,
portuguese VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Old Galician for cantaste in Portuguese?
| SELECT old_galician__13th_15th_c_ FROM table_26614365_1 WHERE portuguese = "cantaste" | 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 ... | SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '韦坚秉' AND NOT mzjzjlb.JZLSH IN (SELECT JZLSH FROM jybgb WHERE BGRQ >= '2001-02-23') | css |
CREATE TABLE table_name_91 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournament has a 1R value in 2007 and 2009?
| SELECT tournament FROM table_name_91 WHERE 2007 = "1r" AND 2009 = "1r" | sql_create_context |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title te... | 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 = 'tobacco use disord... | mimic_iii |
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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(EMPLOYEE_ID) | nvbench |
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
)
... | SELECT demographic.admittime, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Antonio Mccarthy" | mimicsql_data |
CREATE TABLE table_52423 (
"School" text,
"Location" text,
"Enrolment" real,
"Founded" real,
"Denomination" text,
"Day/Boarding" text,
"School Colors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What denomination is mt lawley?
| SELECT "Denomination" FROM table_52423 WHERE "Location" = 'mt lawley' | wikisql |
CREATE TABLE table_4015 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least founded
| SELECT MIN("Founded") FROM table_4015 | wikisql |
CREATE TABLE table_3199 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of districts for first elected being 1998
| SELECT COUNT("District") FROM table_3199 WHERE "First elected" = '1998' | 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... | 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 = "Status amput oth fingers" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
CREATE TABLE table_name_53 (
manager VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the manager of the St. Johnstone club?
| SELECT manager FROM table_name_53 WHERE club = "st. johnstone" | sql_create_context |
CREATE TABLE table_521 (
"Frame size" text,
"Width" real,
"Height" real,
"Mpix" text,
"Aspect Ratio" text,
"Maximum fps" real,
"Maximum fps HDRx" real,
"least compression at 24 fps" text,
"least compression at maximum fps" text
)
-- Using valid SQLite, answer the following question... | SELECT "Aspect Ratio" FROM table_521 WHERE "Width" > '4096.0' | 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... | SELECT (SELECT t_kc24.OVE_PAY 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 = '76156541293') / (SELECT t_kc24.MED_AMOUT FROM t_kc24 WHERE t_kc21_t_kc24.MED_CLINIC_ID = '76156541293') | css |
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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'heparin' AND STRFTIME('%y', prescriptions.startdate) = '2100') AS... | mimic_iii |
CREATE TABLE table_56021 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & jerk" real,
"Total (kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people have a Clean & jerk smaller than 142.5, a Bodyweight smaller than 55.58, and a... | SELECT COUNT("Snatch") FROM table_56021 WHERE "Clean & jerk" < '142.5' AND "Bodyweight" < '55.58' AND "Total (kg)" > '210' | wikisql |
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
dire... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MIAMI' AND date_day.day_number = 24 AND date_day.month_number = 5 AND dat... | atis |
CREATE TABLE table_59895 (
"Israeli deaths" real,
"Other deaths" text,
"Total deaths" text,
"Israeli and/or foreigner wounded" text,
"Total casualties" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Israelis and or foreigners were wounded i... | SELECT "Israeli and/or foreigner wounded" FROM table_59895 WHERE "Israeli deaths" > '1' | wikisql |
CREATE TABLE table_name_80 (
events INTEGER,
top_10 VARCHAR,
top_5 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?
| SELECT SUM(events) FROM table_name_80 WHERE top_10 = 7 AND top_5 > 4 | sql_create_context |
CREATE TABLE Patient (
SSN INTEGER,
Name VARCHAR(30),
Address VARCHAR(30),
Phone VARCHAR(30),
InsuranceID INTEGER,
PCP INTEGER
)
CREATE TABLE Affiliated_With (
Physician INTEGER,
Department INTEGER,
PrimaryAffiliation BOOLEAN
)
CREATE TABLE Appointment (
AppointmentID INTEGER,
... | SELECT T1.Name, COUNT(T1.Name) FROM Physician AS T1 JOIN Trained_In AS T2 ON T1.EmployeeID = T2.Physician JOIN Procedures AS T3 ON T3.Code = T2.Treatment WHERE T3.Cost > 5000 GROUP BY T1.Name ORDER BY COUNT(T1.Name) DESC | nvbench |
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 (
... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admityear >= "2155" | mimicsql_data |
CREATE TABLE copyright (
id int,
msid int,
cid int
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE writer (
wid int,
gender text,
name text,
nationality text,
birth_city text,
birth_yea... | SELECT company.name FROM company, copyright, tv_series WHERE copyright.cid = company.id AND tv_series.sid = copyright.msid AND tv_series.title = 'Scandal' | imdb |
CREATE TABLE table_name_70 (
finished INTEGER,
post INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Finished, when Post is less than 2?
| SELECT MIN(finished) FROM table_name_70 WHERE post < 2 | sql_create_context |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT RZBQDM, RZBQMC, RYCWH FROM zyjzjlb WHERE JZLSH = '55601265065' | css |
CREATE TABLE table_79452 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronze medals were won when the total is more than 1, and gold is more than 0?
| SELECT AVG("Bronze") FROM table_79452 WHERE "Total" > '1' AND "Gold" > '0' | wikisql |
CREATE TABLE table_19411 (
"1890 No game" text,
"1891 No game" text,
"1892 No game" text,
"1893 No game" text,
"1894 WSU 10\u20130 Moscow" text,
"1895 WSU* 10\u20134 Pullman" text,
"1896 No game" text,
"1897 No game" text,
"1898 No game" text,
"1899 WSU* 11\u20130 Pullman" text
)... | SELECT "1895 WSU* 10\u20134 Pullman" FROM table_19411 WHERE "1897 No game" = '1907 UI* 5–4 Moscow' | wikisql |
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 (
... | 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 = "Fall NOS" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
... | SELECT UserId AS "user_link", COUNT(*) AS "Posts edited with script" FROM PostHistory WHERE Comment = 'Fixing a site bug of disappearing double backslashes: https://tex.meta.stackexchange.com/questions/7168/double-backslashes-disappear-from-code' GROUP BY UserId ORDER BY COUNT(*) DESC | sede |
CREATE TABLE table_name_72 (
grid INTEGER,
time_retired VARCHAR,
manufacturer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE GRID WITH AN ACCIDENT AND HONDA MANUFACTURER?
| SELECT MAX(grid) FROM table_name_72 WHERE time_retired = "accident" AND manufacturer = "honda" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-38992' AND patient.hospitaldischargetime IS NULL)) ORDER BY d... | eicu |
CREATE TABLE table_47293 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winning team before 1956 on October 21?
| SELECT "Winner" FROM table_47293 WHERE "Year" < '1956' AND "Date" = 'october 21' | wikisql |
CREATE TABLE table_2071644_1 (
moment_of_inertia_in_torsion__j___cm_4__ VARCHAR,
web_thickness__mm_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?
| SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE web_thickness__mm_ = "4.7" | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.dob_year < "2170" | mimicsql_data |
CREATE TABLE table_43207 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Chris Riley's Money?
| SELECT "Money ( $ )" FROM table_43207 WHERE "Player" = 'chris riley' | wikisql |
CREATE TABLE table_name_47 (
city VARCHAR,
building VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city is the bucharest tower center (btc) located in?
| SELECT city FROM table_name_47 WHERE building = "bucharest tower center (btc)" | sql_create_context |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
countr... | SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offe... | advising |
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 gsi (
course_offering_id int,
student_id int
)
CREATE TABLE semester (
... | SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'WOMENSTD' AND course.number = 498 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | advising |
CREATE TABLE table_49306 (
"Season" text,
"Race" real,
"Podium" real,
"Pole" real,
"FLap" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, what is the FLap... | SELECT "FLap" FROM table_49306 WHERE "Pole" > '0' AND "Podium" < '44' AND "Race" < '16' | wikisql |
CREATE TABLE table_204_630 (
id number,
"no" number,
"date" text,
"race" text,
"track" text,
"winner" text,
"reports" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ricky stenhouse , jr. and justin allgaier both won at which track this seaso... | SELECT "track" FROM table_204_630 WHERE "winner" = 'ricky stenhouse, jr' INTERSECT SELECT "track" FROM table_204_630 WHERE "winner" = 'justin allgaier' | squall |
CREATE TABLE table_10057 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE AWAY TEAM WITH A HOME TEAM OF CHELSEA?
| SELECT "Away team" FROM table_10057 WHERE "Home team" = 'chelsea' | wikisql |
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 time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT zyjzjlb.JZLSH 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 pers... | css |
CREATE TABLE table_34709 (
"Name" text,
"Pld." real,
"Goals" real,
"Assists" real,
"Points" real,
"Pims" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest number of assists with 70 Pims and less than 19 goals?
| SELECT MIN("Assists") FROM table_34709 WHERE "Pims" = '70' AND "Goals" < '19' | wikisql |
CREATE TABLE table_79214 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which actor played Harold Bishop for 17 years?
| SELECT "Actor" FROM table_79214 WHERE "Duration" = '17 years' AND "Character" = 'harold bishop' | wikisql |
CREATE TABLE table_15187735_21 (
segment_c VARCHAR,
segment_d VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the titles of segment c when segment d is motorcycle brake locks?
| SELECT segment_c FROM table_15187735_21 WHERE segment_d = "Motorcycle Brake Locks" | sql_create_context |
CREATE TABLE table_47728 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has a Score of 0:2?
| SELECT MAX("Attendance") FROM table_47728 WHERE "Score" = '0:2' | wikisql |
CREATE TABLE table_name_2 (
bronze VARCHAR,
rank INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the bronze value associated with ranks over 5?
| SELECT bronze FROM table_name_2 WHERE rank > 5 | sql_create_context |
CREATE TABLE table_name_63 (
club VARCHAR,
points_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the club had 431 points against them?
| SELECT club FROM table_name_63 WHERE points_against = "431" | sql_create_context |
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 zzmzjzjlb.JZLSH FROM hz_info JOIN zzmzjzjlb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE hz_info.RYBH = '41068843' AND hz_info.YLJGDM = '5511402' AND NOT zzmzjzjlb.JZKSMC LIKE '%肠镜%' UNION SELECT fzzmzjzjlb.JZLSH FROM hz_info JOIN fzzmzjzjlb ON hz_info.... | css |
CREATE TABLE table_57814 (
"Year" real,
"Theme" text,
"Artist" text,
"Composition" text,
"Mintage" real,
"Issue Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Artist has an Issue Price of $1,541.95?
| SELECT "Artist" FROM table_57814 WHERE "Issue Price" = '$1,541.95' | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "85" AND prescriptions.formulary_drug_cd = "MSCO15" | mimicsql_data |
CREATE TABLE table_name_65 (
total VARCHAR,
clubs VARCHAR,
place VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What total has 10 as the clubs, with a place greater than 1?
| SELECT total FROM table_name_65 WHERE clubs = 10 AND place > 1 | sql_create_context |
CREATE TABLE table_203_57 (
id number,
"year" number,
"round" text,
"against" text,
"score" text,
"scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many goals did brazil score in the 1950 world cup ?
| SELECT SUM("score") FROM table_203_57 WHERE "year" = 1950 | squall |
CREATE TABLE table_name_97 (
crowd INTEGER,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest crowd at the venue MCG?
| SELECT MAX(crowd) FROM table_name_97 WHERE venue = "mcg" | sql_create_context |
CREATE TABLE table_name_71 (
rank INTEGER,
player VARCHAR,
wickets VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total rank for player Delyone Borden with more than 15 wickets?
| SELECT SUM(rank) FROM table_name_71 WHERE player = "delyone borden" AND wickets > 15 | sql_create_context |
CREATE TABLE table_48993 (
"Nat." text,
"Name" text,
"Status" text,
"Contract length" text,
"Expiry date" real,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the contract length when rejected is the status?
| SELECT "Contract length" FROM table_48993 WHERE "Status" = 'rejected' | wikisql |
CREATE TABLE table_4350 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did a Competition of friendly, and a Score of 2 1, and a Venue of philadelphia , pennsylvania occur?
| SELECT "Date" FROM table_4350 WHERE "Competition" = 'friendly' AND "Score" = '2–1' AND "Venue" = 'philadelphia , pennsylvania' | wikisql |
CREATE TABLE table_18862 (
"Parish" text,
"Bush#" real,
"Bush%" text,
"Kerry#" real,
"Kerry%" text,
"Others#" real,
"Others%" text,
"Total#" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many bush% with total# being 191269
| SELECT COUNT("Bush%") FROM table_18862 WHERE "Total#" = '191269' | wikisql |
CREATE TABLE table_72134 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ha... | SELECT "High assists" FROM table_72134 WHERE "Team" = 'San Antonio' | wikisql |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM tex... | SELECT COUNT(*) FROM mzjzjlb WHERE mzjzjlb.JZKSBM = '96274' AND mzjzjlb.JZKSRQ BETWEEN '2005-02-09' AND '2015-05-08' | css |
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... | SELECT demographic.gender, demographic.diagnosis FROM demographic WHERE demographic.name = "Michael Witt" | mimicsql_data |
CREATE TABLE laptimes (
raceid number,
driverid number,
lap number,
position number,
time text,
milliseconds number
)
CREATE TABLE constructors (
constructorid number,
constructorref text,
name text,
nationality text,
url text
)
CREATE TABLE drivers (
driverid number,
... | SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 | spider |
CREATE TABLE diagnoses_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 outputevents (
row_id number,
subject_id number,
... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE DATETIME(inputevents_cv.charttime) >= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 4) | mimic_iii |
CREATE TABLE table_name_84 (
award_description_s_ VARCHAR,
year VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which award description has a year later than 1994 with a date of December 6?
| SELECT award_description_s_ FROM table_name_84 WHERE year > 1994 AND date = "december 6" | 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 ... | SELECT zyjybgb.SHSJ 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 = '17320230' AND zyjybgb.BGRQ BETWEEN '2013-09-23' AND '2019-11... | css |
CREATE TABLE table_name_51 (
silver VARCHAR,
rank VARCHAR,
total VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Silver, when Total is greater than 4, when Bronze is 2, and when Rank is greater than 1?
| SELECT silver FROM table_name_51 WHERE total > 4 AND bronze = "2" AND rank > 1 | sql_create_context |
CREATE TABLE table_21304131_2 (
original_air_date VARCHAR,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did series number 65 originally air?
| SELECT original_air_date FROM table_21304131_2 WHERE no_in_series = 65 | sql_create_context |
CREATE TABLE table_40934 (
"Draw" real,
"Artist" text,
"Song" text,
"Producer" text,
"Votes" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many average votes did producer carlos coelho have in a higher place than 6 and with a ... | SELECT AVG("Votes") FROM table_40934 WHERE "Place" < '6' AND "Producer" = 'carlos coelho' AND "Draw" > '5' | wikisql |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttim... | SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76275) AND NOT transfers.wardid IS NULL AND DATETIME(transfers.intime) >= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY transfers.intime DESC LIMIT 1 | mimic_iii |
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_nam... | SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code ORDER BY facility_code DESC | nvbench |
CREATE TABLE table_dev_61 (
"id" int,
"pregnancy_or_lactation" bool,
"allergy_to_gadolinium" bool,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"cardiogenic_shock" bool,
"hypertension" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT * FROM table_dev_61 WHERE allergy_to_gadolinium = 1 | criteria2sql |
CREATE TABLE table_203_839 (
id number,
"station" text,
"type" text,
"latitude" text,
"longitude" text,
"el. (m)" number,
"opened" number,
"closed" number,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the first opened... | SELECT "station" FROM table_203_839 ORDER BY "opened" LIMIT 1 | squall |
CREATE TABLE table_name_6 (
opponent VARCHAR,
score VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent has 3-2 as the score, and anderson (2-6) as a loss?
| SELECT opponent FROM table_name_6 WHERE score = "3-2" AND loss = "anderson (2-6)" | sql_create_context |
CREATE TABLE table_name_38 (
name VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is from the College of Cincinnati?
| SELECT name FROM table_name_38 WHERE college = "cincinnati" | sql_create_context |
CREATE TABLE table_dev_42 (
"id" int,
"gender" string,
"depression" bool,
"familial_hypercholesterolemia" bool,
"microalbuminuria" int,
"renal_disease" bool,
"diabetic" string,
"estimated_glomerular_filtration_rate_egfr" int,
"serum_creatinine" float,
"fbg" int,
"body_mass_in... | SELECT * FROM table_dev_42 WHERE fbg > 180 AND a1c > 8 | criteria2sql |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY ACC_Road DESC | nvbench |
CREATE TABLE table_name_66 (
event VARCHAR,
round VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event was in hong kong and went less than 2 rounds?
| SELECT event FROM table_name_66 WHERE round < 2 AND location = "hong kong" | sql_create_context |
CREATE TABLE table_1266602_1 (
driver_s_ VARCHAR,
primary_sponsor_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the driver for the team whose primary sponsor is Quicken Loans / Haas Automation?
| SELECT driver_s_ FROM table_1266602_1 WHERE primary_sponsor_s_ = "Quicken Loans / Haas Automation" | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT diagnoses.icd9_code FROM diagnoses WHERE diagnoses.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_61245 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the girl on week 5 that came after week 3's Mikaela James?
| SELECT "Week 5" FROM table_61245 WHERE "Week 3" = 'mikaela james' | wikisql |
CREATE TABLE table_10236830_6 (
actors_name VARCHAR,
film_name VARCHAR,
nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?
| SELECT actors_name FROM table_10236830_6 WHERE film_name = "Chopin: Desire for Love" AND nomination = "Best Actress in a Leading Role" | sql_create_context |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) | nvbench |
CREATE TABLE table_76315 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"Career SR" text,
"Career Win-Loss" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "1995" FROM table_76315 WHERE "Tournament" = 'miami' | 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... | SELECT USE_FRE, EACH_DOSAGE FROM t_kc22 WHERE MED_CLINIC_ID = '58910754404' AND SOC_SRT_DIRE_CD = '4106-d' | css |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.