instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE Product_Characteristics (
product_id INTEGER,
characteristic_id INTEGER,
product_characteristic_value VARCHAR(50)
)
CREATE TABLE Ref_Colors (
color_code VARCHAR(15),
color_description VARCHAR(80)
)
CREATE TABLE Ref_Characteristic_Types (
characteristic_type_code VARCHAR(15),
c... | SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY COUNT(product_category_description) DESC | nvbench |
CREATE TABLE table_65357 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the PBA team for roberto jabar who was picked before number 11?
| SELECT "PBA team" FROM table_65357 WHERE "Pick" < '11' AND "Player" = 'roberto jabar' | wikisql |
CREATE TABLE table_1566850_8 (
interview_subject VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the interview subject on the date 1-97?
| SELECT interview_subject FROM table_1566850_8 WHERE date = "1-97" | sql_create_context |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
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_40... | SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality ORDER BY COUNT(Nationality) DESC | nvbench |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | SELECT MAX(vitalperiodic.respiration) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-11182') AND NOT patient.unitdischargetime IS N... | eicu |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
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_... | 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 = 'PHILADELPHIA' AND flight.departure_time < 1200 AND fl... | atis |
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABLE faculty... | SELECT rank, fname, lname FROM faculty | spider |
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT Class, COUNT(Class) FROM captain GROUP BY Class | nvbench |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperio... | SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-185580' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmitt... | eicu |
CREATE TABLE table_name_74 (
fastest_lap VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time was the fastest lap during Stoh's 200 in 1982?
| SELECT fastest_lap FROM table_name_74 WHERE name = "stoh's 200" | sql_create_context |
CREATE TABLE table_55033 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date has a Score of 4 6, 2 6?
| SELECT "Date" FROM table_55033 WHERE "Score" = '4–6, 2–6' | wikisql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-20584')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.ce... | eicu |
CREATE TABLE table_15945862_1 (
december VARCHAR,
september VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What septembers are 17.1 in December?
| SELECT december FROM table_15945862_1 WHERE september = "17.1" | sql_create_context |
CREATE TABLE table_32563 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game where Collingwood w... | SELECT "Date" FROM table_32563 WHERE "Home team" = 'collingwood' | wikisql |
CREATE TABLE table_name_44 (
height VARCHAR,
position VARCHAR,
year_born VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Born in 1982, this guard has what listed as a height?
| SELECT height FROM table_name_44 WHERE position = "guard" AND year_born = 1982 | sql_create_context |
CREATE TABLE table_name_49 (
date VARCHAR,
venue VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did Josh Taumalolo play at Nuku'alofa?
| SELECT date FROM table_name_49 WHERE venue = "nuku'alofa" AND player = "josh taumalolo" | sql_create_context |
CREATE TABLE table_203_788 (
id number,
"year" number,
"author" text,
"illustrator" text,
"title" text,
"publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many titles did walker publish ?
| SELECT COUNT("title") FROM table_203_788 WHERE "publisher" = 'walker' | squall |
CREATE TABLE table_62138 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT MAX("Goal Difference") FROM table_62138 WHERE "Played" > '34' | wikisql |
CREATE TABLE table_61050 (
"Model" text,
"Years" text,
"Engine" text,
"Power" text,
"0\u2013100km/h (62mph)" text,
"Top Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How fast can the SLK200K, with a top speed of 236km/h (147mph), acceler... | SELECT "0\u2013100km/h (62mph)" FROM table_61050 WHERE "Model" = 'slk200k' AND "Top Speed" = '236km/h (147mph)' | wikisql |
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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "0" AND prescriptions.formulary_drug_cd = "DOCU100L" | mimicsql_data |
CREATE TABLE table_26397277_3 (
role_s_ VARCHAR,
pick__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the role for pick number 17
| SELECT role_s_ FROM table_26397277_3 WHERE pick__number = 17 | sql_create_context |
CREATE TABLE table_204_395 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year had the most competitions ?
| SELECT "year" FROM table_204_395 GROUP BY "year" ORDER BY COUNT("competition") DESC LIMIT 1 | squall |
CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
... | SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Headquarters ORDER BY Headquarters | nvbench |
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
... | SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16088)) AND DATETIME(inputevents_cv.charttime) >= DATETIME(CURRENT_TIME(), '-182 d... | mimic_iii |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | SELECT DISTINCT name FROM instructor WHERE NOT name IN (SELECT INSTRUCTORalias1.name FROM course AS COURSEalias0 INNER JOIN course_offering AS COURSE_OFFERINGalias0 ON COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id INNER JOIN offering_instructor AS OFFERING_INSTRUCTOR ON OFFERING_OFFERING_ID = COURSE_OFFERING... | advising |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = '... | advising |
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE days (
days_code varchar,
... | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND date_day.day_number = 20 AND date_day.month_number = 1 AND... | atis |
CREATE TABLE table_19869 (
"Eviction No." real,
"Nominee" text,
"Vote to Save" text,
"Vote to Evict" text,
"Net vote" text,
"Eviction result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many nominees had a net voice of 15.17%
| SELECT COUNT("Nominee") FROM table_19869 WHERE "Net vote" = '15.17%' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 diagnoses.short_title = "Pressure ulcer, stage IV" | mimicsql_data |
CREATE TABLE products (
Name VARCHAR,
Price INTEGER,
manufacturer VARCHAR
)
CREATE TABLE Manufacturers (
name VARCHAR,
code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Select the name of each manufacturer along with the name and price of its ... | SELECT T1.Name, MAX(T1.Price), T2.Name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.Name | sql_create_context |
CREATE TABLE table_33959 (
"Element" text,
"Wood" text,
"Fire" text,
"Earth" text,
"Metal" text,
"Water" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Water has a Metal of contracting?
| SELECT "Water" FROM table_33959 WHERE "Metal" = 'contracting' | wikisql |
CREATE TABLE table_52583 (
"Year" real,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the result for the world group, semifinals after the year 1997?
| SELECT "Result" FROM table_52583 WHERE "Year" > '1997' AND "Competition" = 'world group, semifinals' | wikisql |
CREATE TABLE Timed_Status_of_Things (
thing_id INTEGER,
Date_and_Date DATETIME,
Status_of_Thing_Code CHAR(15)
)
CREATE TABLE Residents_Services (
resident_id INTEGER,
service_id INTEGER,
date_moved_in DATETIME,
property_id INTEGER,
date_requested DATETIME,
date_provided DATETIME,
... | SELECT Type_of_Thing_Code, COUNT(Type_of_Thing_Code) FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id GROUP BY organization_details, Type_of_Thing_Code ORDER BY COUNT(Type_of_Thing_Code) DESC | nvbench |
CREATE TABLE table_name_19 (
studio_host VARCHAR,
play_by_play VARCHAR,
studio_analysts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio A... | SELECT studio_host FROM table_name_19 WHERE play_by_play = "paul sunderland" AND studio_analysts = "jack haley" | sql_create_context |
CREATE TABLE table_62536 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Venue has Against smaller than 6?
| SELECT "Venue" FROM table_62536 WHERE "Against" < '6' | wikisql |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
... | WITH TargetTags AS (SELECT Tags.Id FROM Tags WHERE Tags.TagName LIKE '%visio%' AND NOT Tags.TagName LIKE '%vision%') SELECT Posts.Tags, Posts.Id, 'http://stackoverflow.com/questions/' + REPLACE(STR(Posts.Id), ' ', '') AS PostURL, Posts.Title, Posts.OwnerDisplayName, Posts.CreationDate, Posts.Body FROM Posts INNER JOIN ... | sede |
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old is the average pers... | SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY AVG(age) DESC | nvbench |
CREATE TABLE table_68061 (
"Goal #" real,
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for 30 january 2013
| SELECT "Score" FROM table_68061 WHERE "Date" = '30 january 2013' | wikisql |
CREATE TABLE table_name_50 (
original_name VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original name of the restaurant located in Orillia, ON?
| SELECT original_name FROM table_name_50 WHERE location = "orillia, on" | sql_create_context |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
sy... | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 3 | eicu |
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 Directed_by, COUNT(*) FROM film GROUP BY Directed_by | nvbench |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'warfarin' AND DATETIME(prescriptions.startdate, 'start of year') ... | mimic_iii |
CREATE TABLE table_name_57 (
wins VARCHAR,
top_5 VARCHAR,
top_10 VARCHAR,
cuts_made VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Wins have a Top-10 smaller than 6, and Cuts made larger than 7, and a Top-5 of 0?
| SELECT COUNT(wins) FROM table_name_57 WHERE top_10 < 6 AND cuts_made > 7 AND top_5 = 0 | sql_create_context |
CREATE TABLE Allergy_type (
allergy VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many allergies are there?
| SELECT COUNT(DISTINCT allergy) FROM Allergy_type | sql_create_context |
CREATE TABLE table_name_17 (
group_b VARCHAR,
group_e VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the group B region with a Group E region of Georgia?
| SELECT group_b FROM table_name_17 WHERE group_e = "georgia" | sql_create_context |
CREATE TABLE stock (
Shop_ID VARCHAR,
quantity INTEGER
)
CREATE TABLE shop (
Shop_Name VARCHAR,
Shop_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the name of the shop that have the largest quantity of devices in stock.
| SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY SUM(T1.quantity) DESC LIMIT 1 | sql_create_context |
CREATE TABLE table_name_14 (
record VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record during the event, UFC 27?
| SELECT record FROM table_name_14 WHERE event = "ufc 27" | sql_create_context |
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT DISTINCT year FROM movie AS T1 JOIN rating AS T2 ON T1.mid = T2.mid WHERE T2.stars >= 4 ORDER BY T1.year | spider |
CREATE TABLE table_62466 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sokn)" text,
"Church Name" text,
"Year Built" text,
"Location of the Church" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which Parish (Prestegjeld) is the church called Stava... | SELECT "Parish (Prestegjeld)" FROM table_62466 WHERE "Church Name" = 'stavang kyrkje' | wikisql |
CREATE TABLE mzb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '褚勇男' AND qtb.MED_SER_ORG_NO = '2498476' AND qtb.IN_HOSP_DATE BETWEEN '2017-01-25' AND '2019-12-02' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '褚勇男'... | css |
CREATE TABLE elimination (
elimination_id text,
wrestler_id text,
team text,
eliminated_by text,
elimination_move text,
time text
)
CREATE TABLE wrestler (
wrestler_id number,
name text,
reign text,
days_held text,
location text,
event text
)
-- Using valid SQLite, ans... | SELECT COUNT(*) FROM wrestler | spider |
CREATE TABLE table_68155 (
"Place" text,
"Name" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place in the United States has a To par of e?
| SELECT "Place" FROM table_68155 WHERE "Country" = 'united states' AND "To par" = 'e' | wikisql |
CREATE TABLE table_1397655_1 (
year_acquired INTEGER,
station VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many is the minimum for citv
| SELECT MIN(year_acquired) FROM table_1397655_1 WHERE station = "CITV" | sql_create_context |
CREATE TABLE table_name_64 (
lane INTEGER,
react VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest lane when react is more than 0.164 and the nationality is guinea?
| SELECT MIN(lane) FROM table_name_64 WHERE react > 0.164 AND nationality = "guinea" | sql_create_context |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_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.IN_DIAG_DIS_CD, t_kc21.IN_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_NM = '秦浩然' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 216.54) | css |
CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE employees (
employee_id number,
... | SELECT first_name, department_id FROM employees WHERE last_name = 'McEwen' | spider |
CREATE TABLE table_36717 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of the game before week 5 and a bye game sit... | SELECT "Record" FROM table_36717 WHERE "Week" < '5' AND "Game Site" = 'bye' | wikisql |
CREATE TABLE table_name_40 (
coaster_name VARCHAR,
year_opened VARCHAR,
track VARCHAR
)
-- 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_name_40 WHERE year_opened = "1978" AND track = "wooden" | sql_create_context |
CREATE TABLE table_31749 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which stadium can hold 63,443 people?
| SELECT "Result" FROM table_31749 WHERE "Attendance" = '63,443' | wikisql |
CREATE TABLE table_13636_1 (
first_operational VARCHAR,
programming VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the first operational with programming being not programmable single purpose
| SELECT first_operational FROM table_13636_1 WHERE programming = "Not programmable—single purpose" | 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.days_stay > "5" AND lab.label = "Iron" | mimicsql_data |
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amoun... | SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims) ORDER BY COUNT(Date_Claim_Made) | nvbench |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT COUNT(*) FROM (SELECT gwyjzb.MED_ORG_DEPT_CD FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '5091716' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2006-01-05' AND '2011-12-30' GROUP BY gwyjzb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) < 7482.56 UNION SELECT fgwyjzb.... | css |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'd5 1/2ns' AND DATETIME(prescriptions.startdat... | mimic_iii |
CREATE TABLE table_2472711_32 (
average INTEGER,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum average associated with a total of 221902?
| SELECT MAX(average) FROM table_2472711_32 WHERE total = 221902 | sql_create_context |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT * FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.person_info_XM = '范修然' AND hz_info.YLJGDM = '7077773' AND zyjzjlb.JZKSMC LIKE '%药房%' | css |
CREATE TABLE table_name_14 (
chassis VARCHAR,
driver VARCHAR,
tyre VARCHAR,
engine_† VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the chassis when the tyre is b, the engine is ferrari 050 ferrari 051 and the driver is rubens barrichello?
| SELECT chassis FROM table_name_14 WHERE tyre = "b" AND engine_† = "ferrari 050 ferrari 051" AND driver = "rubens barrichello" | sql_create_context |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
Last... | SELECT (TIME_TO_STR(p.CreationDate, '%Y') * 12) + TIME_TO_STR(p.CreationDate, '%m') AS yearmonth, COUNT(*) AS postcount FROM Posts AS p GROUP BY TIME_TO_STR(p.CreationDate, '%Y'), TIME_TO_STR(p.CreationDate, '%m') ORDER BY TIME_TO_STR(p.CreationDate, '%Y'), TIME_TO_STR(p.CreationDate, '%m') | sede |
CREATE TABLE table_1053802_1 (
winners VARCHAR,
local_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many winners are there of farma?
| SELECT COUNT(winners) FROM table_1053802_1 WHERE local_title = "Farma" | sql_create_context |
CREATE TABLE wdmzjzjlb (
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 COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.YLJGDM = '7510294' AND wdmzjzjlb.JZKSRQ BETWEEN '2004-09-06' AND '2020-10-17' AND wdmzjzjlb.ZSEBZ > 0 UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.YLJGDM = '7510294' AND bdmzjzjlb.JZKSRQ BETWEEN '2004-09-06' AND '2020-10-17' AND bdmzjzjlb.ZSEBZ > 0 | css |
CREATE TABLE table_name_70 (
money___$__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Money of the Player with a Score of 69-71-69-72=281?
| SELECT money___$__ FROM table_name_70 WHERE score = 69 - 71 - 69 - 72 = 281 | sql_create_context |
CREATE TABLE field (
fieldid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE... | SELECT DISTINCT writes.paperid FROM author, paper, writes WHERE author.authorname = 'magda balazinska' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid ORDER BY paper.year DESC | scholar |
CREATE TABLE table_name_79 (
year INTEGER,
college_country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year a Baylor player made the list?
| SELECT MIN(year) FROM table_name_79 WHERE college_country = "baylor" | sql_create_context |
CREATE TABLE table_35593 (
"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 t... | SELECT "Team" FROM table_35593 WHERE "Location Attendance" = 'td waterhouse centre' | wikisql |
CREATE TABLE table_12155 (
"Draft" real,
"Round" text,
"Pick" real,
"Player" text,
"Nationality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Pick, when Draft is less than 1991, and when Player is 'Tom Sasso Category:Articles wi... | SELECT MIN("Pick") FROM table_12155 WHERE "Draft" < '1991' AND "Player" = 'tom sasso category:articles with hcards' | wikisql |
CREATE TABLE bridge (
architect_id int,
id int,
name text,
location text,
length_meters real,
length_feet real
)
CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE mill (
architect_id int,
id int,
location text,
name text,
... | SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id | nvbench |
CREATE TABLE table_9805 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory when the runner-up was Janet Coles?
| SELECT "Margin of victory" FROM table_9805 WHERE "Runner(s)-up" = 'janet coles' | wikisql |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugst... | SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-95970' AND patient.hospitaldischargetime IS NULL)) | eicu |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc21.MED_ORG_DEPT_NM, t_kc21.OUT_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '5262038' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.OUT_DIAG_DIS_NM | css |
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 locations (
LOCATIO... | SELECT COUNTRY_NAME, COUNT(COUNTRY_NAME) FROM countries GROUP BY COUNTRY_NAME ORDER BY COUNTRY_NAME | nvbench |
CREATE TABLE table_38613 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2nd leg score having an aggregate score of 4-2?
| SELECT "2nd leg" FROM table_38613 WHERE "Aggregate" = '4-2' | 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 MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.dob_year > "2095" | mimicsql_data |
CREATE TABLE club (
clublocation VARCHAR,
clubname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the club 'Hopkins Student Enterprises' located?
| SELECT clublocation FROM club WHERE clubname = "Hopkins Student Enterprises" | sql_create_context |
CREATE TABLE table_train_109 (
"id" int,
"serum_potassium" float,
"systolic_blood_pressure_sbp" int,
"body_mass_index_bmi" float,
"hypertension" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- systolic bp >= 170 mmhg
| SELECT * FROM table_train_109 WHERE systolic_blood_pressure_sbp >= 170 | criteria2sql |
CREATE TABLE table_24172157_3 (
team VARCHAR,
incoming_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has an incoming manager named Kenny Dalglish?
| SELECT team FROM table_24172157_3 WHERE incoming_manager = "Kenny Dalglish" | sql_create_context |
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE days (
days_code varchar,
... | 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.arrival_time <= 1800 AND flight.arrival_time >= 1200) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND flight.to_... | atis |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Badges... | SELECT * FROM Posts WHERE NOT ClosedDate IS NULL | sede |
CREATE TABLE table_13394 (
"Rank" real,
"Name" text,
"1st run" text,
"2nd run" text,
"3rd run" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a 2nd run of 39.296 (5)?
| SELECT "Name" FROM table_13394 WHERE "2nd run" = '39.296 (5)' | wikisql |
CREATE TABLE table_40513 (
"Date" real,
"Doubles, I Class" real,
"Doubles, II Class" real,
"Greater Doubles" real,
"Doubles" real,
"Semidoubles" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Greater Doubles,... | SELECT MIN("Greater Doubles") FROM table_40513 WHERE "Doubles, I Class" = '23' AND "Doubles, II Class" < '27' | wikisql |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE patients (
... | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'albumin') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25628) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME()... | mimic_iii |
CREATE TABLE table_3780 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the opponent was the Philadelphia flyers, what was ... | SELECT "Record" FROM table_3780 WHERE "Opponent" = 'Philadelphia Flyers' | wikisql |
CREATE TABLE table_name_96 (
opponent VARCHAR,
tv_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent had a bye for the TV Time?
| SELECT opponent FROM table_name_96 WHERE tv_time = "bye" | sql_create_context |
CREATE TABLE table_16799784_11 (
latitude VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what latitude can the name origin of naijok fossae be found?
| SELECT latitude FROM table_16799784_11 WHERE name = "Naijok Fossae" | 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 SUM(t_kc24.PER_ACC_PAY) FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.PERSON_NM = '花新梅' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2005-06-16' AND '2021-08-24' | css |
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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CR... | 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 GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 4) | mimic_iii |
CREATE TABLE table_203_58 (
id number,
"airline" text,
"airline (in russian)" text,
"licence #" number,
"icao" text,
"iata" text,
"domestic code" text,
"callsign" text,
"photo" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which air... | SELECT "airline" FROM table_203_58 WHERE "callsign" = 'air sakha' | squall |
CREATE TABLE table_502 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"1st leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the competition when 2nd leg is 0 8?
| SELECT "Competition" FROM table_502 WHERE "2nd leg" = '0–8' | 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 demographic.admission_location, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "18480" | mimicsql_data |
CREATE TABLE fzzmzjzjlb (
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,
MZZYZD... | SELECT COUNT(*) FROM person_info JOIN hz_info JOIN zzmzjzjlb 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 WHERE person_info.XM = '苗乐池' AND zzmzjzjlb.JZKSRQ BETWEEN '2005-05-11' AND '2021-10-27' AND zzmzjzjlb.YLJGDM = '4321914' UNI... | css |
CREATE TABLE table_name_75 (
drawn VARCHAR,
goals_against VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number drawn with goals against less than 55, and a total of 14 losses?
| SELECT COUNT(drawn) FROM table_name_75 WHERE goals_against < 55 AND lost = 14 | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.