instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_6137 (
"Surname" text,
"First" text,
"D.O.B." text,
"Uni#" real,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which first's surname is Cook?
| SELECT "First" FROM table_6137 WHERE "Surname" = 'cook' | wikisql |
CREATE TABLE table_name_27 (
rim_diameter VARCHAR,
neck_diameter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rim diameter has a Neck diameter of 11.84 (.466)?
| SELECT rim_diameter FROM table_name_27 WHERE neck_diameter = "11.84 (.466)" | sql_create_context |
CREATE TABLE cite (
cited int,
citing int
)
CREATE TABLE publication_keyword (
kid int,
pid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE domain_... | SELECT publication.title FROM author, conference, publication, writes WHERE author.name = 'H. V. Jagadish' AND conference.name = 'VLDB' AND publication.cid = conference.cid AND publication.citation_num > 200 AND writes.aid = author.aid AND writes.pid = publication.pid | academic |
CREATE TABLE table_52455 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the 1st leg for team being budoni (Sardinia)
| SELECT "1st leg" FROM table_52455 WHERE "Team 1" = 'budoni (sardinia)' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "10" AND lab.fluid = "Joint Fluid" | mimicsql_data |
CREATE TABLE table_41873 (
"First District" text,
"Second District" text,
"Third District" text,
"Fourth District" text,
"Fifth District" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's Fourth District has a Second District of bob springstead?
| SELECT "Fourth District" FROM table_41873 WHERE "Second District" = 'bob springstead' | wikisql |
CREATE TABLE table_name_92 (
rank INTEGER,
matches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of the player with 362 Matches?
| SELECT MAX(rank) FROM table_name_92 WHERE matches = 362 | 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 intakeoutput (
in... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | eicu |
CREATE TABLE table_22016 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the follo... | SELECT "Try bonus" FROM table_22016 WHERE "Tries for" = '80' | wikisql |
CREATE TABLE table_11072 (
"Pick" real,
"Round" real,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round has an offensive tackle position?
| SELECT "Round" FROM table_11072 WHERE "Position" = 'offensive tackle' | wikisql |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '许天蓝' AND t_kc21.MED_SER_ORG_NO = '0791593' AND t_kc21.IN_DIAG_DIS_NM LIKE '%阻塞性%' | css |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE hz_info (
KH text,
KLX number... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb 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 = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzb... | css |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id numb... | SELECT * FROM Votes WHERE Votes.PostId = 19 AND Votes.VoteTypeId = 2 | sede |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZ... | css |
CREATE TABLE table_42002 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Liberal ticket" text,
"Conservative ticket" text,
"Socialist Workers ticket" text,
"Socialist Labor ticket" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Democratic ticket" FROM table_42002 WHERE "Socialist Labor ticket" = 'john emanuel' | wikisql |
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location ... | 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON... | atis |
CREATE TABLE table_55735 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an... | SELECT MAX("Swimsuit") FROM table_55735 WHERE "Average" < '8.073' AND "Evening gown" < '8.31' AND "Interview" > '8.23' AND "State" = 'georgia' | wikisql |
CREATE TABLE table_name_44 (
total VARCHAR,
gold INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total Gold's less than 0?
| SELECT COUNT(total) FROM table_name_44 WHERE gold < 0 | sql_create_context |
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
CREATE TABLE files (
f_id numbe... | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english" | spider |
CREATE TABLE table_22089 (
"Team / Competition" text,
"2008 Suruga Bank Championship" text,
"2008 Recopa Sudamericana" text,
"2008 Copa Sudamericana" text,
"2009 Copa Libertadores" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many teams were f... | SELECT COUNT("2008 Suruga Bank Championship") FROM table_22089 WHERE "2008 Copa Sudamericana" = 'First Round eliminated by Estudiantes' | wikisql |
CREATE TABLE table_18019 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game when the attendance was 48945?
| SELECT "Result" FROM table_18019 WHERE "Attendance" = '48945' | wikisql |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 70645 AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.dischtime LIMIT 1 | mimic_iii |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
Ex... | SELECT COUNT(Id) AS c, AVG(UpVotes), AVG(DownVotes), Location FROM Users WHERE Reputation > 14 GROUP BY Location ORDER BY c DESC | sede |
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int
)
CREATE TABLE EM... | SELECT DEPT_CODE, SUM(CRS_CREDIT) FROM COURSE GROUP BY DEPT_CODE ORDER BY SUM(CRS_CREDIT) DESC | nvbench |
CREATE TABLE table_name_3 (
date VARCHAR,
attendance INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date's attendance was more than 35,540?
| SELECT date FROM table_name_3 WHERE attendance > 35 OFFSET 540 | sql_create_context |
CREATE TABLE table_name_78 (
title VARCHAR,
series__number VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the title for the production code less than 706 with series number more than 175
| SELECT title FROM table_name_78 WHERE series__number > 175 AND production_code < 706 | 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 WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.age < "79" | mimicsql_data |
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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2121" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | mimicsql_data |
CREATE TABLE table_1620397_5 (
series_sorted VARCHAR,
_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What series was sorted at number 3?
| SELECT series_sorted FROM table_1620397_5 WHERE _number = 3 | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2114" AND lab.itemid = "50806" | mimicsql_data |
CREATE TABLE table_29393 (
"Model Number" text,
"Frequency" text,
"L2 Cache" text,
"HT" text,
"Mult. 1" text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Order Part Number" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Model Number" FROM table_29393 WHERE "Order Part Number" = 'TMRM75DAM22GG' | wikisql |
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_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.IN_DIAG_DIS_NM = '癫痫性精神病' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjzb.IN_DIAG_D... | css |
CREATE TABLE teaches (
id text,
course_id text,
sec_id text,
semester text,
year number
)
CREATE TABLE prereq (
course_id text,
prereq_id text
)
CREATE TABLE time_slot (
time_slot_id text,
day text,
start_hr number,
start_min number,
end_hr number,
end_min number
)
... | SELECT dept_name FROM department ORDER BY budget LIMIT 1 | spider |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
T... | SELECT RANK() OVER (ORDER BY SUM(p.ViewCount) DESC) AS "rank", p.OwnerUserId AS "user_link", p.OwnerDisplayName, SUM(p.ViewCount) AS "total_views", SUM(CASE WHEN p.CommunityOwnedDate IS NULL THEN p.ViewCount ELSE 0 END) AS "noncw_views", COUNT(p.Id) AS "count", SUM(CASE WHEN p.CommunityOwnedDate IS NULL THEN 1 ELSE 0 E... | sede |
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 d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
... | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | mimic_iii |
CREATE TABLE table_name_12 (
goals INTEGER,
rank VARCHAR,
current_club VARCHAR,
ratio VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Goals have a Current Club of real madrid, and a Ratio smaller than 1.08, and a Rank smaller than 5?
| SELECT MAX(goals) FROM table_name_12 WHERE current_club = "real madrid" AND ratio < 1.08 AND rank < 5 | sql_create_context |
CREATE TABLE problem_category_codes (
problem_category_code text,
problem_category_description text
)
CREATE TABLE product (
product_id number,
product_name text,
product_details text
)
CREATE TABLE problem_log (
problem_log_id number,
assigned_to_staff_id number,
problem_id number,
... | SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995" | spider |
CREATE TABLE table_name_52 (
license_plate_code VARCHAR,
area__sqmi_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the license plate code for the country with an area of 784?
| SELECT license_plate_code FROM table_name_52 WHERE area__sqmi_ = 784 | sql_create_context |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '80675111' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费' | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.language = "ENGL" AND diagnoses.long_title = "Chronic total occlusion of coronary artery" | mimicsql_data |
CREATE TABLE table_63100 (
"Draw" real,
"Singer" text,
"Song" text,
"Points" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Song has Points smaller than 54, and a Draw smaller than 4, and a Place smaller than 10?
| SELECT "Song" FROM table_63100 WHERE "Points" < '54' AND "Draw" < '4' AND "Place" < '10' | wikisql |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
C... | SELECT Comment FROM PostHistory WHERE CreationDate > '2019-01-01' AND PostHistoryTypeId IN (35, 36) | sede |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
De... | SELECT DISTINCT Posts.OwnerUserId, Users.DisplayName, Users.DisplayName, Reputation, ProfileImageUrl, AccountId FROM Posts INNER JOIN PostTags ON Posts.ParentId = PostTags.PostId INNER JOIN Users ON Posts.OwnerUserId = Users.Id WHERE Posts.PostTypeId = 2 AND PostTags.TagId IN (66326, 80737, 80738) | sede |
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 WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.age < "64" | mimicsql_data |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit ... | SELECT COUNT(*) > 0 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 = 9299)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'free h20'... | mimic_iii |
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 mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM mzjzjlb WHERE mzjzjlb.JZLSH = '69348543973' | css |
CREATE TABLE table_name_91 (
nominative VARCHAR,
dative VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nominative has mis as the dative?
| SELECT nominative FROM table_name_91 WHERE dative = "mis" | sql_create_context |
CREATE TABLE home_game (
team_id VARCHAR,
year VARCHAR,
attendance VARCHAR
)
CREATE TABLE team (
name VARCHAR,
team_id_br VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had the least number of attendances in home games in 1980?
| SELECT T2.name FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T1.year = 1980 ORDER BY T1.attendance LIMIT 1 | sql_create_context |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'cd4/cd8 ratio')) | mimic_iii |
CREATE TABLE table_21668 (
"Season in Tamil" text,
"English Transliteration" text,
"English Translation" text,
"Season in Sanskrit" text,
"Season in English" text,
"Tamil Months" text,
"Gregorian Months" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Tamil Months" FROM table_21668 WHERE "Season in English" = 'Monsoon' | wikisql |
CREATE TABLE table_name_43 (
promotions INTEGER,
team VARCHAR,
relegations VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?
| SELECT MAX(promotions) FROM table_name_43 WHERE team = "pallacanestro messina" AND relegations > 0 | sql_create_context |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | SELECT SOC_SRT_DIRE_NM, AMOUNT, MED_CLINIC_ID FROM t_kc22 WHERE (MED_CLINIC_ID = '87141515848' OR MED_CLINIC_ID = '39256573069') AND SOC_SRT_DIRE_NM IN ((SELECT SOC_SRT_DIRE_NM FROM t_kc22 WHERE MED_CLINIC_ID = '87141515848') INTERSECT (SELECT SOC_SRT_DIRE_NM FROM t_kc22 WHERE MED_CLINIC_ID = '39256573069')) | css |
CREATE TABLE table_name_30 (
el_samurai VARCHAR,
mazada VARCHAR,
ryuji_hijikata VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the El samurai with MAZADA of x for Ryuji Hijikata of draw (30:00)
| SELECT el_samurai FROM table_name_30 WHERE mazada = "x" AND ryuji_hijikata = "draw (30:00)" | sql_create_context |
CREATE TABLE match (
round number,
location text,
country text,
date text,
fastest_qualifying text,
winning_pilot text,
winning_aircraft text
)
CREATE TABLE aircraft (
aircraft_id number,
aircraft text,
description text,
max_gross_weight text,
total_disk_area text,
m... | SELECT AVG(T3.total_passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.aircraft_id = T2.aircraft_id JOIN airport AS T3 ON T2.airport_id = T3.airport_id WHERE T1.aircraft = "Robinson R-22" | spider |
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 director FROM movie WHERE director <> "null" GROUP BY director HAVING COUNT(*) = 1 | spider |
CREATE TABLE table_11336756_6 (
junctions VARCHAR,
remarks VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which junctions have 'replaced by bsi-35' listed in their remarks section?
| SELECT junctions FROM table_11336756_6 WHERE remarks = "Replaced by BSI-35" | sql_create_context |
CREATE TABLE table_28243323_1 (
name_of_team_song VARCHAR,
writer_composer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How man teams have a writer named harry angus?
| SELECT COUNT(name_of_team_song) FROM table_28243323_1 WHERE writer_composer = "Harry Angus" | sql_create_context |
CREATE TABLE table_203_607 (
id number,
"catalogue number" text,
"artist" text,
"release title" text,
"format" text,
"release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first release title from coh ?
| SELECT "release title" FROM table_203_607 WHERE "artist" = 'coh' ORDER BY "release date" LIMIT 1 | squall |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
... | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-4763' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime L... | eicu |
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.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb 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 = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH =... | css |
CREATE TABLE table_201_39 (
id number,
"no" number,
"title" text,
"directed by" text,
"released" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many titles did bob balsar direct ?
| SELECT COUNT("title") FROM table_201_39 WHERE "directed by" = 'bob balsar' | squall |
CREATE TABLE table_6938 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the game is listed as 2, what is the score?
| SELECT "Score" FROM table_6938 WHERE "Game" = '2' | wikisql |
CREATE TABLE table_name_63 (
series_percent VARCHAR,
total_attempted VARCHAR,
percent_made VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total series percent that has total attempted less than 49, and a percent made of 0.777
| SELECT COUNT(series_percent) FROM table_name_63 WHERE total_attempted < 49 AND percent_made = 0.777 | sql_create_context |
CREATE TABLE table_73740 (
"Year" real,
"Division" real,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of playoffs for 3rd round
| SELECT COUNT("Playoffs") FROM table_73740 WHERE "Open Cup" = '3rd Round' | wikisql |
CREATE TABLE driver (
driver_id number,
name text,
party text,
home_city text,
age number
)
CREATE TABLE school (
school_id number,
grade text,
school text,
location text,
type text
)
CREATE TABLE school_bus (
school_id number,
driver_id number,
years_working number... | SELECT MAX(years_working), MIN(years_working), AVG(years_working) FROM school_bus | spider |
CREATE TABLE table_32301 (
"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 was thome home team whose opponent scored 9... | SELECT "Home team" FROM table_32301 WHERE "Crowd" > '19,115' AND "Away team score" = '9.14 (68)' | 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2052" AND lab.label = "Thyroxine (T4), Free" | mimicsql_data |
CREATE TABLE table_21728 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original airdate" text,
"Production Code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "Written by" FROM table_21728 WHERE "U.S. viewers (million)" = '3.73' | wikisql |
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE stude... | SELECT building, COUNT(building) FROM department GROUP BY building ORDER BY building DESC | nvbench |
CREATE TABLE table_28803803_1 (
launched VARCHAR,
original_channel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many shows were launched on CBS (2002)?
| SELECT COUNT(launched) FROM table_28803803_1 WHERE original_channel = "CBS (2002)" | sql_create_context |
CREATE TABLE table_name_55 (
player VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player in round 1?
| SELECT player FROM table_name_55 WHERE round = 1 | sql_create_context |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY AVG(SALARY) | nvbench |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT jybgb.SHSJ FROM hz_info JOIN mzjzjlb JOIN jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.person_info_XM = '奚白云' AND jybgb.BGRQ BETWEEN '2009-09-21' AND '2012-11-03' ... | css |
CREATE TABLE table_77572 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"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("Position") FROM table_77572 WHERE "Losses" < '17' AND "Goals for" > '57' AND "Goal Difference" < '4' | wikisql |
CREATE TABLE table_21048 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games ... | SELECT "Played" FROM table_21048 WHERE "Points" = '48' | wikisql |
CREATE TABLE table_name_74 (
winning_score VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What winning score has kraft nabisco championship as the tournament?
| SELECT winning_score FROM table_name_74 WHERE tournament = "kraft nabisco championship" | 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 AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) 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.JZZDSM = '口齿病(龋齿病)' AND jyjgzbb.JCZBDM = ... | css |
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
-- Using valid SQLite, answer the ... | SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY COUNT(DISTINCT T1.Workshop_ID) | nvbench |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
CO... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE | nvbench |
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 T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Manufacturer | nvbench |
CREATE TABLE table_name_77 (
city_of_license VARCHAR,
identifier VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city of license has cbon-fm-11 as the identifier?
| SELECT city_of_license FROM table_name_77 WHERE identifier = "cbon-fm-11" | sql_create_context |
CREATE TABLE table_name_67 (
round VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was on 7 January 2003?
| SELECT round FROM table_name_67 WHERE date = "7 january 2003" | sql_create_context |
CREATE TABLE table_55593 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Aalborg BK is Team 1, what is the 1st leg?
| SELECT "1st leg" FROM table_55593 WHERE "Team 1" = 'aalborg bk' | wikisql |
CREATE TABLE table_58862 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country has a Player with Playoff Money with a Score of 72-69-73-73=287?
| SELECT "Country" FROM table_58862 WHERE "Money ( $ )" = 'playoff' AND "Score" = '72-69-73-73=287' | wikisql |
CREATE TABLE table_name_11 (
date VARCHAR,
opponents VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When were scottish football league xi the opponents with a score of 1-5?
| SELECT date FROM table_name_11 WHERE opponents = "scottish football league xi" AND score = "1-5" | sql_create_context |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime tim... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'dvrtclo sml int w hmrhg')) | mimic_iii |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
... | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 63368 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.l... | mimic_iii |
CREATE TABLE table_35753 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When someone was first elected in 1898 what was the result?
| SELECT "Result" FROM table_35753 WHERE "First elected" = '1898' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '013-33898') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT medication.drugname FROM medica... | eicu |
CREATE TABLE table_37457 (
"Team" text,
"Car(s)" text,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Crew Chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the driver of the team with the crew chief Derrick Finley?
| SELECT "Driver(s)" FROM table_37457 WHERE "Crew Chief" = 'derrick finley' | wikisql |
CREATE TABLE table_name_73 (
incumbent VARCHAR,
republican VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Incumbent has a Republican of dan mansell?
| SELECT incumbent FROM table_name_73 WHERE republican = "dan mansell" | sql_create_context |
CREATE TABLE table_14836 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who swam in a lane less than 6 and finished with a time of 2:11.02?
| SELECT "Name" FROM table_14836 WHERE "Lane" < '6' AND "Time" = '2:11.02' | wikisql |
CREATE TABLE table_36471 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which February has a Game of 40?
| SELECT "February" FROM table_36471 WHERE "Game" = '40' | wikisql |
CREATE TABLE table_name_3 (
location VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the location of the game against the Houston Oilers?
| SELECT location FROM table_name_3 WHERE opponent = "houston oilers" | sql_create_context |
CREATE TABLE table_78725 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Arena" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Points have a Score of 3 2, and an Atten... | SELECT SUM("Points") FROM table_78725 WHERE "Score" = '3–2' AND "Attendance" > '17,398' | wikisql |
CREATE TABLE table_name_60 (
fuel_system VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What fuel system does the diesel engines model have?
| SELECT fuel_system FROM table_name_60 WHERE model = "diesel engines" | sql_create_context |
CREATE TABLE table_17257687_1 (
event_2 VARCHAR,
event_4 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When event 4 was Whiplash, what was event 2?
| SELECT event_2 FROM table_17257687_1 WHERE event_4 = "Whiplash" | sql_create_context |
CREATE TABLE table_66048 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of the game when the record was 11-12?
| SELECT "Game" FROM table_66048 WHERE "Record" = '11-12' | wikisql |
CREATE TABLE table_name_68 (
mintage VARCHAR,
theme VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total mintage for years after 2002 that had a 85th Anniversary of Vimy Ridge theme?
| SELECT COUNT(mintage) FROM table_name_68 WHERE theme = "85th anniversary of vimy ridge" AND year > 2002 | sql_create_context |
CREATE TABLE table_name_80 (
tonnage_grt INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most tonnage grt of any ship sunk or captured on 16 jan 16?
| SELECT MAX(tonnage_grt) FROM table_name_80 WHERE date = "16 jan 16" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.