instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_48413 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/g" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the lowest Long that has the Gain of 20, and the Loss smaller than 0?
| SELECT MIN("Long") FROM table_48413 WHERE "Gain" = '20' AND "Loss" < '0' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.admittime, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments ... | SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE course.has_exams = 'N' AN... | advising |
CREATE TABLE table_name_21 (
driver VARCHAR,
constructor VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who drove the ferrari that went 57 laps?
| SELECT driver FROM table_name_21 WHERE constructor = "ferrari" AND laps = 57 | sql_create_context |
CREATE TABLE table_38870 (
"Model" text,
"Years" text,
"Engine" text,
"Displ." text,
"Power" text,
"Torque" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n m (lb ft) @ 1500 2000 ... | SELECT "Engine" FROM table_38870 WHERE "Model" = '2.0 bitdi (cr) dpf' AND "Torque" = 'n·m (lb·ft) @ 1500–2000 rpm' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... | 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-19271')) AND microlab.culturesite = 'urine, catheter specimen... | eicu |
CREATE TABLE list (
LastName TEXT,
FirstName TEXT,
Grade INTEGER,
Classroom INTEGER
)
CREATE TABLE teachers (
LastName TEXT,
FirstName TEXT,
Classroom INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Draw a scatter chart for what are the g... | SELECT Classroom, Grade FROM list | nvbench |
CREATE TABLE table_name_71 (
date VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was game 37?
| SELECT date FROM table_name_71 WHERE game = 37 | sql_create_context |
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 * FROM person_info JOIN hz_info JOIN mzjzjlb 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 WHERE person_info.XM = '马幼安' AND hz_info.YLJGDM = '5841169' AND mzjzjlb.JZZDSM LIKE '%后%' | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "Protein" | mimicsql_data |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2183.0" AND diagnoses.icd9_code = "2984" | mimicsql_data |
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
... | SELECT County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_Id ORDER BY COUNT(*) DESC | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab.label = "Protein/Creatinine Ratio" | mimicsql_data |
CREATE TABLE table_name_66 (
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the Played was played, what is the lost?
| SELECT lost FROM table_name_66 WHERE "played" = "played" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... | SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-51640')) AND DATETIME(allergy.allergytime) <= DATETIME(CURRENT_TIME()... | eicu |
CREATE TABLE table_44521 (
"Name" text,
"Cyl." text,
"Bore" text,
"Capacity" text,
"Power" text,
"Weight" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Power has a Name of 9 nc?
| SELECT "Power" FROM table_44521 WHERE "Name" = '9 nc' | 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 AVG(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.t_kc21_PERSON_AGE < 9) | css |
CREATE TABLE table_60218 (
"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 was the money when the place was t8 and the score was 74-72-75-71=292?
| SELECT "Money ( $ )" FROM table_60218 WHERE "Place" = 't8' AND "Score" = '74-72-75-71=292' | wikisql |
CREATE TABLE table_77300 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent with a record of 14-4-1 and has a round of 1?
| SELECT "Opponent" FROM table_77300 WHERE "Round" = '1' AND "Record" = '14-4-1' | wikisql |
CREATE TABLE table_19865 (
"Stage" real,
"Stage winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Malaysian rider classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT "Points classification" FROM table_19865 WHERE "Stage winner" = 'Li Fuyu' | wikisql |
CREATE TABLE table_26677836_1 (
against VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the nation [[|]] (19)?
| SELECT COUNT(against) FROM table_26677836_1 WHERE nation = "[[|]] (19)" | sql_create_context |
CREATE TABLE table_67455 (
"State" text,
"Date" text,
"Yes vote" text,
"No vote" text,
"Vote outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many no votes from Alaska in 1998?
| SELECT "No vote" FROM table_67455 WHERE "Date" = '1998' AND "State" = 'alaska' | 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 MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '7367933' AND t_kc24.t_kc21_OUT_DIAG_DIS_NM = '复发性阿弗他溃疡') | css |
CREATE TABLE table_49730 (
"Team" text,
"Sets+" real,
"Sets\u2013" real,
"Points+" real,
"Points\u2013" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Sets+ where the Points- are 1435 and the Points+ are less than 1228?
| SELECT COUNT("Sets+") FROM table_49730 WHERE "Points\u2013" = '1435' AND "Points+" < '1228' | wikisql |
CREATE TABLE table_27487336_1 (
passing_yards_per_game VARCHAR,
rushing_yards_per_game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every value for passing yards per game if rushing yards per game is 113.6?
| SELECT passing_yards_per_game FROM table_27487336_1 WHERE rushing_yards_per_game = "113.6" | sql_create_context |
CREATE TABLE table_12113818_1 (
year VARCHAR,
communications_and_corporate_affairs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was communications and corporate affairs held by Jeff Rotman?
| SELECT year FROM table_12113818_1 WHERE communications_and_corporate_affairs = "Jeff Rotman" | sql_create_context |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT jyjgzbb.JCFF FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.... | css |
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 MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '严承安' AND MED_SER_ORG_NO = '5983147' AND IN_DIAG_DIS_NM LIKE '%神经衰弱%' | css |
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 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Malignant neoplasm of other sites of tongue" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE draft_copies (
document_id number,
draft_number number,
copy_number number
)
CREATE TABLE ref_shipping_agents (
shipping_agent_code text,
shipping_agent_name text,
shipping_agent_description text
)
CREATE TABLE employees (
employee_id number,
role_code text,
employee_n... | SELECT COUNT(*) FROM documents WHERE document_status_code = "done" | spider |
CREATE TABLE table_57972 (
"Episode" real,
"Rating" real,
"Share" real,
"Rating/share (18-49)" text,
"Rank (Timeslot)" real,
"Rank (Night)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest nightly rank for an episode after episo... | SELECT MIN("Rank (Night)") FROM table_57972 WHERE "Rating/share (18-49)" = '2.6/8' AND "Episode" > '1' | wikisql |
CREATE TABLE table_name_24 (
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the St Kilda Away team score?
| SELECT away_team AS score FROM table_name_24 WHERE away_team = "st kilda" | sql_create_context |
CREATE TABLE table_2596811_12 (
wounded VARCHAR,
complement VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of wounded figures associated with a complement of 22 off 637 men?
| SELECT COUNT(wounded) FROM table_2596811_12 WHERE complement = "22 off 637 men" | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "4341" | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT demographic.admission_type, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.icd9_code = "43491" | mimicsql_data |
CREATE TABLE Product_Characteristics (
product_id INTEGER,
characteristic_id INTEGER,
product_characteristic_value VARCHAR(50)
)
CREATE TABLE Characteristics (
characteristic_id INTEGER,
characteristic_type_code VARCHAR(15),
characteristic_data_type VARCHAR(10),
characteristic_name VARCHAR(... | SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY COUNT(product_category_description) DESC | nvbench |
CREATE TABLE table_29152 (
"Common Name" text,
"Genus & Species" text,
"NCBI Accession Number" text,
"Length (AA)" real,
"% Identity to C7orf38" real,
"% Similarity to C7orf38" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the common na... | SELECT "Common Name" FROM table_29152 WHERE "Length (AA)" = '1323' | wikisql |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
... | SELECT vdt.User_ID AS "user_link", u.Reputation AS "user_reputation", vdt.Upvote_Count AS "upvote_count", vdt.Upvoting_Occured AS "date_of_votes", vdt.Post_Count AS "number_of_posts" FROM (SELECT u.Id AS User_Id, COUNT(v.Id) AS Upvote_Count, MAX(v.CreationDate) AS Upvoting_Occured, COUNT(DISTINCT p.Id) AS Post_Count FR... | sede |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE flight_fare (
flight_id int,
f... | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.departure_time < 1200 AND flight.t... | atis |
CREATE TABLE table_76449 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when there was a TKO method?
| SELECT "Opponent" FROM table_76449 WHERE "Method" = 'tko' | wikisql |
CREATE TABLE table_69009 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft (m)" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Palazzo's street address is listed as what?
| SELECT "Street address" FROM table_69009 WHERE "Name" = 'the palazzo' | wikisql |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT All_Games, School_ID FROM basketball_match ORDER BY All_Games | nvbench |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid... | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '027-68991' AND patient.hospitaladmitsource = 'emergency department' AND STRFTIME('%y', patient.unitadmittime) <= '2104' | eicu |
CREATE TABLE table_name_78 (
notes VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Notes has a Competition of venice marathon?
| SELECT notes FROM table_name_78 WHERE competition = "venice marathon" | sql_create_context |
CREATE TABLE table_name_55 (
game_name VARCHAR,
top_prize VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the game with a top prize of $888?
| SELECT game_name FROM table_name_55 WHERE top_prize = "$888" | 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 prescriptions (
subject_id text,
hadm_id... | SELECT demographic.ethnicity FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
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 admissions (
... | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12775 AND admissions.dischtime IS NULL) AND microbiologyevents.spec_type_desc = 'sputum' ORDER BY microbiologyevents.charttime LIMIT 1 | mimic_iii |
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 'Timon' AS FirstName, 'Eckert' AS LastName, 'Kru' AS City, 32 AS Age | sede |
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_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '潘秀媛' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 6974.25) | css |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | SELECT p.Id AS "post_id", p.OwnerDisplayName, p.Score, CONCAT(p.Title, q.Title) AS Title, CONCAT(p.Tags, q.Tags) AS Tags FROM Posts AS p LEFT OUTER JOIN Posts AS q ON p.ParentId = q.Id WHERE p.OwnerUserId IS NULL AND p.Score > 0 ORDER BY p.CreationDate | sede |
CREATE TABLE table_75132 (
"Rank" text,
"Runs" text,
"Opponent" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Run has an Opponent of Canterbury?
| SELECT "Runs" FROM table_75132 WHERE "Opponent" = 'canterbury' | wikisql |
CREATE TABLE table_name_23 (
books VARCHAR,
gender VARCHAR,
animal_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the male Bounder books?
| SELECT books FROM table_name_23 WHERE gender = "male" AND animal_name = "bounder" | sql_create_context |
CREATE TABLE table_1037 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which positions have made 4 touchdowns?
| SELECT "Position" FROM table_1037 WHERE "Touchdowns" = '4' | wikisql |
CREATE TABLE table_5366 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the following questions fo... | SELECT "Tries against" FROM table_5366 WHERE "Played" = '22' AND "Drawn" = '1' AND "Try bonus" = '13' | wikisql |
CREATE TABLE table_31908 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the winning driver for mobilecast impul... | SELECT "Winning Driver" FROM table_31908 WHERE "Winning Team" = 'mobilecast impul' AND "Circuit" = 'twin ring motegi' | wikisql |
CREATE TABLE table_25017 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in which state where John Laurance (f) as a vacator?... | SELECT "State (class)" FROM table_25017 WHERE "Vacator" = 'John Laurance (F)' | wikisql |
CREATE TABLE table_79570 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournament had a partner of Erika Sema?
| SELECT "Tournament" FROM table_79570 WHERE "Partner" = 'erika sema' | wikisql |
CREATE TABLE song (
f_id VARCHAR,
resolution INTEGER
)
CREATE TABLE files (
file_size VARCHAR,
formats VARCHAR,
f_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the file size and format for all songs that have resolution lower than 800.
| 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 | sql_create_context |
CREATE TABLE table_77022 (
"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 average Silver, when Rank is 5, and when Bronze is less than 1?
| SELECT AVG("Silver") FROM table_77022 WHERE "Rank" = '5' AND "Bronze" < '1' | wikisql |
CREATE TABLE table_name_91 (
country VARCHAR,
athlete VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the country for zhang xiuyun?
| SELECT country FROM table_name_91 WHERE athlete = "zhang xiuyun" | sql_create_context |
CREATE TABLE table_14768 (
"Class" text,
"Type" text,
"Fleet numbers" text,
"Quantity made" real,
"Manufacturer" text,
"Date made" text,
"1958 CI\u00c9" text,
"1958 UTA" text,
"Date withdrawn" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Date made" FROM table_14768 WHERE "Notes" = '45/48 renumbered 15/16; two sold to sl&ncr' | wikisql |
CREATE TABLE table_203_149 (
id number,
"pick" number,
"player" text,
"team" text,
"position" text,
"school" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the last player selected in the first round of the 1989 major league baseball dra... | SELECT "player" FROM table_203_149 ORDER BY "pick" DESC LIMIT 1 | squall |
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 microlab (
microl... | SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-4131')) AND DATETIME(lab.labresulttime, 'start of month') = DATETIME(CURRENT_TIME(), ... | eicu |
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2154" AND prescriptions.route = "DIALYS" | mimicsql_data |
CREATE TABLE table_12536 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE DIRECTOR WITH FILM hope and pain?
| SELECT "Director" FROM table_12536 WHERE "Film title used in nomination" = 'hope and pain' | wikisql |
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.age, demographic.dod FROM demographic WHERE demographic.subject_id = "72353" | mimicsql_data |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id numbe... | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19894) AND STRFTIME('%y-%m', microbiologyevents.charttime) <= '2104-08' ORDER BY microbiologyevents.charttime DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_78925 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the venue for the game played on 16/01/1954, when the against was more than 3?
| SELECT "Venue" FROM table_78925 WHERE "Against" > '3' AND "Date" = '16/01/1954' | wikisql |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE T... | SELECT p2.OwnerUserId, p1.ViewCount, p2.Score, p1.Id AS duration FROM Posts AS p1, Posts AS p2, Tags, PostTags WHERE Tags.TagName = 'unix' AND PostTags.TagId = Tags.Id AND p1.Id = PostTags.PostId AND p1.PostTypeId = 1 AND p2.PostTypeId = 2 AND p2.ParentId = p1.Id AND NOT p2.OwnerUserId IS NULL | sede |
CREATE TABLE table_203_208 (
id number,
"team" text,
"location" text,
"venue" text,
"capacity" number,
"position in 1993-94" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of teams located in bobruisk ?
| SELECT COUNT("team") FROM table_203_208 WHERE "location" = 'bobruisk' | squall |
CREATE TABLE qtb (
CLINIC_ID 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,
INSU_TYPE text,
IN... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.UNIVALENT FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '卫祺祥' AND qtb.MED_SER_ORG_NO = '1070682' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '卫祺祥' AND gyb.MED_SER_ORG_NO = '1070682' UNION... | css |
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*) | nvbench |
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the following questions fo... | SELECT Type, AVG(Tonnage) FROM ship GROUP BY Type ORDER BY Type | nvbench |
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 PostHistory (
Id number,
PostHistoryT... | SELECT Comment.Id AS "comment_link", MAX(Comment.Score) AS "score", MAX(Post.Id) AS "post_link", MAX(Type.Name) AS "type", MAX(Post.OwnerUserId) AS "user_link", MAX(Post.CreationDate) AS "posted", MAX(Comment.CreationDate) AS "commented", MIN(Edit.CreationDate) AS "edited" FROM Comments AS Comment JOIN Posts AS Post ON... | sede |
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE... | SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code | nvbench |
CREATE TABLE table_name_57 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the nascar nationwide series held?
| SELECT record FROM table_name_57 WHERE date = "nascar nationwide series" | sql_create_context |
CREATE TABLE table_75625 (
"Team" text,
"Games" real,
"Tries" real,
"Conversions" real,
"Total Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of conversions for the Cardiff Blues with less than 14 tries?
| SELECT AVG("Conversions") FROM table_75625 WHERE "Team" = 'cardiff blues' AND "Tries" < '14' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Pantoprazole" | mimicsql_data |
CREATE TABLE table_255812_1 (
city___municipality VARCHAR,
mayor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the metropolis / municipality where mayor is helen c. De castro
| SELECT city___municipality FROM table_255812_1 WHERE mayor = "Helen C. De Castro" | sql_create_context |
CREATE TABLE table_203_773 (
id number,
"season" number,
"network" text,
"play-by-play" text,
"color commentator(s)" text,
"sideline reporter(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many seasons of play by play did chris schenkel ... | SELECT COUNT(*) FROM table_203_773 WHERE "play-by-play" IN ('chris schenkel', 'chuck thompson') | squall |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardi... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'small intest inj nos-cl') AND STRFTIME('%y', diagnoses_icd... | mimic_iii |
CREATE TABLE table_58603 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date the record became 26 14 9?
| SELECT "Date" FROM table_58603 WHERE "Record" = '26–14–9' | wikisql |
CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
)
CREATE TABLE artist (
artist_id number,
artist text,
age number,
famous_title text,
famous_release_date text
)
CREATE TABLE music_festival (
id... | SELECT category FROM music_festival GROUP BY category HAVING COUNT(*) > 1 | spider |
CREATE TABLE table_13467 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins did the 500cc class have in 1979?
| SELECT "Wins" FROM table_13467 WHERE "Class" = '500cc' AND "Year" = '1979' | wikisql |
CREATE TABLE table_name_44 (
games VARCHAR,
name VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a Rank of less than 4, what is Pablo Prigioni's total number of Games?
| SELECT COUNT(games) FROM table_name_44 WHERE name = "pablo prigioni" AND rank < 4 | sql_create_context |
CREATE TABLE table_26166836_2 (
location VARCHAR,
distance VARCHAR,
month_held VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all of the area where distance is marathon and month held is february
| SELECT location FROM table_26166836_2 WHERE distance = "Marathon" AND month_held = "February" | sql_create_context |
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE compartment_clas... | 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, days, flight WHERE (((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND days.day_name = 'FRIDAY' AND flight.flight_days = days.days_code AND ... | atis |
CREATE TABLE table_name_64 (
original_artist VARCHAR,
length VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Original Artis of the Track with a Length of 2:38?
| SELECT original_artist FROM table_name_64 WHERE length = "2:38" | sql_create_context |
CREATE TABLE table_116 (
"Title" text,
"System" text,
"Publisher" text,
"Product No." text,
"Compatible with 20/60GB NTSC PS3 (CECHA/CECHB)" text,
"Compatible with 60GB PAL/80GB NTSC PS3 (CECHC/CECHE)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Compatible with 60GB PAL/80GB NTSC PS3 (CECHC/CECHE)" FROM table_116 WHERE "Publisher" = 'Electronic Arts' AND "Title" = 'James Bond 007: Agent Under Fire' | wikisql |
CREATE TABLE table_79767 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent plays on September 19?
| SELECT "Opponent" FROM table_79767 WHERE "Date" = 'september 19' | 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.JLSJ FROM mzjzjlb WHERE mzjzjlb.JZLSH = '67524339485' | css |
CREATE TABLE table_75265 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lead has Kirsty Balfour as second?
| SELECT "Lead" FROM table_75265 WHERE "Skip" = 'kirsty balfour' | wikisql |
CREATE TABLE table_39720 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Overall has a Pick # of 26?
| SELECT SUM("Overall") FROM table_39720 WHERE "Pick #" = '26' | 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 t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypervolemia - in... | eicu |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
a... | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'esophageal ca')) AND STRFTIME('%y', cost.cha... | eicu |
CREATE TABLE table_61717 (
"Romanised name" text,
"Chinese name" text,
"age at appointment" real,
"Foreign nationality" text,
"Portfolio attachment" text,
"Govt salary" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the portfolio attachm... | SELECT "Portfolio attachment" FROM table_61717 WHERE "age at appointment" = '48' AND "Chinese name" = '梁鳳儀' | wikisql |
CREATE TABLE table_name_98 (
pregame_host VARCHAR,
network VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the pregame host when Bold was the network?
| SELECT pregame_host FROM table_name_98 WHERE network = "bold" | sql_create_context |
CREATE TABLE table_58064 (
"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 home team score at junction oval?
| SELECT "Home team score" FROM table_58064 WHERE "Venue" = 'junction oval' | wikisql |
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb 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 WHERE person_info.XM = '韦乐和' AND hz_info.YLJGDM = '2848267' AND mzjzjlb.JZZDSM LIKE '%妊娠%' | css |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.