instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Neutral, All_Games_Percent FROM basketball_match | nvbench |
CREATE TABLE table_29230 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the college where player terry moss attended?
| SELECT "College" FROM table_29230 WHERE "Player" = 'Terry Moss' | wikisql |
CREATE TABLE table_name_23 (
opponent VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a Score of 2 5?
| SELECT opponent FROM table_name_23 WHERE score = "2–5" | sql_create_context |
CREATE TABLE table_name_15 (
player VARCHAR,
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has a to par of e and a score of 67-73=140?
| SELECT player FROM table_name_15 WHERE to_par = "e" AND score = 67 - 73 = 140 | sql_create_context |
CREATE TABLE table_16657 (
"Round" real,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the fastest lap at the b... | SELECT "Fastest Lap" FROM table_16657 WHERE "Grand Prix" = 'Brazilian Grand Prix' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" | mimicsql_data |
CREATE TABLE table_26526 (
"Episode" real,
"Contest" text,
"Original airdate" text,
"Challengers (Female)" text,
"Challengers (Male)" text,
"Events" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What events took place in episode 12?
| SELECT "Events" FROM table_26526 WHERE "Episode" = '12' | wikisql |
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE airline (
airline_co... | SELECT DISTINCT flight.arrival_time, flight.departure_time FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND C... | atis |
CREATE TABLE table_train_216 (
"id" int,
"gender" string,
"hba1c" float,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- age less than 6 years or greater than 25 years.
| SELECT * FROM table_train_216 WHERE age <= 6 AND age >= 25 | criteria2sql |
CREATE TABLE table_27467 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times does an occurance happen in June when it happens on NOvember 3, 1... | SELECT COUNT("June 10-11") FROM table_27467 WHERE "November 3" = 'November 3, 1975' | wikisql |
CREATE TABLE table_17641206_8 (
directed_by VARCHAR,
written_by VARCHAR,
original_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the movies that are written and dircted by john sullivan with the airdate of 15january2009.
| SELECT directed_by FROM table_17641206_8 WHERE written_by = "John Sullivan" AND original_airdate = "15January2009" | sql_create_context |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Badges (
Id number,
UserId numb... | SELECT p.Id AS "post_link", (CASE WHEN NOT p.Title IS NULL THEN p.Title ELSE pq.Title END) AS title, p.CreationDate, p.LastActivityDate, p.Score, (CASE WHEN NOT p.ViewCount IS NULL THEN p.ViewCount ELSE pq.ViewCount END) AS viewcount FROM Posts AS p LEFT OUTER JOIN Posts AS pq ON pq.Id = p.ParentId WHERE p.Body LIKE '%... | sede |
CREATE TABLE table_24172078_2 (
lessons_taught VARCHAR,
episode__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lessons taught for episode # 2/205
| SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = "2/205" | sql_create_context |
CREATE TABLE table_47573 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ICAO for the Yangon International Airport?
| SELECT "ICAO" FROM table_47573 WHERE "Airport" = 'yangon international airport' | wikisql |
CREATE TABLE table_22561 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws P.K. Wins / P.K. Losses" text,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name th... | SELECT MIN("Losses") FROM table_22561 WHERE "Points" = '23' | wikisql |
CREATE TABLE table_name_29 (
position VARCHAR,
round VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which position's round was 3 when pick was 70?
| SELECT position FROM table_name_29 WHERE round = "3" AND pick = "70" | sql_create_context |
CREATE TABLE Staff (
staff_id INTEGER,
staff_name VARCHAR(255),
gender VARCHAR(1),
other_staff_details VARCHAR(255)
)
CREATE TABLE Skills (
skill_id INTEGER,
skill_code VARCHAR(20),
skill_description VARCHAR(255)
)
CREATE TABLE Maintenance_Engineers (
engineer_id INTEGER,
company_i... | SELECT staff_name, COUNT(staff_name) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id GROUP BY staff_name | nvbench |
CREATE TABLE gwyjzb (
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 gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_CD, MIN(t_kc24.ILL_PAY) FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '9742956' GROUP BY gwyjzb.MED_ORG_DEPT_CD, gwyjzb.IN_DIAG_DIS_CD UNION SELECT fgwyjzb.MED_ORG_DEPT_CD, fgwyjzb.IN_DIAG_DIS_CD, MIN(t_kc24.ILL_PAY... | css |
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 t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_ID = '34931218' AND t_kc22.STA_DATE BETWEEN '2011-11-01' AND '2019-07-11' AND t_kc21.MED_SER_ORG_NO = '1853262' AND t_kc22.MED_INV... | css |
CREATE TABLE table_75311 (
"Season" text,
"Season Premiere" text,
"Season Finale" text,
"Winner" text,
"Runner-up" text,
"Number of Contestants" real,
"Winner's Country" text,
"Runner Up's Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT COUNT("Number of Contestants") FROM table_75311 WHERE "Winner" = 'alejandra espinoza' | wikisql |
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 int,
capacity int,
pay_load int,
cruising_speed int,
range_... | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DENVER' AND ground_service.city_code = city.city_code | atis |
CREATE TABLE table_10650711_1 (
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the position where player is anthony blaylock
| SELECT position FROM table_10650711_1 WHERE player = "Anthony Blaylock" | sql_create_context |
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 demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "30" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE table_67324 (
"Year" text,
"Driver/s" text,
"Class" text,
"Vehicle" text,
"Race title" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What class of car had the XI Coppa Acerbo title?
| SELECT "Class" FROM table_67324 WHERE "Race title" = 'xi coppa acerbo' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.days_stay = "29" AND demographic.admityear >= "2156" | mimicsql_data |
CREATE TABLE table_name_81 (
polling_institute VARCHAR,
social_democratic VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which polling institute has a 30.7% for social democratic?
| SELECT polling_institute FROM table_name_81 WHERE social_democratic = "30.7%" | sql_create_context |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.dob_year < "2078" | mimicsql_data |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND mzjzjlb_jybgb.YLJGDM = jybgb.YLJ... | css |
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 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.JZZDSM = '精神发育迟滞' AND jyjgzbb.JCZBMC = '转铁蛋白' | css |
CREATE TABLE bdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | SELECT * FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i... | css |
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.religion = "NOT SPECIFIED" AND procedures.short_title = "Arterial catheterization" | mimicsql_data |
CREATE TABLE table_14941284_1 (
record VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When it is week 2 what is the record?
| SELECT record FROM table_14941284_1 WHERE week = 2 | sql_create_context |
CREATE TABLE table_45695 (
"Election" real,
"Candidates fielded" real,
"# of seats won" real,
"Total votes" real,
"% of popular vote" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the average Total votes that has t... | SELECT AVG("Total votes") FROM table_45695 WHERE "# of seats won" < '0' | wikisql |
CREATE TABLE table_204_976 (
id number,
"pos" text,
"driver" text,
"entrant" text,
"constructor" text,
"time/retired" text,
"grid" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which driver did not have his/her car ready ?
| SELECT "driver" FROM table_204_976 WHERE "time/retired" = 'car not ready' | squall |
CREATE TABLE table_4586 (
"Stage" text,
"Start time" text,
"Stage name" text,
"Distance" text,
"Winning driver" text,
"Time" text,
"Avg. Speed" text,
"Rally leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the finishing ti... | SELECT "Time" FROM table_4586 WHERE "Distance" = '24.00km' AND "Start time" = '21:27' | wikisql |
CREATE TABLE table_4131 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was picked for the draft by St. Louis Blues?
| SELECT "Player" FROM table_4131 WHERE "NHL team" = 'St. Louis Blues' | 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 COUNT(*) FROM t_kc24 WHERE t_kc24.PERSON_ID = '56018701' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2014-01-10' AND '2015-12-10' AND t_kc24.MED_AMOUT <= 10 | css |
CREATE TABLE table_202_294 (
id number,
"year" number,
"entrant" text,
"chassis" text,
"engine" text,
"tyres" text,
"drivers" text,
"1" number,
"2" number,
"3" number,
"4" number,
"5" number,
"6" number,
"7" number,
"8" number,
"9" number,
"10" number,... | SELECT "year" FROM table_202_294 ORDER BY "points" DESC LIMIT 1 | squall |
CREATE TABLE table_26802 (
"School" text,
"Mascot" text,
"Location" text,
"Founded" real,
"Entered ISL" real,
"Grades" text,
"Number of Students" text,
"Varsity Teams" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where are dragons used... | SELECT "Location" FROM table_26802 WHERE "Mascot" = 'Dragons' | wikisql |
CREATE TABLE table_name_7 (
grid INTEGER,
time VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What grid has an average time of +22.505 and laps larger than 23?
| SELECT AVG(grid) FROM table_name_7 WHERE time = "+22.505" AND laps > 23 | sql_create_context |
CREATE TABLE table_73466 (
"Episode Air Date" text,
"Audition City" text,
"First Audition Date" text,
"Audition Venue" text,
"Callback Date" text,
"Callback Venue" text,
"Guest Judge" text,
"Golden Tickets" real
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "Callback Date" FROM table_73466 WHERE "Audition Venue" = 'Amway Arena' | wikisql |
CREATE TABLE table_14111 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which TV Time has a Date of january 2, 2005?
| SELECT "TV Time" FROM table_14111 WHERE "Date" = 'january 2, 2005' | wikisql |
CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE department (
dept_name text,
building text,
budget number
)
CREATE TABLE teaches (
id text,
course_id text,
sec_id text,
semester text,
year number
)
CREATE TABLE course (
co... | SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id = T2.course_id WHERE T2.title = 'Differential Geometry') | spider |
CREATE TABLE table_2111 (
"Rnd." real,
"Circuit" text,
"LMP1 Winning Team" text,
"LMP2 Winning Team" text,
"GT1 Winning Team" text,
"GT2 Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When julien jousse patrice ... | SELECT COUNT("Rnd.") FROM table_2111 WHERE "GT1 Winning Team" = 'Julien Jousse Patrice Goueslard Yann Clairay' | wikisql |
CREATE TABLE table_23649244_1 (
level VARCHAR,
artist_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which level has wale as artist 1?
| SELECT level FROM table_23649244_1 WHERE artist_1 = "Wale" | sql_create_context |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREAT... | SELECT vitalperiodic.heartrate FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-57922')) AND NOT vitalperiodic.heartrate IS NULL AND ... | eicu |
CREATE TABLE table_16518 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of appointment for out... | SELECT "Date of appointment" FROM table_16518 WHERE "Outgoing manager" = 'Campbell Money' | wikisql |
CREATE TABLE person_info_hz_info (
RYBH text,
KH number,
KLX number,
YLJGDM number
)
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,... | SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND pers... | css |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
... | SELECT b.OwnerUserId AS "user_link", SUM(CASE WHEN a.VoteTypeId = 3 THEN 1 ELSE 0 END) AS DownVotes, MIN(b.CreationDate) AS OldestPost, COUNT(DISTINCT b.Id) AS NumberOfPosts, SUM(CASE WHEN a.VoteTypeId = 3 THEN 1 ELSE 0 END) * 1000 / COUNT(DISTINCT b.Id) AS DV2PostsRatio FROM Votes AS a INNER JOIN Posts AS b ON a.PostI... | sede |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.route = "ED" | mimicsql_data |
CREATE TABLE table_40110 (
"Capacity" text,
"Volts" text,
"Temp." text,
"Energy-to-weight ratio" text,
"Power-to-weight ratio" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the capacity with 2.7v volts and a power-to-weight ratio of 5.44 w/... | SELECT "Capacity" FROM table_40110 WHERE "Volts" = '2.7v' AND "Power-to-weight ratio" = '5.44 w/kg c/1 (1.875a)' | wikisql |
CREATE TABLE table_14978 (
"Stage" text,
"Time" text,
"Name" text,
"Length" text,
"Winner" text,
"Rally leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the Special Stage with a 2.40km length and S. Loeb as Winner?
| SELECT "Name" FROM table_14978 WHERE "Length" = '2.40km' AND "Winner" = 's. loeb' | 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 t_kc21.MED_SER_ORG_NO FROM t_kc21 WHERE t_kc21.PERSON_ID = '65616004' GROUP BY t_kc21.MED_SER_ORG_NO ORDER BY COUNT(*) DESC | css |
CREATE TABLE table_19350 (
"Pos" real,
"Member Association" text,
"Points (total 500)" real,
"Clubs" text,
"Group stage" real,
"Play-off" real,
"AFC Cup" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the maximum value for afc cup
| SELECT MAX("AFC Cup") FROM table_19350 | wikisql |
CREATE TABLE dept_locations (
dnumber VARCHAR,
dlocation VARCHAR
)
CREATE TABLE department (
dname VARCHAR,
dnumber VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the names of departments that are located in Houston.
| SELECT t1.dname FROM department AS t1 JOIN dept_locations AS t2 ON t1.dnumber = t2.dnumber WHERE t2.dlocation = 'Houston' | 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 mzjzjlb.SG, mzjzjlb.TZ 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 = '64014857' | css |
CREATE TABLE table_name_56 (
school VARCHAR,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school has the greyhounds as mascots?
| SELECT school FROM table_name_56 WHERE mascot = "greyhounds" | sql_create_context |
CREATE TABLE table_14214 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Production Number of the Filmography in MM Series with a Release date of 196... | SELECT "Production Number" FROM table_14214 WHERE "Series" = 'mm' AND "Release date" = '1964-06-27' | 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 COUNT(*) FROM t_kc21 WHERE t_kc21.PERSON_ID = '59339462' AND t_kc21.IN_HOSP_DATE BETWEEN '2011-07-29' AND '2015-01-31' AND t_kc21.CLINIC_TYPE = '住院' | css |
CREATE TABLE table_name_78 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the event held on July 23, 2009?
| SELECT score FROM table_name_78 WHERE date = "july 23, 2009" | sql_create_context |
CREATE TABLE table_47632 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the world race walking cup held before 2001?
| SELECT "Venue" FROM table_47632 WHERE "Year" < '2001' AND "Competition" = 'world race walking cup' | wikisql |
CREATE TABLE table_name_96 (
numbers__quantity_ordered_ VARCHAR,
make__model VARCHAR,
fuel_propulsion VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Numbers (Quantity Ordered) have a Fuel Propulsion of cng, and a Year smaller than... | SELECT numbers__quantity_ordered_ FROM table_name_96 WHERE fuel_propulsion = "cng" AND year < 2008 AND make__model = "nabi 40-lfw" | sql_create_context |
CREATE TABLE table_name_59 (
wins INTEGER,
year VARCHAR,
team VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins for team mv agusta, over 10 points, and after 1957?
| SELECT SUM(wins) FROM table_name_59 WHERE team = "mv agusta" AND points > 10 AND year > 1957 | 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 lab (
subject_id text,
hadm_id text,
... | SELECT demographic.diagnosis, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "12220" | mimicsql_data |
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "2" AND lab.fluid = "Ascites" | mimicsql_data |
CREATE TABLE table_9435 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Lions' Points" text,
"Opponents' Points" text,
"Record" text,
"Streak" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the... | SELECT COUNT("Week") FROM table_9435 WHERE "Lions' Points" = '27' AND "Opponents' Points" = '24' | wikisql |
CREATE TABLE table_1219 (
"Year" real,
"Class" text,
"Team name" text,
"Bike" text,
"Riders" text,
"Races" text,
"Wins" real,
"Podiums" real,
"Poles" real,
"F.laps" real,
"Points" text,
"Pos." text
)
-- Using valid SQLite, answer the following questions for the tables p... | SELECT "Poles" FROM table_1219 WHERE "Year" = '2011' | wikisql |
CREATE TABLE table_41712 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first leg score when the second leg score is 0-4?
| SELECT "1st leg" FROM table_41712 WHERE "2nd leg" = '0-4' | 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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Maalox/Diphenhydramine/Lidocaine" AND prescriptions.route = "PO" | mimicsql_data |
CREATE TABLE organisation_Types (
organisation_type VARCHAR,
organisation_type_description VARCHAR
)
CREATE TABLE Organisations (
organisation_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the details of the organisations described as... | SELECT organisation_details FROM Organisations AS T1 JOIN organisation_Types AS T2 ON T1.organisation_type = T2.organisation_type WHERE T2.organisation_type_description = 'Sponsor' ORDER BY organisation_details | sql_create_context |
CREATE TABLE table_name_48 (
result VARCHAR,
road_team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game on May 14 with Philadelphia as the road team?
| SELECT result FROM table_name_48 WHERE road_team = "philadelphia" AND date = "may 14" | sql_create_context |
CREATE TABLE table_4842 (
"Name" text,
"Bullet" text,
"Case Length" text,
"Base" text,
"Neck" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name has a Bullett of 10.57 (.416) and a Base of 14.96 (.589)?
| SELECT "Name" FROM table_4842 WHERE "Bullet" = '10.57 (.416)' AND "Base" = '14.96 (.589)' | wikisql |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(EMPLOYEE_ID) DESC | nvbench |
CREATE TABLE table_57497 (
"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 is the size of the crowd for the game where... | SELECT MIN("Crowd") FROM table_57497 WHERE "Away team score" = '18.16 (124)' | wikisql |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT COUNT(*) FROM person_info JOIN hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_in... | css |
CREATE TABLE table_27025 (
"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 COUNT("Top 10") FROM table_27025 WHERE "Avg. Start" = '37.3' | wikisql |
CREATE TABLE table_name_66 (
country VARCHAR,
to_par VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has a 14 to par?
| SELECT country FROM table_name_66 WHERE to_par = 14 | sql_create_context |
CREATE TABLE table_25146455_1 (
winnings VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much did Kenny Brack win?
| SELECT winnings FROM table_25146455_1 WHERE driver = "Kenny Brack" | sql_create_context |
CREATE TABLE table_1473672_3 (
college_junior_club_team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which colle/junior/club team did Michel Boudreau play for?
| SELECT college_junior_club_team FROM table_1473672_3 WHERE player = "Michel Boudreau" | sql_create_context |
CREATE TABLE table_name_34 (
high_rebounds VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed for the High rebounds on the Date of March 31?
| SELECT high_rebounds FROM table_name_34 WHERE date = "march 31" | 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 COUNT(*) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '李勇锐' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2006-04-06' AND '2018-05-21' AND t_kc24.MED_AMOUT <= 10 | css |
CREATE TABLE table_11677691_3 (
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position is Charone Peake?
| SELECT position FROM table_11677691_3 WHERE player = "Charone Peake" | sql_create_context |
CREATE TABLE table_name_50 (
rank INTEGER,
goals VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Rank when the goals are less than 124 for Jeff Cunningham?
| SELECT MIN(rank) FROM table_name_50 WHERE goals > 124 AND name = "jeff cunningham" | sql_create_context |
CREATE TABLE table_204_828 (
id number,
"whitworth size (in)" number,
"core diameter (in)" number,
"threads per inch" number,
"pitch (in)" number,
"tapping drill size" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the least core diamete... | SELECT MIN("core diameter (in)") FROM table_204_828 | squall |
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 t_kc24.t_kc21_IN_DIAG_DIS_CD, t_kc24.t_kc21_IN_DIAG_DIS_NM FROM t_kc24 WHERE t_kc24.t_kc21_PERSON_ID = '83111468' AND t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 9559.88) | css |
CREATE TABLE table_name_41 (
score VARCHAR,
save VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The game that has a save of lynch (4) ended with what score?
| SELECT score FROM table_name_41 WHERE save = "lynch (4)" | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT * 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 = '14728609' AND hz_info.YLJGDM = '3965242' AND NOT zyjzjlb.CYKSMC LIKE '%正骨%' | css |
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 prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Nafcillin" | mimicsql_data |
CREATE TABLE table_17395 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Hakka" text,
"Area" real,
"Population" real,
"Density" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pinyin for the Engli... | SELECT "Pinyin" FROM table_17395 WHERE "English Name" = 'Wuping County' | wikisql |
CREATE TABLE table_51509 (
"Squad No." real,
"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,
"FLT Apps" text,
"FLT Goals" real,
"Total Apps" text,
"Total G... | SELECT SUM("FA Cup Goals") FROM table_51509 WHERE "Name" = 'david mirfin' AND "Total Goals" < '1' | wikisql |
CREATE TABLE table_name_92 (
rank VARCHAR,
market_value__billion_$_ VARCHAR,
headquarters VARCHAR,
assets__billion_$_ VARCHAR,
industry VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total rank of the company with less than 248.44 bil... | SELECT COUNT(rank) FROM table_name_92 WHERE assets__billion_$_ < 248.44 AND industry = "oil and gas" AND headquarters = "france" AND market_value__billion_$_ > 152.62 | sql_create_context |
CREATE TABLE table_24538587_13 (
l3_cache VARCHAR,
brand_name__list_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the l3 cache for core i7-2xxxqe, i7-26xxqm, i7-27xxqm
| SELECT l3_cache FROM table_24538587_13 WHERE brand_name__list_ = "Core i7-2xxxQE, i7-26xxQM, i7-27xxQM" | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT jybgb.SHSJ 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 = '24318631' AND jybgb.BGRQ BETWEEN '2001-02-17' AND '2007-07-03' UNION... | css |
CREATE TABLE table_52493 (
"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 team was the home team when the away team s... | SELECT "Home team" FROM table_52493 WHERE "Away team score" = '17.21 (123)' | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Self Pay" AND diagnoses.short_title = "Gstr/ddnts NOS w/o hmrhg" | mimicsql_data |
CREATE TABLE table_name_80 (
round INTEGER,
location VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest round in the Wec 25 match in Las Vegas, Nevada, United States?
| SELECT MAX(round) FROM table_name_80 WHERE location = "las vegas, nevada, united states" AND event = "wec 25" | 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 mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_inf... | css |
CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
... | SELECT DISTINCT artist_name FROM song WHERE languages = "english" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8 | spider |
CREATE TABLE table_203_459 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" text
)
-- U... | SELECT "township" FROM table_203_459 WHERE "township" <> 'center' AND "land area\nkm2 (sq mi)" = (SELECT "land area\nkm2 (sq mi)" FROM table_203_459 WHERE "township" = 'center') | squall |
CREATE TABLE table_10245 (
"Software" text,
"Calculations" text,
"Macros" text,
"Loci" text,
"Animations" text,
"Multilingual" text,
"Proofs" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Are the there macros in the Tabula software?
| SELECT "Macros" FROM table_10245 WHERE "Software" = 'tabula' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.