instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 School_ID, All_Games_Percent FROM basketball_match GROUP BY All_Neutral | nvbench |
CREATE TABLE table_1859269_1 (
new_entries_this_round VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the round is the semi-finals, what are the new entries this round?
| SELECT new_entries_this_round FROM table_1859269_1 WHERE round = "Semi-finals" | sql_create_context |
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 Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name DESC | nvbench |
CREATE TABLE table_48743 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the highest Played that has the Points larger than 11, and the Lost larger... | SELECT MAX("Played") FROM table_48743 WHERE "Points" > '11' AND "Lost" > '7' | wikisql |
CREATE TABLE table_name_80 (
points INTEGER,
drawn VARCHAR,
position VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Points is the highest one that has a Position smaller than 4, and a Team of s o paulo, and Drawn larger than 12?
| SELECT MAX(points) FROM table_name_80 WHERE position < 4 AND team = "são paulo" AND drawn > 12 | sql_create_context |
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE... | SELECT CRS_CODE, COUNT(*) FROM CLASS GROUP BY CRS_CODE | nvbench |
CREATE TABLE table_36021 (
"Date" text,
"Time" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when the record recorded was 64-78?
| SELECT "Opponent" FROM table_36021 WHERE "Record" = '64-78' | wikisql |
CREATE TABLE table_name_18 (
launched VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the launched date for the Harusame ship?
| SELECT launched FROM table_name_18 WHERE name = "harusame" | sql_create_context |
CREATE TABLE table_42823 (
"Season" real,
"Series" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Wins, when ... | SELECT AVG("Wins") FROM table_42823 WHERE "F/Laps" > '1' AND "Points" = '80' | 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 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 WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.dob_year < "2184" | mimicsql_data |
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'int or repl lead epic... | mimic_iii |
CREATE TABLE table_44417 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What s... | SELECT "Score" FROM table_44417 WHERE "Team" = 'charlotte' | wikisql |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '苏清华' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC | css |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE... | WITH QuestStatsByMonth AS (SELECT DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS "month", SUM(q.Score) AS TotalScore, COUNT(q.Id) AS NumQuests FROM Posts AS q WHERE q.PostTypeId = 1 GROUP BY DATEADD(month, DATEDIFF(month, 0, CreationDate), 0)) SELECT q."month", CAST(SUM(h.TotalScore) AS FLOAT) / CAST(SUM(h.NumQ... | sede |
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%czech%' ORDER BY Reputation DESC LIMIT 10 | sede |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAd... | SELECT Posts.Id AS "post_link", COUNT(Votes.Id) FROM Posts INNER JOIN Votes ON Votes.PostId = Posts.Id WHERE VoteTypeId = 3 AND Posts.OwnerUserId = '##User##' GROUP BY Posts.Id ORDER BY COUNT(Votes.Id) DESC | sede |
CREATE TABLE table_33968 (
"Season" real,
"Team" text,
"Wins" real,
"Losses" real,
"Draws" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0?
| SELECT MIN("Losses") FROM table_33968 WHERE "Season" < '1920' AND "Draws" > '0' | wikisql |
CREATE TABLE table_27491 (
"Rank" real,
"District" text,
"Population" real,
"Growth Rate" text,
"Sex Ratio" real,
"Literacy" text,
"Density/KM" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of rank for east midnapore
| SELECT COUNT("Rank") FROM table_27491 WHERE "District" = 'East Midnapore' | wikisql |
CREATE TABLE table_12171145_1 (
mens_doubles VARCHAR,
womens_singles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the mens doubles when womens singles is mette s rensen?
| SELECT mens_doubles FROM table_12171145_1 WHERE womens_singles = "Mette Sørensen" | sql_create_context |
CREATE TABLE table_name_79 (
points VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Denis Pederson have?
| SELECT points FROM table_name_79 WHERE player = "denis pederson" | sql_create_context |
CREATE TABLE table_56078 (
"Round" real,
"Overall" text,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of a player from link pings hc (se)?
| SELECT "Nationality" FROM table_56078 WHERE "Club team" = 'linköpings hc (se)' | wikisql |
CREATE TABLE table_name_46 (
pick__number VARCHAR,
round VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of pick with round less than 6 and overall of 102
| SELECT COUNT(pick__number) FROM table_name_46 WHERE round < 6 AND overall = 102 | sql_create_context |
CREATE TABLE table_31985 (
"Year" real,
"Album" text,
"Song" text,
"Label" text,
"Catalog#" text,
"Format" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Album had a year less than 2005 with a Label by Ministry of Sound... | SELECT "Album" FROM table_31985 WHERE "Year" < '2005' AND "Label" = 'ministry of sound' | wikisql |
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.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '孙雅洁' AND qtb.MED_SER_ORG_NO = '5601930' AND qtb.OUT_DIAG_DIS_NM LIKE '%肾结石%' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '孙雅洁' AND gyb.MED_SER_ORG_NO = '5601930' AND gyb.OUT_DIAG_DIS_NM LIKE '%肾结石%' UNION SELECT zyb.MED_CLINIC_ID FROM zyb WHERE ... | 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 demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2158" AND procedures.short_title = "Injection oxazolidinone" | mimicsql_data |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | mimic_iii |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost numb... | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 2 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | mimic_iii |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '59512324' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT < 9835.59) | css |
CREATE TABLE table_5101 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Series has an Opponent of new york rangers, and a Score of 3 2 ot?
| SELECT "Series" FROM table_5101 WHERE "Opponent" = 'new york rangers' AND "Score" = '3–2 ot' | wikisql |
CREATE TABLE table_19456 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of class aaa for 2006-07
| SELECT COUNT("Class AAA") FROM table_19456 WHERE "School Year" = '2006-07' | wikisql |
CREATE TABLE county_public_safety (
county_id number,
name text,
population number,
police_officers number,
residents_per_officer number,
case_burden number,
crime_rate number,
police_force text,
location text
)
CREATE TABLE city (
city_id number,
county_id number,
name ... | SELECT case_burden FROM county_public_safety ORDER BY population DESC | spider |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.discharge_location, demographic.dischtime FROM demographic WHERE demographic.name = "Thomas Nazario" | mimicsql_data |
CREATE TABLE table_33259 (
"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 is richmond the away side?
| SELECT "Date" FROM table_33259 WHERE "Away team" = 'richmond' | wikisql |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT diagnoses_icd.icd9_code FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 57050) AND STRFTIME('%y', diagnoses_icd.charttime) >= '2105' ORDER BY diag... | mimic_iii |
CREATE TABLE table_73928 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the topic wherein music preference is ' golden train
| SELECT "Theme" FROM table_73928 WHERE "Song choice" = ' Golden Train ' | wikisql |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswer... | SELECT COUNT(*), MONTH(CreationDate) FROM Posts WHERE PostTypeId = 1 AND CreationDate > '2019' GROUP BY MONTH(CreationDate) | sede |
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.long_title = "Automatic implantable cardioverter/defibrillator (AICD) check" | mimicsql_data |
CREATE TABLE customer_contact_channels (
customer_id number,
channel_code text,
active_from_date time,
active_to_date time,
contact_number text
)
CREATE TABLE addresses (
address_id number,
address_content text,
city text,
zip_postcode text,
state_province_county text,
count... | SELECT customer_name FROM customers | spider |
CREATE TABLE table_203_864 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was al espinosa 's total stroke count at the final of the 1... | SELECT "score" FROM table_203_864 WHERE "player" = 'al espinosa' | squall |
CREATE TABLE table_43239 (
"Date" text,
"Source" text,
"Polling Agency" text,
"Davis" text,
"Gallagher" text,
"Higgins" text,
"McGuinness" text,
"Mitchell" text,
"Norris" text,
"Scallon" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Higgins" FROM table_43239 WHERE "Davis" = '9%' | wikisql |
CREATE TABLE table_50920 (
"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 was the timeslot for the episode with less than 6.76 viewers and an 18-49 of 1.9/5?
| SELECT "Timeslot" FROM table_50920 WHERE "Viewers" < '6.76' AND "18-49" = '1.9/5' | wikisql |
CREATE TABLE table_21863 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many status are there for Moncton?
| SELECT COUNT("Status") FROM table_21863 WHERE "Official Name" = 'Moncton' | wikisql |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufac... | 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 = 'PHI... | atis |
CREATE TABLE table_17288825_6 (
date VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When tracy mcgrady (8) is leading in assists what is the date?
| SELECT date FROM table_17288825_6 WHERE high_assists = "Tracy McGrady (8)" | sql_create_context |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAno... | SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Posts.Tags LIKE '%<java>%' GROUP BY TagName) AS rate INNER JOIN (SELECT COUNT(PostI... | sede |
CREATE TABLE table_name_60 (
wicket VARCHAR,
score VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Wicket in the City of Eastbourne with a Score of less than 368?
| SELECT wicket FROM table_name_60 WHERE score < 368 AND city = "eastbourne" | sql_create_context |
CREATE TABLE table_203_752 (
id number,
"rank" number,
"circuit" text,
"headquarters" text,
"screens" number,
"sites" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which circuit is ranked last ?
| SELECT "circuit" FROM table_203_752 ORDER BY "rank" DESC LIMIT 1 | squall |
CREATE TABLE table_name_37 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2007, when 2003 is '85'?
| SELECT 2007 FROM table_name_37 WHERE 2003 = "85" | sql_create_context |
CREATE TABLE table_name_53 (
frequency_mhz INTEGER,
city_of_license VARCHAR,
erp_w VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the MHZ frequency in carmel, california with an ERP W over 10?
| SELECT AVG(frequency_mhz) FROM table_name_53 WHERE city_of_license = "carmel, california" AND erp_w > 10 | sql_create_context |
CREATE TABLE table_53630 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of games for Luis scola with a rank greater than 1?
| SELECT MIN("Games") FROM table_53630 WHERE "Rank" > '1' AND "Name" = 'luis scola' | wikisql |
CREATE TABLE table_1342256_32 (
district VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many polling areas are there with John Taber as the sitting Representative?
| SELECT COUNT(district) FROM table_1342256_32 WHERE incumbent = "John Taber" | sql_create_context |
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT name FROM captain ORDER BY age LIMIT 1 | spider |
CREATE TABLE table_name_46 (
puchat_ligi INTEGER,
total VARCHAR,
ekstraklasa VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1?
| SELECT SUM(puchat_ligi) FROM table_name_46 WHERE total < 5 AND ekstraklasa > 1 | sql_create_context |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,... | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-3009')) AND medication.drugname IN ('aspirin 81 mg po chew', 'nss infu... | eicu |
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 prescriptions.drug = "Repaglinide" | mimicsql_data |
CREATE TABLE table_24776075_2 (
final_score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score on Saturday, May 25?
| SELECT final_score FROM table_24776075_2 WHERE date = "Saturday, May 25" | sql_create_context |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.days_stay > "4" | mimicsql_data |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2195" AND prescriptions.route = "SL" | mimicsql_data |
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 patient (
uniquep... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'valve replacement or repair') | eicu |
CREATE TABLE table_78425 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which grid has less than 11 laps, and a Time/Retired of accident?
| SELECT AVG("Grid") FROM table_78425 WHERE "Laps" < '11' AND "Time/Retired" = 'accident' | wikisql |
CREATE TABLE table_name_92 (
score VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when St. Louis was the visiting team?
| SELECT score FROM table_name_92 WHERE visitor = "st. louis" | sql_create_context |
CREATE TABLE table_5106 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has an Against of 5, and a Drawn ... | SELECT SUM("Position") FROM table_5106 WHERE "Against" = '5' AND "Drawn" > '0' | wikisql |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE icustays (
row... | SELECT COUNT(*) 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 = 28443) AND icustays.outtime IS NULL) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_item... | mimic_iii |
CREATE TABLE table_name_16 (
score VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the 2002 Tiger Cup third/fourth place match?
| SELECT score FROM table_name_16 WHERE competition = "2002 tiger cup third/fourth place" | sql_create_context |
CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATE... | SELECT test_result, COUNT(*) FROM Student_Tests_Taken GROUP BY test_result ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_51010 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the away team when the attendance was 76?
| SELECT "Away team" FROM table_51010 WHERE "Attendance" = '76' | 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.JZLSH 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 AND pers... | css |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepi... | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-76924' AND patient.hospitaldischargetime IS NULL)) AND medication.drugname... | eicu |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
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,
... | SELECT jybgb.SHSJ FROM hz_info JOIN mzjzjlb JOIN jybgb 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 hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info... | css |
CREATE TABLE table_69658 (
"Player" text,
"Score" text,
"Balls" real,
"Opponent" text,
"Ground" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player had 49 balls?
| SELECT "Player" FROM table_69658 WHERE "Balls" = '49' | wikisql |
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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" AND demographic.days_stay > "6" | mimicsql_data |
CREATE TABLE table_15463 (
"Year" real,
"Metro Champion" text,
"Score" text,
"Runner-up" text,
"Most Outstanding Player" text,
"Venue (and city)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1988, what Metro Champion had a Runner-up of Memp... | SELECT "Metro Champion" FROM table_15463 WHERE "Runner-up" = 'memphis state' AND "Year" = '1988' | wikisql |
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details text
)
CREATE TABLE accounts (
account_id ... | SELECT project_id, COUNT(*) FROM documents GROUP BY project_id | spider |
CREATE TABLE table_name_12 (
drawn VARCHAR,
losing_bonus VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for Drawn, when the value for Losing bonus is 6?
| SELECT drawn FROM table_name_12 WHERE losing_bonus = "6" | sql_create_context |
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 jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_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 = jybgb_jyjgzbb.YLJGDM AND jybgb.BGD... | css |
CREATE TABLE table_22020724_1 (
year__ceremony_ VARCHAR,
title_in_the_original_language VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the ceremony where the film 'Tummien Perhosten Koti' was submitted?
| SELECT year__ceremony_ FROM table_22020724_1 WHERE title_in_the_original_language = "Tummien perhosten koti" | sql_create_context |
CREATE TABLE table_17058226_10 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Timberwolves' record on April 3?
| SELECT record FROM table_17058226_10 WHERE date = "April 3" | sql_create_context |
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 MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" | mimicsql_data |
CREATE TABLE table_27368 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most pick number for guard and kansas city chiefs
| SELECT MAX("Pick #") FROM table_27368 WHERE "Position" = 'Guard' AND "NFL Team" = 'Kansas City Chiefs' | wikisql |
CREATE TABLE table_204_992 (
id number,
"team" text,
"manager" text,
"city" text,
"stadium" text,
"capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the sum of the capacity of both tarrazu and guapiles stadiums ?
| SELECT SUM("capacity") FROM table_204_992 WHERE "city" IN ('tarrazu', 'guapiles') | squall |
CREATE TABLE table_24979 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nationality is player John Garrett?
| SELECT "Nationality" FROM table_24979 WHERE "Player" = 'John Garrett' | wikisql |
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.KSBM, jybgb.KSMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN mzjzjlb_jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJL... | css |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'GTBOOKS' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spr... | advising |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '云甜恬' AND t_kc21.MED_SER_ORG_NO = '1264230' AND t_kc21.OUT_DIAG_DIS_NM LIKE '%沙眼%' | css |
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give ... | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director | nvbench |
CREATE TABLE table_1342315_10 (
first_elected VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many winners were there in the Georgia 1 district?
| SELECT COUNT(first_elected) FROM table_1342315_10 WHERE district = "Georgia 1" | 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 Year, AVG(MAX(Price)) FROM wine ORDER BY AVG(MAX(Price)) | nvbench |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM 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 = '93948131621' AND t_kc22.HOSP_DOC_NM LIKE '苗%' | css |
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId nu... | SELECT COUNT(*), SUM(CAST(subq.ViewCount AS INT)) FROM (SELECT ViewCount, Id FROM Posts WHERE ViewCount > 0 AND PostTypeId = 1 AND ClosedDate IS NULL AND CommunityOwnedDate IS NULL AND STR_POSITION(Tags, '<python>') > 0 ORDER BY ViewCount DESC LIMIT 1000000) AS subq | sede |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc21.MED_ORG_DEPT_CD, t_kc21.MED_ORG_DEPT_NM, AVG(t_kc21.IN_HOSP_DAYS) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '7159417' GROUP BY t_kc21.MED_ORG_DEPT_CD ORDER BY AVG(t_kc21.IN_HOSP_DAYS) | css |
CREATE TABLE table_17134 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Title" FROM table_17134 WHERE "Production code" = '3T5764' | wikisql |
CREATE TABLE table_name_77 (
status VARCHAR,
elected VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Elected smaller than 2001, and a District of 83rd has what status?
| SELECT status FROM table_name_77 WHERE elected < 2001 AND district = "83rd" | sql_create_context |
CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
... | SELECT DISTINCT T1.file_size, T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 | spider |
CREATE TABLE table_15624 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was there a result of 5-1?
| SELECT "Date" FROM table_15624 WHERE "Result" = '5-1' | wikisql |
CREATE TABLE table_58514 (
"Year" real,
"Competition" text,
"Venue" text,
"Placed" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event placed bronze earlier than 1987?
| SELECT "Event" FROM table_58514 WHERE "Placed" = 'bronze' AND "Year" < '1987' | wikisql |
CREATE TABLE table_204_102 (
id number,
"name" text,
"location served" text,
"governorate" text,
"utilization" text,
"helipads" number,
"runways" number,
"shelters" number,
"squadrons" text,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT "name" FROM table_204_102 ORDER BY "shelters" DESC LIMIT 1 | squall |
CREATE TABLE table_46948 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the tournament on july 23, 2006?
| SELECT "Tournament" FROM table_46948 WHERE "Date" = 'july 23, 2006' | 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 jyjgzbb.BGDH FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '94916575110' | css |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime... | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-4312' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = '-lymph... | eicu |
CREATE TABLE table_name_36 (
cardinalatial_title VARCHAR,
elevated VARCHAR,
elector VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the cardinalatial title when the elevated is September 18, 1294, and elector is B rard De Got?
| SELECT cardinalatial_title FROM table_name_36 WHERE elevated = "september 18, 1294" AND elector = "bérard de got" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.