instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
per... | SELECT middle_name, gender_mf FROM Course_Authors_and_Tutors ORDER BY personal_name | nvbench |
CREATE TABLE table_name_75 (
date VARCHAR,
site VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the game at Williams-Brice stadium Columbia, SC?
| SELECT date FROM table_name_75 WHERE site = "williams-brice stadium • columbia, sc" | 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 SUM(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.PERSON_NM = '华依波' AND t_kc21.CLINIC_TYPE = '门诊' | css |
CREATE TABLE table_15472061_1 (
title VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of titles for 3020 production code
| SELECT COUNT(title) FROM table_15472061_1 WHERE production_code = "3020" | sql_create_context |
CREATE TABLE table_12863 (
"Elimination" text,
"Wrestler" text,
"Team" text,
"Eliminated by" text,
"Elimination Move" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Elimination of the Player with Elimination Move of hurr... | SELECT "Elimination" FROM table_12863 WHERE "Elimination Move" = 'hurricanrana pin' | wikisql |
CREATE TABLE table_name_11 (
nationality VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the player in round 4?
| SELECT nationality FROM table_name_11 WHERE round = 4 | sql_create_context |
CREATE TABLE table_name_88 (
week INTEGER,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the mean week number when attendance was 63,263?
| SELECT AVG(week) FROM table_name_88 WHERE attendance = 63 OFFSET 263 | sql_create_context |
CREATE TABLE table_2077192_2 (
phonetic_greek VARCHAR,
french VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Phonetic Greek words translate to grenouille in French?
| SELECT COUNT(phonetic_greek) FROM table_2077192_2 WHERE french = "grenouille" | sql_create_context |
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 WHERE demographic.expire_flag = "0" AND diagnoses.icd9_code = "29570" | mimicsql_data |
CREATE TABLE table_60000 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the score for the t10 player from zimbabwe?
| SELECT "Score" FROM table_60000 WHERE "Place" = 't10' AND "Country" = 'zimbabwe' | wikisql |
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show ... | SELECT director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director ORDER BY MIN(T1.stars) | nvbench |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
... | SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(DEPARTMENT_ID) DESC | nvbench |
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 COUNT(*) FROM (SELECT zyjybgb.KSBM FROM mzjzjlb JOIN zyjybgb ON mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '5860255' AND zyjybgb.BGRQ BETWEEN '2007-07-16' AND '2020-08-01' GROUP BY zyjybgb.KSBM HAVING COUNT(*) < 19 UNION SELECT mzjybgb.KSBM FROM mzjzj... | css |
CREATE TABLE table_45840 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the game where Birmingham City was the home team on 10 March 1984?
| SELECT "Score" FROM table_45840 WHERE "Date" = '10 march 1984' AND "Home team" = 'birmingham city' | wikisql |
CREATE TABLE table_69644 (
"Tournament" text,
"Date" text,
"Surface" text,
"Round" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tournament for semifinal hard surface for opponent of pam casale
| SELECT "Tournament" FROM table_69644 WHERE "Round" = 'semifinal' AND "Surface" = 'hard' AND "Opponent" = 'pam casale' | wikisql |
CREATE TABLE table_21633 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which season did Paul McCrane first direct an episode?
| SELECT MIN("Season #") FROM table_21633 WHERE "Directed by" = 'Paul McCrane' | 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 prescriptions... | 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.icd9_code = "7756" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_name_31 (
discipline VARCHAR,
championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the USAC National Championship, what is the Discipline?
| SELECT discipline FROM table_name_31 WHERE championship = "usac national championship" | sql_create_context |
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 OUT_DIAG_DIS_CD, OUT_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_NM = '邹宏富' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc24 WHERE MED_AMOUT > 6492.34) | css |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id numbe... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissi... | mimic_iii |
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as ... | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%MDE%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_cou... | advising |
CREATE TABLE table_19687 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least wins
| SELECT MIN("Wins") FROM table_19687 | wikisql |
CREATE TABLE match_result (
club_id VARCHAR,
gold VARCHAR
)
CREATE TABLE coach (
club_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many gold medals has the club with the most coaches won?
| SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1 | sql_create_context |
CREATE TABLE table_name_72 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- August 16 had what record?
| SELECT record FROM table_name_72 WHERE date = "august 16" | 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 (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "61" AND diagnoses.short_title = "Hypothyroidism NOS" | mimicsql_data |
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 jybgb.SHSJ FROM hz_info JOIN mzjzjlb JOIN jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '47198797' AND jybgb.BGRQ BETWEEN '2007-11-06' AND '2012-05-08') UNI... | css |
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 jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDBM = 'K80.961' AND jyjgzbb.JCZBMC = 'a1酸性糖蛋白' | css |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | SELECT diagnoses_icd.charttime FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'aphasia') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19040) AND DATETIME(diagnoses_icd.... | mimic_iii |
CREATE TABLE guests (
guest_id number,
gender_code text,
guest_first_name text,
guest_last_name text,
date_of_birth time
)
CREATE TABLE apartment_facilities (
apt_id number,
facility_code text
)
CREATE TABLE view_unit_status (
apt_id number,
apt_booking_id number,
status_date t... | SELECT apt_number FROM apartments ORDER BY bedroom_count DESC LIMIT 1 | spider |
CREATE TABLE table_73313 (
"School District" text,
"Headquarters" text,
"Sector" text,
"Enrollment (2011-12)" real,
"Teachers (2008-09" real,
"Student-Teacher ratio (2008-09)" text,
"French enrollment (2011-12)" text,
"Graduation rate (2011-12)" text,
"Withdrawal rate (2010-11)" text... | SELECT "Withdrawal rate (2010-11)" FROM table_73313 WHERE "Graduation rate (2011-12)" = '89.3%' | wikisql |
CREATE TABLE perpetrator (
People_ID VARCHAR
)
CREATE TABLE people (
Name VARCHAR,
People_ID VARCHAR,
Weight VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the perpetrator with the biggest weight.
| SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight DESC LIMIT 1 | sql_create_context |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '范慧捷' AND gwyjzb.IN_HOSP_DATE BETWEEN '2003-01-20' AND '2013-03-08' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_... | css |
CREATE TABLE table_name_85 (
record VARCHAR,
round VARCHAR,
res VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of the match with a win res., a 5:00 time, and more than 3 rounds?
| SELECT record FROM table_name_85 WHERE res = "win" AND time = "5:00" AND round > 3 | sql_create_context |
CREATE TABLE table_1342359_5 (
district VARCHAR,
party VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the districtwith party being democratic
| SELECT district FROM table_1342359_5 WHERE party = "Democratic" | sql_create_context |
CREATE TABLE table_name_67 (
date VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for the italian grand prix
| SELECT date FROM table_name_67 WHERE race = "italian grand prix" | sql_create_context |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)... | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '033-4763' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '033-4763' AND patient.hospitaldischargetime IS NULL)) AND trea... | eicu |
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 CAST(TIME_TO_STR(Posts.CreationDate, '%Y') AS TEXT(4)) + '-' + CAST(TIME_TO_STR(Posts.CreationDate, '%m') AS TEXT(2)) AS month_year, COUNT(*) AS tagcount FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Tags.TagName = 'swift' AND TIME_TO_STR(Posts.Cre... | sede |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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
)
... | SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 29741) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'pt') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_... | mimic_iii |
CREATE TABLE table_24464 (
"Category" text,
"Sub-category" text,
"Cab size" text,
"Drive wheels" text,
"Capacity (litres)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the category for cab size crew and super tanker
| SELECT "Category" FROM table_24464 WHERE "Cab size" = 'Crew' AND "Sub-category" = 'Super tanker' | wikisql |
CREATE TABLE table_18424435_4 (
_number VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of episodes listed with a production code of 306?
| SELECT COUNT(_number) FROM table_18424435_4 WHERE production_code = 306 | sql_create_context |
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end... | SELECT dept_name, SUM(credits) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY dept_name ORDER BY SUM(credits) | nvbench |
CREATE TABLE table_name_32 (
school VARCHAR,
location VARCHAR,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school has south bend as the location, with indians as the mascot?
| SELECT school FROM table_name_32 WHERE location = "south bend" AND mascot = "indians" | sql_create_context |
CREATE TABLE table_name_52 (
score VARCHAR,
visitor VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the December 11 game against the Ottawa Senators?
| SELECT score FROM table_name_52 WHERE visitor = "ottawa senators" AND date = "december 11" | sql_create_context |
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... | SELECT Name, COUNT(Name) FROM appellations AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = "Monterey" AND T2.Price < 50 GROUP BY Name | nvbench |
CREATE TABLE table_76391 (
"Year" text,
"Result" text,
"Matches" text,
"Wins" text,
"Draws" text,
"Losses" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many draws were there in 2006?
| SELECT "Draws" FROM table_76391 WHERE "Year" = '2006' | wikisql |
CREATE TABLE table_name_93 (
lane INTEGER,
nationality VARCHAR,
heat VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's Spain's lane with a heat less than 4?
| SELECT AVG(lane) FROM table_name_93 WHERE nationality = "spain" AND heat < 4 | sql_create_context |
CREATE TABLE table_49801 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Venue, when Year is after 2003, and when Tournament is 'Hypo-Meeting'?
| SELECT "Venue" FROM table_49801 WHERE "Year" > '2003' AND "Tournament" = 'hypo-meeting' | wikisql |
CREATE TABLE table_18947 (
"Trim" text,
"Engine" text,
"Displacement" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Fuel Mileage (latest EPA mpg - US )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the trim with engine be... | SELECT "Trim" FROM table_18947 WHERE "Engine" = '3.5L LZ4 V6' | wikisql |
CREATE TABLE table_72265 (
"State" text,
"Preliminaries" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the evening gown where preliminaries is 8.977
| SELECT "Evening Gown" FROM table_72265 WHERE "Preliminaries" = '8.977' | wikisql |
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 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.person_i... | css |
CREATE TABLE table_name_89 (
young_classification VARCHAR,
aggressive_rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which young classification has an aggressive rider of Tim Johnson?
| SELECT young_classification FROM table_name_89 WHERE aggressive_rider = "tim johnson" | 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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jyb... | css |
CREATE TABLE table_62705 (
"Season" real,
"Winners" text,
"Runners-up" text,
"Third-place" text,
"fourth-placed" text,
"Number of clubs" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner when the runner-up was Guangzhou Apollo?
| SELECT "Winners" FROM table_62705 WHERE "Runners-up" = 'guangzhou apollo' | wikisql |
CREATE TABLE table_22310 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"U.S. air date" text,
"Production code" real,
"Canadian viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "No." FROM table_22310 WHERE "Directed by" = 'Kelly Makin' AND "Written by" = 'Mark Ellis & Stephanie Morgenstern' | wikisql |
CREATE TABLE table_57322 (
"Rank" real,
"Name" text,
"Nation" text,
"Placings" text,
"Figures" real,
"Free" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many placings did Jacqueline du Bief earn where her total score is g... | SELECT "Placings" FROM table_57322 WHERE "Total" > '131.26' AND "Name" = 'jacqueline du bief' | wikisql |
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, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road | nvbench |
CREATE TABLE table_11455 (
"Year" real,
"Boys' Singles" text,
"Girls' Singles" text,
"Boys' Doubles" text,
"Girls' Doubles" text,
"Mixed Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which girls singles in 2012?
| SELECT "Girls' Singles" FROM table_11455 WHERE "Year" = '2012' | wikisql |
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_M... | SELECT * FROM jybgb WHERE JZLSH = '11083339230' | css |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD ... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.AMOUNT FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '12399339587' AND t_kc22.SOC_SRT_DIRE_NM LIKE '%电解质%' | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "41" AND prescriptions.route = "ORAL" | mimicsql_data |
CREATE TABLE table_name_66 (
points_for_higher INTEGER,
points_for_foundation INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum points for higher when the points for foundation is less than 0?
| SELECT MAX(points_for_higher) FROM table_name_66 WHERE points_for_foundation < 0 | sql_create_context |
CREATE TABLE table_203_212 (
id number,
"#" number,
"district" text,
"land area (km2)" number,
"population\n(2010 census)" number,
"density (persons/km2)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which other districts besides castries ha... | SELECT "district" FROM table_203_212 WHERE "district" <> 'castries' AND "population\n(2010 census)" > 20000 | squall |
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" ORDER BY Date_of_Birth DESC | nvbench |
CREATE TABLE table_23028629_2 (
part_number_s_ VARCHAR,
model_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every part number with model number core i5-670?
| SELECT part_number_s_ FROM table_23028629_2 WHERE model_number = "Core i5-670" | sql_create_context |
CREATE TABLE table_name_67 (
ends VARCHAR,
name VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the total number of ends for filip ebo and Goals more than 2
| SELECT COUNT(ends) FROM table_name_67 WHERE name = "filip šebo" AND goals > 2 | sql_create_context |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3125) AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-10' GROUP BY prescriptions.drug) AS t1 WHERE t1.c1... | mimic_iii |
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE... | SELECT facid FROM faculty WHERE sex = 'M' | spider |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '许天蓝' AND t_kc21.MED_SER_ORG_NO = '0791593' AND t_kc21.IN_DIAG_DIS_NM LIKE '%阻塞性%' | css |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND CITY_2.cit... | atis |
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
P... | SELECT Party_name, COUNT(*) FROM member AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID ORDER BY COUNT(*) | nvbench |
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.drug = "Paroxetine HCl" | mimicsql_data |
CREATE TABLE table_37788 (
"City" text,
"Operator" text,
"Type designation" text,
"Number of vehicles" real,
"Width" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Number of vehicles has a Type designation of u5-25 (bi-directional)?
| SELECT "Number of vehicles" FROM table_37788 WHERE "Type designation" = 'u5-25 (bi-directional)' | wikisql |
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE | nvbench |
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 transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype tex... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'swab' AND STRFTIME('%y', microbiologyevents.charttime) >= '2105') | mimic_iii |
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 WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" | mimicsql_data |
CREATE TABLE table_name_27 (
playing_for VARCHAR,
_number_100 VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Playing For has a # 100 larger than 36, and a Score of 122?
| SELECT playing_for FROM table_name_27 WHERE _number_100 > 36 AND score = "122" | sql_create_context |
CREATE TABLE table_67325 (
"Year" text,
"Driver/s" text,
"Class" text,
"Vehicle" text,
"Race title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the III Coppa Acerbo title?
| SELECT "Driver/s" FROM table_67325 WHERE "Race title" = 'iii coppa acerbo' | wikisql |
CREATE TABLE table_11964154_2 (
game INTEGER,
high_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games was Damien Wilkins (27) the high scorer?
| SELECT MIN(game) FROM table_11964154_2 WHERE high_points = "Damien Wilkins (27)" | sql_create_context |
CREATE TABLE table_56092 (
"Club" text,
"City" text,
"Stadium" text,
"Capacity" real,
"2011\u201312 season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total capacity for the stadium of pasquale ianniello?
| SELECT SUM("Capacity") FROM table_56092 WHERE "Stadium" = 'pasquale ianniello' | wikisql |
CREATE TABLE table_18922 (
"Year(s)" real,
"Grand Final Television Commentator" text,
"Grand Final Dual Television Commentator" text,
"Spokesperson" text,
"Semi Final Television Commentator" text,
"Semi Final Dual Television Commentator" text
)
-- Using valid SQLite, answer the following quest... | SELECT "Spokesperson" FROM table_18922 WHERE "Year(s)" = '1970' | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2155.0" AND prescriptions.drug = "NEO*PO*Vitamin E Drops" | mimicsql_data |
CREATE TABLE table_11621 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number for swimsuit when the interview number is less than 8.808?
| SELECT "Swimsuit" FROM table_11621 WHERE "Interview" < '8.808' | wikisql |
CREATE TABLE field (
fieldid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int... | SELECT DISTINCT paper.paperid FROM author, paper, writes WHERE author.authorname = 'ali farhadi' AND paper.year = 2015 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | scholar |
CREATE TABLE table_24149 (
"Season" text,
"Games" real,
"Won" real,
"Lost" real,
"Tied" real,
"Points" real,
"Pct %" text,
"Goals For" real,
"Goals Against" real,
"Standing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what ... | SELECT "Season" FROM table_24149 WHERE "Pct %" = '0.552' | wikisql |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT Users.DisplayName, SUM(LENGTH(Body)) * 1.0 / Reputation AS "letters_per_rep_point" FROM Posts INNER JOIN Users ON Posts.OwnerUserId = Users.Id WHERE Reputation > '##repthreshold##' GROUP BY Users.DisplayName, Reputation ORDER BY 2 | sede |
CREATE TABLE table_77314 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of The Big Doll House?
| SELECT MIN("Rank") FROM table_77314 WHERE "Title" = 'the big doll house' | wikisql |
CREATE TABLE table_46886 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the Result l 38-14?
| SELECT "Date" FROM table_46886 WHERE "Result" = 'l 38-14' | wikisql |
CREATE TABLE table_43607 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Worldwide Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the title when the rank is less than 17 and the worldwide gross is $299,288,605?
| SELECT "Title" FROM table_43607 WHERE "Rank" < '17' AND "Worldwide Gross" = '$299,288,605' | wikisql |
CREATE TABLE table_204_277 (
id number,
"region" text,
"country" text,
"location" text,
"size (m)" text,
"payload (metric tonnes)" text,
"degrees of freedom" number,
"x horiz disp (mm)" number,
"y horiz disp (mm)" number,
"z vert disp (mm)" number,
"x horiz vel (mm/s)" number... | SELECT "location" FROM table_204_277 WHERE "location" IN ('university of witwatersrand', 'iit guwahati') ORDER BY "x horiz disp (mm)" DESC LIMIT 1 | squall |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime tim... | SELECT COUNT(*) > 0 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 = 6196)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temperature c (cal... | mimic_iii |
CREATE TABLE table_56060 (
"Nationality" text,
"Year" text,
"Games Played" real,
"Minutes Played" text,
"Goals Scored" text,
"Yellow Card" text,
"Red Card" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games had 2 goals scored?
| SELECT SUM("Games Played") FROM table_56060 WHERE "Goals Scored" = '2' | wikisql |
CREATE TABLE table_6666 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Competition has a 2nd round score of 1:0, 0:1 (4:3 a.p.)?
| SELECT "Competition" FROM table_6666 WHERE "Round" = '2nd round' AND "Score" = '1:0, 0:1 (4:3 a.p.)' | wikisql |
CREATE TABLE party_host (
party_id number,
host_id number,
is_main_in_charge others
)
CREATE TABLE party (
party_id number,
party_theme text,
location text,
first_year text,
last_year text,
number_of_hosts number
)
CREATE TABLE host (
host_id number,
name text,
national... | SELECT nationality FROM host GROUP BY nationality ORDER BY COUNT(*) DESC LIMIT 1 | spider |
CREATE TABLE table_11869952_3 (
launch_site VARCHAR,
mission VARCHAR,
results VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?
| SELECT launch_site FROM table_11869952_3 WHERE mission = "Test mission: war heads and Missile payload" AND results = "Partial Failure" | sql_create_context |
CREATE TABLE table_59938 (
"Spaceport" text,
"Launch complex" text,
"Launcher" text,
"Spacecraft" text,
"Flights" text,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the spaceport location that houses the LC34 complex and uses t... | SELECT "Spaceport" FROM table_59938 WHERE "Launcher" = 'saturn ib' AND "Launch complex" = 'lc34' | wikisql |
CREATE TABLE table_28759261_5 (
athens_xi VARCHAR,
dadar_xi_‘b’ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the athens xi where dada xi b is strikers fc?
| SELECT athens_xi FROM table_28759261_5 WHERE dadar_xi_‘b’ = "Strikers FC" | sql_create_context |
CREATE TABLE table_name_98 (
team_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1st leg with Team 2 Lyon?
| SELECT 1 AS st_leg FROM table_name_98 WHERE team_2 = "lyon" | 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 JYLX FROM jybgb WHERE BGDH = '63570013997' | css |
CREATE TABLE table_23097214_1 (
written_by VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode directed by Ken Whittingham?
| SELECT written_by FROM table_23097214_1 WHERE directed_by = "Ken Whittingham" | sql_create_context |
CREATE TABLE table_203_126 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the last opponent ?
| SELECT "opponent#" FROM table_203_126 ORDER BY id DESC LIMIT 1 | squall |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.