instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_dev_3 (
"id" int,
"bleeding" int,
"hemoglobin_a1c_hba1c" float,
"trauma" bool,
"diabetic" string,
"creatinine_clearance_cl" float,
"surgery" bool,
"autonomic_dysfunction" bool,
"urine_protein" int,
"proteinuria" int,
"body_mass_index_bmi" float,
"NOUSE"... | SELECT * FROM table_dev_3 WHERE surgery = 1 OR (trauma = 1 AND bleeding > 500) | criteria2sql |
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREAT... | SELECT gender, SUM(student_capacity) FROM Dorm GROUP BY gender ORDER BY gender | nvbench |
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilege... | SELECT COUNT(u.Id) AS "total users", SUM(u.UpVotes) AS "total upvotes", SUM(u.DownVotes) AS "total downvotes" FROM Users AS u | sede |
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 Type, COUNT(Type) FROM ship GROUP BY Type ORDER BY Type | nvbench |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM ... | SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH ... | css |
CREATE TABLE table_name_97 (
wins VARCHAR,
defeated_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins were held before being defeated by toda?
| SELECT COUNT(wins) FROM table_name_97 WHERE defeated_by = "toda" | sql_create_context |
CREATE TABLE table_6867 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Top-10 when the Top-25 is 6, and a Tournament ... | SELECT MIN("Top-10") FROM table_6867 WHERE "Top-25" = '6' AND "Tournament" = 'u.s. open' AND "Cuts made" > '9' | wikisql |
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrase... | SELECT DISTINCT COUNT(paper.paperid) FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'convolutional neural networks' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2016 | scholar |
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(... | SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) ORDER BY budget | nvbench |
CREATE TABLE table_39496 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the smallest amount of earnings when there are more than 18 wins and the rank is 2?
| SELECT MIN("Earnings ( $ )") FROM table_39496 WHERE "Wins" > '18' AND "Rank" = '2' | wikisql |
CREATE TABLE table_43272 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of the Nation with 0 Silver and more than 1 Bronze?
| SELECT MAX("Rank") FROM table_43272 WHERE "Silver" < '1' AND "Bronze" > '1' | wikisql |
CREATE TABLE table_27218002_2 (
originalairdate VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the episode that was written by Fintan Ryan originally air?
| SELECT originalairdate FROM table_27218002_2 WHERE written_by = "Fintan Ryan" | sql_create_context |
CREATE TABLE table_name_26 (
goals_conceded INTEGER,
draw VARCHAR,
goals_scored VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average goals conceded with draw bigger than 7 and goals scored more than 24
| SELECT AVG(goals_conceded) FROM table_name_26 WHERE draw > 7 AND goals_scored > 24 | sql_create_context |
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... | SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_10706879_3 (
winning_team VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The winning team of the race, los angeles times 500 is who?
| SELECT winning_team FROM table_10706879_3 WHERE name = "Los Angeles Times 500" | sql_create_context |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count ... | SELECT c.PostId AS "post_link", C.CreationDate, c.Text AS Body FROM Comments AS C, Posts AS P WHERE ((C.Text LIKE '%should be wiki%' OR C.Text LIKE '%should be a wiki%') AND C.PostId = P.Id AND P.ClosedDate IS NULL AND P.PostTypeId = 1 AND NOT CommunityOwnedDate IS NULL) ORDER BY CreationDate LIMIT 1000 | sede |
CREATE TABLE table_name_7 (
round VARCHAR,
edition VARCHAR,
opponent_team VARCHAR,
outcome VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Round, when Opponent Team is Slovakia, when Outcome is Loser, and when Edition is greater than 2010?
| SELECT round FROM table_name_7 WHERE opponent_team = "slovakia" AND outcome = "loser" AND edition > 2010 | sql_create_context |
CREATE TABLE table_name_80 (
parish__prestegjeld_ VARCHAR,
church_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which Parish (Prestegjeld) is the church called Stavang Kyrkje?
| SELECT parish__prestegjeld_ FROM table_name_80 WHERE church_name = "stavang kyrkje" | sql_create_context |
CREATE TABLE table_2865 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest attendance for games played... | SELECT MIN("Attendance") FROM table_2865 WHERE "Date" = 'December 23' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM mzjzjlb WHERE mzjzjlb.JZLSH = '50289027885' | css |
CREATE TABLE perpetrator (
Name VARCHAR,
People_ID VARCHAR
)
CREATE TABLE people (
Name VARCHAR,
People_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the names of people that are not perpetrators.
| SELECT Name FROM people WHERE NOT People_ID IN (SELECT People_ID FROM perpetrator) | sql_create_context |
CREATE TABLE table_45467 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" real,
"Year named" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the diameter of kaiwan fluctus?
| SELECT "Diameter (km)" FROM table_45467 WHERE "Name" = 'kaiwan fluctus' | wikisql |
CREATE TABLE table_name_67 (
athlete VARCHAR,
run_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a run 2 of 50.67?
| SELECT athlete FROM table_name_67 WHERE run_2 = 50.67 | sql_create_context |
CREATE TABLE table_21436373_6 (
attendance VARCHAR,
type_of_record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of attendance with the pre-season game as the type of record?
| SELECT COUNT(attendance) FROM table_21436373_6 WHERE type_of_record = "Pre-season game" | sql_create_context |
CREATE TABLE table_40890 (
"Draw" real,
"Song" text,
"Performer" text,
"Points" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of points for the song that was ranked 6th and had a draw number smaller than 5?
| SELECT COUNT("Points") FROM table_40890 WHERE "Rank" = '6th' AND "Draw" < '5' | wikisql |
CREATE TABLE table_train_108 (
"id" int,
"mini_mental_state_examination_mmse" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"deficiency_to_iga" bool,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"NOUSE" float
)
-- Using valid SQLite, answer t... | SELECT * FROM table_train_108 WHERE deficiency_to_iga = 1 | criteria2sql |
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
Par... | SELECT pf.PostId AS "post_link", COUNT(*) AS CVs, p.ViewCount AS Views, p.Score, p.AnswerCount AS Answers, p.CreationDate AS Date FROM PendingFlags AS pf INNER JOIN Posts AS p ON p.Id = pf.PostId WHERE FlagTypeId = 14 AND CloseReasonTypeId = '##CloseReasonTypeId?101##' GROUP BY pf.PostId, p.Score, p.ViewCount, p.Answer... | sede |
CREATE TABLE table_33446 (
"Name" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winning driver of the Kraco Car Stereo 150?
| SELECT "Winning driver" FROM table_33446 WHERE "Name" = 'kraco car stereo 150' | wikisql |
CREATE TABLE table_26708105_5 (
common_name VARCHAR,
accession_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the accession number xp_001843282?
| SELECT COUNT(common_name) FROM table_26708105_5 WHERE accession_number = "XP_001843282" | sql_create_context |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChang... | SELECT SUM(CASE WHEN LastActivityDate < DATEADD(mm, -1, GETDATE()) AND Score > 1 THEN 1 ELSE 0 END) FROM Posts WHERE ParentId = 2140 | sede |
CREATE TABLE table_63379 (
"Model" text,
"Years" text,
"Engine code" text,
"Power" text,
"Torque" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power for the model xdrive28i sdrive28i?
| SELECT "Power" FROM table_63379 WHERE "Model" = 'xdrive28i sdrive28i' | wikisql |
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
... | SELECT cName, MIN(enr) FROM College GROUP BY state ORDER BY MIN(enr) DESC | nvbench |
CREATE TABLE table_name_5 (
edition_publisher VARCHAR,
language VARCHAR,
page_size VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)?
| SELECT edition_publisher FROM table_name_5 WHERE language = "italian" AND page_size = "8 inches (20cm) x 5.4 inches (14cm)" | sql_create_context |
CREATE TABLE table_47610 (
"Race" text,
"Date" text,
"Venue" text,
"Winner" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner for the world championship formula 1 at the venue, circuit de monaco?
| SELECT "Winner" FROM table_47610 WHERE "Notes" = 'world championship formula 1' AND "Venue" = 'circuit de monaco' | wikisql |
CREATE TABLE table_204_837 (
id number,
"match" text,
"team" text,
"result points" number,
"match status" number,
"opposition strength" number,
"regional strength" number,
"ranking points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "team" FROM table_204_837 ORDER BY "opposition strength" LIMIT 1 | squall |
CREATE TABLE ftxmzjzjlb (
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 jybgb.KSBM, jybgb.KSMC FROM hz_info JOIN txmzjzjlb JOIN jybgb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '16815496' AND jybgb.BGRQ BETWEEN '2006-09-29... | css |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "LONG TERM CARE HOSPITAL" AND demographic.dob_year < "2058" | mimicsql_data |
CREATE TABLE table_name_2 (
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 125cc winner with circuit of estoril
| SELECT 125 AS cc_winner FROM table_name_2 WHERE circuit = "estoril" | sql_create_context |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.careunit = 'micu' AND DATETIME(transfers.intime) <= DATETIME(CURRENT_TIME(), '-4 year')) | mimic_iii |
CREATE TABLE table_55152 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine \u2020" text,
"Tyre" text,
"Driver" text,
"Rounds" text,
"Free Practice driver(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the rounds w... | SELECT "Rounds" FROM table_55152 WHERE "Entrant" = 'scuderia ferrari marlboro' | wikisql |
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
... | SELECT Allergy, COUNT(*) FROM Has_Allergy GROUP BY Allergy ORDER BY COUNT(*) | nvbench |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following questions for the... | SELECT Founder, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder | nvbench |
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20)... | SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type | nvbench |
CREATE TABLE table_50771 (
"Episode" text,
"Air Date" text,
"Timeslot" text,
"18-49" text,
"Viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode had 6.71 viewers?
| SELECT "Episode" FROM table_50771 WHERE "Viewers" = '6.71' | wikisql |
CREATE TABLE table_58353 (
"Position" text,
"Game 1" text,
"Game 2" text,
"Game 3" text,
"Game 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For which Game 4 did Michael O'Connor play wing position?
| SELECT "Game 4" FROM table_58353 WHERE "Position" = 'wing' AND "Game 1" = 'michael o''connor' | wikisql |
CREATE TABLE table_4278 (
"Season" real,
"Date" text,
"Location" text,
"Discipline" text,
"Position" real,
"FIS points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for 2011 and position larger than 2.0
| SELECT "Date" FROM table_4278 WHERE "Season" = '2011' AND "Position" > '2.0' | wikisql |
CREATE TABLE table_1255 (
"Elected" real,
"Assembled" text,
"Dissolved" text,
"First member" text,
"Second member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different second members were there when John rudhale was first member?
| SELECT COUNT("Second member") FROM table_1255 WHERE "First member" = 'John Rudhale' | wikisql |
CREATE TABLE table_name_22 (
attendance VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has a Date of november 18, 1951?
| SELECT attendance FROM table_name_22 WHERE date = "november 18, 1951" | sql_create_context |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar... | SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE course_offering.friday = ... | advising |
CREATE TABLE museums (
museum_id number,
museum_details text
)
CREATE TABLE locations (
location_id number,
location_name text,
address text,
other_details text
)
CREATE TABLE shops (
shop_id number,
shop_details text
)
CREATE TABLE royal_family (
royal_family_id number,
royal... | SELECT hotel_id, star_rating_code FROM hotels ORDER BY price_range | spider |
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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttim... | SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 56490)) AND DATETIME(outputevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start o... | mimic_iii |
CREATE TABLE table_26140 (
"Year" real,
"Driver" text,
"Constructor" text,
"Location" text,
"Formula" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of formula did Stirling Moss drive?
| SELECT "Formula" FROM table_26140 WHERE "Driver" = 'Stirling Moss' | 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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.days_stay > "4" | mimicsql_data |
CREATE TABLE table_33387 (
"General election" real,
"# of candidates" real,
"# of seats won" real,
"% of popular vote" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the # of candidates of liberal majority with 51 wins and lar... | SELECT AVG("# of candidates") FROM table_33387 WHERE "Result" = 'liberal majority' AND "# of seats won" = '51' AND "General election" > '2008' | wikisql |
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int... | SELECT Name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.Artist_ID = T2.Artist_ID GROUP BY T1.Artist_ID ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_name_87 (
field_goals INTEGER,
touchdowns VARCHAR,
player VARCHAR,
points VARCHAR,
extra_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Herb Graver played, how many field goals were made when there were more than 50... | SELECT AVG(field_goals) FROM table_name_87 WHERE points > 50 AND extra_points > 0 AND player = "herb graver" AND touchdowns < 15 | sql_create_context |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownV... | SELECT Id AS "post_link" FROM Posts WHERE Body LIKE '%enter image description here%' AND ClosedDate IS NULL AND PostTypeId = 1 AND Score < -3 ORDER BY CreationDate DESC | sede |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | 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 = '22512141' AND jyjgzbb.JYRQ BETWEEN '2014-10-25' AND '2017-0... | css |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "AMID200" | mimicsql_data |
CREATE TABLE table_76631 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/g" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Loss, when Long is less than 0?
| SELECT MIN("Loss") FROM table_76631 WHERE "Long" < '0' | wikisql |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
C... | 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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BO... | atis |
CREATE TABLE table_46835 (
"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.
-- When w... | SELECT "Date" FROM table_46835 WHERE "Score" = 'l 111–122 (ot)' | wikisql |
CREATE TABLE table_74737 (
"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 sum of all crowds present at the Gle... | SELECT SUM("Crowd") FROM table_74737 WHERE "Venue" = 'glenferrie oval' | wikisql |
CREATE TABLE table_17356205_1 (
season__number VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season episode is directed by Skipp Sudduth?
| SELECT season__number FROM table_17356205_1 WHERE directed_by = "Skipp Sudduth" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Continuous invasive mechanical ventilation for 96 consecutive hours or more" | mimicsql_data |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.admityear < "2166" | mimicsql_data |
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 diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.religion = "GREEK ORTHODOX" AND diagnoses.long_title = "Physical restraints status" | mimicsql_data |
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train (
Train_ID ... | SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY COUNT(Location) DESC | nvbench |
CREATE TABLE table_204_741 (
id number,
"rank" number,
"name" text,
"nationality" text,
"1,62" text,
"1,67" text,
"1,72" text,
"1,75" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- does ranking 7 or 3 have the least amo... | SELECT "rank" FROM table_204_741 WHERE "rank" IN (7, 3) GROUP BY "rank" ORDER BY COUNT(*) LIMIT 1 | squall |
CREATE TABLE table_24099476_8 (
date VARCHAR,
win_lose VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the win/lose lose and the round a play-off?
| SELECT date FROM table_24099476_8 WHERE win_lose = "Lose" AND round = "Play-off" | sql_create_context |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE... | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID | nvbench |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,... | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb 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 = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHE... | css |
CREATE TABLE table_name_33 (
tournament_venue VARCHAR,
tournament_champion VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Tournament venue has a Tournament Champion of duke and a Record of 15 1?
| SELECT tournament_venue FROM table_name_33 WHERE tournament_champion = "duke" AND record = "15–1" | sql_create_context |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT Score, PostTypeId, COUNT(Score) FROM Posts WHERE PostTypeId IN (1, 2) GROUP BY Score, PostTypeId ORDER BY PostTypeId, Score | sede |
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transa... | SELECT card_type_code, COUNT(card_type_code) FROM Customers_Cards GROUP BY card_type_code ORDER BY card_type_code | nvbench |
CREATE TABLE table_84 (
"Total tenure rank" real,
"Uninterrupted rank" real,
"Name" text,
"State represented" text,
"Dates of service" text,
"Total tenure time" text,
"Uninterrupted time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT "State represented" FROM table_84 WHERE "Name" = 'Ted Stevens' | wikisql |
CREATE TABLE table_name_56 (
loss VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the loss of the game when the record was 3 2?
| SELECT loss FROM table_name_56 WHERE record = "3–2" | sql_create_context |
CREATE TABLE table_17917 (
"Team" text,
"Location" text,
"Stadium" text,
"Founded" real,
"Joined" real,
"Head Coach" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is Westpac Stadium located?
| SELECT "Location" FROM table_17917 WHERE "Stadium" = 'Westpac Stadium' | wikisql |
CREATE TABLE table_79464 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is galway county's total?
| SELECT SUM("Total") FROM table_79464 WHERE "County" = 'galway' | wikisql |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, AVG(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road | 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 COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.YLJGDM = '5701953' AND wdmzjzjlb.JZKSRQ BETWEEN '2003-04-08' AND '2014-07-28' AND wdmzjzjlb.TXBZ > 0 UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.YLJGDM = '5701953' AND bdmzjzjlb.JZKSRQ BETWEEN '2003-04-08' AND '2014-07-28' AND bdmzjzjlb.TXBZ > 0 | css |
CREATE TABLE table_name_31 (
venue VARCHAR,
report VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue has a EAFF report on June 24, 2007?
| SELECT venue FROM table_name_31 WHERE report = "eaff" AND date = "june 24, 2007" | sql_create_context |
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 AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND mzjzjlb_jybgb.YLJGDM = jybgb.YLJ... | css |
CREATE TABLE table_37794 (
"County" text,
"Irish name" text,
"County town" text,
"Most populous city/town" text,
"Province" text,
"Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- County town of castlebar has the most populous city/town?
| SELECT "Most populous city/town" FROM table_37794 WHERE "County town" = 'castlebar' | wikisql |
CREATE TABLE table_name_51 (
character VARCHAR,
episodes VARCHAR,
actor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What character is played by dani harmer for under 23 episodes?
| SELECT character FROM table_name_51 WHERE episodes < 23 AND actor = "dani harmer" | sql_create_context |
CREATE TABLE player_award (
player_id text,
award_id text,
year number,
league_id text,
tie text,
notes text
)
CREATE TABLE hall_of_fame (
player_id text,
yearid number,
votedby text,
ballots text,
needed text,
votes text,
inducted text,
category text,
needed... | SELECT AVG(T2.salary) FROM salary AS T2 JOIN hall_of_fame AS T1 ON T1.player_id = T2.player_id WHERE T1.inducted = "Y" | thehistoryofbaseball |
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 demographic (... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.diagnosis = "BRADYCARDIA" | mimicsql_data |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT CHA_ITEM_LEV FROM t_kc22 WHERE MED_CLINIC_ID = '24614751779' AND SOC_SRT_DIRE_NM = '吡拉西坦片' | css |
CREATE TABLE table_80092 (
"Index" text,
"Name" text,
"Talent Segment" text,
"Acting Segment" text,
"Overall Ranking" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the event with index f9, what's the talent segment?
| SELECT "Talent Segment" FROM table_80092 WHERE "Index" = 'f9' | wikisql |
CREATE TABLE table_76544 (
"Year" real,
"Date" text,
"Race name" text,
"Winner" text,
"Engine" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did Ted Horn win Lakewood Race 2?
| SELECT "Date" FROM table_76544 WHERE "Winner" = 'ted horn' AND "Race name" = 'lakewood race 2' | wikisql |
CREATE TABLE table_21321935_2 (
date VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Oliver Jarvis have pole position?
| SELECT date FROM table_21321935_2 WHERE pole_position = "Oliver Jarvis" | 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 jybgb.BGDH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN 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 = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '韩志明' AND NOT ... | css |
CREATE TABLE table_name_31 (
rank VARCHAR,
laps VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the rank for laps less than 130 and year of 1951
| SELECT rank FROM table_name_31 WHERE laps < 130 AND year = "1951" | sql_create_context |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT OUT_DIAG_DIS_CD, OUT_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_ID = '89569884' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc24 WHERE MED_AMOUT >= 6947.2) | css |
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 qtb.MAIN_COND_DES FROM qtb WHERE qtb.MED_CLINIC_ID = '76565041487' UNION SELECT gyb.MAIN_COND_DES FROM gyb WHERE gyb.MED_CLINIC_ID = '76565041487' UNION SELECT zyb.MAIN_COND_DES FROM zyb WHERE zyb.MED_CLINIC_ID = '76565041487' UNION SELECT mzb.MAIN_COND_DES FROM mzb WHERE mzb.MED_CLINIC_ID = '76565041487' | css |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
... | 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 = 'nonsquamous epithelial cell') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURR... | mimic_iii |
CREATE TABLE table_204_920 (
id number,
"goal" number,
"date" text,
"location" text,
"opponent" text,
"lineup" text,
"min" number,
"assist/pass" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT COUNT("assist/pass") FROM table_204_920 WHERE "assist/pass" = 'tarpley' | squall |
CREATE TABLE table_34608 (
"Coefficient" text,
"Parts-per example" text,
"Uno equiv." text,
"Symbol form" text,
"Value of quantity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Coefficient of 2 ppt?
| SELECT "Coefficient" FROM table_34608 WHERE "Parts-per example" = '2 ppt' | wikisql |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepi... | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-18575')) AND vitalperiodic.respiration < 35.0 A... | eicu |
CREATE TABLE table_name_22 (
ship VARCHAR,
launched VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ship launched 29 may 1934
| SELECT ship FROM table_name_22 WHERE launched = "29 may 1934" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.