instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_98 (
opponent VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent in 1976?
| SELECT opponent FROM table_name_98 WHERE year = 1976 | 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 zzmzjzjlb.MZZYZDZZBM, zzmzjzjlb.MZZYZDZZMC FROM zzmzjzjlb WHERE zzmzjzjlb.JZLSH = '78636762762' UNION SELECT fzzmzjzjlb.MZZYZDZZBM, fzzmzjzjlb.MZZYZDZZMC FROM fzzmzjzjlb WHERE fzzmzjzjlb.JZLSH = '78636762762' | css |
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 COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.JZKSMC = '小儿耳鼻喉科' AND wdmzjzjlb.JZKSRQ BETWEEN '2006-04-21' AND '2010-09-27' UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.JZKSMC = '小儿耳鼻喉科' AND bdmzjzjlb.JZKSRQ BETWEEN '2006-04-21' AND '2010-09-27' | css |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
la... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'cardiology consultation' AND DATETIME(treatment.treatmenttime, 'start of ... | eicu |
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(gwyjzb.PERSON_ID) FROM gwyjzb WHERE gwyjzb.IN_DIAG_DIS_CD = 'T47.X50' UNION SELECT COUNT(fgwyjzb.PERSON_ID) FROM fgwyjzb WHERE fgwyjzb.IN_DIAG_DIS_CD = 'T47.X50' | css |
CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year ... | SELECT COUNT(DISTINCT (user.name)) FROM business, review, user WHERE business.name = 'Bistro Di Napoli' AND review.business_id = business.business_id AND review.year = 2015 AND user.user_id = review.user_id | yelp |
CREATE TABLE table_21109 (
"Rank" real,
"Company" text,
"Headquarters" text,
"Industry" text,
"Sales (billion $)" text,
"Profits (billion $)" text,
"Assets (billion $)" text,
"Market Value (billion $)" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT MIN("Rank") FROM table_21109 WHERE "Company" = 'BNP Paribas' | wikisql |
CREATE TABLE table_3005450_1 (
km_from_wellington VARCHAR,
metlink_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the km from wellington where the metlink code is mast?
| SELECT km_from_wellington FROM table_3005450_1 WHERE metlink_code = "MAST" | sql_create_context |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | SELECT DISTINCT semester.semester, semester.year FROM semester INNER JOIN course_offering ON semester.semester_id = course_offering.semester INNER JOIN course ON course.course_id = course_offering.course_id WHERE course.name LIKE '%Multidisciplinary Engineering Design%' AND semester.semester_id > (SELECT SEMESTERalias1... | advising |
CREATE TABLE table_35231 (
"Game" real,
"Date" real,
"Opponent" text,
"Score" text,
"Location/attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest date for a game over 69 with a St. Louis Blues opponent?
| SELECT MAX("Date") FROM table_35231 WHERE "Game" > '69' AND "Opponent" = 'st. louis blues' | wikisql |
CREATE TABLE table_name_87 (
game INTEGER,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the game when the opponent is @ chicago stags?
| SELECT SUM(game) FROM table_name_87 WHERE opponent = "@ chicago stags" | sql_create_context |
CREATE TABLE table_62775 (
"Tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "1987" FROM table_62775 WHERE "1989" = 'grand slam tournaments' | wikisql |
CREATE TABLE table_23573 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )?
| SELECT "Player" FROM table_23573 WHERE "CFL Team" = 'Hamilton Tiger-Cats (via BC via Saskatchewan )' | wikisql |
CREATE TABLE table_name_26 (
rank INTEGER,
notes VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank for the team that had a time of 6:41.45 and note FA?
| SELECT SUM(rank) FROM table_name_26 WHERE notes = "fa" AND time = "6:41.45" | sql_create_context |
CREATE TABLE table_name_56 (
decision VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team won when the visitor was Carolina?
| SELECT decision FROM table_name_56 WHERE visitor = "carolina" | sql_create_context |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | SELECT COUNT(*) FROM mzjzjlb WHERE YLJGDM = '8772585' AND JZKSRQ BETWEEN '2015-03-20' AND '2021-04-24' AND ZZBZ > 0 | css |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "TRIF12.5I" | mimicsql_data |
CREATE TABLE table_8051 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How big was the crowd when the South Dragons w... | SELECT "Crowd" FROM table_8051 WHERE "Away team" = 'south dragons' AND "Venue" = 'gold coast convention centre' | 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 wdmzjzjlb WHERE wdmzjzjlb.YLJGDM = '3398509' AND wdmzjzjlb.RYDJSJ > '2012-05-04' UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.YLJGDM = '3398509' AND bdmzjzjlb.RYDJSJ > '2012-05-04' | css |
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.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_73088 (
"World Rank" real,
"Company" text,
"Industry" text,
"Revenue (billion $)" text,
"Profits (billion $)" text,
"Assets (billion $)" text,
"Market Value (billion $)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name ... | SELECT "Profits (billion $)" FROM table_73088 WHERE "Market Value (billion $)" = '11.8' | wikisql |
CREATE TABLE table_16035 (
"Player" text,
"Current singles ranking" text,
"Current doubles ranking" text,
"First year played" real,
"Ties played" real,
"Total W\u2013L" text,
"Singles W\u2013L" text,
"Doubles W\u2013L" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Singles W\u2013L" FROM table_16035 WHERE "Player" = 'Laurynas Grigelis' | wikisql |
CREATE TABLE table_57008 (
"Park name" text,
"County or counties" text,
"Area in acres (ha)" text,
"Date founded" real,
"Stream(s) and / or lake(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most recent date founded in elk county?
| SELECT MAX("Date founded") FROM table_57008 WHERE "County or counties" = 'elk county' | wikisql |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE restriction (
restriction_c... | 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, fare, fare_basis, flight, flight_fare WHERE (((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND fare_basis.class_type = 'FIRST' AND f... | atis |
CREATE TABLE country (
id number,
name text
)
CREATE TABLE player (
id number,
player_api_id number,
player_name text,
player_fifa_api_id number,
birthday text,
height number,
weight number
)
CREATE TABLE sqlite_sequence (
name text,
seq text
)
CREATE TABLE league (
id... | SELECT DISTINCT T1.player_name FROM player AS T1 JOIN player_attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot = "left" AND T2.overall_rating >= 85 AND T2.overall_rating <= 90 | spider |
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 wdmzjzjlb.ZYBMLX, wdmzjzjlb.ZYZDBM, wdmzjzjlb.ZYZDMC FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '46834040128' UNION SELECT bdmzjzjlb.ZYBMLX, bdmzjzjlb.ZYZDBM, bdmzjzjlb.ZYZDMC FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '46834040128' | css |
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 prescriptions (
subject_id text,
hadm_id... | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "4275" | mimicsql_data |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID... | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE DESC | nvbench |
CREATE TABLE table_25369796_1 (
team VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team that scored 56 points?Qh
| SELECT team FROM table_25369796_1 WHERE points = "56" | sql_create_context |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Tags (
Id number,
TagName text,
C... | SELECT q.Title, q.CreationDate, q.Score, q.ViewCount FROM Posts AS q LEFT JOIN Posts AS a ON a.Id = q.AcceptedAnswerId WHERE q.OwnerUserId = '##UserId##' AND a.OwnerUserId != '##UserId##' ORDER BY q.CreationDate DESC | sede |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE T... | SELECT * FROM Users WHERE AboutMe LIKE '%rentrak%' | sede |
CREATE TABLE table_name_23 (
nhl_team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team picked Dave Bonter?
| SELECT nhl_team FROM table_name_23 WHERE player = "dave bonter" | sql_create_context |
CREATE TABLE table_49182 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game in week 4?
| SELECT "Result" FROM table_49182 WHERE "Week" = '4' | wikisql |
CREATE TABLE actual_orders (
actual_order_id number,
order_status_code text,
regular_order_id number,
actual_order_date time
)
CREATE TABLE addresses (
address_id number,
address_details text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE... | SELECT t1.product_name, t1.product_price FROM products AS t1 JOIN regular_order_products AS t2 ON t1.product_id = t2.product_id GROUP BY t2.product_id ORDER BY COUNT(*) DESC LIMIT 1 | spider |
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 zyjzjlb_jybgb (
YLJGDM_ZYJZJLB te... | 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 = '68922660' AND hz_info.YLJGDM = '5304917' AND NOT zyjzjlb.CYKSMC LIKE '%心血管病%' | css |
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.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGD... | css |
CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
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 TABL... | SELECT SUM(acc_bal), state FROM customer WHERE credit_score > 100 GROUP BY state | spider |
CREATE TABLE table_name_75 (
runners_up VARCHAR,
champions VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What runner(s)-up has 1 (2013) as the champions?
| SELECT runners_up FROM table_name_75 WHERE champions = "1 (2013)" | 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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2056" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE... | SELECT DISTINCT Posts.Id, Posts.Title, Posts.CreationDate, Posts.Score, Posts.ViewCount, Posts.AnswerCount, Posts.AcceptedAnswerId, Posts.Tags FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON Tags.Id = PostTags.TagId INNER JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId LEFT JOIN Users ... | sede |
CREATE TABLE table_name_62 (
line VARCHAR,
platform VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Line has a Platform of 3?
| SELECT line FROM table_name_62 WHERE platform = "3" | sql_create_context |
CREATE TABLE table_name_5 (
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tiger Woods' to par?
| SELECT to_par FROM table_name_5 WHERE player = "tiger woods" | sql_create_context |
CREATE TABLE table_name_17 (
cup_apps VARCHAR,
league_goals VARCHAR,
league_apps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many cup apps for the season where there are more than 10 league goals and 23 league apps?
| SELECT cup_apps FROM table_name_17 WHERE league_goals > 10 AND league_apps = 23 | sql_create_context |
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 * FROM qtb WHERE qtb.PERSON_NM = '孙泽语' AND qtb.MED_SER_ORG_NO = '6562227' AND NOT qtb.MED_ORG_DEPT_NM LIKE '%血液病%' UNION SELECT * FROM gyb WHERE gyb.PERSON_NM = '孙泽语' AND gyb.MED_SER_ORG_NO = '6562227' AND NOT gyb.MED_ORG_DEPT_NM LIKE '%血液病%' UNION SELECT * FROM zyb WHERE zyb.PERSON_NM = '孙泽语' AND zyb.MED_SER_OR... | css |
CREATE TABLE entrepreneur (
entrepreneur_id number,
people_id number,
company text,
money_requested number,
investor text
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
date_of_birth text
)
-- Using valid SQLite, answer the following questio... | SELECT T2.name, T1.company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id ORDER BY T1.money_requested | spider |
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.short_title = "Int insert dual-cham dev" | mimicsql_data |
CREATE TABLE table_name_60 (
born_died VARCHAR,
term_end VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Born-Died, when Term End is 19 January 1943?
| SELECT born_died FROM table_name_60 WHERE term_end = "19 january 1943" | sql_create_context |
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 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-18713... | eicu |
CREATE TABLE table_2770 (
"Episode" text,
"Location" text,
"Headliner" text,
"Comedians" text,
"Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the show air when Rhod Gilbert was the headliner?
| SELECT "Airdate" FROM table_2770 WHERE "Headliner" = 'Rhod Gilbert' | wikisql |
CREATE TABLE table_name_20 (
partner VARCHAR,
opponents_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Partner has Opponents in the final of john bromwich frank sedgman?
| SELECT partner FROM table_name_20 WHERE opponents_in_the_final = "john bromwich frank sedgman" | sql_create_context |
CREATE TABLE table_46545 (
"Name" text,
"Date" text,
"Defending forces" text,
"Brigade" text,
"Population" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the brigade Tall Al-Shawk shows for the name?
| SELECT "Brigade" FROM table_46545 WHERE "Name" = 'tall al-shawk' | wikisql |
CREATE TABLE drivers (
driverid VARCHAR
)
CREATE TABLE races (
raceid VARCHAR
)
CREATE TABLE results (
driverid VARCHAR,
raceid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the driver id and number of races of all drivers who have at most pa... | SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 30 | sql_create_context |
CREATE TABLE table_name_54 (
d_46 VARCHAR,
d_45 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the D 46 for D 45 of r 5
| SELECT d_46 FROM table_name_54 WHERE d_45 = "r 5" | sql_create_context |
CREATE TABLE table_name_93 (
opponent VARCHAR,
aces VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At the 2001 Davis Cup, what Opponent had less than 50 Aces?
| SELECT opponent FROM table_name_93 WHERE aces < 50 AND event = "2001 davis cup" | sql_create_context |
CREATE TABLE table_61180 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the player who en... | SELECT "Type" FROM table_61180 WHERE "Ends" = '2013' AND "Transfer window" = 'summer' AND "Moving from" = 'kalmar ff' | wikisql |
CREATE TABLE table_69404 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Writer(s)" text,
"Recipient" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who produced Laura Tunstall?
| SELECT "Producer(s)" FROM table_69404 WHERE "Recipient" = 'laura tunstall' | wikisql |
CREATE TABLE table_204_388 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"pts" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total amount of points scored on november 4th ... | SELECT "score" + "score" FROM table_204_388 WHERE "date" = 'november 4' | squall |
CREATE TABLE table_name_3 (
date VARCHAR,
crowd INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game that had a crowd larger than 25,000?
| SELECT date FROM table_name_3 WHERE crowd > 25 OFFSET 000 | sql_create_context |
CREATE TABLE table_name_51 (
location_of_the_church VARCHAR,
year_built VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Location of the Church that was built in the year 1914?
| SELECT location_of_the_church FROM table_name_51 WHERE year_built = 1914 | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'discharged on asp... | eicu |
CREATE TABLE table_49375 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT "Location Attendance" FROM table_49375 WHERE "High assists" = 'rafer alston (7)' AND "High rebounds" = 'yao ming (13)' | wikisql |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
... | SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 25365 AND STRFTIME('%y', admissions.admittime) >= '2104' ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE table_16864968_8 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many records were made on March 27, 2009?
| SELECT COUNT(record) FROM table_16864968_8 WHERE date = "March 27, 2009" | sql_create_context |
CREATE TABLE table_65968 (
"School" text,
"Location" text,
"Mascot" text,
"Size" real,
"IHSAA Class" text,
"County" text,
"Year Joined" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years Joined have... | SELECT COUNT("Year Joined") FROM table_65968 WHERE "Size" < '417' AND "IHSAA Class" = 'a' AND "School" = 'jac-cen-del' | wikisql |
CREATE TABLE table_name_28 (
record VARCHAR,
score VARCHAR,
home VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record of the Chicago Black Hawks Home game with the New York Rangers and a Score of 3 2?
| SELECT record FROM table_name_28 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND score = "3–2" | sql_create_context |
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 allergy (
allergy... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND microlab.culturesite = 'other' AND DATETIME(microlab.cultureta... | eicu |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CRE... | 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 = 'PHILADELPHIA' AND date_day.day_number = 29 AND date_day.month_number = 6... | atis |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
Last... | SELECT P.Id AS "post_link", P.ClosedDate FROM Posts AS P WHERE OwnerUserId = '##UserId:int##' ORDER BY P.CreationDate, P.ClosedDate | sede |
CREATE TABLE table_12460 (
"year" text,
"opus" text,
"town" text,
"kind" text,
"manuals" text,
"stops" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was it the town of Eugene?
| SELECT "year" FROM table_12460 WHERE "town" = 'eugene' | wikisql |
CREATE TABLE table_23018775_3 (
avg_speed VARCHAR,
total_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average speed where the total time was 1:30.4842?
| SELECT avg_speed FROM table_23018775_3 WHERE total_time = "1:30.4842" | sql_create_context |
CREATE TABLE Project_Staff (
staff_id DOUBLE,
project_id INTEGER,
role_code VARCHAR(10),
date_from DATETIME,
date_to DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Organisations (
organisation_id INTEGER,
organisation_type VARCHAR(10),
organisation_details VARCHAR(255)
)
CREAT... | SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id | nvbench |
CREATE TABLE table_67566 (
"Colt model no." text,
"Name" text,
"Stock" text,
"Fire control" text,
"Rear sight" text,
"Forward assist" text,
"Case deflector" text,
"Barrel length" text,
"Barrel profile" text,
"Barrel twist" text,
"Hand guards" text,
"Bayonet Lug" text,
... | SELECT "Muzzle device" FROM table_67566 WHERE "Barrel twist" = '1:7' AND "Stock" = '4th generation' | wikisql |
CREATE TABLE table_104858_1 (
name_of_member_organization VARCHAR,
year_member_organization_was_founded VARCHAR,
year_current_scouting_organization_joined_wosm VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which organizations were founded in 1972, but b... | SELECT name_of_member_organization FROM table_104858_1 WHERE year_member_organization_was_founded = "1972" AND year_current_scouting_organization_joined_wosm = "1977" | sql_create_context |
CREATE TABLE table_70492 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Pts. \u2021" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tyres were used with the mp4/14 chassis?
| SELECT "Tyres" FROM table_70492 WHERE "Chassis" = 'mp4/14' | wikisql |
CREATE TABLE table_name_45 (
molecular_target VARCHAR,
disease_area VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the molecular target of the organism that has a disease area of antiviral?
| SELECT molecular_target FROM table_name_45 WHERE disease_area = "antiviral" | sql_create_context |
CREATE TABLE table_49345 (
"Municipalities of the city" text,
"Area km\u00b2" text,
"Population censo 2007(hab)" text,
"Population under 1 year-old Censo 2007(hab)" text,
"Households (2007)" text,
"Density (hab/ km\u00b2 )" text,
"Elevation msnm" text
)
-- Using valid SQLite, answer the fo... | SELECT "Density (hab/ km\u00b2 )" FROM table_49345 WHERE "Population under 1 year-old Censo 2007(hab)" = '* data from the census taken by the inei' | wikisql |
CREATE TABLE Addresses (
address_id INTEGER,
line_1_number_building VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_date DATETIME,
order_... | SELECT product_name, COUNT(product_name) FROM Products GROUP BY product_name ORDER BY COUNT(product_name) | nvbench |
CREATE TABLE zyb (
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 qtb.MED_ORG_DEPT_CD, AVG(t_kc24.OVE_PAY) FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '6000894' GROUP BY qtb.MED_ORG_DEPT_CD UNION SELECT gyb.MED_ORG_DEPT_CD, AVG(t_kc24.OVE_PAY) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.MED_SER_ORG_... | css |
CREATE TABLE table_51041 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the away team, southport?
| SELECT "Score" FROM table_51041 WHERE "Away team" = 'southport' | wikisql |
CREATE TABLE table_203_5 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- does each competition have an opponent listed ?
| SELECT COUNT(*) > 0 FROM table_203_5 WHERE NOT "opponent" IS NULL | squall |
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
-- Using valid SQLite, answer the following questions fo... | SELECT People_ID, Snatch FROM body_builder | nvbench |
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH ... | SELECT BGRQ FROM jybgb WHERE BGDH = '51074072254' | css |
CREATE TABLE table_40642 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Week larger than 2 on november 19, 1995?
| SELECT "Opponent" FROM table_40642 WHERE "Week" > '2' AND "Date" = 'november 19, 1995' | wikisql |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
econ... | 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 = 'PITTSBURGH' AND date_day.day_number = 23 AND date_day.month_number = 7 AN... | atis |
CREATE TABLE table_204_416 (
id number,
"chip" text,
"flash size" text,
"eeprom" number,
"sram" number,
"frequency\n[mhz]" number,
"package" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many chips have a flash size of at least 3k ?
| SELECT COUNT("chip") FROM table_204_416 WHERE "flash size" >= 3 | squall |
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 COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.YLJGDM = '6191580' AND wdmzjzjlb.JZKSRQ BETWEEN '2010-05-16' AND '2019-09-06' AND wdmzjzjlb.TXBZ > 0 UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.YLJGDM = '6191580' AND bdmzjzjlb.JZKSRQ BETWEEN '2010-05-16' AND '2019-09-06' AND bdmzjzjlb.TXBZ > 0 | css |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CRE... | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-2498')) AND intakeoutput.cellpath LIKE '%output%'... | eicu |
CREATE TABLE table_25072 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries are shown for date of successors fo... | SELECT COUNT("Date of successors formal installation") FROM table_25072 WHERE "Successor" = 'John W. Walker (DR)' | wikisql |
CREATE TABLE table_36072 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the tallahassee open, with a Score of 269 ( 19)?
| SELECT "Location" FROM table_36072 WHERE "Score" = '269 (–19)' AND "Tournament" = 'tallahassee open' | 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 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_NM = '马彭魄' AND t_kc24.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 9768.75) | css |
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.language = "RUSS" AND demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" | mimicsql_data |
CREATE TABLE table_name_49 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is 2004 when the tournament is paris masters?
| SELECT 2004 FROM table_name_49 WHERE tournament = "paris masters" | sql_create_context |
CREATE TABLE table_26173058_2 (
amman VARCHAR,
wehdat VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of teams where the record is 0-1
| SELECT COUNT(amman) FROM table_26173058_2 WHERE wehdat = "0-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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2138.0" AND prescriptions.formulary_drug_cd = "NEOSYRSL" | mimicsql_data |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9cod... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypertension' AND STRFTIME('%y', diagnosis.diagnosistime) = '2103') AS t1... | eicu |
CREATE TABLE table_63083 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank has a Time of 4:00.191?
| SELECT "Rank" FROM table_63083 WHERE "Time" = '4:00.191' | wikisql |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANT... | atis |
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 varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
CO... | SELECT EMAIL, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID DESC | nvbench |
CREATE TABLE table_57145 (
"Number & Name" text,
"Description" text,
"Livery" text,
"Owner(s)" text,
"Date" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which owner has a description of Mark 1 pos and is dated 1956?
| SELECT "Owner(s)" FROM table_57145 WHERE "Date" = '1956' AND "Description" = 'mark 1 pos' | wikisql |
CREATE TABLE table_35594 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What d... | SELECT "Date" FROM table_35594 WHERE "Game" > '53' AND "Team" = 'toronto' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.