instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "69" AND lab.label = "Prolactin" | mimicsql_data |
CREATE TABLE table_train_119 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"diastolic_blood_pressure_dbp" int,
"hypotension" bool,
"allergy_to_milk" bool,
"allergy_to_soy" bool,
"body_mass_index_bmi" float,
"plasma_creatinine" float,
"NOUSE" float
)... | SELECT * FROM table_train_119 WHERE hypotension = 1 OR (systolic_blood_pressure_sbp < 80 OR diastolic_blood_pressure_dbp < 50) | criteria2sql |
CREATE TABLE table_name_71 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on June 15?
| SELECT opponent FROM table_name_71 WHERE date = "june 15" | sql_create_context |
CREATE TABLE table_27582 (
"Player" text,
"Games Played" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every entry for assists if the player is Lynn Pride... | SELECT "Assists" FROM table_27582 WHERE "Player" = 'Lynn Pride' | wikisql |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT gwyjzb.IN_DIAG_DIS_CD, gwyjzb.IN_DIAG_DIS_NM FROM gwyjzb WHERE gwyjzb.PERSON_ID = '55103393' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 6694.41) UNION SELECT fgwyjzb.IN_DIAG_DIS_CD, fgwyjzb.IN_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '55103393' AND fg... | css |
CREATE TABLE table_8116 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance on week 1?
| SELECT "Attendance" FROM table_8116 WHERE "Week" = '1' | wikisql |
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_C... | SELECT SCHOOL_CODE, COUNT(DISTINCT DEPT_NAME) FROM DEPARTMENT | nvbench |
CREATE TABLE table_name_24 (
facility_id INTEGER,
city_of_license VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest facility ID that's in Beckley?
| SELECT MIN(facility_id) FROM table_name_24 WHERE city_of_license = "beckley" | 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 DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.ins... | advising |
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 Price, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | nvbench |
CREATE TABLE table_22005 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For game site Schaefer Stadium, what were the results?
| SELECT "Result" FROM table_22005 WHERE "Game site" = 'Schaefer Stadium' | wikisql |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE microbiologyevents (
row_i... | SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 28910 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.s... | 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_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT SUM(t_kc22.AMOUNT) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '姜舒方' AND t_kc22.t_kc21_CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2005-02-06' AND '2017-08-25' AND t_kc22.MED_INV_ITEM_TYPE = '手术费' | css |
CREATE TABLE table_name_8 (
date VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did indiana play?
| SELECT date FROM table_name_8 WHERE opponent = "indiana" | 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 MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'haptoglobin')) GROUP BY cost.patienthealthsystemstayid) AS t1 | eicu |
CREATE TABLE journal_committee (
editor_id number,
journal_id number,
work_type text
)
CREATE TABLE editor (
editor_id number,
name text,
age number
)
CREATE TABLE journal (
journal_id number,
date text,
theme text,
sales number
)
-- Using valid SQLite, answer the following q... | SELECT T1.name FROM editor AS T1 JOIN journal_committee AS T2 ON T1.editor_id = T2.editor_id GROUP BY T1.name HAVING COUNT(*) >= 2 | spider |
CREATE TABLE table_name_64 (
funny_car VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won Funny Car in 2012?
| SELECT funny_car FROM table_name_64 WHERE year = 2012 | 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 COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '葛学民' AND t_kc22.STA_DATE BETWEEN '2006-06-26' AND '2007-10-24' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE table_15467476_3 (
won VARCHAR,
tries_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games won for teams with 49 tries against?
| SELECT won FROM table_15467476_3 WHERE tries_against = "49" | sql_create_context |
CREATE TABLE Addresses (
address_id INTEGER,
line_1_number_building VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50)
)
CREATE TABLE Contacts (
contact_id INTEGER,
customer_id INTEGER,
gender VARCHAR(1),
first_name VA... | SELECT date_from, COUNT(date_from) FROM Customer_Address_History AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id JOIN Addresses AS T3 ON T1.address_id = T3.address_id ORDER BY date_from | nvbench |
CREATE TABLE table_name_55 (
outcome VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome on May 18, 2008?
| SELECT outcome FROM table_name_55 WHERE date = "may 18, 2008" | sql_create_context |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CR... | SELECT DISTINCT department, name, number FROM course WHERE course_id IN (SELECT PROGRAM_COURSE_ID FROM program_course AS PROGRAM_COURSE WHERE PROGRAM_WORKLOAD = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 WHERE PROGRAM_COURSEalias1.category LIKE '%Core%')) AND num_enrolled = (... | advising |
CREATE TABLE table_38435 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"2013-2014 Size" real,
"Year Joined" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the previous conference for the... | SELECT "Previous Conference" FROM table_38435 WHERE "Year Joined" = '2000' AND "Mascot" = 'millers' | wikisql |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswer... | SELECT SUM(CASE WHEN VoteTypeId = 1 THEN 15 WHEN VoteTypeId = 2 AND PostTypeId = 1 THEN 5 WHEN VoteTypeId = 2 AND PostTypeId = 2 THEN 10 WHEN VoteTypeId = 3 THEN -2 WHEN VoteTypeId = 9 THEN BountyAmount END) AS UncappedReputation FROM Votes INNER JOIN Posts ON Posts.Id = Votes.PostId WHERE Posts.OwnerUserId = @UserId | sede |
CREATE TABLE table_52432 (
"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.
-- When the home team was South Melbourne, what did... | SELECT "Away team score" FROM table_52432 WHERE "Home team" = 'south melbourne' | wikisql |
CREATE TABLE table_name_34 (
engine_† VARCHAR,
tyre VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the engine when the tyre is m and the driver is fernando alonso?
| SELECT engine_† FROM table_name_34 WHERE tyre = "m" AND driver = "fernando alonso" | sql_create_context |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 143... | mimic_iii |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "56" AND lab.label = "Sodium, Whole Blood" | mimicsql_data |
CREATE TABLE table_63966 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has adam barclay as the rider?
| SELECT "Team" FROM table_63966 WHERE "Rider" = 'adam barclay' | 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.age < "76" AND procedures.short_title = "Drug detoxification" | mimicsql_data |
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 demographic.dob, demographic.days_stay FROM demographic WHERE demographic.subject_id = "21796" | mimicsql_data |
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 airline (
... | 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, food_service WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUSTON' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND food_s... | atis |
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 MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "RUQ PAIN" AND demographic.dod_year < "2133.0" | mimicsql_data |
CREATE TABLE table_30008638_1 (
miss_water INTEGER,
country_territory VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Miss Waters has Canada had?
| SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = "Canada" | 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 txmzjzjlb.SG, txmzjzjlb.TZ FROM person_info JOIN hz_info JOIN txmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE person_info.XM = '褚永福' UNION SELECT ftxmzjzjlb.SG, ftxmzjzjlb.TZ FROM person_info JOIN hz_info JOIN ... | css |
CREATE TABLE table_56674 (
"Outcome" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which surface has a score in the final of 4 6, 3 6?
| SELECT "Surface" FROM table_56674 WHERE "Score in the final" = '4–6, 3–6' | wikisql |
CREATE TABLE table_name_74 (
pick__number INTEGER,
position VARCHAR,
cfl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Pick # which has a Position of lb, and a CFL Team of winnipeg?
| SELECT SUM(pick__number) FROM table_name_74 WHERE position = "lb" AND cfl_team = "winnipeg" | sql_create_context |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following questions for the... | SELECT Name, Price FROM Products WHERE Price >= 180 ORDER BY Price DESC, Name | nvbench |
CREATE TABLE table_name_98 (
career_sr VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the 1994 results with a career SR of 0 / 3?
| SELECT 1994 FROM table_name_98 WHERE career_sr = "0 / 3" | sql_create_context |
CREATE TABLE table_204_858 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who did the tigers face for their ... | SELECT "opponent#" FROM table_204_858 WHERE "result" = 'w' ORDER BY "date" LIMIT 1 | squall |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE bdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
K... | SELECT (SELECT COUNT(*) FROM person_info JOIN hz_info JOIN wdmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE person_info.XM = '韦嘉泽' AND wdmzjzjlb.JZKSRQ BETWEEN '2003-03-16' AND '2012-01-12' UNION SELECT COUNT(*) FROM p... | css |
CREATE TABLE table_name_26 (
date VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game with a loss of Wakefield (5-2)?
| SELECT date FROM table_name_26 WHERE loss = "wakefield (5-2)" | sql_create_context |
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 t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.IN_DIAG_DIS_NM = '胃炎' | css |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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 diagnoses.icd9_code = "75261" | mimicsql_data |
CREATE TABLE table_name_90 (
position VARCHAR,
competition VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did the player play in the european cross country championships in 2008?
| SELECT position FROM table_name_90 WHERE competition = "european cross country championships" AND year = 2008 | 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 diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "SINGLE" AND diagnoses.icd9_code = "3572" | mimicsql_data |
CREATE TABLE table_name_51 (
rank VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank for the rowers with the time of 6:24.35?
| SELECT rank FROM table_name_51 WHERE time = "6:24.35" | sql_create_context |
CREATE TABLE table_50031 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Competition had a Score of 3 3?
| SELECT "Competition" FROM table_50031 WHERE "Score" = '3–3' | wikisql |
CREATE TABLE table_name_85 (
date VARCHAR,
record VARCHAR,
decision VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the home Detroit game with a decision of Joseph and a record of 27 13 5 2?
| SELECT date FROM table_name_85 WHERE decision = "joseph" AND home = "detroit" AND record = "27–13–5–2" | sql_create_context |
CREATE TABLE table_79366 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who plays linebacker?
| SELECT "Player" FROM table_79366 WHERE "Position" = 'linebacker' | 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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.short_title = "Polymyalgia rheumatica" | mimicsql_data |
CREATE TABLE table_name_3 (
years_as_tallest VARCHAR,
street_address VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the years that the building at 200 sw harrison was considered to be the tallest building?
| SELECT years_as_tallest FROM table_name_3 WHERE street_address = "200 sw harrison" | sql_create_context |
CREATE TABLE table_69520 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average points earned for entrants with ATS V8 engines?
| SELECT AVG("Points") FROM table_69520 WHERE "Engine" = 'ats v8' | wikisql |
CREATE TABLE table_42256 (
"Year" real,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which League has a Regular Season of 2nd, southeast?
| SELECT "League" FROM table_42256 WHERE "Regular Season" = '2nd, southeast' | wikisql |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE ... | 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 = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHIN... | atis |
CREATE TABLE table_45415 (
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the winner when the team is mobil 1 racing?
| SELECT "Winner" FROM table_45415 WHERE "Team" = 'mobil 1 racing' | wikisql |
CREATE TABLE table_name_30 (
title VARCHAR,
japan VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the title for japan august 23, 2012
| SELECT title FROM table_name_30 WHERE japan = "august 23, 2012" | sql_create_context |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
... | SELECT t3.labname FROM (SELECT t2.labname, 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 = 'external pacemaker' AND STRFTIME('%y', treatment.tre... | eicu |
CREATE TABLE table_26275503_2 (
kickoff VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different kickoffs happened when the opponent was the Scottish Claymores
| SELECT COUNT(kickoff) FROM table_26275503_2 WHERE opponent = "Scottish Claymores" | sql_create_context |
CREATE TABLE table_7170 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height m / ft" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many floors have 207 w. hastings st. as the address?
| SELECT COUNT("Floors") FROM table_7170 WHERE "Street address" = '207 w. hastings st.' | wikisql |
CREATE TABLE table_30504 (
"Conference" text,
"Regular Season Winner" text,
"Conference Player of the Year" text,
"Conference Tournament" text,
"Tournament Venue (City)" text,
"Tournament Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Tournament Venue (City)" FROM table_30504 WHERE "Conference" = 'Missouri Valley Conference' | wikisql |
CREATE TABLE table_78893 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ... | SELECT MAX("Goals For") FROM table_78893 WHERE "Goals Against" = '85' AND "Drawn" > '6' | wikisql |
CREATE TABLE table_name_11 (
award VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which award has film lyricist in the category?
| SELECT award FROM table_name_11 WHERE category = "film lyricist" | sql_create_context |
CREATE TABLE table_29833 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What w... | SELECT "Location Attendance" FROM table_29833 WHERE "Team" = 'San Antonio' | wikisql |
CREATE TABLE table_1472 (
"C/W 15+" real,
"Oblast\\Age" text,
"15 to 17" real,
"18 to 19" real,
"20 to 24" real,
"25 to 29" real,
"30 to 34" real,
"35 to 39" real,
"40 to 44" real,
"45 to 49" real,
"50 to 54" real,
"55 to 59" real,
"60 to 64" real,
"65 to 69" real... | SELECT COUNT("C/W 15+") FROM table_1472 WHERE "50 to 54" = '2119' | 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 WHERE MED_SER_ORG_NO = '0233380' AND IN_HOSP_DATE BETWEEN '2001-01-22' AND '2007-05-26' AND (REMOTE_SETTLE_FLG = '异地1' OR REMOTE_SETTLE_FLG = '异地2') | css |
CREATE TABLE table_name_12 (
points VARCHAR,
class VARCHAR,
machine VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What points have 500cc as a class, and nsr500 as a machine?
| SELECT points FROM table_name_12 WHERE class = "500cc" AND machine = "nsr500" | sql_create_context |
CREATE TABLE table_49536 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the surface when the opponents are louise field natha... | SELECT "Surface" FROM table_49536 WHERE "Opponents" = 'louise field nathalie herreman' | wikisql |
CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperat... | SELECT origin, COUNT(*) FROM train GROUP BY origin ORDER BY origin | nvbench |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT Answers.OwnerUserId, SUM(CASE WHEN Votes.VoteTypeId = 2 THEN 10 WHEN Votes.VoteTypeId = 3 THEN -2 ELSE 0 END) AS EarnedRep FROM Posts AS Questions, Posts AS Answers, Votes WHERE Questions.PostTypeId = 1 AND Questions.CreationDate BETWEEN '2013-01-01' AND '2013-12-31' AND CAST((JULIANDAY(ClosedDate) - JULIANDAY(Q... | sede |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program_requirement (
program_id int,
catego... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN area ON course_offering.course_id = area.course_id WHERE area.area LIKE '%... | advising |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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 (
EMPLO... | SELECT LAST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY | nvbench |
CREATE TABLE table_name_51 (
record VARCHAR,
location VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record when the New York Knicks played at the Boston Garden?
| SELECT record FROM table_name_51 WHERE location = "boston garden" AND opponent = "new york knicks" | sql_create_context |
CREATE TABLE table_24668 (
"Team" text,
"Truck(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Listed Owner(s)" text,
"Crew Chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the drivers for superchips
| SELECT "Driver(s)" FROM table_24668 WHERE "Primary Sponsor(s)" = 'Superchips' | wikisql |
CREATE TABLE table_47716 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the UFC 110 event with 3 rounds located?
| SELECT "Location" FROM table_47716 WHERE "Round" = '3' AND "Event" = 'ufc 110' | wikisql |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT COUNT(*) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '1577129' AND gwyjzb.IN_HOSP_DATE BETWEEN '2001-12-14' AND '2004-04-11' AND gwyjzb.INSU_TYPE = '儿童' UNION SELECT COUNT(*) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '1577129' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2001-12-14' AND '2004-04-11' AND fgwyjzb.INSU_TYPE =... | css |
CREATE TABLE table_name_50 (
mountain_range VARCHAR,
mountain_peak VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the mountain range when the mountain peak is mauna kea?
| SELECT mountain_range FROM table_name_50 WHERE mountain_peak = "mauna kea" | sql_create_context |
CREATE TABLE table_5955 (
"City" text,
"State/Territory" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which airport has IATA of BKK?
| SELECT "Airport" FROM table_5955 WHERE "IATA" = 'bkk' | wikisql |
CREATE TABLE table_name_33 (
game INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest game number on 20 July 2008?
| SELECT MIN(game) FROM table_name_33 WHERE date = "20 july 2008" | sql_create_context |
CREATE TABLE table_name_5 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE 2007 AT MADRID MASTERS?
| SELECT 2007 FROM table_name_5 WHERE tournament = "madrid masters" | sql_create_context |
CREATE TABLE table_25300 (
"Station" text,
"Extension" text,
"City/Neighborhood" text,
"Projected opening" text,
"Park and ride?" text,
"Funded by ST2 ?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the funded by st2 status of the Redo... | SELECT "Funded by ST2 ?" FROM table_25300 WHERE "Station" = 'Redondo/Star Lake' | wikisql |
CREATE TABLE table_204_741 (
id number,
"rank" number,
"name" text,
"nationality" text,
"1,62" text,
"1,67" text,
"1,72" text,
"1,75" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the last name to qualify ?
| SELECT "name" FROM table_204_741 ORDER BY "rank" DESC LIMIT 1 | squall |
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 mzjzjlb (
HXPLC number,
HZXM ... | SELECT * FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE person_info.XM = '孔古兰' AND hz_info.YLJGDM = '3510402' AND zyjzjlb.CYKSMC LIKE '%病%' | css |
CREATE TABLE table_48504 (
"Tournament" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"Career WR"... | SELECT "Career Win-Loss" FROM table_48504 WHERE "Tournament" = 'hamburg' | wikisql |
CREATE TABLE wdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZD... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM... | css |
CREATE TABLE table_name_94 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1989 result of the tournament in which Katerina finished nh in 1986?
| SELECT 1989 FROM table_name_94 WHERE 1986 = "nh" | sql_create_context |
CREATE TABLE Companies (
id int,
name text,
Headquarters text,
Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value_billion text
)
CREATE TABLE Office_locations (
building_id int,
company_id int,
move_in_year int
)
CREATE TABLE building... | SELECT T3.name, COUNT(T3.name) FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T3.name ORDER BY COUNT(T3.name) DESC | nvbench |
CREATE TABLE table_name_70 (
score VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Competition of uefa euro 2012 qualifying?
| SELECT score FROM table_name_70 WHERE competition = "uefa euro 2012 qualifying" | sql_create_context |
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE cine... | SELECT Openning_year, COUNT(Openning_year) FROM cinema | nvbench |
CREATE TABLE table_name_67 (
laps INTEGER,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean number of laps where time/retired was +1:05.564?
| SELECT AVG(laps) FROM table_name_67 WHERE time_retired = "+1:05.564" | sql_create_context |
CREATE TABLE table_55771 (
"District" text,
"Name" text,
"Party" text,
"Religion" text,
"Former Experience" text,
"Assumed Office" real,
"Born In" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the loewst assume office for madeleine ... | SELECT MIN("Assumed Office") FROM table_55771 WHERE "Name" = 'madeleine bordallo' | wikisql |
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "81" AND prescriptions.drug = "Critic-Aid Clear AF" | mimicsql_data |
CREATE TABLE table_30030477_1 (
title VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the episode written by glen mazzara?
| SELECT title FROM table_30030477_1 WHERE written_by = "Glen Mazzara" | sql_create_context |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.subject_id = "6983" | mimicsql_data |
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 number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_icd_diagnoses (
row_id number... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE DATETIME(outputevents.charttime) <= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 4) | mimic_iii |
CREATE TABLE table_34963 (
"Eruptions" text,
"Country" text,
"Location" text,
"Year" real,
"Volcanic Explosivity Index" text,
"Fatalities" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years have a Location of pacific ring of fire, and... | SELECT SUM("Year") FROM table_34963 WHERE "Location" = 'pacific ring of fire' AND "Eruptions" = 'pinatubo' | wikisql |
CREATE TABLE table_2454589_1 (
first_season_in_the_serie_a VARCHAR,
last_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the first season in the series for 2006
| SELECT first_season_in_the_serie_a FROM table_2454589_1 WHERE last_title = "2006" | sql_create_context |
CREATE TABLE table_203_196 (
id number,
"terminal" text,
"operator" text,
"depth\n(m)" text,
"berths" number,
"quay length\n(m)" number,
"quay cranes" number,
"area\n(m2)" number,
"capacity\n(kteus)" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT COUNT(*) FROM table_203_196 WHERE "operator" = 'hit' | squall |
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 t_kc21.OUT_HOSP_DATE FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '39443182794' | css |
CREATE TABLE table_name_86 (
border VARCHAR,
background_colour VARCHAR,
shape VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which sign had a yellow background and a triangular shape?
| SELECT border FROM table_name_86 WHERE background_colour = "yellow" AND shape = "triangular" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.