instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 = 'Y37.102' AND jyjgzbb.JCZBMC = '转铁蛋白' | css |
CREATE TABLE table_825 (
"Aircraft type" text,
"National Origin" text,
"1st Flight" real,
"In Service" text,
"Retired" text,
"# built" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the origin of aircraft in service in 1943 and retired i... | SELECT "National Origin" FROM table_825 WHERE "Retired" = '1954' AND "In Service" = '1943' | wikisql |
CREATE TABLE table_12165135_1 (
overall_pick__number VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number of the defensive back?
| SELECT COUNT(overall_pick__number) FROM table_12165135_1 WHERE position = "Defensive Back" | sql_create_context |
CREATE TABLE table_name_13 (
winning_driver VARCHAR,
pole_position VARCHAR,
fastest_lap VARCHAR,
constructor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winning driver when pole position was jenson button, the fastest lap was michael s... | SELECT winning_driver FROM table_name_13 WHERE fastest_lap = "michael schumacher" AND constructor = "ferrari" AND pole_position = "jenson button" | sql_create_context |
CREATE TABLE film_text (
film_id number,
title text,
description text
)
CREATE TABLE customer (
customer_id number,
store_id number,
first_name text,
last_name text,
email text,
address_id number,
active boolean,
create_date time,
last_update time
)
CREATE TABLE invento... | SELECT T2.address, T1.email FROM customer AS T1 JOIN address AS T2 ON T2.address_id = T1.address_id WHERE T1.first_name = 'LINDA' | spider |
CREATE TABLE d_icd_diagnoses (
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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id n... | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2518)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | mimic_iii |
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 AVG(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.MED_ORG_DEPT_NM = '中医针灸科' AND t_kc21.IN_HOSP_DATE BETWEEN '2003-04-06' AND '2003-12-21' AND t_kc21.IN_DIAG_DIS_CD = 'E76.026' AND t_kc21.CLINIC_TYPE = '住院' | css |
CREATE TABLE table_32532 (
"Week" text,
"Kickoff" text,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was week 12's record?
| SELECT "Record" FROM table_32532 WHERE "Week" = '12' | wikisql |
CREATE TABLE table_204_343 (
id number,
"nation" text,
"model" text,
"length" text,
"barrel length" text,
"weight" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what country has the least number of rifles in service ?
| SELECT "nation" FROM table_204_343 GROUP BY "nation" ORDER BY COUNT(*) LIMIT 1 | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "ACIDOSIS" | mimicsql_data |
CREATE TABLE table_33564 (
"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 date was the game when the away team scored... | SELECT "Date" FROM table_33564 WHERE "Away team score" = '9.5 (59)' | wikisql |
CREATE TABLE table_71666 (
"Year" text,
"Title" text,
"Production Company" text,
"Role" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the production company that has a year of 2008-2009?
| SELECT "Production Company" FROM table_71666 WHERE "Year" = '2008-2009' | wikisql |
CREATE TABLE table_22915134_2 (
engine VARCHAR,
example VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type?
| SELECT engine FROM table_22915134_2 WHERE example = "Shinya Nakano's Kawasaki Ninja ZX-RR" | sql_create_context |
CREATE TABLE Students (
student_id INTEGER,
address_id INTEGER,
first_name VARCHAR(80),
middle_name VARCHAR(40),
last_name VARCHAR(40),
cell_mobile_number VARCHAR(40),
email_address VARCHAR(40),
date_first_rental DATETIME,
date_left_university DATETIME,
other_student_details VARC... | SELECT date_address_to, SUM(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC | nvbench |
CREATE TABLE table_name_4 (
el_places INTEGER,
rank_2013 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which EL places have a Rank 2013 of 15?
| SELECT MAX(el_places) FROM table_name_4 WHERE rank_2013 = "15" | sql_create_context |
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 Founder, COUNT(Founder) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY COUNT(Founder) | nvbench |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
... | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 55360) AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
d... | SELECT date, COUNT(date) FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107) | nvbench |
CREATE TABLE table_name_88 (
year VARCHAR,
result VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year has a nominated outstanding actor in a musical?
| SELECT year FROM table_name_88 WHERE result = "nominated" AND category = "outstanding actor in a musical" | sql_create_context |
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 COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.friday = 'N' AND course_offering.monday = 'Y' AND course_offering.thursday = 'N' AND course_offering.tuesday = 'N' AND course_offering.wednesday = 'Y' AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND cour... | advising |
CREATE TABLE table_name_29 (
grid INTEGER,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid for Clay Regazzoni?
| SELECT AVG(grid) FROM table_name_29 WHERE driver = "clay regazzoni" | sql_create_context |
CREATE TABLE table_53031 (
"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 fewest bronze medals for a team with fewer than 1 silver and rank lower than 5?
| SELECT MIN("Bronze") FROM table_53031 WHERE "Silver" < '1' AND "Rank" < '5' | wikisql |
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | (SELECT jyjgzbb.JYZBLSH 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 h... | css |
CREATE TABLE table_name_72 (
format VARCHAR,
catalog VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Format has a Catalog of vcrdx 106?
| SELECT format FROM table_name_72 WHERE catalog = "vcrdx 106" | sql_create_context |
CREATE TABLE table_name_8 (
result_f___a VARCHAR,
opponents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result F-A has Opponents of rosenborg?
| SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg" | 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 * FROM jybgb WHERE JZLSH = '86575549461' | css |
CREATE TABLE language (
language_id number,
name text,
last_update time
)
CREATE TABLE customer (
customer_id number,
store_id number,
first_name text,
last_name text,
email text,
address_id number,
active boolean,
create_date time,
last_update time
)
CREATE TABLE film_... | SELECT T1.first_name, T1.last_name, T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY SUM(amount) LIMIT 1 | spider |
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the following questions fo... | SELECT Type, COUNT(*) FROM ship GROUP BY Type ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_59965 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text,
"Week 6" text,
"Week 7" text,
"Week 8" text,
"Week 9" text,
"Week 10 FINAL" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Week 9" FROM table_59965 WHERE "Week 1" = 'no nominations' AND "Week 6" = 'not eligible' AND "Week 2" = 'not eligible' AND "Week 10 FINAL" = 'evicted (day 57)' | wikisql |
CREATE TABLE table_14573770_4 (
fourth_place INTEGER,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many teams named argentina?
| SELECT MAX(fourth_place) FROM table_14573770_4 WHERE nation = "Argentina" | 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Disrup-external op wound" AND lab."CATEGORY" = "Hematology" | mimicsql_data |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_NM, MAX(t_kc24.CIVIL_SUBSIDY) FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '1120246' GROUP BY gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_NM ORDER BY MAX(t_kc24.CIVIL_SUBSIDY / t_kc24.MED_AMOUT) DESC UNION SELECT fg... | css |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age te... | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-147098')) AND NOT vitalperiodic.heartrate IS NU... | eicu |
CREATE TABLE table_26433 (
"No. by series" real,
"No. by season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production number" real,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "No. by series" FROM table_26433 WHERE "Title" = 'Pandora' | wikisql |
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 COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '3566248' AND t_kc21.IN_HOSP_DATE BETWEEN '2009-03-26' AND '2016-11-11' AND t_kc21.REMOTE_SETTLE_FLG = '异地1' OR t_kc21.REMOTE_SETTLE_FLG = '异地2' | css |
CREATE TABLE table_27723526_12 (
score VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for jos juan barea (8)
| SELECT score FROM table_27723526_12 WHERE high_assists = "José Juan Barea (8)" | sql_create_context |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtim... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | eicu |
CREATE TABLE table_dev_39 (
"id" int,
"gender" string,
"random_serum_glucose" int,
"glycated_hemoglobin" bool,
"heart_disease" bool,
"stroke" bool,
"diabetes_mellitus" bool,
"hgba1c" float,
"diabetic" string,
"fasting_blood_glucose_fbg" float,
"fasting_plasma_glucose" int,
... | SELECT * FROM table_dev_39 WHERE diabetes_mellitus = 1 OR random_serum_glucose >= 200 | criteria2sql |
CREATE TABLE table_73728 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT MIN("Top 10") FROM table_73728 WHERE "Winnings" = '$1,741,176' | wikisql |
CREATE TABLE table_name_48 (
lyrics VARCHAR,
date VARCHAR,
catalog_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what language is the Lyrics of the release on August 10, 2005 with Catalog number of TOCP-66427?
| SELECT lyrics FROM table_name_48 WHERE date = "august 10, 2005" AND catalog_number = "tocp-66427" | sql_create_context |
CREATE TABLE table_name_32 (
record VARCHAR,
date VARCHAR,
score VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record of the game on November 15 against Visitor Chicago Black Hawks with a Score of 1 3?
| SELECT record FROM table_name_32 WHERE score = "1–3" AND visitor = "chicago black hawks" AND date = "november 15" | sql_create_context |
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
baseprice number,
decor text
)
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults... | SELECT decor, COUNT(*) FROM rooms WHERE bedtype = "King" GROUP BY decor | spider |
CREATE TABLE table_12035 (
"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 did the away team score when the home team ... | SELECT "Away team score" FROM table_12035 WHERE "Home team score" = '23.13 (151)' | wikisql |
CREATE TABLE table_58491 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Montenegro's average bronze with less than 7 silver and more than 4 golds?
| SELECT AVG("Bronze") FROM table_58491 WHERE "Silver" < '7' AND "Nation" = 'montenegro' AND "Gold" > '4' | wikisql |
CREATE TABLE table_name_2 (
date VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game that had a loss of Risley (0-1)?
| SELECT date FROM table_name_2 WHERE loss = "risley (0-1)" | sql_create_context |
CREATE TABLE table_name_36 (
bronze VARCHAR,
rank VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronze medals for the nation ranked above 2, and under 0 golds?
| SELECT COUNT(bronze) FROM table_name_36 WHERE rank < 2 AND gold < 0 | sql_create_context |
CREATE TABLE table_name_54 (
name VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the player that played position 3b?
| SELECT name FROM table_name_54 WHERE position = "3b" | 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 WHERE demographic.ethnicity = "WHITE" AND demographic.dob_year < "2182" | mimicsql_data |
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 jybgb.KSBM, jybgb.KSMC 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.JZ... | css |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '戚星剑' AND t_kc22.STA_DATE BETWEEN '2006-01-02' AND '2014-06-21' AND t_kc22.SOC_SRT_DIRE_CD = '304714-w' | css |
CREATE TABLE table_661 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the season num... | SELECT MAX("No. in season") FROM table_661 WHERE "U.S. viewers (million)" = '0.57' | wikisql |
CREATE TABLE table_name_52 (
opponent VARCHAR,
game VARCHAR,
april VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent in a game higher than 76 on April 6?
| SELECT opponent FROM table_name_52 WHERE game > 76 AND april = 6 | sql_create_context |
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 demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "RBC, Joint Fluid" | mimicsql_data |
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 JOB_ID, COUNT(JOB_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID | nvbench |
CREATE TABLE table_45726 (
"Year" real,
"Category" text,
"President" text,
"Nominee" text,
"Film" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the film of Richard Nixon as President in a year newer than 1996?
| SELECT "Film" FROM table_45726 WHERE "President" = 'richard nixon' AND "Year" > '1996' | wikisql |
CREATE TABLE table_40062 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release date" text,
"Song title" text,
"Writer(s)" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the song titled if you talk in your sleep re... | SELECT "Release date" FROM table_40062 WHERE "Song title" = 'if you talk in your sleep' | wikisql |
CREATE TABLE table_203_715 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many years was the distance greater than 9 meters ?
| SELECT COUNT("year") FROM table_203_715 WHERE "notes" > 9 | squall |
CREATE TABLE financial_transactions (
transaction_id number,
account_id number,
invoice_number number,
transaction_type text,
transaction_date time,
transaction_amount number,
transaction_comment text,
other_transaction_details text
)
CREATE TABLE invoice_line_items (
order_item_id ... | SELECT order_id, COUNT(*) FROM invoices GROUP BY order_id | spider |
CREATE TABLE table_36256 (
"Date" text,
"State" text,
"George H.W. Bush" text,
"Bob Dole" text,
"Pat Robertson" text,
"Jack Kemp" text,
"Pete du Pont" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Pat Robertson was at 16%, what did Pet... | SELECT "Pete du Pont" FROM table_36256 WHERE "Pat Robertson" = '16%' | wikisql |
CREATE TABLE table_name_19 (
week VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Week was the Attendance 17,737?
| SELECT COUNT(week) FROM table_name_19 WHERE attendance = "17,737" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "ENGL" AND demographic.age < "43" | mimicsql_data |
CREATE TABLE table_name_33 (
goals_scored INTEGER,
team VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?
| SELECT MAX(goals_scored) FROM table_name_33 WHERE team = "san salvador f.c." AND points < 10 | sql_create_context |
CREATE TABLE table_71479 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the most laps with a finish of 10 and qualification of 106.185?
| SELECT MAX("Laps") FROM table_71479 WHERE "Finish" = '10' AND "Qual" = '106.185' | wikisql |
CREATE TABLE table_name_64 (
writer_s_ VARCHAR,
recorded_at VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the album recorded at funhouse studios with a time of 3:27?
| SELECT writer_s_ FROM table_name_64 WHERE recorded_at = "funhouse studios" AND time = "3:27" | 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 SUM(t_kc22.AMOUNT) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '02480290' AND gwyjzb.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2000-04-19' AND '2001-04-10' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT SUM(t_kc22.AMOUNT) FROM fgwyjzb JOIN t_kc22 ON fg... | css |
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 WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.dob_year < "2074" | mimicsql_data |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | SELECT mzjzjlb.MZZYZDZZBM, mzjzjlb.MZZYZDZZMC FROM mzjzjlb WHERE mzjzjlb.JZLSH = '60629196677' | css |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT * FROM 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 hz_info.RYBH = '05037621' AND jyjgzbb.jybgb_BBCJBW = '颈部' UNION SELECT * FR... | css |
CREATE TABLE table_12792876_2 (
won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the third entry in the row with a first entry of 'club'?
| SELECT won FROM table_12792876_2 WHERE "club" = "club" | sql_create_context |
CREATE TABLE table_13606924_1 (
bush__number INTEGER,
kerry__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the minimum bush # with kerry # being 3938
| SELECT MIN(bush__number) FROM table_13606924_1 WHERE kerry__number = 3938 | sql_create_context |
CREATE TABLE table_23248910_5 (
high_rebounds VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?
| SELECT high_rebounds FROM table_23248910_5 WHERE record = "5-2" | sql_create_context |
CREATE TABLE table_name_4 (
name VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What bridge is a pratt pony through truss tyoe bridge?
| SELECT name FROM table_name_4 WHERE type = "pratt pony through truss" | sql_create_context |
CREATE TABLE table_15315276_1 (
purse__ VARCHAR,
champion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many prizes were available when Jenny Shin became the champion?
| SELECT COUNT(purse__) AS $_ FROM table_15315276_1 WHERE champion = "Jenny Shin" | sql_create_context |
CREATE TABLE table_32147 (
"Model" text,
"Sensor res., size" text,
"Lens(35mmequiv.) zoom, aperture" text,
"Screen size,pixels" text,
"Dimensions W\u00d7H\u00d7D (mm)" text,
"Weight" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the len... | SELECT "Lens(35mmequiv.) zoom, aperture" FROM table_32147 WHERE "Model" = 's2600' | 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 transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype tex... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.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 = admissions... | mimic_iii |
CREATE TABLE table_28669 (
"District" real,
"Incumbent" text,
"Party" text,
"Elected" text,
"Status" text,
"2010 Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the elected year when the party is democratic and the 2010 candid... | SELECT "Elected" FROM table_28669 WHERE "Party" = 'Democratic' AND "2010 Candidates" = 'Jason Carter (D) unopposed' | wikisql |
CREATE TABLE table_68417 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when there was a loss of Francisco (1-1)?
| SELECT "Opponent" FROM table_68417 WHERE "Loss" = 'francisco (1-1)' | wikisql |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | SELECT AVG(ViewCount * 1.0) AS view_count, AVG(AnswerCount * 1.0) AS ans_count, AVG(FavoriteCount * 1.0) AS fav_count, AVG(CommentCount * 1.0) AS com_count, COUNT(Id) AS question_count FROM Posts WHERE PostTypeId = 1 | sede |
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 WHERE demographic.insurance = "Private" AND demographic.dob_year < "2152" | mimicsql_data |
CREATE TABLE table_203_686 (
id number,
"release date" text,
"album" text,
"record label" text,
"uk albums chart" number,
"u.s. billboard 200 chart" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- does change rank higher than standards on the u... | SELECT (SELECT "u.s. billboard 200 chart" FROM table_203_686 WHERE "album" = 'change') < (SELECT "u.s. billboard 200 chart" FROM table_203_686 WHERE "album" = 'standards') | squall |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid num... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'peripheral vascular ischemia - with claudication')... | eicu |
CREATE TABLE table_train_279 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"estimated_glomerular_filtration_rate_egfr" int,
"fasting_plasma_glucose" int,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"NOUSE" float
)
-- Using valid SQLit... | SELECT * FROM table_train_279 WHERE hemoglobin_a1c_hba1c >= 6.5 AND hemoglobin_a1c_hba1c <= 10.5 | criteria2sql |
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 mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb 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 person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND pers... | css |
CREATE TABLE table_204_783 (
id number,
"position" text,
"player" text,
"free agency\ntag" text,
"date signed" text,
"2013 team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many free agents did this team pick up this season ?
| SELECT COUNT(*) FROM table_204_783 | squall |
CREATE TABLE table_34495 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest pick of the back player from round 28?
| SELECT MAX("Pick") FROM table_34495 WHERE "Position" = 'back' AND "Round" = '28' | wikisql |
CREATE TABLE table_15619 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played women's singles in the year after 2006 ... | SELECT "Women's singles" FROM table_15619 WHERE "Year" > '2006' AND "Men's singles" = 'cancelled' | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "43401" AND lab.fluid = "Joint Fluid" | mimicsql_data |
CREATE TABLE table_26041144_11 (
matches INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of matches for a record holder?
| SELECT MIN(matches) FROM table_26041144_11 | sql_create_context |
CREATE TABLE table_11078 (
"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 home team of Lake Oval?
| SELECT "Home team" FROM table_11078 WHERE "Venue" = 'lake oval' | wikisql |
CREATE TABLE table_15239 (
"Company" text,
"Plan name" text,
"Technology" text,
"Maximum download speed/ kbps" text,
"Data limit/ GB" text,
"Monthly price incl. VAT/ CZK" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What plan has monthly price... | SELECT "Plan name" FROM table_15239 WHERE "Monthly price incl. VAT/ CZK" = '300, 500, 750, 1000' | wikisql |
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find n... | SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T2.name = 'Sony') | spider |
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
... | 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 = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FR... | atis |
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_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.UNIVALENT FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '17172279' AND t_kc21.MED_SER_ORG_NO = '7202022') ORDER BY t_kc22.UNIVALENT DESC LIMIT 1 | css |
CREATE TABLE table_name_8 (
draws INTEGER,
goal_difference VARCHAR,
points VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest draws that have 31 for points, wins greater than 12, with a goal difference less than 11?
| SELECT MAX(draws) FROM table_name_8 WHERE points = 31 AND wins > 12 AND goal_difference < 11 | sql_create_context |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'tooth extraction nec'... | mimic_iii |
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP... | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY CRS_CODE, EMP_FNAME ORDER BY COUNT(EMP_FNAME) DESC | nvbench |
CREATE TABLE table_name_74 (
score VARCHAR,
game VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score against Portland in game numbers under 20?
| SELECT score FROM table_name_74 WHERE game < 20 AND team = "portland" | sql_create_context |
CREATE TABLE table_17415 (
"Train No." text,
"Train Name" text,
"Origin" text,
"Destination" text,
"Frequency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How often does a train leave sealdah?
| SELECT "Frequency" FROM table_17415 WHERE "Origin" = 'Sealdah' | wikisql |
CREATE TABLE table_8704 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record for the Team ... | SELECT "Record" FROM table_8704 WHERE "Team" = 'indiana' | wikisql |
CREATE TABLE table_name_60 (
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the home team St Kilda?
| SELECT home_team AS score FROM table_name_60 WHERE home_team = "st kilda" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.