instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 27172 AND admissions.dischtime IS NULL | mimic_iii |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patientheal... | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | eicu |
CREATE TABLE table_24639086_3 (
original_air_date VARCHAR,
viewers__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the amount of viewers is 2.48 million, what is the original air date?
| SELECT original_air_date FROM table_24639086_3 WHERE viewers__in_millions_ = "2.48" | sql_create_context |
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE ground... | SELECT DISTINCT flight.flight_id FROM airport_service, city, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE ((DATE_DAY_0.day_number = 22 AND DATE_DAY_0.month_number = 3 AND DATE_DAY_0.year = 1991 AND... | atis |
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_id varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester... | advising |
CREATE TABLE table_16510 (
"Hand" text,
"1 credit" real,
"2 credits" real,
"3 credits" real,
"4 credits" real,
"5 credits" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many 4 credits is the hand two pair?
| SELECT COUNT("4 credits") FROM table_16510 WHERE "Hand" = 'Two pair' | wikisql |
CREATE TABLE table_39565 (
"Role" text,
"D'Oyly Carte 1920 Tour" text,
"D'Oyly Carte 1930 Tour" text,
"D'Oyly Carte 1939 Tour" text,
"D'Oyly Carte 1945 Tour" text,
"D'Oyly Carte 1950 Tour" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Role of w... | SELECT "D'Oyly Carte 1945 Tour" FROM table_39565 WHERE "Role" = 'wilfred' | wikisql |
CREATE TABLE table_name_90 (
club VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What club had a loss of 15?
| SELECT club FROM table_name_90 WHERE lost = "15" | 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_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 = '0781537' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.OUT_DIAG_DIS_NM | css |
CREATE TABLE table_50198 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Money ($), when Score is 70-71-70-69=280?
| SELECT SUM("Money ( $ )") FROM table_50198 WHERE "Score" = '70-71-70-69=280' | wikisql |
CREATE TABLE table_56273 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the record was 39-62?
| SELECT "Score" FROM table_56273 WHERE "Record" = '39-62' | wikisql |
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
... | SELECT DISTINCT COURSE_0.department, COURSE_0.name, COURSE_0.number FROM course AS COURSE_0 INNER JOIN course_prerequisite ON COURSE_0.course_id = course_prerequisite.pre_course_id INNER JOIN course AS COURSE_1 ON COURSE_1.course_id = course_prerequisite.course_id INNER JOIN area ON COURSE_0.course_id = area.course_id ... | advising |
CREATE TABLE table_11963601_11 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in the game on May 11?
| SELECT score FROM table_11963601_11 WHERE date = "May 11" | sql_create_context |
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType | nvbench |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text... | SELECT SHRGH, SHRXM FROM jybgb WHERE BGDH = '34439326471' | css |
CREATE TABLE table_name_80 (
home_team VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Home Team in Game 2?
| SELECT home_team FROM table_name_80 WHERE game = "game 2" | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT t_kc21.MED_ORG_DEPT_CD, AVG(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '7336183' GROUP BY t_kc21.MED_ORG_DEPT_CD | css |
CREATE TABLE table_16559 (
"#" real,
"Episode" text,
"Air Date" text,
"Time slot (EST)" text,
"Rating" text,
"Share" real,
"18-49 (Rating/Share)" text,
"Viewers (m)" text,
"Rank (Overall)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Time slot (EST)" FROM table_16559 WHERE "Rating" = '6.3' | wikisql |
CREATE TABLE table_25318 (
"Game" text,
"Date" text,
"Champion" text,
"Score" text,
"Runner Up" text,
"Stadium" text,
"City" text,
"Ted Morris Memorial Trophy (Game MVP)" text,
"Bruce Coulter Award" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT "Ted Morris Memorial Trophy (Game MVP)" FROM table_25318 WHERE "Date" = 'November 22, 2008' | wikisql |
CREATE TABLE table_name_41 (
winning_driver VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the winning driver for monaco grand prix
| SELECT winning_driver FROM table_name_41 WHERE name = "monaco grand prix" | sql_create_context |
CREATE TABLE table_67391 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term in office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What member is in the liberal party and has an electorate of bruce?
| SELECT "Member" FROM table_67391 WHERE "Party" = 'liberal' AND "Electorate" = 'bruce' | wikisql |
CREATE TABLE table_203_613 (
id number,
"formula" text,
"color" text,
"symmetry" text,
"space group" text,
"no" number,
"pearson symbol" text,
"a (pm)" number,
"b (pm)" number,
"c (pm)" number,
"z" number,
"density, g/cm3" number
)
-- Using valid SQLite, answer the foll... | SELECT "formula" FROM table_203_613 ORDER BY "density, g/cm3" LIMIT 1 | squall |
CREATE TABLE table_29129 (
"Name" text,
"Position" text,
"Height" text,
"Weight" real,
"Age" real,
"Home Town" text,
"Team/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How tall is the player from farmington, ky?
| SELECT "Height" FROM table_29129 WHERE "Home Town" = 'Farmington, KY' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
... | SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'narcan' AND patient.uniquepid = '025-33728' AND STRFTIME('%y-%m', medication.drugstarttime) <= '2103-07') AS t1 JOIN (SEL... | eicu |
CREATE TABLE table_name_33 (
design VARCHAR,
denomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What stamp design has a denomination of $1.18?
| SELECT design FROM table_name_33 WHERE denomination = "$1.18" | 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_kc22.MED_INV_ITEM_TYPE FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '66824026743' AND t_kc22.SOC_SRT_DIRE_CD = '6637' | css |
CREATE TABLE table_204_230 (
id number,
"team #1" text,
"agg." text,
"team #2" text,
"1st match" text,
"2nd match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total amount of points scored between topolniky and union landhaus in ... | SELECT "1st match" + "1st match" FROM table_204_230 WHERE "team #1" = 'topolniky' | squall |
CREATE TABLE table_name_55 (
award VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which award is in the category of best music video?
| SELECT award FROM table_name_55 WHERE category = "best music video" | sql_create_context |
CREATE TABLE table_55520 (
"Rank" real,
"Name" text,
"Nation" text,
"SP+FS" real,
"Points" real,
"Places" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest SP+FS that has 131.02 Points, and a Rank larger than 15?
| SELECT MAX("SP+FS") FROM table_55520 WHERE "Points" = '131.02' AND "Rank" > '15' | wikisql |
CREATE TABLE table_52772 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location had a final score of W 30 5?
| SELECT "Location" FROM table_52772 WHERE "Final Score" = 'w 30 – 5' | wikisql |
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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "76" AND diagnoses.icd9_code = "99591" | mimicsql_data |
CREATE TABLE School (
School_id text,
School_name text,
Location text,
Mascot text,
Enrollment int,
IHSAA_Class text,
IHSAA_Football_Class text,
County text
)
CREATE TABLE budget (
School_id int,
Year int,
Budgeted int,
total_budget_percent_budgeted real,
Invested in... | SELECT County, COUNT(*) FROM School GROUP BY County ORDER BY County | nvbench |
CREATE TABLE table_160728_4 (
network VARCHAR,
station VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What station on the network is tv3?
| SELECT network FROM table_160728_4 WHERE station = "TV3" | sql_create_context |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_co... | SELECT MAX(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'syst/diast hrt fail nos') AND DATETIME(diagnoses_icd.charttime) <= DATETIME(CURRENT_TIME(), '-1 year')... | mimic_iii |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_ID number
)
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,
... | SELECT t_kc21.OUT_DIAG_DOC_CD, t_kc21.OUT_DIAG_DOC_NM FROM t_kc21 WHERE t_kc21.PERSON_ID = '59902632' AND t_kc21.IN_HOSP_DATE BETWEEN '2001-07-28' AND '2006-07-31' GROUP BY t_kc21.OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int... | SELECT Country, AVG(Age) FROM artist GROUP BY Country ORDER BY Country | nvbench |
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREA... | SELECT DISTINCT COUNT(paper.paperid), writes.authorid FROM keyphrase, paper, paperkeyphrase, writes WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.paperid = paper.paperid GROUP BY writes.authorid ORDER BY CO... | scholar |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_i... | SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12367) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'potassium, whole blood') AND DATETIME(labevents.charttime, 'start of year')... | mimic_iii |
CREATE TABLE student (
dept_code VARCHAR,
stu_hrs INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the total number of hours have done for all students in each department.
| SELECT SUM(stu_hrs), dept_code FROM student GROUP BY dept_code | sql_create_context |
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_co... | SELECT DISTINCT flight_id FROM flight WHERE (((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 27 AND DATE_DAYalias0.month_number = 8 AND DATE_DAYalias0.year = 1991)) AND to... | atis |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT procedures.long_title, prescriptions.route FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Marilyn Norvell" | mimicsql_data |
CREATE TABLE table_64839 (
"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 bronze number for the nation with less than 0 gold?
| SELECT MIN("Bronze") FROM table_64839 WHERE "Gold" < '0' | wikisql |
CREATE TABLE table_45705 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round of the draft was Stan Adams selected?
| SELECT AVG("Round") FROM table_45705 WHERE "Player" = 'stan adams' | wikisql |
CREATE TABLE table_name_60 (
total VARCHAR,
set_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Total has a Set 2 of 19 25?
| SELECT total FROM table_name_60 WHERE set_2 = "19–25" | sql_create_context |
CREATE TABLE table_name_94 (
crowd INTEGER,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest crowd at the Victoria Park Venue?
| SELECT MIN(crowd) FROM table_name_94 WHERE venue = "victoria park" | sql_create_context |
CREATE TABLE table_name_17 (
rank VARCHAR,
cause_of_death VARCHAR,
badge_serial_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of the Officer with Badge/Serial Number 11755 who died in Gunfire?
| SELECT rank FROM table_name_17 WHERE cause_of_death = "gunfire" AND badge_serial_number = "11755" | sql_create_context |
CREATE TABLE table_name_59 (
money___ INTEGER,
country VARCHAR,
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much is the money ($) when the country is united states, to par is e and the score is 72-75-70-71=288?
| SELECT SUM(money___) AS $__ FROM table_name_59 WHERE country = "united states" AND to_par = "e" AND score = 72 - 75 - 70 - 71 = 288 | sql_create_context |
CREATE TABLE table_1132588_3 (
pole_position VARCHAR,
constructor VARCHAR,
grand_prix VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pole position for the ferrari at the austrian grand prix?
| SELECT pole_position FROM table_1132588_3 WHERE constructor = "Ferrari" AND grand_prix = "Austrian grand_prix" | sql_create_context |
CREATE TABLE table_1979619_3 (
district INTEGER,
residence VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the district for newtown square
| SELECT MIN(district) FROM table_1979619_3 WHERE residence = "Newtown Square" | sql_create_context |
CREATE TABLE table_name_44 (
build_year VARCHAR,
total_production VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the build year for total production of 150
| SELECT build_year FROM table_name_44 WHERE total_production = 150 | sql_create_context |
CREATE TABLE table_1566848_7 (
pictorials VARCHAR,
centerfold_model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the pictorials when the centerfold model was Ava Fabian?
| SELECT pictorials FROM table_1566848_7 WHERE centerfold_model = "Ava Fabian" | sql_create_context |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerU... | SELECT Q.Id, Q.AcceptedAnswerId, Q.CreationDate, Q.Score, Q.Body AS "Question Body", Q.Title AS "Question Title", A.Body AS "Answer Body", Q.Tags FROM Posts AS Q INNER JOIN Posts AS A ON Q.AcceptedAnswerId = A.Id INNER JOIN PostTags AS PT ON PT.PostId = Q.Id WHERE PT.TagId = 17 AND Q.CreationDate BETWEEN '2018-01-01' A... | sede |
CREATE TABLE table_12071 (
"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 number of wins that has a top-10 of 2, and more even... | SELECT COUNT("Wins") FROM table_12071 WHERE "Top-10" = '2' AND "Events" > '8' AND "Cuts made" > '6' | wikisql |
CREATE TABLE table_18788823_5 (
position_in_table VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did Keith Downing depart a position?
| SELECT COUNT(position_in_table) FROM table_18788823_5 WHERE outgoing_manager = "Keith Downing" | sql_create_context |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score num... | SELECT * FROM (SELECT Posts.Id AS "post_link", AVG(Posts.Score) AS "score", COUNT(*) AS "close_votes", MAX(Votes.CreationDate) AS "last_vote", MIN(Votes.CreationDate) AS "first_vote" FROM Posts INNER JOIN Votes ON Posts.Id = Votes.PostId WHERE Votes.VoteTypeId = 6 AND Posts.ClosedDate IS NULL AND Posts.Tags LIKE '%<php... | sede |
CREATE TABLE table_name_95 (
date VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the venue at Brisbane Cricket Ground?
| SELECT date FROM table_name_95 WHERE venue = "brisbane cricket ground" | sql_create_context |
CREATE TABLE table_name_91 (
goals INTEGER,
matches VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of goals for players ranked above 9 and playing more than 205 matches?
| SELECT AVG(goals) FROM table_name_91 WHERE matches = 205 AND rank > 9 | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.short_title = "Sm bowel endoscopy NEC" | mimicsql_data |
CREATE TABLE table_75910 (
"Rank" real,
"Name" text,
"Built" real,
"Height" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Built, when Floors is greater than 23, and when Rank is 3?
| SELECT MIN("Built") FROM table_75910 WHERE "Floors" > '23' AND "Rank" = '3' | wikisql |
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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE... | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) DESC | nvbench |
CREATE TABLE table_name_36 (
grid INTEGER,
laps VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what average grid has laps larger than 52 and contains the driver of andrea de adamich?
| SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = "andrea de adamich" | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom te... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'procedure-one vessel') AND DATETIME(procedures_icd.c... | mimic_iii |
CREATE TABLE bridge (
length_meters INTEGER,
architect_id VARCHAR
)
CREATE TABLE architect (
name VARCHAR,
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum length in meters for the bridges and what are the architects' names?
| SELECT MAX(T1.length_meters), T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id = T2.id | sql_create_context |
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0... | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC | nvbench |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-45581')) AND STRFTIME('%y', diagnosis.diagnosistime) = '2102'... | eicu |
CREATE TABLE school (
school_id number,
school text,
location text,
enrollment number,
founded number,
denomination text,
boys_or_girls text,
day_or_boarding text,
year_entered_competition number,
school_colors text
)
CREATE TABLE school_details (
school_id number,
nickn... | SELECT denomination FROM school GROUP BY denomination HAVING COUNT(*) > 1 | spider |
CREATE TABLE table_32402 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week had an attendance of 70,225
| SELECT MIN("Week") FROM table_32402 WHERE "Attendance" = '70,225' | wikisql |
CREATE TABLE table_19112_3 (
profits__billion_$_ VARCHAR,
market_value__billion_$_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the profits for market value of 11.8
| SELECT profits__billion_$_ FROM table_19112_3 WHERE market_value__billion_$_ = "11.8" | sql_create_context |
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 AVG(zyb.MED_CLINIC_ID) FROM zyb WHERE zyb.MED_ORG_DEPT_NM = '965' AND zyb.IN_HOSP_DAYS BETWEEN '2008-12-24' AND '2011-06-04' AND zyb.IN_DIAG_DIS_NM = 'U57.745' | css |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Urin tract infection NOS" AND prescriptions.route = "SL" | mimicsql_data |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT COUNT(*) FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '张阳冰' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2010-08-28' AND '2016-03-05' AND t_kc24.MED_AMOUT <= 10 UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc24 ON fgwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE fgwyjzb.P... | css |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varc... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) DESC | nvbench |
CREATE TABLE table_name_60 (
date VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game that had a score of 3 1?
| SELECT date FROM table_name_60 WHERE score = "3 – 1" | sql_create_context |
CREATE TABLE table_35778 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the Boston Bruins game from April 11?
| SELECT "Score" FROM table_35778 WHERE "Home" = 'boston bruins' AND "Date" = 'april 11' | wikisql |
CREATE TABLE table_1964 (
"#" real,
"Player" text,
"Country" text,
"Points" real,
"Events" real,
"Reset Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of events for reset points being 98625
| SELECT COUNT("Events") FROM table_1964 WHERE "Reset Points" = '98625' | wikisql |
CREATE TABLE table_name_93 (
cumulative_time__min_and_seconds_ VARCHAR,
shuttle_time__seconds_ VARCHAR,
total_level_time__s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the cumulative time (min and seconds) that has more than 6 seconds in shut... | SELECT cumulative_time__min_and_seconds_ FROM table_name_93 WHERE shuttle_time__seconds_ > 6 AND total_level_time__s_ = 64.8 | sql_create_context |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTy... | SELECT c.UserId AS "user_link", c.CreationDate, c.Id AS "comment_link", c.PostId AS "post_link", c.Text FROM Comments AS c JOIN Posts AS p ON c.PostId = p.Id JOIN Posts AS q ON p.ParentId = q.Id WHERE (p.PostTypeId = 2) AND (q.Tags LIKE '%<##tagName?gn.general-topology##>%') ORDER BY CreationDate DESC LIMIT 500 | sede |
CREATE TABLE table_64432 (
"Fuel gas" text,
"Upper index Kcal/ Nm 3" real,
"Lower index Kcal/ Nm 3" real,
"Upper index MJ/ Nm 3" real,
"Lower index MJ/ Nm 3" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average upper index MJ/Nm 3 for ... | SELECT AVG("Upper index MJ/ Nm 3") FROM table_64432 WHERE "Upper index Kcal/ Nm 3" = '19,376' | wikisql |
CREATE TABLE table_28750 (
"Episode number (Production number)" text,
"Title" text,
"Original air date" text,
"Total viewers on FX" text,
"Total viewers on FX+" text,
"Total viewers" text,
"Rank on channel" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT "Total viewers on FX+" FROM table_28750 WHERE "Title" = 'Night on the Sun' | wikisql |
CREATE TABLE table_58507 (
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the chassis for Bruce Mclaren with all rounds and a g tyre?
| SELECT "Chassis" FROM table_58507 WHERE "Rounds" = 'all' AND "Tyre" = 'g' AND "Driver" = 'bruce mclaren' | wikisql |
CREATE TABLE table_name_41 (
artist VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what artist won in 1953
| SELECT artist FROM table_name_41 WHERE year = "1953" | sql_create_context |
CREATE TABLE table_name_73 (
duration VARCHAR,
translation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which one of the duration has a translation of 1000 lies?
| SELECT duration FROM table_name_73 WHERE translation = "1000 lies" | sql_create_context |
CREATE TABLE table_name_47 (
cuts_made VARCHAR,
events INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of cuts made when the events are more than 3?
| SELECT COUNT(cuts_made) FROM table_name_47 WHERE events > 3 | sql_create_context |
CREATE TABLE table_name_9 (
goals INTEGER,
name VARCHAR,
ends VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the greatest goals for Curtis Davies if ends is greater than 2012?
| SELECT MAX(goals) FROM table_name_9 WHERE name = "curtis davies" AND ends > 2012 | sql_create_context |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dis... | 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 = 'calculated thyroxine (t4) index') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(... | mimic_iii |
CREATE TABLE country (
Country_ID int,
Name text,
Population int,
Area int,
Languages text
)
CREATE TABLE roller_coaster (
Roller_Coaster_ID int,
Name text,
Park text,
Country_ID int,
Length real,
Height real,
Speed text,
Opened text,
Status text
)
-- Using val... | SELECT T1.Name, AVG(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name ORDER BY AVG(T2.Speed) DESC | nvbench |
CREATE TABLE table_37603 (
"Order" real,
"Built" text,
"Serial Numbers" text,
"Quantity" real,
"1st No." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- with build 5/69-6/69 what's the order?
| SELECT SUM("Order") FROM table_37603 WHERE "Built" = '5/69-6/69' | wikisql |
CREATE TABLE table_19769687_3 (
_number_of_total_votes INTEGER,
election VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most number of total votes for election for 1878
| SELECT MAX(_number_of_total_votes) FROM table_19769687_3 WHERE election = "1878" | sql_create_context |
CREATE TABLE table_72432 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the party with incumbent being william e. evans
| SELECT "Party" FROM table_72432 WHERE "Incumbent" = 'William E. Evans' | wikisql |
CREATE TABLE table_41394 (
"Year" real,
"Senior PGA Championship" text,
"The Tradition" text,
"Senior Players Championship" text,
"U.S. Senior Open" text,
"Senior British Open" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the Senior Br... | SELECT "Senior British Open" FROM table_41394 WHERE "Senior PGA Championship" = 'hale irwin (3/7)' | wikisql |
CREATE TABLE table_name_43 (
team VARCHAR,
driver VARCHAR,
laps VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Patrick Carpentier is driving and has less than 19 points with 90 laps, what team is racing?
| SELECT team FROM table_name_43 WHERE laps = 90 AND points < 19 AND driver = "patrick carpentier" | sql_create_context |
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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Self Pay" AND diagnoses.long_title = "Lumbago" | mimicsql_data |
CREATE TABLE table_28850 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the incumbent for robert monell (j) 63.6% tilly lynde 36.4%
| SELECT "Incumbent" FROM table_28850 WHERE "Candidates" = 'Robert Monell (J) 63.6% Tilly Lynde 36.4%' | 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 COUNT(*) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '9744702' AND gwyjzb.IN_HOSP_DATE BETWEEN '2010-11-16' AND '2019-10-24' AND gwyjzb.CLINIC_TYPE = '购药' UNION SELECT COUNT(*) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '9744702' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2010-11-16' AND '2019-10-24' AND fgwyjzb.CLINIC_TY... | css |
CREATE TABLE table_27733258_6 (
location_attendance VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the location attendance for l 105 123 (ot)
| SELECT location_attendance FROM table_27733258_6 WHERE score = "L 105–123 (OT)" | sql_create_context |
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 zyjzjlb.JZLSH FROM hz_info JOIN zyjzjlb JOIN hz_info_zyjzjlb ON hz_info.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyj... | css |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
... | SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 92063 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.labe... | mimic_iii |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.days_stay, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "8440" | mimicsql_data |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TA... | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-28944')) AND intakeoutput.celllabel = '8 hr ... | eicu |
CREATE TABLE table_21599 (
"Release" real,
"Title" text,
"Start" real,
"Pieces" real,
"Board (inches)" text,
"Board (cm)" text,
"Type" text,
"New units New units when compared to the original A&A: Classic version of the game." text,
"Playable Powers" text
)
-- Using valid SQLite, a... | SELECT "Release" FROM table_21599 WHERE "Title" = 'Axis & Allies: D-Day' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.