instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC | nvbench |
CREATE TABLE table_name_75 (
insurgents VARCHAR,
civilians VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the insurgents for civilians being 49
| SELECT insurgents FROM table_name_75 WHERE civilians = "49" | sql_create_context |
CREATE TABLE table_38374 (
"Issue Date" real,
"Album Title" text,
"Artist" text,
"Sales" real,
"Highest Position" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest position Talk on Corners, which had an issue date greater than 1, ha... | SELECT COUNT("Highest Position") FROM table_38374 WHERE "Album Title" = 'talk on corners' AND "Issue Date" > '1' | wikisql |
CREATE TABLE table_35810 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of points for a team in the 250cc class with fewer than 0 wins?
| SELECT AVG("Points") FROM table_35810 WHERE "Class" = '250cc' AND "Wins" < '0' | wikisql |
CREATE TABLE table_name_41 (
club_province VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Club/province has a Player of david penalva?
| SELECT club_province FROM table_name_41 WHERE player = "david penalva" | sql_create_context |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,... | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'bengay' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-3 year') | mimic_iii |
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "QUIN20" AND lab.fluid = "Other Body Fluid" | mimicsql_data |
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE status (
station_i... | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 ORDER BY COUNT(date) | nvbench |
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the ra... | SELECT Class, COUNT(*) FROM race GROUP BY Class | nvbench |
CREATE TABLE table_28838 (
"Place" real,
"Nation" text,
"played" real,
"won" real,
"drawn" real,
"lost" real,
"for" real,
"against" real,
"difference" real,
"Table points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Nation" FROM table_28838 WHERE "for" = '326' | wikisql |
CREATE TABLE table_65543 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the rowers with the time of 5:54.57?
| SELECT "Rowers" FROM table_65543 WHERE "Time" = '5:54.57' | wikisql |
CREATE TABLE table_name_39 (
goal INTEGER,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the top goal for the result of 2 3?
| SELECT MAX(goal) FROM table_name_39 WHERE result = "2–3" | sql_create_context |
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
... | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.departure_time < 1200 AND f... | atis |
CREATE TABLE table_67768 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director of the film that Sister Films received an award for on 2/3... | SELECT "Director(s)" FROM table_67768 WHERE "Date" = '2/3/05' AND "Recipient" = 'sister films' | wikisql |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE flight_leg (
flight_id int,
... | 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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LONG BEACH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CIT... | atis |
CREATE TABLE table_37294 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"10:00" text,
"10:30" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 7:00 has an 8:00 of la soir e du hockey?
| SELECT "7:00" FROM table_37294 WHERE "8:00" = 'la soirée du hockey' | wikisql |
CREATE TABLE domain (
did int,
name varchar
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE conference (
cid int,... | SELECT SUM(publication.citation_num) FROM conference, publication WHERE conference.name = 'VLDB' AND publication.cid = conference.cid AND publication.year = 2005 | academic |
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE... | SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality ORDER BY COUNT(Nationality) DESC | nvbench |
CREATE TABLE table_6085 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game when St. Louis was the home team?
| SELECT "Date" FROM table_6085 WHERE "Home" = 'st. louis' | wikisql |
CREATE TABLE gyb (
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 AVG(zyb.MED_CLINIC_ID) FROM zyb WHERE zyb.MED_ORG_DEPT_NM = '5788' AND zyb.IN_HOSP_DAYS BETWEEN '2007-06-11' AND '2021-09-04' AND zyb.IN_HOSP_DATE = '酒精性肝硬化' | css |
CREATE TABLE table_25479607_3 (
fixed_charge___rs__kwh_ VARCHAR,
unit__kwh__time_range VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?
| SELECT fixed_charge___rs__kwh_ FROM table_25479607_3 WHERE unit__kwh__time_range = "I-2: Peak (18:30-22:30)" | sql_create_context |
CREATE TABLE table_78906 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average total in 1969?
| SELECT AVG("Total") FROM table_78906 WHERE "Year(s) won" = '1969' | wikisql |
CREATE TABLE table_11677691_4 (
school VARCHAR,
hometown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players' hometown was Akron, Ohio?
| SELECT COUNT(school) FROM table_11677691_4 WHERE hometown = "Akron, Ohio" | sql_create_context |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquep... | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-12192')) AND medication.drugname = 'calcium gluconate 100 ... | eicu |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'pros repair atria def-cl')) | mimic_iii |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(2... | SELECT LAST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_16771 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the Modena circuit?
| SELECT "Winning driver" FROM table_16771 WHERE "Circuit" = 'Modena' | wikisql |
CREATE TABLE table_test_5 (
"id" int,
"systemic_lupus_erythematosus" bool,
"anemia" bool,
"gender" string,
"pregnancy_or_lactation" bool,
"serum_potassium" float,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"estim... | SELECT * FROM table_test_5 WHERE global_lvef >= 30 AND global_lvef <= 45 | criteria2sql |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description... | WITH linqbadges AS (SELECT RANK() OVER (PARTITION BY b.UserId ORDER BY b.Date) AS rn, b.UserId, b.Date, b.Name FROM Badges AS b WHERE b.Name = 'Necromancer') SELECT u.DisplayName, linqbadges.Date AS date_earned, CASE rn WHEN 1 THEN 'bronze linq' WHEN 2 THEN 'silver linq' WHEN 3 THEN 'gold linq' END AS badge, linqbadges... | sede |
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
... | SELECT meter_300, ID FROM swimmer ORDER BY ID | nvbench |
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the following questions fo... | SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY Nationality DESC | nvbench |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-849' AND patient.hospitaldischargetime IS NULL)) ORDER BY ... | eicu |
CREATE TABLE table_10728 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What college did hunter henry go to?
| SELECT "College" FROM table_10728 WHERE "Player" = 'hunter henry' | wikisql |
CREATE TABLE table_name_52 (
record VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the team's record in games against the Hartford Whalers?
| SELECT record FROM table_name_52 WHERE opponent = "hartford whalers" | sql_create_context |
CREATE TABLE table_204_144 (
id number,
"represent" number,
"contestant" text,
"age" number,
"height" text,
"hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name each contestant whose age is 21 ?
| SELECT "contestant" FROM table_204_144 WHERE "age" = 21 | squall |
CREATE TABLE operate_company (
id number,
name text,
type text,
principal_activities text,
incorporated_in text,
group_equity_shareholding number
)
CREATE TABLE airport (
id number,
city text,
country text,
iata text,
icao text,
name text
)
CREATE TABLE flight (
id ... | SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport' | spider |
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "WARF1" AND lab.fluid = "Pleural" | mimicsql_data |
CREATE TABLE table_204_649 (
id number,
"rank" number,
"name" text,
"image" number,
"height\nft (m)" text,
"floors" number,
"year" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in height between ke... | SELECT ABS((SELECT "height\nft (m)" FROM table_204_649 WHERE "name" = 'key tower') - (SELECT "height\nft (m)" FROM table_204_649 WHERE "name" = '55 public square')) | squall |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREAT... | SELECT DISTINCT flight.departure_time 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 = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name ... | atis |
CREATE TABLE table_71139 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament was after 2009?
| SELECT "Tournament" FROM table_71139 WHERE "Year" > '2009' | wikisql |
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,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE offering_i... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'NURS' AND course.number = 556 AND semester.semester = 'Spring-Summer' AND semester.semester_id = course_offering.semester AND semester.year = 2002 | advising |
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 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 '2003-12-27' AND '2019-01-29' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE table_18946749_1 (
prominence__m_ INTEGER,
peak VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When mount gauttier is the peak what is the highest prominence in meters?
| SELECT MAX(prominence__m_) FROM table_18946749_1 WHERE peak = "Mount Gauttier" | sql_create_context |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_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,
... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.IN_DIAG_DIS_NM = '胃炎' | 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 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "20" AND procedures.icd9_code = "9907" | mimicsql_data |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | SELECT PostId AS "post_link", UserId AS "user_link", COUNT(*) AS "duplication_level" FROM Votes WHERE VoteTypeId = 5 GROUP BY PostId, UserId HAVING COUNT(*) > 1 ORDER BY COUNT(*) DESC | sede |
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 treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'esophagogastroduodenoscopy')) AND STRFTIME('... | eicu |
CREATE TABLE table_name_3 (
overall VARCHAR,
name VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name of calvin o'neal, and a Round smaller than 6 had what number total overall?
| SELECT COUNT(overall) FROM table_name_3 WHERE name = "calvin o'neal" AND round < 6 | sql_create_context |
CREATE TABLE table_name_18 (
common_name VARCHAR,
color VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the common name for the creature with darker colors?
| SELECT common_name FROM table_name_18 WHERE color = "darker colors" | sql_create_context |
CREATE TABLE table_22048 (
"Team" text,
"Average" text,
"Points" real,
"Played" real,
"1988-89" text,
"1989-90" text,
"1990-1991" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team that scored 122 points?
| SELECT "Team" FROM table_22048 WHERE "Points" = '122' | wikisql |
CREATE TABLE table_2803106_1 (
dance_song VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What dance had a score total of 31?
| SELECT dance_song FROM table_2803106_1 WHERE total = "31" | sql_create_context |
CREATE TABLE table_38958 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Extra points is the lowest one that has a Player of ross kidston, and Points smaller ... | SELECT MIN("Extra points") FROM table_38958 WHERE "Player" = 'ross kidston' AND "Points" < '5' | wikisql |
CREATE TABLE table_10476 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps have a Time/Retired of +1:35.553?
| SELECT COUNT("Laps") FROM table_10476 WHERE "Time/Retired" = '+1:35.553' | wikisql |
CREATE TABLE table_57991 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many yards did kevin swayne average, with a long carry over 7?
| SELECT MIN("Avg.") FROM table_57991 WHERE "Player" = 'kevin swayne' AND "Long" > '7' | wikisql |
CREATE TABLE table_name_15 (
date VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game with a score of 15 6?
| SELECT date FROM table_name_15 WHERE score = "15–6" | 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 jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH ... | css |
CREATE TABLE table_11239 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the host team at Louisiana Superdome when the final score was 10-20?
| SELECT "Host Team" FROM table_11239 WHERE "Stadium" = 'louisiana superdome' AND "Final Score" = '10-20' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Descr... | SELECT ROW_NUMBER() OVER (ORDER BY Score DESC) AS Rank, Id AS "user_link", Score, 'count' AS TotalAnswers, Average FROM (SELECT u.Id, SUM(a.Score) AS Score, COUNT(a.Score) AS "Count", AVG(a.Score) AS Average FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId INNER JOIN PostTags AS pt ON q.Id = pt.PostId INNER J... | sede |
CREATE TABLE table_name_57 (
blank_ends VARCHAR,
shot_pct VARCHAR,
stolen_ends VARCHAR,
skip VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than ... | SELECT COUNT(blank_ends) FROM table_name_57 WHERE stolen_ends = 17 AND skip = "jennifer jones" AND shot_pct > 83 | sql_create_context |
CREATE TABLE table_79865 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Round larger than 6, and a Pick # smaller than 25, and a College of southern Illinois ... | SELECT "Position" FROM table_79865 WHERE "Round" > '6' AND "Pick #" < '25' AND "College" = 'southern illinois' | wikisql |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TA... | SELECT COUNT(DISTINCT course_prerequisite.course_id), course.department, course.name, course.number FROM course, course_offering, course_prerequisite, semester WHERE course.course_id = course_offering.course_id AND course.course_id = course_prerequisite.pre_course_id AND course.department = 'EECS' AND semester.semester... | advising |
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 * FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE hz_info.RYBH = '29461728' AND jyjgzbb.jybgb_BBCJBW = '上臂' UNION SELECT * FR... | css |
CREATE TABLE table_name_56 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2006 value with a 1r in 2011?
| SELECT 2006 FROM table_name_56 WHERE 2011 = "1r" | sql_create_context |
CREATE TABLE table_name_18 (
result VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE RESULT WHEN THE OPPONENT WAS CHICAGO BEARS?
| SELECT result FROM table_name_18 WHERE opponent = "chicago bears" | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "77" AND diagnoses.long_title = "Abscess of intestine" | mimicsql_data |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
... | SELECT q.Id AS "post_link", q.Score AS "question_score", a.Score AS "answer_score", q.AcceptedAnswerId AS "accepted_answer" FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id WHERE NOT q.ClosedDate IS NULL AND a.OwnerUserId = '##UserId##' AND q.Id NOT IN (SELECT PostId FROM PostLinks) ORDER BY q.ClosedDate DESC | sede |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
... | SELECT * FROM sys.databases | sede |
CREATE TABLE table_30027 (
"Year" real,
"Location" text,
"Distance (miles)" real,
"Rider Names" text,
"Horse Name" text,
"Best-Conditioned Horse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different riders are there that won riding ... | SELECT COUNT("Rider Names") FROM table_30027 WHERE "Horse Name" = 'OMR Tsunami' | wikisql |
CREATE TABLE table_train_248 (
"id" int,
"anemia" bool,
"prostate_specific_antigen_psa" float,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"fasting_triglycerides" int,
"hyperlipidemia" bool,
"hgb" int,
"fasting_total_cholesterol" int,
"fasting_ldl_cholesterol" int,
"bo... | SELECT * FROM table_train_248 WHERE hyperlipidemia = 1 OR (fasting_total_cholesterol > 240 OR fasting_triglycerides > 200 OR fasting_ldl_cholesterol > 140) | criteria2sql |
CREATE TABLE zzmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jyb... | css |
CREATE TABLE table_name_24 (
round INTEGER,
position VARCHAR,
pick__number VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest round with a pick# of 11, a position of offensive tackle, and overall less than 414?
| SELECT MAX(round) FROM table_name_24 WHERE pick__number = 11 AND overall < 414 AND position = "offensive tackle" | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND lab.fluid = "Ascites" | mimicsql_data |
CREATE TABLE table_name_80 (
player VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Player had a Score of 70-71=141?
| SELECT player FROM table_name_80 WHERE score = 70 - 71 = 141 | sql_create_context |
CREATE TABLE table_3072 (
"Country" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Stolen Ends" FROM table_3072 WHERE "Ends Lost" = '37' | wikisql |
CREATE TABLE table_3141 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game ... | SELECT MIN("Attendance") FROM table_3141 WHERE "Game site" = 'Jahn-Sportpark' | wikisql |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT ACC_Percent, All_Games_Percent FROM basketball_match | nvbench |
CREATE TABLE table_name_31 (
fat32 VARCHAR,
ntfs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which FAT32 has yes v1.0/v1.1 for NTFS?
| SELECT fat32 FROM table_name_31 WHERE ntfs = "yes v1.0/v1.1" | 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 jybgb.BBCJBW FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = ... | css |
CREATE TABLE table_203_330 (
id number,
"year of election" number,
"candidates elected" number,
"# of seats available" number,
"# of votes" number,
"% of popular vote" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many more seats were avail... | SELECT (SELECT "# of seats available" FROM table_203_330 WHERE "year of election" = 1975) - (SELECT "# of seats available" FROM table_203_330 WHERE "year of election" = 1963) | squall |
CREATE TABLE table_8631 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the sum of points when lost is less than 10, name is vfl denklingen and position is... | SELECT SUM("Points") FROM table_8631 WHERE "Lost" < '10' AND "Name" = 'vfl denklingen' AND "Position" > '2' | wikisql |
CREATE TABLE table_7239 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue held the Euro 2012 Qualifier?
| SELECT "Venue" FROM table_7239 WHERE "Competition" = 'euro 2012 qualifier' | wikisql |
CREATE TABLE table_38655 (
"Discipline" text,
"Peter" real,
"Adam" real,
"Jade" real,
"Plat'num" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Adam's score when Peter's score is less than 3 and the plat'num is greater than 6?
| SELECT MIN("Adam") FROM table_38655 WHERE "Peter" < '3' AND "Plat'num" > '6' | wikisql |
CREATE TABLE table_21800 (
"Scientific name" text,
"Common name" text,
"Length (male)" text,
"Length (female)" text,
"Color" text,
"Lifespan (years)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of color for furcifer pardalis
| SELECT COUNT("Color") FROM table_21800 WHERE "Scientific name" = 'Furcifer pardalis' | wikisql |
CREATE TABLE table_23248940_10 (
high_assists VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people led in assists on game 71?
| SELECT COUNT(high_assists) FROM table_23248940_10 WHERE game = 71 | sql_create_context |
CREATE TABLE table_22785 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 3t7461 is th... | SELECT "Directed by" FROM table_22785 WHERE "Production code" = '3T7461' | wikisql |
CREATE TABLE table_204_670 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of fans who attended the december 7 , 1969 ga... | SELECT "attendance" FROM table_204_670 WHERE "date" = 'december 7, 1969' | squall |
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 demographic ... | SELECT demographic.dob FROM demographic WHERE demographic.subject_id = "74463" | mimicsql_data |
CREATE TABLE table_203_41 (
id number,
"name" text,
"variant name(s)" text,
"source" text,
"source coordinates" text,
"length" text,
"mouth" text,
"mouth coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which tributary has at ... | SELECT "name" FROM table_203_41 WHERE "variant name(s)" >= 3 | squall |
CREATE TABLE table_name_70 (
date VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Record of 92 70 had what date?
| SELECT date FROM table_name_70 WHERE record = "92–70" | sql_create_context |
CREATE TABLE table_20928682_1 (
game INTEGER,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game number was played against Georgia?
| SELECT MIN(game) FROM table_20928682_1 WHERE opponent = "Georgia" | sql_create_context |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number... | WITH tmp AS (SELECT p.Id, p.AcceptedAnswerId AS Acc, Period = CASE @Frequency WHEN 1 THEN TIME_TO_STR(bs.CreationDate, '%h') WHEN 2 THEN TIME_TO_STR(bs.CreationDate, '%W') WHEN 3 THEN ROUND((CAST(TIME_TO_STR(bs.CreationDate, '%W') AS FLOAT) + CAST(TIME_TO_STR(bs.CreationDate, '%h') AS FLOAT) / 24), 2) END FROM Posts AS... | sede |
CREATE TABLE table_name_47 (
date VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was the Opponent the Tennessee Titans?
| SELECT date FROM table_name_47 WHERE opponent = "tennessee titans" | sql_create_context |
CREATE TABLE zzmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE zzmzjzjlb.JZZDBM = 'K80.961' AND jyjgzbb.JCZBMC = 'a1酸性糖蛋白' UNION SELECT jyjgzbb.CKZFW... | css |
CREATE TABLE table_name_27 (
rank INTEGER,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the greatest rank for Fifth third center?
| SELECT MAX(rank) FROM table_name_27 WHERE name = "fifth third center" | sql_create_context |
CREATE TABLE table_203_737 (
id number,
"#" number,
"employer" text,
"# of employees" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference between the number of employees at mundelein elementary school district 75 and fremon school di... | SELECT ABS((SELECT "# of employees" FROM table_203_737 WHERE "employer" = 'mundelein elementary school district 75') - (SELECT "# of employees" FROM table_203_737 WHERE "employer" = 'fremont school district 79')) | squall |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
... | SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8908) AND NOT transfers.careunit IS NULL AND STRFTIME('%y', transfers.intime) <= '2104' ORDER BY transfers.intime DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_43191 (
"Team" text,
"Match" text,
"Points" text,
"Draw" text,
"Lost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the draw for a match that had 10 points?
| SELECT "Draw" FROM table_43191 WHERE "Points" = '10' | wikisql |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE admissions (
ro... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions... | mimic_iii |
CREATE TABLE table_70377 (
"Year" real,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"U.S. Open Cup" text,
"Avg. Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which regular season was 2013 in?
| SELECT "Regular Season" FROM table_70377 WHERE "Year" = '2013' | wikisql |
CREATE TABLE table_63766 (
"Coaster Name" text,
"Park" text,
"Location" text,
"Track" text,
"Builder" text,
"Year Opened" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the coaster name that was opened in 1978, and have wooden track?
| SELECT "Coaster Name" FROM table_63766 WHERE "Year Opened" = '1978' AND "Track" = 'wooden' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.