instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId... | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", TagName, COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ... | sede |
CREATE TABLE table_name_78 (
player VARCHAR,
country VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who scored 69-74=143 for Colombia?
| SELECT player FROM table_name_78 WHERE score = 69 - 74 = 143 AND country = "colombia" | sql_create_context |
CREATE TABLE table_name_15 (
release_date VARCHAR,
product VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Glassfish released?
| SELECT release_date FROM table_name_15 WHERE product = "glassfish" | sql_create_context |
CREATE TABLE table_name_56 (
date VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what day was game 2 played?
| SELECT date FROM table_name_56 WHERE game = 2 | sql_create_context |
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank i... | 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 = 'NEW... | atis |
CREATE TABLE table_name_45 (
total INTEGER,
league_cup VARCHAR,
fa_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total when the league cup is less than 1, and the fa cup is less than 1?
| SELECT SUM(total) FROM table_name_45 WHERE league_cup < 1 AND fa_cup < 1 | sql_create_context |
CREATE TABLE table_15584199_3 (
award_name VARCHAR,
team_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the award name for black ocean current
| SELECT award_name FROM table_15584199_3 WHERE team_name = "BLACK OCEAN CURRENT" | sql_create_context |
CREATE TABLE table_name_16 (
built VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year was the bridge in Clarkdale built?
| SELECT built FROM table_name_16 WHERE location = "clarkdale" | sql_create_context |
CREATE TABLE table_53709 (
"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.
-- On which date was the venue of vfl park used?
| SELECT "Date" FROM table_53709 WHERE "Venue" = 'vfl park' | wikisql |
CREATE TABLE table_name_6 (
buddhism VARCHAR,
christianity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the percentage of Buddhists associated with a Christianity percentage of 52.32%?
| SELECT buddhism FROM table_name_6 WHERE christianity = "52.32%" | sql_create_context |
CREATE TABLE table_37063 (
"Driver" text,
"Entries" real,
"Points" real,
"Average points per race entered" real,
"Average pre-2010" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest average points per race of the driver with less th... | SELECT MAX("Average points per race entered") FROM table_37063 WHERE "Points" < '969' AND "Average pre-2010" < '0' | wikisql |
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 person_info_hz_info (
RYBH text,
... | SELECT mzjzjlb.SG, mzjzjlb.TZ FROM person_info JOIN hz_info JOIN mzjzjlb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX... | css |
CREATE TABLE table_1342256_40 (
candidates VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the candidate for south carolina 4?
| SELECT candidates FROM table_1342256_40 WHERE district = "South Carolina 4" | sql_create_context |
CREATE TABLE table_name_90 (
season VARCHAR,
apps VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Season does the Internazionale Club have more than 2 Apps?
| SELECT season FROM table_name_90 WHERE apps > 2 AND club = "internazionale" | 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 allergy (
allergy... | 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 = '006-205326') AND NOT patient.unitdischargetime IS N... | eicu |
CREATE TABLE table_61074 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many strokes off par was the player who scored 157?
| SELECT COUNT("To par") FROM table_61074 WHERE "Total" = '157' | wikisql |
CREATE TABLE table_75971 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date with a Time that is 18:45?
| SELECT "Date" FROM table_75971 WHERE "Time" = '18:45' | wikisql |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId numb... | SELECT Posts.Id, Posts.Title, Posts.CreationDate, Posts.Score, Posts.ViewCount, Posts.FavoriteCount, Posts.AnswerCount, Posts.Body, Posts.Tags FROM Posts WHERE Posts.PostTypeId = 1 AND Posts.Tags LIKE '%python%' AND Posts.CreationDate >= CURRENT_TIMESTAMP() - 7 AND Posts.AcceptedAnswerId IS NULL ORDER BY ViewCount DESC... | sede |
CREATE TABLE table_name_23 (
stop_no VARCHAR,
destination VARCHAR,
line VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Stop No., when Destination is Perth, and when Line is Midland?
| SELECT stop_no FROM table_name_23 WHERE destination = "perth" AND line = "midland" | sql_create_context |
CREATE TABLE table_78671 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did Ra'fat Ali play on August 17, 1999?
| SELECT "Venue" FROM table_78671 WHERE "Date" = 'august 17, 1999' | wikisql |
CREATE TABLE table_name_88 (
points INTEGER,
difference VARCHAR,
drawn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high point total associated with a difference of 1 and 0 draws?
| SELECT MAX(points) FROM table_name_88 WHERE difference = "1" AND drawn = 0 | sql_create_context |
CREATE TABLE apartment_facilities (
apt_id number,
facility_code text
)
CREATE TABLE apartment_buildings (
building_id number,
building_short_name text,
building_full_name text,
building_description text,
building_address text,
building_manager text,
building_phone text
)
CREATE TA... | SELECT T1.booking_status_code FROM apartment_bookings AS T1 JOIN apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = "Suite 634" | spider |
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 t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '钱念文' AND t_kc22.STA_DATE BETWEEN '2001-11-21' AND '2013-02-17' AND t_kc21.MED_SER_ORG_NO = '0399363' AND t_kc22.MED_INV_ITEM... | css |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT COUNT(*) FROM Posts WHERE PostTypeId = 2 | sede |
CREATE TABLE table_name_45 (
venue VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Venue has a Home team of geelong?
| SELECT venue FROM table_name_45 WHERE home_team = "geelong" | sql_create_context |
CREATE TABLE table_11169 (
"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 the attendance when Hawthorn played as ... | SELECT AVG("Crowd") FROM table_11169 WHERE "Away team" = 'hawthorn' | wikisql |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,... | SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16572) AND NOT transfers.careunit IS NULL AND STRFTIME('%y', transfers.intime) = '2100' ORDER BY transfers.intime DESC LIMIT 1 | 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 jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_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 = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB ... | css |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)... | SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-42006' AND patient.hospitaldischargetime IS NULL)) AND treatm... | eicu |
CREATE TABLE table_55335 (
"State" text,
"Born/Died" text,
"Active service" text,
"Chief Judge" text,
"Senior status" text,
"Appointed by" text,
"Reason for termination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the chief judge ... | SELECT "Chief Judge" FROM table_55335 WHERE "Reason for termination" = 'retirement' | wikisql |
CREATE TABLE employee (
fname VARCHAR,
lname VARCHAR,
address VARCHAR,
Bdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- list the first and last names, and the addresses of all employees in the ascending order of their birth date.
| SELECT fname, lname, address FROM employee ORDER BY Bdate | sql_create_context |
CREATE TABLE table_31079 (
"Week of" text,
"Tournament" text,
"Champion" text,
"Runner-up" text,
"Semifinalists" text,
"Quarterfinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the semifinalists in the tournament where Mats Wila... | SELECT "Semifinalists" FROM table_31079 WHERE "Champion" = 'Mats Wilander 7-6, 6-3' | wikisql |
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
... | SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions WHERE share_count > 100 OR amount_of_transaction > 1000 ORDER BY COUNT(date_of_transaction) | nvbench |
CREATE TABLE table_70873 (
"Year" real,
"Stage" real,
"Category" real,
"Start" text,
"Finish" text,
"Leader at the summit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the leader at the summit when the stage was larger than 14, the cat... | SELECT "Leader at the summit" FROM table_70873 WHERE "Stage" > '14' AND "Category" = '1' AND "Start" = 'saint-girons' AND "Finish" = 'cauterets' | wikisql |
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 COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.YLJGDM = '1782032' AND wdmzjzjlb.JZKSRQ BETWEEN '2009-09-13' AND '2015-11-11' AND wdmzjzjlb.ZSEBZ > 0 UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.YLJGDM = '1782032' AND bdmzjzjlb.JZKSRQ BETWEEN '2009-09-13' AND '2015-11-11' AND bdmzjzjlb.ZSEBZ > 0 | css |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | (SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_info.RYBH = ... | css |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TA... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'chest tube' AND STRFTIME('%y', treatment.treatmenttime) <= '2104') GROUP BY patient.uniquepid) AS t1 WHERE... | eicu |
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "27" AND prescriptions.route = "LEFT EYE" | mimicsql_data |
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 DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Energy and the Environment%' OR course.description LIKE '%Energy and the Environment%' OR course... | advising |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_ID number
)
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '00352468' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 6550.61) | css |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREAT... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 23 AND date_day.month_number = 3 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time... | atis |
CREATE TABLE table_10748727_1 (
points VARCHAR,
series VARCHAR,
team_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how much did the british formula three called 'fortec motorsport' score?
| SELECT points FROM table_10748727_1 WHERE series = "British Formula Three" AND team_name = "Fortec Motorsport" | sql_create_context |
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
... | SELECT Governor, COUNT(Governor) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 GROUP BY Governor ORDER BY COUNT(Governor) DESC | nvbench |
CREATE TABLE table_203_742 (
id number,
"rnd" number,
"date" text,
"race name" text,
"circuit" text,
"city/location" text,
"pole position" text,
"fastest lap" text,
"winning driver" text,
"winning team" text,
"report" text
)
-- Using valid SQLite, answer the following quest... | SELECT "race name" FROM table_203_742 WHERE "date" > (SELECT "date" FROM table_203_742 WHERE "race name" = 'slick 50 200') ORDER BY "date" LIMIT 1 | squall |
CREATE TABLE table_62476 (
"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.
-- Which Week has a Result of l 10 30, and an Attendance larger th... | SELECT AVG("Week") FROM table_62476 WHERE "Result" = 'l 10–30' AND "Attendance" > '57,312' | wikisql |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTyp... | SELECT SUM(CASE WHEN Location IS NULL THEN 0 ELSE 1 END) * 1.0 / SUM(1) AS percentage_with_location FROM Users WHERE NOT AboutMe IS NULL | sede |
CREATE TABLE table_64181 (
"Position" real,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?
| SELECT SUM("Total") FROM table_64181 WHERE "Gymnast" = 'robert stanescu ( rou )' AND "B Score" > '8.75' | wikisql |
CREATE TABLE table_7478 (
"LastDays begin" text,
"Startof Christ's Presence" text,
"Christ madeKing" text,
"Resurrection of144,000" text,
"Judgmentof Religion" text,
"Separating Sheep &Goats" text,
"Great Tribulation" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT "Resurrection of144,000" FROM table_7478 WHERE "Startof Christ's Presence" = '1914' AND "Separating Sheep &Goats" = 'during christ''s presence' AND "Great Tribulation" = '1975?' | wikisql |
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 T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Price DESC | nvbench |
CREATE TABLE table_57968 (
"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 day does the home side score 13.13 (91)?
| SELECT "Date" FROM table_57968 WHERE "Home team score" = '13.13 (91)' | wikisql |
CREATE TABLE table_25453 (
"Date" text,
"Location" text,
"Opponent" text,
"Terps Points" real,
"Opp. Points" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where were games played when the record was 9-1?
| SELECT "Location" FROM table_25453 WHERE "Record" = '9-1' | wikisql |
CREATE TABLE table_11677760_31 (
height VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height of the player that went to ohio state?
| SELECT height FROM table_11677760_31 WHERE college = "Ohio State" | sql_create_context |
CREATE TABLE table_38103 (
"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.
-- Which College/Junior/Club Team (League) has a Position of right wing, and... | SELECT "College/Junior/Club Team (League)" FROM table_38103 WHERE "Position" = 'right wing' AND "Round" < '3' | wikisql |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTask... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS Link, DisplayName, Reputation, Location FROM Users WHERE (LOWER(Location) LIKE '%melbourne%' OR UPPER(Location) LIKE '%MELBOURNE%' OR Location LIKE '%Melbourne%') ORDER BY Reputation DESC LIMIT 50 | sede |
CREATE TABLE table_17766232_7 (
year_s_ INTEGER,
final_television_commentator VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year that the final television commentator was David Jacobs?
| SELECT MAX(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "David Jacobs" | sql_create_context |
CREATE TABLE table_18494 (
"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 is the candidates for fred e. busbey?
| SELECT "Candidates" FROM table_18494 WHERE "Incumbent" = 'Fred E. Busbey' | wikisql |
CREATE TABLE table_1342233_6 (
first_elected VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the first elected with incumbent being clair engle
| SELECT first_elected FROM table_1342233_6 WHERE incumbent = "Clair Engle" | sql_create_context |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | SELECT * FROM Users WHERE Users.Reputation > 1000 ORDER BY Users.Reputation DESC | sede |
CREATE TABLE table_4904 (
"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 the attendance of the Hawthorn as the aw... | SELECT SUM("Crowd") FROM table_4904 WHERE "Away team" = 'hawthorn' | wikisql |
CREATE TABLE table_name_27 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record on the date of november 10, 1968?
| SELECT record FROM table_name_27 WHERE date = "november 10, 1968" | sql_create_context |
CREATE TABLE table_62033 (
"Year" text,
"Car number" text,
"Start" text,
"Qual. speed" text,
"Speed rank" text,
"Finish" text,
"Laps completed" real,
"Laps led" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the finish for car num... | SELECT "Finish" FROM table_62033 WHERE "Car number" = '6' | wikisql |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
... | SELECT EMAIL, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT | nvbench |
CREATE TABLE table_12341 (
"17th c." text,
"American" text,
"British" text,
"Australian" text,
"Examples" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Australian, when Examples is 'am ba, anemone, ascesis'?
| SELECT "Australian" FROM table_12341 WHERE "Examples" = 'amœba, anemone, ascesis' | wikisql |
CREATE TABLE table_204_196 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"partner" text,
"opponents in the final" text,
"score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MIN("date") FROM table_204_196 WHERE "outcome" = 'winner' | squall |
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type... | SELECT Name, Age FROM driver ORDER BY Age DESC | nvbench |
CREATE TABLE table_name_68 (
character VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Character has a Category of favourite naya sadasya?
| SELECT character FROM table_name_68 WHERE category = "favourite naya sadasya" | sql_create_context |
CREATE TABLE table_42484 (
"Milepost" real,
"Name of the tunnel" text,
"Length" text,
"Maximum Height" text,
"Minimum Height" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Milepost of the Twin Tunnel #1 North?
| SELECT COUNT("Milepost") FROM table_42484 WHERE "Name of the tunnel" = 'twin tunnel #1 north' | wikisql |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | SELECT Reputation FROM Users WHERE Id = '##userid##' | sede |
CREATE TABLE table_10086 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a grid smaller than 24, less than 61 laps, and a ferrari constructor?
| SELECT "Driver" FROM table_10086 WHERE "Grid" < '24' AND "Laps" < '61' AND "Constructor" = 'ferrari' | wikisql |
CREATE TABLE table_name_76 (
opponent VARCHAR,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent played on the 28th with a venue of away?
| SELECT opponent FROM table_name_76 WHERE venue = "away" AND date = "28th" | sql_create_context |
CREATE TABLE table_26715 (
"Legion no. and title" text,
"Main legionary base" text,
"Emblem" text,
"Date founded/ founder" text,
"Date disband" text,
"Castra legionaria (legion bases) * = main base. Start date 31BC if unspecified" text,
"Notes" text
)
-- Using valid SQLite, answer the foll... | SELECT "Date founded/ founder" FROM table_26715 WHERE "Notes" = 'prima Italica:raised for aborted Caucasus war' | wikisql |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Road, All_Games_Percent FROM basketball_match ORDER BY All_Road | nvbench |
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 MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admityear >= "2155" | mimicsql_data |
CREATE TABLE table_name_68 (
record VARCHAR,
location VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record?
| SELECT record FROM table_name_68 WHERE location = "boston garden" AND score = "118-110" | sql_create_context |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE patients (
row_id number,
subj... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'opn aortic valvuloplasty')) | mimic_iii |
CREATE TABLE txmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM txmzjzjlb JOIN jybgb JOIN jyjgzbb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE txmzjzjlb.JZZDSM = '慢性牙周炎' AND jyjgzbb.JCZBDM = '261843' UNION SELECT jyjgzbb.CKZFWXX,... | css |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicatio... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'atrial fibrillation - with rapid ventricular response' AND STRFTIME('%y', diagnosis.diagnosistime) = '2104')... | eicu |
CREATE TABLE table_26789 (
"Contestant" text,
"Starting Weight (kg)" text,
"Final Weight (kg)" text,
"Weight Lost (kg)" text,
"Percentage Lost" text,
"Position (out of Eliminated Contestants)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who i... | SELECT "Contestant" FROM table_26789 WHERE "Position (out of Eliminated Contestants)" = '3rd' | wikisql |
CREATE TABLE table_203_339 (
id number,
"year" text,
"car" number,
"start" number,
"qual" number,
"rank" number,
"finish" number,
"laps" number,
"led" number,
"retired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in which year... | SELECT "year" FROM table_203_339 WHERE "led" = (SELECT MIN("led") FROM table_203_339) | squall |
CREATE TABLE table_36899 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Record of 92 70 had what date?
| SELECT "Date" FROM table_36899 WHERE "Record" = '92–70' | wikisql |
CREATE TABLE table_name_29 (
away_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the match as corio oval, who was the away team?
| SELECT away_team FROM table_name_29 WHERE venue = "corio oval" | sql_create_context |
CREATE TABLE table_53962 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the right ascension (J2000) with a Declination (... | SELECT "Right ascension ( J2000 )" FROM table_53962 WHERE "NGC number" > '2068' AND "Constellation" = 'dorado' AND "Declination ( J2000 )" = '°12′43″' | wikisql |
CREATE TABLE table_50982 (
"Poll Year" text,
"Winner" text,
"Second" text,
"Third" text,
"Fourth" text,
"Fifth" text,
"Sixth" text,
"Seventh" text,
"Eighth" text,
"Ninth" text,
"Tenth" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Poll Year" FROM table_50982 WHERE "Third" = 'the ting tings' | wikisql |
CREATE TABLE table_name_77 (
date VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date when the result was l 37-3?
| SELECT date FROM table_name_77 WHERE result = "l 37-3" | sql_create_context |
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | (SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb... | css |
CREATE TABLE table_59174 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country has a 67 score by Phil Mickelson?
| SELECT "Country" FROM table_59174 WHERE "Score" = '67' AND "Player" = 'phil mickelson' | wikisql |
CREATE TABLE mzjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
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,
... | SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON 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 = jyjgzbb.YLJGDM AND zyjybgb.BGDH = jyjgzbb.BGD... | css |
CREATE TABLE table_12558 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position was in 2009?
| SELECT "Position" FROM table_12558 WHERE "Year" = '2009' | 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 WHERE demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" AND demographic.admityear < "2173" | mimicsql_data |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId n... | SELECT p.OwnerUserId AS "user_link", COUNT(1) AS "Total Upvotes On Questions", COUNT(1) * 5 AS "Estimated Rep Gain" FROM Posts AS p INNER JOIN Votes AS v ON p.Id = v.PostId WHERE p.PostTypeId = 1 AND v.VoteTypeId = 2 GROUP BY p.OwnerUserId ORDER BY 3 DESC | sede |
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return a histogram on how o... | SELECT job, AVG(age) FROM Person GROUP BY job | nvbench |
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 All_Neutral, Team_ID FROM basketball_match ORDER BY All_Neutral | nvbench |
CREATE TABLE table_name_46 (
final_score VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score in week 3 ?
| SELECT final_score FROM table_name_46 WHERE week = 3 | sql_create_context |
CREATE TABLE field (
fieldid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREA... | SELECT DISTINCT writes.authorid FROM keyphrase, paper, paperkeyphrase, writes WHERE keyphrase.keyphrasename IN ('Multiuser Receiver', 'Decision Feedback') AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.paperid = paper.paperid GROUP BY writes.authorid HAVING ... | scholar |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
... | SELECT Id AS "post_link", OwnerUserId AS "user_link", CreationDate, LastActivityDate, Score, ViewCount, Body FROM Posts WHERE (Body LIKE '%##text1?cauchy##%') AND (Body LIKE '%##text2?swartz##%') ORDER BY CreationDate DESC LIMIT 100 | sede |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '7787217' AND t_kc22.SOC_SRT_DIRE_CD = '3265' | css |
CREATE TABLE table_name_81 (
total VARCHAR,
rank VARCHAR,
silver VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is '4'?
| SELECT total FROM table_name_81 WHERE silver < 65 AND bronze > "4" AND rank = "4" | sql_create_context |
CREATE TABLE table_2153 (
"Country" text,
"1948/49 ($ millions)" real,
"1949/50 ($ millions)" real,
"1950/51 ($ millions)" real,
"Cumulative ($ millions)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many millions of $ were spent in Iceland in... | SELECT MAX("1948/49 ($ millions)") FROM table_2153 WHERE "Country" = 'Iceland' | wikisql |
CREATE TABLE table_35580 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record on July 1?
| SELECT "Record" FROM table_35580 WHERE "Date" = 'july 1' | wikisql |
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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime ti... | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 46252 AND STRFTIME('%y', admissions.dischtime) >= '2104' ORDER BY admissions.dischtime LIMIT 1 | mimic_iii |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.