instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 * FROM t_kc21 WHERE t_kc21.PERSON_ID = '91955155' AND t_kc21.MED_SER_ORG_NO = '3730481' AND NOT t_kc21.MED_ORG_DEPT_NM LIKE '%正畸%' | css |
CREATE TABLE table_60811 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type for Cassano?
| SELECT "Type" FROM table_60811 WHERE "Name" = 'cassano' | 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 t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76173) AND STRFTIME('%y-%m', prescriptions.startdate) >= '2101-04' GROUP BY prescriptions.drug) AS t1 WHERE t1.c... | mimic_iii |
CREATE TABLE table_name_10 (
opponents VARCHAR,
partner VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the Opponents when Laura DuPont had Pam Shriver as Partner with a Score of 6-3, 6-3?
| SELECT opponents FROM table_name_10 WHERE partner = "pam shriver" AND score = "6-3, 6-3" | sql_create_context |
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 (SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.STA_DATE BETWEEN '2013-05-14' AND '2017-06-20' AND t_kc22.MED_INV_ITEM_TYPE = '手术费' GROUP BY t_kc22.MED_ORG_DEPT_CD ORDER BY COUNT(*) DESC LIMIT 1) - (SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.STA_DATE BETWEEN '2013-05-14' AND '2017-06-20' AND t_kc22.MED_INV_ITEM_TYPE = '... | css |
CREATE TABLE table_203_467 (
id number,
"year" number,
"numer of jamaicans\ngranted british\ncitizenship" number,
"naturalisation\nby residence" number,
"naturalisation\nby marriage" number,
"registration\nof a minor child" number,
"registration\nby other means" number
)
-- Using valid SQL... | SELECT SUM("numer of jamaicans\ngranted british\ncitizenship") FROM table_203_467 WHERE "year" > 2005 | squall |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT mzjzjlb.JZLSH 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 NOT mzjzjlb.JZLSH IN (SELECT JZLSH FROM jybgb WHERE BGRQ <= '2013-05-19') | css |
CREATE TABLE table_6755 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Mother's Live remix created?
| SELECT SUM("Year") FROM table_6755 WHERE "Version" = 'mother''s live remix' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA" AND demographic.dod_year <= "2115.0" | mimicsql_data |
CREATE TABLE table_name_34 (
date VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the home team Richmond play?
| SELECT date FROM table_name_34 WHERE home_team = "richmond" | sql_create_context |
CREATE TABLE customers (
customer_id number,
customer_name text
)
CREATE TABLE claims (
claim_id number,
fnol_id number,
effective_date time
)
CREATE TABLE available_policies (
policy_id number,
policy_type_code text,
customer_phone text
)
CREATE TABLE services (
service_id number... | SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1 | spider |
CREATE TABLE table_name_33 (
laps INTEGER,
winnings VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver has less than 61 points, but winnings of $67,675?
| SELECT SUM(laps) FROM table_name_33 WHERE winnings = "$67,675" AND points < 61 | sql_create_context |
CREATE TABLE table_6392 (
"Year" real,
"Film" text,
"Role" text,
"Language" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What language is the film Marion Bridge?
| SELECT "Language" FROM table_6392 WHERE "Film" = 'marion bridge' | wikisql |
CREATE TABLE table_12434380_1 (
mascot VARCHAR,
founded VARCHAR,
school_colors VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mascot for the school founded in 1923 with the school colors of blue, red & white?
| SELECT mascot FROM table_12434380_1 WHERE founded = 1923 AND school_colors = "Blue, Red & White" | sql_create_context |
CREATE TABLE table_73800 (
"City / Municipality" text,
"No. of s Barangay" real,
"District" real,
"Area (km\u00b2)" text,
"Population (2010)" real,
"Income class (2007)" text,
"ZIP code" real,
"Mayor" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Area (km\u00b2)" FROM table_73800 WHERE "Income class (2007)" = '2nd' | wikisql |
CREATE TABLE table_name_72 (
attendance INTEGER,
game INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average attendance of game 1?
| SELECT AVG(attendance) FROM table_name_72 WHERE game < 1 | 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 demographic.admission_type FROM demographic WHERE demographic.name = "Dona Cole" | mimicsql_data |
CREATE TABLE table_26744 (
"April 2013 Cum. Rank" real,
"Name" text,
"Rank 2012" real,
"Rank 2013" real,
"Base" text,
"2013 rev (bil. USD )" text,
"2013 Profit (mil. USD )" text,
"Assets 2013 (bil.$)" text,
"Market cap March 15 (mil.$)" real
)
-- Using valid SQLite, answer the foll... | SELECT "Market cap March 15 (mil.$)" FROM table_26744 WHERE "2013 rev (bil. USD )" = '2.8' | wikisql |
CREATE TABLE table_39924 (
"School" text,
"Nickname" text,
"Colors" text,
"League" text,
"Class" text,
"Division" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school is the team from that has the colors blue and gold?
| SELECT "School" FROM table_39924 WHERE "Colors" = 'blue and gold' | wikisql |
CREATE TABLE Rating (
rID VARCHAR
)
CREATE TABLE Reviewer (
rID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the names of all reviewers who have ratings with a NULL value for the date.
| SELECT DISTINCT name FROM Reviewer AS T1 JOIN Rating AS T2 ON T1.rID = T2.rID WHERE ratingDate = "null" | sql_create_context |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuo... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN... | mimic_iii |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
... | SELECT * FROM Users WHERE Location = 'VN' OR Location = 'Vietnam' | sede |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | 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 = '012-37411' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'total... | eicu |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
va... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissi... | mimic_iii |
CREATE TABLE table_1320857_1 (
ht_brewer VARCHAR,
je_armstrong VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is h.t. brewer when j.e. armstrong is a.j. wilson?
| SELECT ht_brewer FROM table_1320857_1 WHERE je_armstrong = "A.J. Wilson" | sql_create_context |
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,
unsure_rate number
)
CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height nu... | SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1 | spider |
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.JCZBJGDL, jyjgzbb.JCZBJGDW 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.Y... | css |
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 AVG(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_AGE <= 6 UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_AGE <= 6 UNION SELECT zyb.MED_CLINIC_ID FROM zyb WHERE zyb.PERSON_AGE <= 6 UNION SELECT mzb.MED_CLINIC_ID FROM mzb WHERE mzb.PERSON... | css |
CREATE TABLE table_name_45 (
position INTEGER,
losses VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has Losses of 11, and a Played larger than 22?
| SELECT SUM(position) FROM table_name_45 WHERE losses = 11 AND played > 22 | sql_create_context |
CREATE TABLE table_name_66 (
november VARCHAR,
july VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the November playmate with the July playmate Hope Marie Carlton?
| SELECT november FROM table_name_66 WHERE july = "hope marie carlton" | sql_create_context |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmoun... | SELECT DATEADD(week, DATEDIFF(week, 0, CreationDate), 0) AS m, TagName, COUNT(*) FROM PostTags AS pt JOIN Posts AS q ON q.Id = pt.PostId JOIN Tags AS t ON t.Id = pt.TagId WHERE TagName IN ('serverless', 'containers', 'dockeree') AND q.CreationDate < DATEADD(week, DATEDIFF(week, 0, GETDATE()), 0) AND q.CreationDate < '2... | sede |
CREATE TABLE table_21550897_1 (
_number INTEGER,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode had 10.14 million viewers (U.S.)?
| SELECT MIN(_number) FROM table_21550897_1 WHERE us_viewers__million_ = "10.14" | sql_create_context |
CREATE TABLE table_name_23 (
attendance VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance of week 8?
| SELECT COUNT(attendance) FROM table_name_23 WHERE week = 8 | sql_create_context |
CREATE TABLE table_203_720 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the only opponent to play in the louisiana superdome ?
| SELECT "opponent#" FROM table_203_720 WHERE "site" = 'louisiana superdome • new orleans' | squall |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Adv eff cardiovasc NEC" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE table_name_44 (
round INTEGER,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round did the match at the Golden Trophy 1999 event end?
| SELECT SUM(round) FROM table_name_44 WHERE event = "golden trophy 1999" | sql_create_context |
CREATE TABLE table_name_18 (
loser VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Loser when the winner was los angeles lakers (10)?
| SELECT loser FROM table_name_18 WHERE winner = "los angeles lakers (10)" | sql_create_context |
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.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '95011446' AND NOT t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 8903.91) | 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 MIN(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 lab.patientunitstayid FROM lab WHERE lab.labname = '24 h urine urea nitrogen')) AND DATETIME(cost.chargetime) >= DATETIM... | eicu |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id numb... | SELECT pa.Id AS "post_link", pa.Body FROM Posts AS pa, Posts AS pq WHERE pa.ParentId = pq.Id AND pq.CreationDate < '18 Mar 2013' AND pa.CreationDate > '1 Apr 2013' AND DATEDIFF(day, pq.CreationDate, CreationDate) < 30 AND pa.ClosedDate IS NULL AND NOT EXISTS(SELECT 1 FROM PostHistory AS ph WHERE ph.PostId = pa.Id AND p... | sede |
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int... | SELECT Year_Join, COUNT(Year_Join) FROM artist WHERE Country <> 'United States' GROUP BY Name ORDER BY COUNT(Year_Join) | nvbench |
CREATE TABLE table_59704 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What report has tour match as the status, with an against less than 22?
| SELECT "Report" FROM table_59704 WHERE "Status" = 'tour match' AND "Against" < '22' | wikisql |
CREATE TABLE table_72011 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which score has a record of 58 15 8?
| SELECT "Score" FROM table_72011 WHERE "Record" = '58–15–8' | wikisql |
CREATE TABLE table_name_64 (
points VARCHAR,
played VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Points, when Played is '20', and when Club is 'Caldicot RFC'?
| SELECT points FROM table_name_64 WHERE played = "20" AND club = "caldicot rfc" | sql_create_context |
CREATE TABLE table_1928 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How... | SELECT "Water (sqmi)" FROM table_1928 WHERE "Latitude" = '48.064751' | wikisql |
CREATE TABLE table_65103 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Bonus points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of bonus points f... | SELECT "Bonus points" FROM table_65103 WHERE "Drawn" = '2' AND "Points for" = '475' | wikisql |
CREATE TABLE table_47382 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the Prime Minister with a Born-Died of 1873 1933?
| SELECT "Name" FROM table_47382 WHERE "Born-Died" = '1873–1933' | wikisql |
CREATE TABLE table_73179 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT MIN("Wins") FROM table_73179 WHERE "Position" = '4th' | 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 MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.diagnosis = "LEFT COLON CANCER" | mimicsql_data |
CREATE TABLE table_57458 (
"Vaccine" text,
"Minimum Age at 1st Dose" text,
"Number of Doses" text,
"Dose" text,
"Minimum Interval Between Doses" text,
"Route" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least interval between doses f... | SELECT "Minimum Interval Between Doses" FROM table_57458 WHERE "Minimum Age at 1st Dose" = '6 weeks old' AND "Vaccine" = 'diphtheria-pertussis-tetanus vaccine' | wikisql |
CREATE TABLE table_64489 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
)
-- Using valid SQLite, answer the following questi... | SELECT SUM("League Goals") FROM table_64489 WHERE "Total Goals" = '8' AND "League Cup Goals" > '0' | wikisql |
CREATE TABLE table_24565004_15 (
name VARCHAR,
goals¹ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the player that scored 4 times.
| SELECT name FROM table_24565004_15 WHERE goals¹ = 4 | sql_create_context |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT * FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '76594941' AND hz_info.YLJGDM = '5127443' AND zyjzjlb.CYKSMC LIKE '%遗传%' | css |
CREATE TABLE table_51628 (
"Year" real,
"Date" text,
"Type" text,
"EU Council presidency" text,
"President-in-Office" text,
"Host city" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which host city was Margaret Thatcher the President-in-Offi... | SELECT "Host city" FROM table_51628 WHERE "President-in-Office" = 'margaret thatcher' AND "Year" = '1981' | wikisql |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime t... | 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 = '013-29856' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmit... | eicu |
CREATE TABLE table_name_78 (
round INTEGER,
college VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a College of tulsa, and a Pick larger than 61?
| SELECT AVG(round) FROM table_name_78 WHERE college = "tulsa" AND pick > 61 | sql_create_context |
CREATE TABLE table_name_16 (
points_against___tests__ VARCHAR,
year_s_ VARCHAR,
games_won___tests__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the points against for 2000, when games won is 4 (1)?
| SELECT points_against___tests__ FROM table_name_16 WHERE year_s_ = 2000 AND games_won___tests__ = "4 (1)" | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Rheumatic heart dis NOS" AND lab.fluid = "Other Body Fluid" | mimicsql_data |
CREATE TABLE table_30129 (
"Round" real,
"Date" text,
"Grand Prix" text,
"Circuit" text,
"MotoGP winner" text,
"Moto2 winner" text,
"Moto3 winner" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of mot... | SELECT COUNT("Moto2 winner") FROM table_30129 WHERE "Circuit" = 'Laguna Seca' | 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 jyjgzbb (
BGDH text,
BGRQ tim... | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE hz_info.RYBH = '33303356' AND jybgb.BGRQ BETWEEN '2011-04-24' AND '2015-10-06' UNION... | css |
CREATE TABLE table_204_913 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the next venue after colombo , sri lanka o... | SELECT "venue" FROM table_204_913 WHERE "date" > (SELECT "date" FROM table_204_913 WHERE "venue" = 'colombo, sri lanka') ORDER BY "date" LIMIT 1 | squall |
CREATE TABLE table_12243817_1 (
tournament_location VARCHAR,
winners_share__$_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the tournament that the share of winning is 7000?
| SELECT tournament_location FROM table_12243817_1 WHERE winners_share__$_ = 7000 | sql_create_context |
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 | nvbench |
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
... | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%History of Philosophy%' OR name LIKE '%History of Philosophy%') AND credits = 15 | advising |
CREATE TABLE table_15932 (
"County" text,
"English name" text,
"Irish name" text,
"Population" real,
"Irish speakers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population for the English name Spiddal?
| SELECT "Population" FROM table_15932 WHERE "English name" = 'Spiddal' | wikisql |
CREATE TABLE table_name_87 (
date VARCHAR,
format VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date with a Format that is cd?
| SELECT date FROM table_name_87 WHERE format = "cd" | sql_create_context |
CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE railway_manage (
Railway_ID int,
Manager_ID int,
From_Year text
)
CREATE TABLE train (
Train_ID int,
Train_Num text,
Name text... | SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY Name DESC | nvbench |
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 AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDBM = 'I65.176' AND jyjgzbb.JCZBDM = '643141' | css |
CREATE TABLE photos (
id int,
camera_lens_id int,
mountain_id int,
color text,
name text
)
CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
)
CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real... | SELECT brand, COUNT(brand) FROM camera_lens GROUP BY brand | nvbench |
CREATE TABLE table_33263 (
"Game Name" text,
"Price" text,
"Top Prize" text,
"Launch Date" text,
"Odds of Winning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the launch date odds of winning 1 in 4.54?
| SELECT "Launch Date" FROM table_33263 WHERE "Odds of Winning" = '1 in 4.54' | wikisql |
CREATE TABLE lessons (
lesson_id number,
customer_id number,
lesson_status_code text,
staff_id number,
vehicle_id number,
lesson_date time,
lesson_time text,
price number
)
CREATE TABLE customer_payments (
customer_id number,
datetime_payment time,
payment_method_code text,
... | SELECT email_address, date_of_birth FROM customers WHERE first_name = "Carole" | spider |
CREATE TABLE table_11788 (
"Name" text,
"Appointed/Elected" text,
"Term expires" text,
"Appointing Governor" text,
"Governor's Party Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year when chief justice Mark Cady was appoin... | SELECT "Appointed/Elected" FROM table_11788 WHERE "Name" = 'chief justice mark cady' | wikisql |
CREATE TABLE table_13762472_3 (
high_points VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players scored the most points when the opposing team was New Orleans/Oklahoma City?
| SELECT COUNT(high_points) FROM table_13762472_3 WHERE team = "New Orleans/Oklahoma City" | sql_create_context |
CREATE TABLE table_24195232_1 (
institution VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the institution that was located is circleville, ohio?
| SELECT institution FROM table_24195232_1 WHERE location = "Circleville, Ohio" | sql_create_context |
CREATE TABLE table_name_86 (
year VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years have a position of 2nd?
| SELECT COUNT(year) FROM table_name_86 WHERE position = "2nd" | sql_create_context |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDat... | SELECT Reputation, DisplayName, Location FROM Users WHERE (Location LIKE '%France%') AND Reputation > 101 ORDER BY Reputation DESC | sede |
CREATE TABLE table_11908801_1 (
nickname VARCHAR,
meaning VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of nicknames for the meaning of god knows my journey.
| SELECT COUNT(nickname) FROM table_11908801_1 WHERE meaning = "God Knows My Journey" | sql_create_context |
CREATE TABLE table_11978 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the entrant for Gabriele Tarquini with all rounds and a... | SELECT "Entrant" FROM table_11978 WHERE "Rounds" = 'all' AND "Chassis" = 'jh24 jh25' AND "Driver" = 'gabriele tarquini' | wikisql |
CREATE TABLE table_34821 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has 69-70-68-73=280 as the score?
| SELECT "Player" FROM table_34821 WHERE "Score" = '69-70-68-73=280' | 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 MAIN_COND_DES FROM t_kc21 WHERE MED_CLINIC_ID = '59693307352' | css |
CREATE TABLE table_name_40 (
avg_g VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total avg/g of McCrary, Greg?
| SELECT COUNT(avg_g) FROM table_name_40 WHERE name = "mccrary, greg" | sql_create_context |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '96775087' AND t_kc22.STA_DATE BETWEEN '2001-12-08' AND '2012-06-21' AND t_kc22.SOC_SRT_DIRE_CD = '921496' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE ... | css |
CREATE TABLE table_61367 (
"Number" real,
"Time" real,
"Aircraft" text,
"Opponent" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number is in Bois de Warville with a time less than 810?
| SELECT SUM("Number") FROM table_61367 WHERE "Location" = 'bois de warville' AND "Time" < '810' | wikisql |
CREATE TABLE subjects (
subject_id number,
subject_name text
)
CREATE TABLE courses (
course_id number,
author_id number,
subject_id number,
course_name text,
course_description text
)
CREATE TABLE student_tests_taken (
registration_id number,
date_test_taken time,
test_result ... | SELECT T1.address_line_1 FROM course_authors_and_tutors AS T1 JOIN courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = "operating system" OR T2.course_name = "data structure" | spider |
CREATE TABLE table_dev_33 (
"id" int,
"gender" string,
"fpg" float,
"active_infection" bool,
"uncontrolled_diabetes" bool,
"hiv_infection" bool,
"hemoglobin_a1c_hba1c" float,
"urine_albumin_excretion" int,
"hematocrit_hct" float,
"fasting_plasma_glucose" int,
"dietary_modific... | SELECT * FROM table_dev_33 WHERE (plasma_creatinine > 1.4 AND gender = 'female') OR (plasma_creatinine > 1.5 AND gender = 'male') OR urine_albumin_excretion > 300 | criteria2sql |
CREATE TABLE table_55287 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is the player, with an undisclosed transfer fee and movin... | SELECT "Country" FROM table_55287 WHERE "Transfer fee" = 'undisclosed' AND "Moving to" = 'nacional' | wikisql |
CREATE TABLE table_44203 (
"Publication" text,
"Country" text,
"Accolade" text,
"Year" real,
"Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Accolade, when Year is less than 2002, when Publication is 'Rolling Stone', and when Rank is '... | SELECT "Accolade" FROM table_44203 WHERE "Year" < '2002' AND "Publication" = 'rolling stone' AND "Rank" = '48' | wikisql |
CREATE TABLE table_name_13 (
ship_size VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the cargo value in 2004 for ship size?
| SELECT 2004 FROM table_name_13 WHERE ship_size = "ship size" | sql_create_context |
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 prescriptions.drug_type, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Sulfameth/Trimethoprim SS" | mimicsql_data |
CREATE TABLE table_1990460_1 (
open_cup VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the team's status in the Open Cup in 2006?
| SELECT open_cup FROM table_1990460_1 WHERE year = 2006 | sql_create_context |
CREATE TABLE table_21321804_1 (
position VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total positions are there for utah college?
| SELECT COUNT(position) FROM table_21321804_1 WHERE college = "Utah" | sql_create_context |
CREATE TABLE table_name_77 (
to_par VARCHAR,
player VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE TO PAR WITH A T7 PLACE, SCORE OF 72-67=139, AND PLAYER RAYMOND FLOYD?
| SELECT to_par FROM table_name_77 WHERE place = "t7" AND score = 72 - 67 = 139 AND player = "raymond floyd" | sql_create_context |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
... | SELECT DISTINCT u.DisplayName, q.Title, LENGTH(q.Title) AS "title_len", q.CreationDate, q.Tags, q.Score, q.FavoriteCount, q.ViewCount, q.AnswerCount, LENGTH(q.Body) AS "post_length" FROM Posts AS q JOIN Posts AS a ON a.Id = q.Id JOIN Users AS u ON u.Id = a.OwnerUserId JOIN PostTags AS t ON t.PostId = q.Id WHERE u.Id > ... | sede |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE comment_instructor (
instructor_id int,
... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course_offering.semester < (SELECT SEMESTERalias0.semester_id FROM semester AS SEMESTERalias0 WHERE SEMESTERalias0.semester = 'WN' AND SEMESTERalias0.year = 2016) AND course.course_id = cour... | advising |
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 COUNT(*) FROM mzjzjlb WHERE YLJGDM = '3630935' AND JZKSRQ BETWEEN '2015-01-06' AND '2018-02-10' AND TXBZ > 0 | css |
CREATE TABLE Students (
student_id INTEGER,
address_id INTEGER,
first_name VARCHAR(80),
middle_name VARCHAR(40),
last_name VARCHAR(40),
cell_mobile_number VARCHAR(40),
email_address VARCHAR(40),
date_first_rental DATETIME,
date_left_university DATETIME,
other_student_details VARC... | SELECT date_address_from, AVG(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC | 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 qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_NM = '严光辉' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.P... | css |
CREATE TABLE table_name_11 (
competition VARCHAR,
result VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the competition when the result is won and the score is 8-0?
| SELECT competition FROM table_name_11 WHERE result = "won" AND score = "8-0" | sql_create_context |
CREATE TABLE table_name_96 (
laps INTEGER,
race_number VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of laps when the country was NL and the race number was smaller than 8?
| SELECT AVG(laps) FROM table_name_96 WHERE race_number < 8 AND country = "nl" | sql_create_context |
CREATE TABLE table_11734041_16 (
player VARCHAR,
years_for_rockets VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total amount of players for the rockets in 1998 only?
| SELECT COUNT(player) FROM table_11734041_16 WHERE years_for_rockets = "1998" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.