instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_68565 (
"Station" text,
"Frequency" real,
"Network Affiliation" text,
"Format" text,
"City of License" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city of license has an independent network affiliation,... | SELECT "City of License" FROM table_68565 WHERE "Network Affiliation" = 'independent' AND "Format" = 'variety' AND "Station" = 'kkup' | wikisql |
CREATE TABLE table_242 (
"Model" text,
"Engine make/Capacity" text,
"Power kW@rpm" text,
"Torque Nm@rpm" text,
"Transmission Make/Type/Speed" text,
"GVM (kg) Technical Capacity" text,
"GCM (kg) Technical Capacity" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "GVM (kg) Technical Capacity" FROM table_242 WHERE "Model" = '15.180E' | wikisql |
CREATE TABLE table_name_43 (
player VARCHAR,
round VARCHAR,
college_junior_club_team__league_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player who was from Dynamo-2 moscow (rus) and was picked after round 5?
| SELECT player FROM table_name_43 WHERE round > 5 AND college_junior_club_team__league_ = "dynamo-2 moscow (rus)" | sql_create_context |
CREATE TABLE table_4690 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is arizona state overall lowest?
| SELECT MIN("Overall") FROM table_4690 WHERE "School/Club Team" = 'arizona state' | wikisql |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '36587624' AND t_kc22.STA_DATE BETWEEN '2007-08-26' AND '2014-09-01' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE table_28715942_3 (
vocal_percussionist VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the vocal percussionist when stevie wonder was the original artist?
| SELECT vocal_percussionist FROM table_28715942_3 WHERE original_artist = "Stevie Wonder" | sql_create_context |
CREATE TABLE table_72443 (
"County" text,
"Population" real,
"Per capita income" text,
"Median household income" text,
"Median family income" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the median household income of sacramento?
| SELECT "Median household income" FROM table_72443 WHERE "County" = 'Sacramento' | wikisql |
CREATE TABLE table_2118 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Left" real,
"Current Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which con... | SELECT "Current Conference" FROM table_2118 WHERE "Nickname" = 'Lions' | wikisql |
CREATE TABLE table_name_26 (
frequency VARCHAR,
branding VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Frequency has a Branding of country 600?
| SELECT frequency FROM table_name_26 WHERE branding = "country 600" | sql_create_context |
CREATE TABLE table_name_73 (
competition VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition has a Result of 1 2?
| SELECT competition FROM table_name_73 WHERE result = "1–2" | sql_create_context |
CREATE TABLE table_name_4 (
frequency VARCHAR,
order_part_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the frequency of part number tmn550dcr23gm?
| SELECT frequency FROM table_name_4 WHERE order_part_number = "tmn550dcr23gm" | sql_create_context |
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 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 hz... | css |
CREATE TABLE table_name_56 (
long INTEGER,
yards VARCHAR,
returns VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the lowest Long that has the Yards 293, and the Returns smaller than 16?
| SELECT MIN(long) FROM table_name_56 WHERE yards = 293 AND returns < 16 | sql_create_context |
CREATE TABLE table_203_497 (
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.
-- who has won the most bronze medals ?
| SELECT "nation" FROM table_203_497 ORDER BY "bronze" DESC LIMIT 1 | squall |
CREATE TABLE table_name_46 (
high_rebounds VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high rebounds of game 68?
| SELECT high_rebounds FROM table_name_46 WHERE game = 68 | sql_create_context |
CREATE TABLE table_name_73 (
title VARCHAR,
date VARCHAR,
artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title was created in 2001 by Mellow?
| SELECT title FROM table_name_73 WHERE date = 2001 AND artist = "mellow" | sql_create_context |
CREATE TABLE table_name_61 (
wkts INTEGER,
player VARCHAR,
ovrs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Wkts, when Player is Beau Casson, and when Ovrs is greater than 32?
| SELECT AVG(wkts) FROM table_name_61 WHERE player = "beau casson" AND ovrs > 32 | 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 t_kc21.MED_ORG_DEPT_CD, t_kc21.IN_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '2125522' GROUP BY t_kc21.MED_ORG_DEPT_CD, t_kc21.IN_DIAG_DIS_NM | css |
CREATE TABLE table_2182654_3 (
title VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episode directed by Miguel Arteta?
| SELECT title FROM table_2182654_3 WHERE directed_by = "Miguel Arteta" | sql_create_context |
CREATE TABLE table_43161 (
"Year" text,
"Champion" text,
"Country" text,
"To par" text,
"Margin of victory" text,
"Winner's share ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the margin of victory with a 183,800 Winner's share
| SELECT "Margin of victory" FROM table_43161 WHERE "Winner's share ( $ )" = '183,800' | wikisql |
CREATE TABLE table_69014 (
"Year" text,
"Venue" text,
"Winners" text,
"Runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for 3rd place when the venue was Pardubice?
| SELECT "3rd place" FROM table_69014 WHERE "Venue" = 'pardubice' | wikisql |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT JOB_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE producer (
pid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year i... | SELECT movie.budget, movie.title FROM directed_by, director, movie WHERE director.did = directed_by.did AND director.name = 'Quentin Tarantino' AND movie.mid = directed_by.msid ORDER BY movie.release_year DESC LIMIT 1 | imdb |
CREATE TABLE table_2897457_8 (
pick__number VARCHAR,
position VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What pick number was the Boston Bruins selection for defence?
| SELECT pick__number FROM table_2897457_8 WHERE position = "Defence" AND nhl_team = "Boston Bruins" | sql_create_context |
CREATE TABLE table_66296 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the to par for $242,813 with score 68-72-74-66=280
| SELECT "To par" FROM table_66296 WHERE "Money ( $ )" = '242,813' AND "Score" = '68-72-74-66=280' | wikisql |
CREATE TABLE table_26171 (
"Warship" text,
"tons ( L.ton )" real,
"Horse- power" real,
"Speed ( Knots )" text,
"Armour (Inch)" text,
"Main Artillery" text,
"Built Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's Blanco Encalada's ... | SELECT "Main Artillery" FROM table_26171 WHERE "Warship" = 'Blanco Encalada' | wikisql |
CREATE TABLE table_name_22 (
name VARCHAR,
year VARCHAR,
__est_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what name was on the year 2012
| SELECT name FROM table_name_22 WHERE year * __est_ = "2012" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... | 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 = '010-26737')) AND NOT vitalperiodic.respiration IS N... | eicu |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'methylene blue 1%') | mimic_iii |
CREATE TABLE table_name_77 (
team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Team that has the Date of march 17?
| SELECT team FROM table_name_77 WHERE date = "march 17" | 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 restriction ... | SELECT COUNT(DISTINCT flight.flight_id) FROM fare, fare_basis, flight, flight_fare WHERE (fare_basis.class_type = 'FIRST' AND fare.fare_basis_code = fare_basis.fare_basis_code AND flight_fare.fare_id = fare.fare_id AND NOT flight.departure_time BETWEEN 601 AND 1759 AND flight.flight_id = flight_fare.flight_id) AND flig... | atis |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
... | SELECT (SELECT chartevents.valuenum 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 = 32804) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.item... | mimic_iii |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeI... | SELECT m.PostId AS "post_link", m.CreationDate AS "Migration date" FROM PostHistory AS m INNER JOIN PostHistory AS b ON m.PostId = b.PostId AND b.PostHistoryTypeId = 2 WHERE m.PostHistoryTypeId = 36 AND (b.Text LIKE '%](/q%' OR b.Text LIKE '%](/a%' OR b.Text LIKE '%](/u%' OR b.Text LIKE '%](/p%') ORDER BY m.CreationDat... | sede |
CREATE TABLE table_28588 (
"Engine Family" text,
"Cylinder Layout" text,
"Displacement(s)" text,
"Injection type" text,
"Years produced" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the engine family MaxxForce 11, what is the years produced?
| SELECT "Years produced" FROM table_28588 WHERE "Engine Family" = 'MaxxForce 11' | wikisql |
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 COUNT(*) FROM (SELECT jybgb.KSBM FROM mzjzjlb JOIN jybgb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '4607031' AND jybgb.BGRQ BETWEEN '2006-03-27' AND '2016-09-04' GROUP BY jybgb.KSBM HAVING COUNT(*) <= 19) AS T | css |
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Student_Tests_Taken (
registration_id IN... | SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" GROUP BY date_test_taken ORDER BY COUNT(date_test_taken) DESC | nvbench |
CREATE TABLE table_9605 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which college had an overall smaller than 315 in round 17?
| SELECT "College" FROM table_9605 WHERE "Overall" < '315' AND "Round" = '17' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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.insurance = "Private" AND demographic.discharge_location = "HOME HEALTH CARE" | mimicsql_data |
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_DIAG_DIS_CD, qtb.IN_DIAG_DIS_NM FROM qtb WHERE qtb.MED_CLINIC_ID = '46607257909' UNION SELECT gyb.IN_DIAG_DIS_CD, gyb.IN_DIAG_DIS_NM FROM gyb WHERE gyb.MED_CLINIC_ID = '46607257909' UNION SELECT zyb.IN_DIAG_DIS_CD, zyb.IN_DIAG_DIS_NM FROM zyb WHERE zyb.MED_CLINIC_ID = '46607257909' UNION SELECT mzb.IN_DIA... | css |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT * FROM person_info JOIN hz_info JOIN zyjzjlb JOIN hz_info_zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info_zyjz... | css |
CREATE TABLE table_53375 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Turkey scorers" text,
"Match report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the date for nihat kahveci
| SELECT "Date" FROM table_53375 WHERE "Turkey scorers" = 'nihat kahveci' | wikisql |
CREATE TABLE table_name_96 (
crowd INTEGER,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest crowd for a Home team of carlton?
| SELECT MAX(crowd) FROM table_name_96 WHERE home_team = "carlton" | sql_create_context |
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 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 = '13308271628' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY SUM(t_kc22.SELF_PAY_AMO) DES... | css |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE T... | SELECT Id, UserId, COUNT(1) AS cnt FROM (SELECT q.Id, q.OwnerUserId AS userid FROM Posts AS q UNION ALL SELECT q.Id, a.OwnerUserId AS userid FROM Posts AS q LEFT JOIN Posts AS a ON (q.Id = a.ParentId) UNION ALL SELECT q.Id, qc.UserId AS userid FROM Posts AS q LEFT JOIN Posts AS a ON (q.Id = a.ParentId) LEFT JOIN Commen... | sede |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
... | SELECT PHONE_NUMBER, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | nvbench |
CREATE TABLE table_6197 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Steeler's record when they played against the new y... | SELECT "Record" FROM table_6197 WHERE "Opponent" = 'new york jets' | wikisql |
CREATE TABLE zyb (
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 t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.IN_DIAG_DIS_CD = 'C17.069' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.IN_DIAG_DIS_CD = 'C17.069' UN... | css |
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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Family hx-malignancy NEC" AND prescriptions.route = "INHALATION" | mimicsql_data |
CREATE TABLE invoices (
id INTEGER,
customer_id INTEGER,
invoice_date TIMESTAMP,
billing_address VARCHAR(70),
billing_city VARCHAR(40),
billing_state VARCHAR(40),
billing_country VARCHAR(40),
billing_postal_code VARCHAR(10),
total NUMERIC(10,2)
)
CREATE TABLE employees (
id INTE... | SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state ORDER BY billing_state DESC | nvbench |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text... | SELECT DISTINCT airport_code FROM airport WHERE airport_code = 'MCO' | atis |
CREATE TABLE table_55473 (
"Player" text,
"No.(s)" real,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of years did he play the... | SELECT SUM("No.(s)") FROM table_55473 WHERE "Position" = 'forward' AND "School/Club Team/Country" = 'oregon state' | wikisql |
CREATE TABLE table_name_98 (
revenue__bn INTEGER,
rank VARCHAR,
profit__bn$_ VARCHAR,
assets__bn$_ VARCHAR,
headquarters VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of revenue in Hong Kong with a rank greater than 42, less than... | SELECT SUM(revenue__bn) AS $_ FROM table_name_98 WHERE assets__bn$_ < 3.46 AND headquarters = "hong kong" AND profit__bn$_ > 0.17 AND rank > 42 | sql_create_context |
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 (SELECT COUNT(*) FROM hz_info JOIN zzmzjzjlb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE hz_info.RYBH = '24804917' AND zzmzjzjlb.JZKSRQ BETWEEN '2006-06-09' AND '2010-08-30' UNION SELECT COUNT(*) FROM hz_info JOIN fzzmzjzjlb ON hz_info.YLJGDM = fzzmzjz... | css |
CREATE TABLE table_name_32 (
grid INTEGER,
laps VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?
| SELECT MIN(grid) FROM table_name_32 WHERE laps < 65 AND driver = "tim schenken" | sql_create_context |
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
)
CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_of_Pieces int
)
CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
Role text
)
... | SELECT Date, COUNT(Date) FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = "Violin" GROUP BY Date | nvbench |
CREATE TABLE table_51596 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city is Naples Airport located in?
| SELECT "City" FROM table_51596 WHERE "Airport" = 'naples airport' | wikisql |
CREATE TABLE table_1828368_1 (
commune VARCHAR,
area__km_2__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What commune has an area of 12.4 sq.km.?
| SELECT commune FROM table_1828368_1 WHERE area__km_2__ = "12.4" | sql_create_context |
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 (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4044' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospit... | eicu |
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 DIRE_TYPE FROM t_kc22 WHERE MED_CLINIC_ID = '43569237618' AND SOC_SRT_DIRE_NM = '苯妥英钠片' | css |
CREATE TABLE table_36667 (
"Couple" text,
"Score" text,
"Style" text,
"Music" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result when the score was 21 (7, 6, 8)?
| SELECT "Result" FROM table_36667 WHERE "Score" = '21 (7, 6, 8)' | wikisql |
CREATE TABLE table_203_771 (
id number,
"#" number,
"artist" text,
"featuring" text,
"title" text,
"version" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- are there at least five tracks featuring sandy on the 2005 best of ben... | SELECT (SELECT COUNT(*) FROM table_203_771) >= 5 | squall |
CREATE TABLE table_59587 (
"Name" text,
"E-mail server" text,
"Faxing" text,
"Instant messaging" text,
"Telephony" text,
"Videoconferencing" text,
"Web conferencing" text,
"Data conferencing" text,
"Application sharing" text,
"Electronic meeting system" text,
"Synchronous con... | SELECT "Instant messaging" FROM table_59587 WHERE "Telephony" = 'yes with integrated sametime' | wikisql |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(School_ID) DESC | nvbench |
CREATE TABLE table_43337 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Cuts that were made with a Top-10 that is la... | SELECT AVG("Cuts made") FROM table_43337 WHERE "Top-10" > '9' | wikisql |
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT decor, COUNT(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE mzjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
... | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDSM = '器质性精神综合征' AND jyjgzbb.JCZBMC ... | css |
CREATE TABLE table_47895 (
"Issued" text,
"Type" text,
"Design" text,
"Serial format" text,
"Serials issued" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which design has a serial format of AB-12-34?
| SELECT "Design" FROM table_47895 WHERE "Serial format" = 'ab-12-34' | wikisql |
CREATE TABLE table_21936 (
"Name or route" text,
"type" text,
"elevation groundstation" real,
"elevation mountainstation" real,
"slope length" real,
"capacity in persons/hour" real,
"construction year(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT MIN("capacity in persons/hour") FROM table_21936 WHERE "construction year(s)" = '1983' | wikisql |
CREATE TABLE table_23509 (
"No." real,
"Barangay" text,
"Area (in km 2 )" text,
"Rank" real,
"Population (2000)" real,
"Population (2007)" real,
"Population (2010)" real,
"Population Density (2010)" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Population (2010)" FROM table_23509 WHERE "Population Density (2010)" = '3,965.02' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 = "ASIAN" AND demographic.dod_year <= "2158.0" | mimicsql_data |
CREATE TABLE table_name_60 (
quantity INTEGER,
year VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of quantity for before 2011 model slf-230
| SELECT SUM(quantity) FROM table_name_60 WHERE year < 2011 AND model = "slf-230" | sql_create_context |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_... | SELECT EMPLOYEE_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_2187178_1 (
listed_owner_s_ VARCHAR,
primary_sponsor_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the listen owners for repairone
| SELECT listed_owner_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "RepairOne" | sql_create_context |
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 jybgb.JYJSGH, jybgb.JYJSQM FROM jybgb WHERE jybgb.BGDH = '19869602899' | css |
CREATE TABLE table_57267 (
"Year" real,
"Network" text,
"Lap-by-lap" text,
"s Color commentator" text,
"Pre-Race Host" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Network has Bill Weber for the Lap-by-lap?
| SELECT "Network" FROM table_57267 WHERE "Lap-by-lap" = 'bill weber' | wikisql |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE... | SELECT COUNT(DISTINCT icustays.icustay_id) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 46484 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) | mimic_iii |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM, UNIVALENT FROM t_kc22 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '陈颖然' AND MED_SER_ORG_NO = '5544241') ORDER BY UNIVALENT DESC LIMIT 1 | css |
CREATE TABLE table_3404 (
"County" text,
"Town/City" text,
"Milepost" text,
"Station" text,
"Connections" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what city or town is Stratford (limited service)?
| SELECT "Town/City" FROM table_3404 WHERE "Station" = 'Stratford (Limited service)' | wikisql |
CREATE TABLE table_name_47 (
date VARCHAR,
results¹ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date were the Results 4:0?
| SELECT date FROM table_name_47 WHERE results¹ = "4:0" | sql_create_context |
CREATE TABLE table_45121 (
"Event" text,
"2006\u201307" text,
"2009\u201310" text,
"2010\u201311" text,
"2011\u201312" text,
"2012\u201313" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the event when 2011-12 is n/a?
| SELECT "Event" FROM table_45121 WHERE "2011\u201312" = 'n/a' | wikisql |
CREATE TABLE table_name_12 (
engine VARCHAR,
transmission VARCHAR,
acceleration_0_100km_h__0_62mph_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the engine when the transmission was 4-speed automatic, and acceleration 0 100km/h (0 62mph) was 10... | SELECT engine FROM table_name_12 WHERE transmission = "4-speed automatic" AND acceleration_0_100km_h__0_62mph_ = "10.4 s" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT demographic.gender, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_80447 (
"Rank" 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 gold that has bronze less than 2, a silver of 1 and total more than 4?
| SELECT SUM("Gold") FROM table_80447 WHERE "Bronze" < '2' AND "Silver" = '1' AND "Total" > '4' | wikisql |
CREATE TABLE table_63842 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Format of the September 22, 2008 release with Catalog number RTRADCD491?
| SELECT "Format" FROM table_63842 WHERE "Catalog" = 'rtradcd491' AND "Date" = 'september 22, 2008' | wikisql |
CREATE TABLE table_78830 (
"Country" text,
"Career" text,
"Victories" real,
"Super G" text,
"Giant Slalom" text,
"Slalom" text,
"Combined" text,
"Parallel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Super G has Victories of 26, ... | SELECT "Super G" FROM table_78830 WHERE "Victories" = '26' AND "Country" = 'austria' | wikisql |
CREATE TABLE table_name_81 (
year VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Year, when Winner is 'Johnathan Gray'?
| SELECT COUNT(year) FROM table_name_81 WHERE winner = "johnathan gray" | sql_create_context |
CREATE TABLE instructor (
name VARCHAR,
salary VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the instructor with the highest salary?
| SELECT name FROM instructor ORDER BY salary DESC LIMIT 1 | sql_create_context |
CREATE TABLE table_name_28 (
round INTEGER,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Round, when the Opponent is Junior Pitbull?
| SELECT MAX(round) FROM table_name_28 WHERE opponent = "junior pitbull" | sql_create_context |
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 (SELECT vitalperiodic.sao2 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-22108') AND patient.unitdischargetime IS NULL) AND... | eicu |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid... | SELECT MIN(vitalperiodic.respiration) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-15363')) AND NOT vitalperiodic.respiration IS ... | eicu |
CREATE TABLE table_203_497 (
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.
-- what are the total number of bronze medals sri lanka have earned ... | SELECT "bronze" FROM table_203_497 WHERE "nation" = 'sri lanka' | squall |
CREATE TABLE table_3603 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what district is the incumbent Charles Fisher?
| SELECT "District" FROM table_3603 WHERE "Incumbent" = 'Charles Fisher' | wikisql |
CREATE TABLE table_23069 (
"Previous season 2007/2008" text,
"Team" text,
"Town" text,
"Arena (capacity)" text,
"Website" text,
"Head Coach" text,
"Foreign Players (max. 2)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the foreign ... | SELECT "Foreign Players (max. 2)" FROM table_23069 WHERE "Town" = 'Moscow' | wikisql |
CREATE TABLE table_name_24 (
location VARCHAR,
enzyme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the enzyme Uroporphyrinogen iii Synthase?
| SELECT location FROM table_name_24 WHERE enzyme = "uroporphyrinogen iii synthase" | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT (SELECT COUNT(*) FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '水光耀' AND mzjzjlb.JZKSRQ BETWEEN '2005-01-09' AND '2013-08-02') + (SELECT COUNT(*) FROM person_info J... | css |
CREATE TABLE table_name_55 (
city VARCHAR,
state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city is in Georgia?
| SELECT city FROM table_name_55 WHERE state = "georgia" | sql_create_context |
CREATE TABLE table_16809 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"TV" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many crowds watched... | SELECT COUNT("Attendance") FROM table_16809 WHERE "Record" = '1-3' | wikisql |
CREATE TABLE table_63987 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the team 2 in the game with a team 1 of Liege Basket?
| SELECT "Team #2" FROM table_63987 WHERE "Team #1" = 'liege basket' | wikisql |
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE management (
department_ID int,
head_ID int,
tempor... | SELECT Creation, SUM(Budget_in_Billions) FROM department | 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 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.diagnosis = "CELO-VESSICLE FISTULA" AND demographic.dod_year <= "2179.0" | mimicsql_data |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.