instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_204_703 (
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 country only received gold medals in the 1994 winter olympic... | SELECT "nation" FROM table_204_703 WHERE "gold" > 0 AND "silver" = 0 AND "bronze" = 0 | squall |
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | 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 (((flight.departure_time BETWEEN 1200 AND 1800) AND (flight.stops = 0)) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND fl... | atis |
CREATE TABLE table_name_15 (
runs VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the runs for b lee
| SELECT runs FROM table_name_15 WHERE player = "b lee" | sql_create_context |
CREATE TABLE table_name_47 (
place INTEGER,
televote_sms VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the place when the televote/sms is 2.39%?
| SELECT SUM(place) FROM table_name_47 WHERE televote_sms = "2.39%" | sql_create_context |
CREATE TABLE table_7770 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a to par of +2 and a score of 78-69-68=215?
| SELECT "Player" FROM table_7770 WHERE "To par" = '+2' AND "Score" = '78-69-68=215' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid ... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'fiberoptic colonoscopy - with biopsy' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-4 year')) | eicu |
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 prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.icd9_code = "4168" | mimicsql_data |
CREATE TABLE table_name_48 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?
| SELECT MAX(1987) FROM table_name_48 WHERE 1995 < 1995 AND 1999 < 9 | sql_create_context |
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 MED_EXP_DET_ID FROM t_kc22 WHERE MED_CLINIC_ID = '96400515777' AND (REMOTE_SETTLE_FLG = '异地1' OR REMOTE_SETTLE_FLG = '异地2') | css |
CREATE TABLE table_75909 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest game that has 32 points and a team rank larger than 4 named montepaschi siena
| SELECT MAX("Games") FROM table_75909 WHERE "Points" = '32' AND "Team" = 'montepaschi siena' AND "Rank" > '4' | wikisql |
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT st.TagName, tt.TagName, ts.CreationDate, ts.OwnerUserId AS "user_link" FROM TagSynonyms AS ts INNER JOIN Tags AS st ON ts.SourceTagName = st.TagName INNER JOIN Tags AS tt ON ts.TargetTagName = tt.TagName WHERE ts.ApprovalDate IS NULL ORDER BY ts.CreationDate DESC | sede |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description t... | SELECT DisplayName AS Name, COUNT(Badges.Name) AS Badges FROM Users, Badges WHERE Users.Id = Badges.UserId AND Badges.Name IN ('Populist') GROUP BY DisplayName ORDER BY Badges DESC | sede |
CREATE TABLE table_name_55 (
rank INTEGER,
current_seating_capacity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Rank, when the Current Seating Capacity is 137,000?
| SELECT MIN(rank) FROM table_name_55 WHERE current_seating_capacity = 137 OFFSET 000 | sql_create_context |
CREATE TABLE table_30186 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number in s... | SELECT COUNT("No. in season") FROM table_30186 WHERE "Title" = 'The Battle of Evermore' | wikisql |
CREATE TABLE table_10408617_5 (
bts_retail_price__regulated_ VARCHAR,
tariff_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the bts retail price (regulated) for tariff code g10?
| SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "g10" | sql_create_context |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalpe... | SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'anticonvulsants' AND STRFTIME('%y', trea... | eicu |
CREATE TABLE table_name_50 (
draw VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the points are 98 what is the draw?
| SELECT COUNT(draw) FROM table_name_50 WHERE points = 98 | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND prescriptions.formulary_drug_cd = "INRHI" | mimicsql_data |
CREATE TABLE table_name_67 (
home_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team played at Glenferrie Oval?
| SELECT home_team FROM table_name_67 WHERE venue = "glenferrie oval" | sql_create_context |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_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_kc21.MED_SER_ORG_NO FROM t_kc21 WHERE t_kc21.PERSON_ID = '59317342' AND t_kc21.IN_HOSP_DATE BETWEEN '2001-04-05' AND '2004-07-31' GROUP BY t_kc21.MED_SER_ORG_NO ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE table_203_518 (
id number,
"institution" text,
"location" text,
"nickname" text,
"founded" number,
"type" text,
"enrollment" number,
"joined\nmac" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many are enrolled in pri... | SELECT SUM("enrollment") FROM table_203_518 WHERE "type" = 'private/catholic' | squall |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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
)
CR... | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24921 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) | mimic_iii |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate ti... | SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'gstr mcsl hyprt w hmrg' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'gstr mcsl hyprt w hmrg' | mimic_iii |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGR... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info_mzjz... | css |
CREATE TABLE table_27573848_18 (
points_classification VARCHAR,
general_classification VARCHAR,
mountains_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the mountains classification is Mathias Frank, and the General Classification is Fa... | SELECT points_classification FROM table_27573848_18 WHERE general_classification = "Fabian Cancellara" AND mountains_classification = "Mathias Frank" | sql_create_context |
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 OUT_DIAG_DOC_CD, OUT_DIAG_DOC_NM FROM t_kc21 WHERE PERSON_NM = '朱红叶' GROUP BY OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC | css |
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 procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2108" AND procedures.long_title = "Continuous invasive mechanical ventilation for less than 96 consecutive hours" | mimicsql_data |
CREATE TABLE table_4320 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Vikings points" real,
"Opponents" real,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the highest opponents for rec... | SELECT MAX("Opponents") FROM table_4320 WHERE "Record" = '7-3' AND "Vikings points" > '7' | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE... | SELECT JOB_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY DEPARTMENT_ID DESC | nvbench |
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 SUM(t_kc24.OVE_PAY) FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.PERSON_NM = '范翔飞' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-06-23' AND '2012-10-12' UNION SELECT SUM(t_kc24.OVE_PAY) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.PERSON_NM = '范翔飞' AND t_kc2... | css |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "DEAD/EXPIRED" AND diagnoses.long_title = "Aftercare for healing traumatic fracture of lower leg" | mimicsql_data |
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 jyjgzbb WHERE JCZBMC = (SELECT JCZBMC FROM jyjgzbb WHERE JYZBLSH = '27389219857') AND JCZBJGDW = (SELECT JCZBJGDW FROM jyjgzbb WHERE JYZBLSH = '27389219857') AND JCZBJGDL < (SELECT JCZBJGDL FROM jyjgzbb WHERE JYZBLSH = '27389219857') | css |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info... | css |
CREATE TABLE table_name_99 (
overall INTEGER,
round VARCHAR,
pick__number VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the overall number for a pick of #10, from Louisiana Tech, and a round bigger than 3?
| SELECT SUM(overall) FROM table_name_99 WHERE pick__number = 10 AND college = "louisiana tech" AND round > 3 | sql_create_context |
CREATE TABLE table_44510 (
"Year" text,
"Supplier" text,
"Chest" text,
"Sleeves" text,
"Back" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Sleeves have a Back of Unknown?
| SELECT "Sleeves" FROM table_44510 WHERE "Back" = 'unknown' | wikisql |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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,
H... | SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '9519842' AND t_kc21.IN_HOSP_DATE BETWEEN '2012-09-08' AND '2013-11-18' AND t_kc21.CLINIC_TYPE = '门诊' | css |
CREATE TABLE table_56065 (
"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.
-- Who is the home team when the crowd is over 32,4... | SELECT "Home team" FROM table_56065 WHERE "Crowd" > '32,485' | wikisql |
CREATE TABLE table_name_63 (
crowd INTEGER,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average crowd size when the away team was South Melbourne?
| SELECT AVG(crowd) FROM table_name_63 WHERE away_team = "south melbourne" | sql_create_context |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE comment_instructor (
instructor_id int... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%International Finance Management%' OR course.description LIKE '%International Finance Management... | advising |
CREATE TABLE table_25198 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ma... | SELECT COUNT("Game") FROM table_25198 WHERE "Record" = '29-10' | wikisql |
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_... | SELECT card_type_code, COUNT(card_type_code) FROM Customers_Cards GROUP BY card_type_code ORDER BY card_type_code DESC | nvbench |
CREATE TABLE table_9861 (
"Date" text,
"Name" text,
"Nationality" text,
"Tonnage (GRT)" real,
"Fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name has a Tonnage (GRT) larger than 4,071, and a Nationality of united kingdom, and a Fate of ... | SELECT "Name" FROM table_9861 WHERE "Tonnage (GRT)" > '4,071' AND "Nationality" = 'united kingdom' AND "Fate" = 'damaged' | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2158.0" AND procedures.icd9_code = "3607" | mimicsql_data |
CREATE TABLE table_64851 (
"Constructor" text,
"Chassis" text,
"Starts" real,
"Finishes" real,
"Wins" real,
"Podiums" real,
"Stage wins" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest finishes when the ... | SELECT MAX("Finishes") FROM table_64851 WHERE "Points" < '337' AND "Stage wins" = '2' AND "Wins" > '0' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'schizophrenia' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-3 year')) | eicu |
CREATE TABLE table_75571 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the round of the match with Emanuel Newton ... | SELECT "Round" FROM table_75571 WHERE "Opponent" = 'emanuel newton' | wikisql |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId num... | SELECT Id AS "post_link", * FROM Comments WHERE UserId = 1438393 AND 'text' LIKE '%accept%' | sede |
CREATE TABLE table_name_12 (
high_points VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is High Points, when High Rebounds is 'Ron Artest (9)'?
| SELECT high_points FROM table_name_12 WHERE high_rebounds = "ron artest (9)" | sql_create_context |
CREATE TABLE table_name_94 (
played INTEGER,
points VARCHAR,
drawn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Played is the highest one that has Points of 5, and a Drawn smaller than 1?
| SELECT MAX(played) FROM table_name_94 WHERE points = 5 AND drawn < 1 | sql_create_context |
CREATE TABLE table_name_53 (
home VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the home team of the game on December 21?
| SELECT home FROM table_name_53 WHERE date = "december 21" | sql_create_context |
CREATE TABLE table_60327 (
"Location" text,
"Year" real,
"Champion" text,
"Runner-up" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Year larger than 2004, and a Champion of ga l monfils?
| SELECT "Score" FROM table_60327 WHERE "Year" > '2004' AND "Champion" = 'gaël monfils' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmenti... | SELECT t3.treatmentname FROM (SELECT t2.treatmentname, 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 = 'liver ca - hepatocellular ca' AND DATETI... | eicu |
CREATE TABLE manufacturer (
manufacturer_id number,
open_year number,
name text,
num_of_factories number,
num_of_shops number
)
CREATE TABLE furniture_manufacte (
manufacturer_id number,
furniture_id number,
price_in_dollar number
)
CREATE TABLE furniture (
furniture_id number,
... | SELECT open_year, name FROM manufacturer ORDER BY num_of_shops DESC LIMIT 1 | spider |
CREATE TABLE table_22355_29 (
silver INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest amount of silver?
| SELECT MIN(silver) FROM table_22355_29 | sql_create_context |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM wdmzjzjlb JOIN jybgb ON wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE wdmzjzjlb.YLJGDM = '8721079' AND jybgb.BGRQ BETWEEN '2006-09-08' AND '2010-10-18' GROUP BY jybgb.KSBM HAVING COUNT(*) >= 16 UNION SELECT jybgb.KSBM FROM bdmzjzjlb ... | css |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,... | SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'acetaminophen 325 mg tab' AND patient.uniquepid = '007-849' AND DATETIME(medication.drugstarttime, 'start of month') = DA... | eicu |
CREATE TABLE table_34664 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Length" text,
"Participation as" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Participation as of actor, film editor has what average year?
| SELECT AVG("Year") FROM table_34664 WHERE "Participation as" = 'actor, film editor' | wikisql |
CREATE TABLE table_37204 (
"School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number founded for the nicknam... | SELECT COUNT("Founded") FROM table_37204 WHERE "Nickname" = 'mountain hawks' | wikisql |
CREATE TABLE table_8360 (
"Date" text,
"Name of ship" text,
"Nationality" text,
"Tonnage" real,
"Fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average tonnage for Beatus, raided on 18 October 1940?
| SELECT AVG("Tonnage") FROM table_8360 WHERE "Date" = '18 october 1940' AND "Name of ship" = 'beatus' | wikisql |
CREATE TABLE table_16922657_2 (
w INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum Wins a team has?
| SELECT MIN(w) FROM table_16922657_2 | sql_create_context |
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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | 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 = "Candidal esophagitis" AND prescriptions.route = "IV" | mimicsql_data |
CREATE TABLE table_5176 (
"Rank" text,
"Film" text,
"Director(s)" text,
"Writer(s)" text,
"Production Company" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the production company for the nominated film, Badmouth?
| SELECT "Production Company" FROM table_5176 WHERE "Rank" = 'nominated' AND "Film" = 'badmouth' | wikisql |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following questions for the... | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code DESC | nvbench |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "20" AND diagnoses.icd9_code = "49320" | mimicsql_data |
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 DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'ipratropium-albuterol') | eicu |
CREATE TABLE table_11816 (
"Pos." real,
"Wins" real,
"Ties" real,
"Losses" real,
"Goals" text,
"Goal Diff." real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has a Losses value larger than 1 and a Wins value smaller th... | SELECT SUM("Goal Diff.") FROM table_11816 WHERE "Losses" > '1' AND "Wins" < '0' | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "51" AND prescriptions.drug = "Metoprolol Tartrate" | mimicsql_data |
CREATE TABLE table_28611413_2 (
original_air_date VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is air date of the episode directed by John P. Kousakis?
| SELECT original_air_date FROM table_28611413_2 WHERE directed_by = "John P. Kousakis" | 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 gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_NM = '孔婉丽' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 1836.29) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '孔婉丽' AND fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc2... | css |
CREATE TABLE table_45179 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Xiong Xun a vassal?
| SELECT "From" FROM table_45179 WHERE "Name" = 'xiong xun' | wikisql |
CREATE TABLE table_27987623_3 (
episode VARCHAR,
viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode had viewership of 0.296 million?
| SELECT episode FROM table_27987623_3 WHERE viewers__millions_ = "0.296" | sql_create_context |
CREATE TABLE table_name_64 (
score VARCHAR,
money___$__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the player than won $450?
| SELECT score FROM table_name_64 WHERE money___$__ = 450 | sql_create_context |
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 hz_info (
KH text,
KLX number... | 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 = '4879097' AND jybgb.BGRQ BETWEEN '2000-04-27' AND '2007-01-01' GROUP BY jybgb.KSBM HAVING COUNT(*) < 28) AS T | css |
CREATE TABLE table_9692 (
"Year" real,
"Lansing (LAN)" text,
"Detroit (DTW)" text,
"Grand Rapids (GRR)" text,
"Flint (FNT)" text,
"Kalamazoo (AZO)" text,
"Saginaw (MBS)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the passenger f... | SELECT "Grand Rapids (GRR)" FROM table_9692 WHERE "Detroit (DTW)" = '$378.55' | wikisql |
CREATE TABLE table_name_77 (
total VARCHAR,
fa_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Total, when FA Cup is 1 0 (3)?
| SELECT total FROM table_name_77 WHERE fa_cup = "1 0 (3)" | sql_create_context |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperio... | SELECT t3.treatmentname FROM (SELECT t2.treatmentname, 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 = 'pneumonia - hospital acquired (not venti... | eicu |
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 COUNT(*) FROM person_info JOIN hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_in... | css |
CREATE TABLE table_75914 (
"Name" text,
"Height" text,
"Position" text,
"Year" text,
"Home Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height of the player from Las Vegas, NV?
| SELECT "Height" FROM table_75914 WHERE "Home Town" = 'las vegas, nv' | wikisql |
CREATE TABLE table_228973_9 (
no_in_series INTEGER,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number in the series for the episode directed by Harvey S. Laidman?
| SELECT MAX(no_in_series) FROM table_228973_9 WHERE directed_by = "Harvey S. Laidman" | sql_create_context |
CREATE TABLE table_2618142_1 (
no_in_series INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- the first episode in this season had what number in the series?
| SELECT MIN(no_in_series) FROM table_2618142_1 | 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 SUM(t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '严美丽' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2013-12-25' AND '2021-12-14' | css |
CREATE TABLE student (
fname VARCHAR,
lname VARCHAR,
major VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the first and last name of students who are not in the largest major.
| SELECT fname, lname FROM student WHERE major <> (SELECT major FROM student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1) | 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 COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-132801')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutp... | eicu |
CREATE TABLE table_name_79 (
wins INTEGER,
cuts_made INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins of average has cuts made less than 0?
| SELECT AVG(wins) FROM table_name_79 WHERE cuts_made < 0 | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | SELECT * FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH = jyjgzbb.BGDH WHERE hz_inf... | css |
CREATE TABLE table_78963 (
"Date" text,
"Ship Name" text,
"Tonnage" text,
"Ship Type" text,
"Location" text,
"Disposition of Ship" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the ship when the ship had captured as the disposition of... | SELECT "Location" FROM table_78963 WHERE "Disposition of Ship" = 'captured' AND "Tonnage" = '225' | wikisql |
CREATE TABLE street_markets (
market_id number,
market_details text
)
CREATE TABLE ref_hotel_star_ratings (
star_rating_code text,
star_rating_description text
)
CREATE TABLE features (
feature_id number,
feature_details text
)
CREATE TABLE staff (
staff_id number,
tourist_attraction_... | SELECT COUNT(DISTINCT name) FROM photos | spider |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE comment_instructor (
instructor_id int,
... | SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ELI' AND course.number = 380 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | advising |
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Participants_in_Events (
Event_ID INTEGER,
Participant_ID INTEGER
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)... | SELECT T1.Event_Details, T1.Event_ID FROM Events AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_Details | nvbench |
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 ftxmzjzjlb (
HXPLC number,
HZ... | SELECT * 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 jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i... | css |
CREATE TABLE table_name_14 (
round INTEGER,
school_club_team VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest round that louisville drafted into when their pick was over 75?
| SELECT MAX(round) FROM table_name_14 WHERE school_club_team = "louisville" AND pick > 75 | sql_create_context |
CREATE TABLE table_53939 (
"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.
-- Which home team played at MCG?
| SELECT "Home team" FROM table_53939 WHERE "Venue" = 'mcg' | wikisql |
CREATE TABLE table_name_49 (
home_away VARCHAR,
opponent VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is it home or away when opponent is Pride with a W 11-10 result?
| SELECT home_away FROM table_name_49 WHERE opponent = "pride" AND result = "w 11-10" | sql_create_context |
CREATE TABLE table_28302 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Station Type" text,
"Power kW (ERP)" text,
"Location (Transmitter Site)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the branding of the callsign DWBA-TV?
| SELECT "Branding" FROM table_28302 WHERE "Callsign" = 'DWBA-TV' | wikisql |
CREATE TABLE table_48299 (
"Outcome" text,
"Date" text,
"Location" text,
"Surface" text,
"Opponent in final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Opponent In Final, when Surface is Hard, when Location is Wellingto... | SELECT "Opponent in final" FROM table_48299 WHERE "Surface" = 'hard' AND "Location" = 'wellington, new zealand' AND "Date" = '6 february 2000' | wikisql |
CREATE TABLE table_name_7 (
nominated_work VARCHAR,
year VARCHAR,
festival VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the nominated work for 1996 and festival of black maria film and video festival
| SELECT nominated_work FROM table_name_7 WHERE year = 1996 AND festival = "black maria film and video festival" | sql_create_context |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", DisplayName, Reputation FROM Users WHERE LOWER(DisplayName) LIKE LOWER('%##DisplayName##%') ORDER BY Reputation DESC | sede |
CREATE TABLE table_256286_40 (
passed VARCHAR,
yes_votes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes passed are listed on the measure that had 390338 yes votes?
| SELECT COUNT(passed) FROM table_256286_40 WHERE yes_votes = 390338 | sql_create_context |
CREATE TABLE table_28846752_5 (
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many 5wi with an average of 33.13?
| SELECT COUNT(5 AS wi) FROM table_28846752_5 WHERE average = "33.13" | sql_create_context |
CREATE TABLE table_name_66 (
winner VARCHAR,
location VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Winner, when the Location is Clemson, SC, and when the Date is November 17, 2012?
| SELECT winner FROM table_name_66 WHERE location = "clemson, sc" AND date = "november 17, 2012" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.