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_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT * FROM gwyjzb WHERE gwyjzb.PERSON_NM = '方安安' AND gwyjzb.MED_SER_ORG_NO = '4464986' AND NOT gwyjzb.MED_ORG_DEPT_NM LIKE '%伤科%' UNION SELECT * FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '方安安' AND fgwyjzb.MED_SER_ORG_NO = '4464986' AND NOT fgwyjzb.MED_ORG_DEPT_NM LIKE '%伤科%' | css |
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
)
-- Using valid SQLite, answer the following questions for the... | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name DESC | nvbench |
CREATE TABLE table_789 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last year on this list someone was first elected?
| SELECT MAX("First elected") FROM table_789 | wikisql |
CREATE TABLE table_name_60 (
stadium VARCHAR,
visiting_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What stadium did the Denver Broncos visit?
| SELECT stadium FROM table_name_60 WHERE visiting_team = "denver broncos" | sql_create_context |
CREATE TABLE table_25284864_3 (
june_10_11 VARCHAR,
march_27_29 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What June 10-11 is is that corresponds to March 28, 1968?
| SELECT june_10_11 FROM table_25284864_3 WHERE march_27_29 = "March 28, 1968" | sql_create_context |
CREATE TABLE table_51162 (
"Actor" text,
"Character" text,
"Title/Rank" text,
"Series" text,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title rank of actor pauline moran?
| SELECT "Title/Rank" FROM table_51162 WHERE "Actor" = 'pauline moran' | wikisql |
CREATE TABLE txmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | SELECT COUNT(*) FROM ftxmzjzjlb WHERE ftxmzjzjlb.ZSEBZ = '3630935' AND ftxmzjzjlb.JZKSRQ BETWEEN '2015-01-06' AND '2018-02-10' | css |
CREATE TABLE table_name_48 (
score VARCHAR,
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a To par of 1, what is Player Henrik Stenson's Score?
| SELECT score FROM table_name_48 WHERE to_par = "–1" AND player = "henrik stenson" | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "WHITE" AND lab.label = "Protein/Creatinine Ratio" | mimicsql_data |
CREATE TABLE table_7167 (
"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.
-- What is... | SELECT "High points" FROM table_7167 WHERE "Location Attendance" = 'staples center 18,964' | 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
)
-- Using valid SQLite, answer the following questions for the... | SELECT T1.Price, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name | nvbench |
CREATE TABLE table_204_183 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total gold medals were awarded ?
| SELECT SUM("gold") FROM table_204_183 | squall |
CREATE TABLE table_22142 (
"Year [e ] (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Main Language(s)" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was otar iosseliani's fil... | SELECT "Year [e ] (Ceremony)" FROM table_22142 WHERE "Director" = 'Otar Iosseliani' | wikisql |
CREATE TABLE table_name_21 (
total VARCHAR,
set_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total when the score for set 2 is 20 25?
| SELECT total FROM table_name_21 WHERE set_2 = "20–25" | sql_create_context |
CREATE TABLE table_35202 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class has fewer than 89 points and the Honda team later than 1987?
| SELECT "Class" FROM table_35202 WHERE "Points" < '89' AND "Team" = 'honda' AND "Year" > '1987' | wikisql |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-15417')) AND DATETIME(microlab.culturetakentime) <= DATETIME(... | eicu |
CREATE TABLE table_26738 (
"Series No." real,
"Episode No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"UK Ratings (BBC2 Rank)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of epi... | SELECT "Title" FROM table_26738 WHERE "Episode No." = '2' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "ASIAN" AND prescriptions.drug = "GlyBURIDE" | mimicsql_data |
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... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%uganda%' OR UPPER(Location) LIKE '%UGA' ORDER BY Reputation DESC LIMIT 200 | sede |
CREATE TABLE apartments (
apt_id number,
building_id number,
apt_type_code text,
apt_number text,
bathroom_count number,
bedroom_count number,
room_count text
)
CREATE TABLE apartment_buildings (
building_id number,
building_short_name text,
building_full_name text,
building... | SELECT apt_type_code FROM apartments GROUP BY apt_type_code ORDER BY AVG(room_count) DESC LIMIT 3 | spider |
CREATE TABLE table_name_35 (
year_s__of_manufacture VARCHAR,
railway_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the year(s) of manufacture for railway number(s) 26 (ii) 63 (ii) , 188 193?
| SELECT year_s__of_manufacture FROM table_name_35 WHERE railway_number_s_ = "26 (ii) …63 (ii) , 188–193" | sql_create_context |
CREATE TABLE MediaType (
MediaTypeId integer,
Name varchar(120)
)
CREATE TABLE PlaylistTrack (
PlaylistId integer,
TrackId integer
)
CREATE TABLE Genre (
GenreId integer,
Name varchar(120)
)
CREATE TABLE Artist (
ArtistId integer,
Name varchar(120)
)
CREATE TABLE Track (
TrackId ... | SELECT T1.Title, T1.AlbumId FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 ORDER BY T1.Title DESC | nvbench |
CREATE TABLE table_name_48 (
city_location VARCHAR,
race_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the budweiser/g. i. joe's 200?
| SELECT city_location FROM table_name_48 WHERE race_name = "budweiser/g. i. joe's 200" | sql_create_context |
CREATE TABLE table_21481509_4 (
r1b1c__r_v88_ VARCHAR,
total_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage?
| SELECT r1b1c__r_v88_ FROM table_21481509_4 WHERE total_percentage = "4.5%" | sql_create_context |
CREATE TABLE table_name_17 (
circuit VARCHAR,
winning_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which circuit did Raymond Mays win?
| SELECT circuit FROM table_name_17 WHERE winning_driver = "raymond mays" | sql_create_context |
CREATE TABLE table_35447 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the game on February 12?
| SELECT "Score" FROM table_35447 WHERE "Date" = 'february 12' | wikisql |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | SELECT COUNT(*) AS counter, OwnerUserId FROM Posts GROUP BY OwnerUserId ORDER BY counter DESC | sede |
CREATE TABLE table_21667 (
"Week" real,
"Date" text,
"Opponent" text,
"Stadium" text,
"Result" text,
"Record" text,
"Streak" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game that was playe... | SELECT "Result" FROM table_21667 WHERE "Date" = 'Nov. 26' | wikisql |
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paper (
paperid int,
title... | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'data cleaning' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid | scholar |
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 (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND procedures.icd9_code = "8321" | mimicsql_data |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type t... | 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 = 13536)) AND DATETIME(outputevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start o... | mimic_iii |
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... | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 54825 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label ... | mimic_iii |
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2114" AND lab.itemid = "50949" | mimicsql_data |
CREATE TABLE table_61120 (
"Title" text,
"Author" text,
"Doctor" text,
"Companion(s)" text,
"Published" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What doctor published on June 2003?
| SELECT "Doctor" FROM table_61120 WHERE "Published" = 'june 2003' | wikisql |
CREATE TABLE d_icd_diagnoses (
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 labevents (
r... | SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 20898 AND STRFTIME('%y', admissions.admittime) = '2105' ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id ... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 90663 AND admissions.dischtime IS NULL)) AND transfers... | mimic_iii |
CREATE TABLE table_name_51 (
rounds VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what rounds was the featured team of Avanzza Rosso?
| SELECT rounds FROM table_name_51 WHERE team = "avanzza rosso" | sql_create_context |
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE certificate (
eid number,
aid number
)
CREATE TABLE aircraft (
aid number,
name text,
distance number
)... | SELECT AVG(distance), AVG(price) FROM flight WHERE origin = "Los Angeles" | spider |
CREATE TABLE table_46846 (
"Year" real,
"Album" text,
"Vocals" text,
"Bass" text,
"Drums" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which album had Jay Bentley on bass and Bobby Schayer on drums?
| SELECT "Album" FROM table_46846 WHERE "Bass" = 'jay bentley' AND "Drums" = 'bobby schayer' | wikisql |
CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE departments (
department_id number,
department_name text,
manager_id number,
location_id number
)
CREATE TABLE employees (
employee_id number,
first_name text,
last_name tex... | SELECT * FROM departments WHERE department_name = 'Marketing' | spider |
CREATE TABLE table_name_60 (
country VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a Year(s) won of 1977?
| SELECT country FROM table_name_60 WHERE year_s__won = "1977" | sql_create_context |
CREATE TABLE table_name_39 (
town_city VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city is Garfield County Museum located in?
| SELECT town_city FROM table_name_39 WHERE name = "garfield county museum" | sql_create_context |
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 AVG(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.MED_ORG_DEPT_CD = '514' AND t_kc21.IN_HOSP_DATE BETWEEN '2000-02-03' AND '2005-12-31' AND t_kc21.IN_DIAG_DIS_CD = 'O27.911' AND t_kc21.CLINIC_TYPE = '住院' | css |
CREATE TABLE Addresses (
City_Town VARCHAR,
Address_ID VARCHAR
)
CREATE TABLE Stores (
Address_ID VARCHAR,
Store_Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city is the address of the store named 'FJA Filming' located in?
| SELECT T1.City_Town FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Store_Name = "FJA Filming" | sql_create_context |
CREATE TABLE dorm_amenity (
amenity_name VARCHAR,
amenid VARCHAR
)
CREATE TABLE has_amenity (
dormid VARCHAR,
amenid VARCHAR
)
CREATE TABLE dorm (
dormid VARCHAR,
dorm_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of ame... | SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' | sql_create_context |
CREATE TABLE table_204_625 (
id number,
"model" text,
"availability" text,
"introduced" text,
"length of use" text,
"last of whiteness" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many products have been discontinued ?
| SELECT COUNT("model") FROM table_204_625 WHERE "availability" = 'discontinued' | squall |
CREATE TABLE table_40971 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School/Club Team does Vince Carter Play for?
| SELECT "School/Club Team" FROM table_40971 WHERE "Player" = 'vince carter' | wikisql |
CREATE TABLE table_61931 (
"Athlete" text,
"Country" text,
"Run 1" real,
"Run 2" real,
"Run 3" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the athlete with a run 1 less than 54.13 and a 55.21 run 3?
| SELECT "Athlete" FROM table_61931 WHERE "Run 1" < '54.13' AND "Run 3" = '55.21' | wikisql |
CREATE TABLE student (
stu_num number,
stu_lname text,
stu_fname text,
stu_init text,
stu_dob time,
stu_hrs number,
stu_class text,
stu_gpa number,
stu_transfer number,
dept_code text,
stu_phone text,
prof_num number
)
CREATE TABLE employee (
emp_num number,
emp_... | SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.' | spider |
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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
... | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE | nvbench |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "CD4/CD8 Ratio" | mimicsql_data |
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 * FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '21178041' AND hz_info.YLJGDM = '9509335' AND zyjzjlb.JZKSMC LIKE '%针灸科%' | css |
CREATE TABLE table_name_31 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2004, when 2005 is 'Not Tier I'?
| SELECT 2004 FROM table_name_31 WHERE 2005 = "not tier i" | sql_create_context |
CREATE TABLE txmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | SELECT jybgb.SHSJ FROM hz_info JOIN txmzjzjlb JOIN jybgb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '16591301' AND jybgb.BGRQ BETWEEN '2004-05-15' AND '2008-... | css |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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 varc... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | nvbench |
CREATE TABLE table_32695 (
"Year" text,
"Date" text,
"Stages" text,
"Distance" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won in 1965?
| SELECT "Winner" FROM table_32695 WHERE "Year" = '1965' | wikisql |
CREATE TABLE table_55190 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How big was the crowd for Essendon?
| SELECT SUM("Crowd") FROM table_55190 WHERE "Home team" = 'essendon' | wikisql |
CREATE TABLE table_56315 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Pedro De La Rosa's total number of Grid?
| SELECT COUNT("Grid") FROM table_56315 WHERE "Driver" = 'pedro de la rosa' | wikisql |
CREATE TABLE table_203_76 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which driver has his grid... | SELECT "driver" FROM table_203_76 WHERE "grid" = 2 | squall |
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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND procedures.short_title = "Temporary colostomy" | mimicsql_data |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_20... | SELECT meter_400, meter_100 FROM swimmer | nvbench |
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number... | SELECT COUNT(*) FROM student | spider |
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 jyjgzbb (
BGDH text,
BGRQ tim... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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.JZ... | css |
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... | SELECT JZKSBM, JZKSMC FROM mzjzjlb WHERE JZLSH = '74199194476' | css |
CREATE TABLE table_204_832 (
id number,
"name" text,
"nationality" text,
"club" text,
"from" number,
"until" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what same country did marc dos santos coach as colin miller ?
| SELECT "nationality" FROM table_204_832 WHERE "name" = 'marc dos santos' | squall |
CREATE TABLE table_name_13 (
percentage__2011_ VARCHAR,
population__2006_ VARCHAR,
percentage__2006_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of the 2011 population had a mother tongue language that was spoken by 45.22% of the popul... | SELECT percentage__2011_ FROM table_name_13 WHERE population__2006_ > 120 AND percentage__2006_ = "45.22%" | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND demographic.dob_year < "2130" | mimicsql_data |
CREATE TABLE table_dev_9 (
"id" int,
"heart_disease" bool,
"hba1c" float,
"coronary_artery_disease_cad" bool,
"triglyceride_tg" float,
"hypertension" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- hba1c greater than 12 %
| SELECT * FROM table_dev_9 WHERE hba1c > 12 | criteria2sql |
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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(EMPLOYEE_ID) DESC | nvbench |
CREATE TABLE table_name_10 (
event_4 VARCHAR,
event_3 VARCHAR,
event_1 VARCHAR,
event_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is event 4 when event one was gauntlet, event 2 was duel, and event 3 was pendulum?
| SELECT event_4 FROM table_name_10 WHERE event_1 = "gauntlet" AND event_2 = "duel" AND event_3 = "pendulum" | sql_create_context |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
chartti... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1784)) AND DATETIME(inputevents_cv.c... | mimic_iii |
CREATE TABLE table_name_79 (
playoffs INTEGER,
teams VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest playoffs that has tampa bay as the team?
| SELECT MAX(playoffs) FROM table_name_79 WHERE teams = "tampa bay" | sql_create_context |
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... | SELECT qtb.IN_DIAG_DIS_CD, qtb.IN_DIAG_DIS_NM FROM qtb WHERE qtb.PERSON_NM = '苗秀曼' AND qtb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 7265.59) UNION SELECT gyb.IN_DIAG_DIS_CD, gyb.IN_DIAG_DIS_NM FROM gyb WHERE gyb.PERSON_NM = '苗秀曼' AND gyb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLI... | css |
CREATE TABLE table_32933 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average crowd size for games with no... | SELECT AVG("Crowd") FROM table_32933 WHERE "Away team" = 'north melbourne' | wikisql |
CREATE TABLE table_name_60 (
year VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Asi Peko?
| SELECT year FROM table_name_60 WHERE name = "asi peko" | sql_create_context |
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE flight_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, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHI... | atis |
CREATE TABLE table_203_673 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which attendance w... | SELECT "date" FROM table_203_673 WHERE "date" IN ('july 1', 'july 2') ORDER BY "attendance" DESC LIMIT 1 | squall |
CREATE TABLE qtb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT qtb.IN_HOSP_DAYS FROM qtb WHERE qtb.MED_CLINIC_ID = '17340163122' UNION SELECT gyb.IN_HOSP_DAYS FROM gyb WHERE gyb.MED_CLINIC_ID = '17340163122' UNION SELECT zyb.IN_HOSP_DAYS FROM zyb WHERE zyb.MED_CLINIC_ID = '17340163122' UNION SELECT mzb.IN_HOSP_DAYS FROM mzb WHERE mzb.MED_CLINIC_ID = '17340163122' | css |
CREATE TABLE table_3841 (
"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 had... | SELECT "High assists" FROM table_3841 WHERE "Game" = '9' | wikisql |
CREATE TABLE table_name_35 (
rank VARCHAR,
goals VARCHAR,
scorer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has Goals larger than 10, and a Scorer of choi sang-kuk?
| SELECT rank FROM table_name_35 WHERE goals > 10 AND scorer = "choi sang-kuk" | sql_create_context |
CREATE TABLE table_1272033_1 (
championship VARCHAR,
previous_champion_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tourmament has Genesis won previously?
| SELECT championship FROM table_1272033_1 WHERE previous_champion_s_ = "Genesis" | sql_create_context |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following questions for the... | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name | nvbench |
CREATE TABLE table_59801 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total that wehn Lithuania is the nation, and Silver is more than 0?
| SELECT MIN("Total") FROM table_59801 WHERE "Nation" = 'lithuania' AND "Silver" > '0' | wikisql |
CREATE TABLE table_1423 (
"Candidate" text,
"State Delegate" real,
"Percentage" text,
"Delegates" real,
"Counties Carries" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Candidate John Mccain had how many delegates?
| SELECT "Delegates" FROM table_1423 WHERE "Candidate" = 'John McCain' | wikisql |
CREATE TABLE table_name_31 (
name VARCHAR,
borough VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Borough is the Anchorage museum of Natural History?
| SELECT name FROM table_name_31 WHERE borough = "anchorage" AND type = "natural history" | sql_create_context |
CREATE TABLE table_name_87 (
season VARCHAR,
round VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had a game in the first round with a result of 4 1, 0 1?
| SELECT season FROM table_name_87 WHERE round = "first round" AND result = "4–1, 0–1" | sql_create_context |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | SELECT DISTINCT program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND course.number = 790 AND program_course.course_id = course.course_id | advising |
CREATE TABLE table_69019 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the match when Detroit is the home team and Co... | SELECT "Date" FROM table_69019 WHERE "Home" = 'detroit' AND "Visitor" = 'colorado' | wikisql |
CREATE TABLE table_73287 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What coach premiered February 16, 2008 later than episode 21.0?
| SELECT "Coach" FROM table_73287 WHERE "Premier date" = 'February 16, 2008' AND "Episode" > '21.0' | wikisql |
CREATE TABLE table_23248910_6 (
location_attendance VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location and it's attendance was the game against the Nets?
| SELECT location_attendance FROM table_23248910_6 WHERE team = "Nets" | sql_create_context |
CREATE TABLE table_name_27 (
region VARCHAR,
catalog VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Region with a Catalog that is vlmx 1087-3?
| SELECT region FROM table_name_27 WHERE catalog = "vlmx 1087-3" | sql_create_context |
CREATE TABLE table_63546 (
"Children of Earth" text,
"Run time" text,
"Writer" text,
"Director" text,
"Original airdate" text,
"Viewers (including HD) in millions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director of the episod... | SELECT "Director" FROM table_63546 WHERE "Writer" = 'russell t davies and james moran' | wikisql |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '潘若云' AND t_kc22.STA_DATE BETWEEN '2004-02-29' AND '2019-02-16' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.... | css |
CREATE TABLE table_19179 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many 2nd legs had an aggregate of 2-4?
| SELECT COUNT("2nd leg") FROM table_19179 WHERE "Aggregate" = '2-4' | wikisql |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE hz_info (
KH text,
KLX number... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE mzjzjlb.JZZDSM = '精神分裂症' AND hz_info.RYBH ... | css |
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 SUM(t_kc22.AMOUNT) 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_kc21.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2007-07-28' AND '2017-09-06' AND t_kc22.MED_INV_IT... | css |
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_des... | SELECT login_name, gender_mf FROM Course_Authors_and_Tutors ORDER BY personal_name | nvbench |
CREATE TABLE table_1108394_43 (
total INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the minimum total
| SELECT MIN(total) FROM table_1108394_43 | sql_create_context |
CREATE TABLE table_58616 (
"Rank 2014" real,
"Rank 2013" real,
"Mvmt" text,
"Club" text,
"Country" text,
"2009\u201310" real,
"2010\u201311" real,
"2011\u201312" real,
"2012\u201313" real,
"2013\u201314" real,
"Coeff." real
)
-- Using valid SQLite, answer the following ques... | SELECT AVG("Rank 2014") FROM table_58616 WHERE "2009\u201310" = '21.233' | wikisql |
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id WHERE course.name L... | advising |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.