instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_204_34 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many countries scored at least 3 gold medals ?
| SELECT COUNT("nation") FROM table_204_34 WHERE "gold" >= 3 | squall |
CREATE TABLE table_name_32 (
launch_date__utc_ VARCHAR,
cospar_id_satcat_№ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the launch date of the satellite with a COSPAR ID of 1995-022a?
| SELECT launch_date__utc_ FROM table_name_32 WHERE cospar_id_satcat_№ = "1995-022a" | sql_create_context |
CREATE TABLE table_name_75 (
pole_position VARCHAR,
grand_prix VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the pole position for belgian grand prix
| SELECT pole_position FROM table_name_75 WHERE grand_prix = "belgian grand prix" | sql_create_context |
CREATE TABLE table_52903 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Karl Wendlinger's total grid #?
| SELECT COUNT("Grid") FROM table_52903 WHERE "Driver" = 'karl wendlinger' | wikisql |
CREATE TABLE table_6198 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result from the Date that is December 8, 1963?
| SELECT "Result" FROM table_6198 WHERE "Date" = 'december 8, 1963' | wikisql |
CREATE TABLE table_name_50 (
drawn VARCHAR,
try_bonus VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the try bonus is 9 and the lost 4, what is the drawn?
| SELECT drawn FROM table_name_50 WHERE try_bonus = "9" AND lost = "4" | sql_create_context |
CREATE TABLE table_11960610_7 (
team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team were the Bulls hosted by on December 7?
| SELECT team FROM table_11960610_7 WHERE date = "December 7" | sql_create_context |
CREATE TABLE table_37736 (
"Tournament" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
)
-- Using valid SQLite, answer the following qu... | SELECT "2008" FROM table_37736 WHERE "2007" = 'a' AND "2010" = 'qf' | wikisql |
CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE faculty (
campus number,
year number,
faculty number
)
CREATE TABLE ... | SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = "San Francisco State University" | spider |
CREATE TABLE table_204_614 (
id number,
"date announced" text,
"plant name" text,
"location" text,
"date of closing" text,
"products" text,
"employees" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where is the last plant on the list loca... | SELECT "location" FROM table_204_614 ORDER BY id DESC LIMIT 1 | squall |
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Return a bar chart on how o... | SELECT job, MIN(age) FROM Person GROUP BY job ORDER BY MIN(age) | nvbench |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
... | SELECT SUM(CASE WHEN VoteTypeId = 1 THEN 15 WHEN (VoteTypeId = 2 AND p.PostTypeId = 2) THEN 10 WHEN (VoteTypeId = 2 AND p.PostTypeId = 1) THEN 5 WHEN VoteTypeId = 3 THEN -2 ELSE 0 END) FROM Votes AS v INNER JOIN Posts AS p ON p.Id = v.PostId WHERE p.OwnerUserId = @UserID AND p.CommunityOwnedDate IS NULL | sede |
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 JCZBDM, JCZBMC, JCZBJGDX, JCZBJGDL, JCZBJGDW, CKZFWXX, CKZFWSX FROM jyjgzbb WHERE BGDH = '43824660261' | css |
CREATE TABLE table_78674 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player scored 71-69-71=211?
| SELECT "Player" FROM table_78674 WHERE "Score" = '71-69-71=211' | wikisql |
CREATE TABLE table_40194 (
"Club" text,
"City" text,
"Stadium" text,
"2009 season" text,
"Group" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Stadium has a City of panama city, and a Group of group a, and a 2009 season of 1st in lna (champio... | SELECT "Stadium" FROM table_40194 WHERE "City" = 'panama city' AND "Group" = 'group a' AND "2009 season" = '1st in lna (champion)' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TAB... | 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 = '022-6959')) AND medication.drugname IN ('1000 ml flex cont : sodium chlori... | eicu |
CREATE TABLE table_22461 (
"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.
-- Wh... | SELECT MAX("GEO ID") FROM table_22461 WHERE "Water (sqmi)" = '0.771' | wikisql |
CREATE TABLE table_14875 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the year of the Chassis surtees ts19?
| SELECT "Year" FROM table_14875 WHERE "Chassis" = 'surtees ts19' | wikisql |
CREATE TABLE table_2508633_2 (
position VARCHAR,
pick__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the position for pick number 39
| SELECT position FROM table_2508633_2 WHERE pick__number = 39 | sql_create_context |
CREATE TABLE table_15691 (
"Date" text,
"Score" text,
"Location" text,
"Competition" text,
"Serial No." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On 11 Feb 1990, the competition is listed as what?
| SELECT "Competition" FROM table_15691 WHERE "Date" = '11 feb 1990' | 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.language = "ENGL" AND demographic.age < "41" | mimicsql_data |
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE cite (
citingpaperid int,
... | SELECT DISTINCT COUNT(writes.paperid) FROM author, paper, writes WHERE author.authorname = 'Michael I. Jordan' AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | scholar |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime, patient.patienthealthsystemstayid FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'klonopin') AS t1... | eicu |
CREATE TABLE images (
image_id number,
image_alt_text text,
image_name text,
image_url text
)
CREATE TABLE document_sections_images (
section_id number,
image_id number
)
CREATE TABLE document_functional_areas (
document_code text,
functional_area_code text
)
CREATE TABLE document_sec... | SELECT document_name FROM documents WHERE document_name LIKE "%CV%" | spider |
CREATE TABLE table_61009 (
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007?
| SELECT "2010" FROM table_61009 WHERE "2006" < '6.9' AND "2008" > '1.6' AND "2007" = '2' | wikisql |
CREATE TABLE table_name_10 (
exaltation VARCHAR,
domicile VARCHAR,
sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which exaltation has a domicile of Saturn and Capricorn as a sign?
| SELECT exaltation FROM table_name_10 WHERE domicile = "saturn" AND sign = "capricorn" | sql_create_context |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG 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.IN_DIAG_DIS_NM = '牙折断' | css |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE cost (
row_id nu... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'tissue transglutaminase ab, iga')) | mimic_iii |
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 WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" AND demographic.age < "45" | 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 prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Lactic Acid 12% Lotion" | mimicsql_data |
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 person_info.XM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb 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 = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE zyjybgb.BGDH = '80578... | css |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insuranc... | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6990) AND prescriptions.drug = 'lactulose' | mimic_iii |
CREATE TABLE table_name_50 (
type VARCHAR,
works_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Type, when Works Number is 'unknown'?
| SELECT type FROM table_name_50 WHERE works_number = "unknown" | sql_create_context |
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 YEAR(p.CreationDate) AS year, AVG(p.AnswerCount * 1.0) AS answers_per_question, SUM(CASE WHEN ClosedDate IS NULL THEN 0.0 ELSE 100.0 END) / COUNT(*) AS close_rate FROM Posts AS p WHERE PostTypeId = 1 AND Id % 100 = 0 GROUP BY YEAR(p.CreationDate) ORDER BY YEAR(p.CreationDate) | sede |
CREATE TABLE postseason (
year INTEGER,
round TEXT,
team_id_winner TEXT,
league_id_winner TEXT,
team_id_loser TEXT,
league_id_loser TEXT,
wins INTEGER,
losses INTEGER,
ties INTEGER
)
CREATE TABLE fielding_outfield (
player_id TEXT,
year INTEGER,
stint INTEGER,
glf NU... | SELECT year, AVG(COUNT(*)) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' ORDER BY AVG(COUNT(*)) DESC | nvbench |
CREATE TABLE table_27756474_2 (
game VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game did marc gasol (10) have the high rebounds?
| SELECT game FROM table_27756474_2 WHERE high_rebounds = "Marc Gasol (10)" | sql_create_context |
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pre... | SELECT city, COUNT(*) FROM station GROUP BY city | nvbench |
CREATE TABLE table_25113 (
"#" real,
"Name" text,
"Name (English)" text,
"Population 2008-07-01" real,
"Area (km\u00b2)" real,
"Pop./ km\u00b2" text,
"ISO 3166-2" text,
"Administrative centre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MAX("Population 2008-07-01") FROM table_25113 WHERE "Administrative centre" = 'Selfoss' | wikisql |
CREATE TABLE table_name_86 (
date VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the game with a Record of 2 3 1?
| SELECT date FROM table_name_86 WHERE record = "2–3–1" | sql_create_context |
CREATE TABLE table_name_36 (
points INTEGER,
engine VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis?
| SELECT MIN(points) FROM table_name_36 WHERE engine = "mugen v8" AND chassis = "reynard 91d" | sql_create_context |
CREATE TABLE table_name_92 (
retitled_as_same VARCHAR,
show VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which retitled network has a Show of supermarket sweep?
| SELECT retitled_as_same FROM table_name_92 WHERE show = "supermarket sweep" | sql_create_context |
CREATE TABLE table_79291 (
"Generic Name" text,
"Trade Name" text,
"FDA approved" text,
"TGA approved" text,
"EMA approved" text,
"MHRA approved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is Blonanserin MHRA approved?
| SELECT "MHRA approved" FROM table_79291 WHERE "Generic Name" = 'blonanserin' | wikisql |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '52346319' AND t_kc22.STA_DATE BETWEEN '2002-05-20' AND '2002-10-06' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE table_25633 (
"Season" text,
"Junior (South) Winners" text,
"Intermediate (South) Winners" text,
"Minor (South) Winners" text,
"Primary (South) Winners" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year of the season if th... | SELECT "Season" FROM table_25633 WHERE "Intermediate (South) Winners" = 'Southmead Athletic' | 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 COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '07587349' AND t_kc22.STA_DATE BETWEEN '2006-09-09' AND '2013-09-24' AND t_kc22.SOC_SRT_DIRE_CD = '7589' | css |
CREATE TABLE table_2781227_4 (
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For player is john jakopin mention the total number of position
| SELECT COUNT(position) FROM table_2781227_4 WHERE player = "John Jakopin" | sql_create_context |
CREATE TABLE table_75804 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Location" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Novelty of the dinosaur, whose naming Author was Galton?
| SELECT "Novelty" FROM table_75804 WHERE "Authors" = 'galton' | wikisql |
CREATE TABLE table_name_7 (
waterford_score VARCHAR,
year VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the waterford score that has a year prior to 1963, with all-ireland hurling final replay as the competition?
| SELECT waterford_score FROM table_name_7 WHERE year < 1963 AND competition = "all-ireland hurling final replay" | sql_create_context |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE T... | SELECT LAST_DATE_OF_MONTH(ClosedDate) AS Closed, 1.0 * SUM(CASE WHEN LastEditDate > ClosedDate THEN 1 ELSE 0 END) / COUNT(*) AS "%edit_after_close" FROM Posts WHERE NOT ClosedDate IS NULL AND PostTypeId = 1 GROUP BY LAST_DATE_OF_MONTH(ClosedDate) ORDER BY LAST_DATE_OF_MONTH(ClosedDate) | sede |
CREATE TABLE table_70887 (
"Auckland" text,
"Gold Coast" text,
"Sydney" text,
"Melbourne" text,
"Adelaide" text,
"Perth" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Sydney has Auckland cancelled and Perth yes?
| SELECT "Sydney" FROM table_70887 WHERE "Auckland" = 'cancelled' AND "Perth" = 'yes' | wikisql |
CREATE TABLE table_262501_1 (
primary_conference_when_joining_the_csfl VARCHAR,
founded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the primary conference when joining the cslf for the institution that was founded in 1894
| SELECT primary_conference_when_joining_the_csfl FROM table_262501_1 WHERE founded = 1894 | sql_create_context |
CREATE TABLE table_27358 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What NFL Team has the player Danny Triplett with the position linebacker?
| SELECT "NFL Team" FROM table_27358 WHERE "Position" = 'Linebacker' AND "Player" = 'Danny Triplett' | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50801" AND lab.flag = "delta" | mimicsql_data |
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT director FROM movie WHERE title = 'Avatar' | spider |
CREATE TABLE table_37845 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has montreal as the visitor, and february 2 as the date?
| SELECT "Record" FROM table_37845 WHERE "Visitor" = 'montreal' AND "Date" = 'february 2' | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "83" AND lab.label = "CD3 Cells, Percent" | mimicsql_data |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime tim... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.dischtime IS NULL AND admissions.age BETWEEN 40 AND 49 | mimic_iii |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varch... | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(EMPLOYEE_ID) | nvbench |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program (
program_id int,
name varchar... | SELECT DISTINCT name, number FROM course WHERE credits = 12 AND department = 'EECS' | advising |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT COUNT(*) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '4076214' AND gwyjzb.IN_HOSP_DATE BETWEEN '2007-03-08' AND '2014-07-22' AND gwyjzb.CLINIC_TYPE = '购药' UNION SELECT COUNT(*) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '4076214' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2007-03-08' AND '2014-07-22' AND fgwyjzb.CLINIC_TY... | css |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 15 AND date_day.month_number = 10 AND d... | atis |
CREATE TABLE table_name_31 (
date VARCHAR,
opponent VARCHAR,
results¹ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game against Norway with a 1:1 result?
| SELECT date FROM table_name_31 WHERE opponent = "norway" AND results¹ = "1:1" | sql_create_context |
CREATE TABLE table_name_73 (
score VARCHAR,
surface VARCHAR,
opponent_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score when the opponent in the final is alicia pillay on a hard surface?
| SELECT score FROM table_name_73 WHERE surface = "hard" AND opponent_in_the_final = "alicia pillay" | sql_create_context |
CREATE TABLE table_22037 (
"Romanised name" text,
"Chinese name" text,
"age at appointment" real,
"Foreign nationality" text,
"Portfolio attachment" text,
"Prior occupation" text,
"Govt salary" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Romanised name" FROM table_22037 WHERE "Prior occupation" = 'Assistant Police Commissioner (ret''d)' | wikisql |
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 COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '018-20179' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hosp... | eicu |
CREATE TABLE table_5299 (
"Episode No." text,
"Episode Title" text,
"UK Broadcast Date" text,
"Presenter" text,
"Countries Visited" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the broadcast date of the episode that visited South Africa?
| SELECT "UK Broadcast Date" FROM table_5299 WHERE "Countries Visited" = 'south africa' | wikisql |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight i... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND days.day_name = 'MONDAY' AND flight.flight_days = days.days_code AND fl... | atis |
CREATE TABLE table_961 (
"IN No." real,
"County Name" text,
"Establishment Date (SW Indiana) (History) (Statehood)" text,
"County Seat" text,
"Time Zone" text,
"Population (2010) (Rank)" text,
"Area sq mi (km 2 ) (Rank)" text,
"Twps" real,
"ZIP code Prefix(es)" text,
"% of Bounda... | SELECT COUNT("Population (2010) (Rank)") FROM table_961 WHERE "County Name" = 'Spencer' | wikisql |
CREATE TABLE table_12764 (
"Rank" real,
"Name" text,
"Birth date" text,
"Death date" text,
"Age (as of 1 February 2014)" text,
"Place of death or residence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Age (as of 1 February 2014) has a R... | SELECT "Age (as of 1 February 2014)" FROM table_12764 WHERE "Rank" < '9' AND "Death date" = '24 january 2007' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2137" AND diagnoses.short_title = "Osteoarthros NOS-unspec" | mimicsql_data |
CREATE TABLE customers (
first_name VARCHAR,
last_name VARCHAR,
gender_mf VARCHAR,
good_or_bad_customer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the first name, last name, and gender of all the good customers? Order by their last name.... | SELECT first_name, last_name, gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name | sql_create_context |
CREATE TABLE match (
round number,
location text,
country text,
date text,
fastest_qualifying text,
winning_pilot text,
winning_aircraft text
)
CREATE TABLE airport_aircraft (
id number,
airport_id number,
aircraft_id number
)
CREATE TABLE aircraft (
aircraft_id number,
... | SELECT * FROM airport ORDER BY international_passengers DESC LIMIT 1 | spider |
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 COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.MED_SER_ORG_NO = '3898598' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2002-03-05' AND '2019-03-26' GROUP B... | css |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | SELECT COUNT(*) FROM Posts WHERE DeletionDate IS NULL AND Score <= -1 AND AnswerCount <= 0 AND (Tags LIKE '%minecraft-%%' OR Tags LIKE '%minecraft%') AND (ClosedDate IS NULL OR NOT ClosedDate IS NULL) | sede |
CREATE TABLE table_74953 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has detroit as the home, and December 9 as the date?
| SELECT "Score" FROM table_74953 WHERE "Home" = 'detroit' AND "Date" = 'december 9' | wikisql |
CREATE TABLE table_name_54 (
case_suffix__case_ VARCHAR,
english_meaning VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Case Suffix (Case), when English Meaning is 'to Georgia, in Georgia'?
| SELECT case_suffix__case_ FROM table_name_54 WHERE english_meaning = "to georgia, in georgia" | sql_create_context |
CREATE TABLE table_76454 (
"Season" real,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" text,
"Households (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which TV season has a Season smaller than 8, and ... | SELECT "TV season" FROM table_76454 WHERE "Season" < '8' AND "Households (in millions)" = '15.92 (17.1 rating)' | wikisql |
CREATE TABLE table_75929 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What surface was the Australian Open (1) played on?
| SELECT "Surface" FROM table_75929 WHERE "Championship" = 'australian open (1)' | wikisql |
CREATE TABLE table_204_821 (
id number,
"speed [km/h (mph)]" text,
"train" text,
"type" text,
"location" text,
"date" text,
"comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was the location for the first five consecutive tests... | SELECT "location" FROM table_204_821 WHERE id = 1 | squall |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
... | SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '48679933' AND NOT mzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2011-03-05') | css |
CREATE TABLE table_name_41 (
surface VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Surface on during 10 November 2006?
| SELECT surface FROM table_name_41 WHERE date = "10 november 2006" | sql_create_context |
CREATE TABLE table_5559 (
"Election" text,
"Date" text,
"Mayor" text,
"Ward seats" text,
"Votes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date were there 50,324 votes?
| SELECT "Date" FROM table_5559 WHERE "Votes" = '50,324' | wikisql |
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABL... | SELECT SUM(amount), T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname | spider |
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_Home, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY All_Home DESC | nvbench |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_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 COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '何戈雅' AND t_kc22.STA_DATE BETWEEN '2017-10-15' AND '2021-06-04' AND t_kc22.SELF_PAY_AMO > 6729.65 | css |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2168" AND diagnoses.long_title = "Cerebral aneurysm, nonruptured" | mimicsql_data |
CREATE TABLE table_67764 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Recipient" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the recipient of an award of 4,203?
| SELECT "Recipient" FROM table_67764 WHERE "Award" = '£4,203' | 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 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Fever in other diseases" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | mimicsql_data |
CREATE TABLE table_name_5 (
total VARCHAR,
silver VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Total, when Silver is 1, and when Bronze is 7?
| SELECT COUNT(total) FROM table_name_5 WHERE silver = "1" AND bronze = "7" | sql_create_context |
CREATE TABLE table_79782 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For record 25-24, what is the sum of attendance?
| SELECT COUNT("Attendance") FROM table_79782 WHERE "Record" = '25-24' | wikisql |
CREATE TABLE table_12303563_2 (
winners VARCHAR,
_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many winners with # being 4
| SELECT COUNT(winners) FROM table_12303563_2 WHERE _number = 4 | sql_create_context |
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE pap... | SELECT DISTINCT paper.title FROM author, keyphrase, paper, paperkeyphrase, writes WHERE author.authorname LIKE 'Ranjit Jhala' AND keyphrase.keyphrasename = 'Liquid Haskell' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND writes.authorid = author.authorid AND writes.paperid = paperkeyphrase.paperid AND writes... | scholar |
CREATE TABLE table_41707 (
"Year" real,
"Round" real,
"Pick" real,
"Player" text,
"NBA Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player was drafted for the Detroit Pistons?
| SELECT "Player" FROM table_41707 WHERE "NBA Team" = 'detroit pistons' | wikisql |
CREATE TABLE table_20623 (
"Missouri vs." text,
"Overall Record" text,
"at Columbia" text,
"at Opponents Venue" text,
"at Neutral Site" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"Since Joining SEC" text
)
-- Using valid SQLite, answer the followi... | SELECT "at Columbia" FROM table_20623 WHERE "Overall Record" = 'MU, 3-1' | wikisql |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code DESC | nvbench |
CREATE TABLE table_1212 (
"Processor Speed (MHz)" real,
"Input Clock (MHz)" text,
"Voltage Center (V)" text,
"Voltage Range (V)" text,
"Part Number" text,
"Clock Multiplier" text,
"S-Spec Number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Part Number" FROM table_1212 WHERE "S-Spec Number" = 'SK096' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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... | SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = ... | css |
CREATE TABLE table_name_35 (
original_air_date VARCHAR,
directed_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109?
| SELECT original_air_date FROM table_name_35 WHERE directed_by = "lev l. spiro" AND production_code = "07-00-109" | sql_create_context |
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimme... | SELECT meter_200, AVG(ID) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 | nvbench |
CREATE TABLE table_train_205 (
"id" int,
"anemia" bool,
"gender" string,
"renal_disease" bool,
"hematocrit_hct" float,
"creatinine_gfr" int,
"fasting_plasma_triglyceride" int,
"thiazolidinediones" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following qu... | SELECT * FROM table_train_205 WHERE (gender = 'male' OR gender = 'female') AND (age >= 18 AND age <= 65) | criteria2sql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.