instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT Id AS "post_link", OwnerUserId AS "user_link", CreationDate, Score FROM Posts WHERE PostTypeId = 2 ORDER BY Score DESC LIMIT 100 | sede |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24894) AND microbiologyevents.spec_type_desc = 'blood culture (post-mortem)' AND NOT microbiologyevents.org_name IS NULL ORDER BY microbiologyevents.cha... | mimic_iii |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,... | SELECT TagName, SUM(ViewCount) / COUNT(*), COUNT(*) FROM Posts AS p INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE (PostTypeId = 1) AND (YEAR(CreationDate) >= 2019) GROUP BY TagName ORDER BY 2 DESC | sede |
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.ethnicity = "HISPANIC OR LATINO" AND demographic.dob_year < "2112" | mimicsql_data |
CREATE TABLE table_name_28 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2004, when 2009 is 'A'?
| SELECT 2004 FROM table_name_28 WHERE 2009 = "a" | sql_create_context |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requi... | SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.number = 732 AND course_offering.semester = semester.semester_id AND instructor.name LIKE '%Cheong-hee Chang%' AND offering_instructor.in... | advising |
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 demographic ... | SELECT demographic.dob FROM demographic WHERE demographic.subject_id = "74463" | mimicsql_data |
CREATE TABLE table_name_32 (
february INTEGER,
points INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest February for less than 57 points?
| SELECT MIN(february) FROM table_name_32 WHERE points < 57 | 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.diagnosis = "GANGRENE" AND prescriptions.route = "PO/NG" | mimicsql_data |
CREATE TABLE table_name_18 (
venue VARCHAR,
home VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1958, what has the IRFU All-Stars Home Venue?
| SELECT venue FROM table_name_18 WHERE home = "irfu all-stars" AND season = 1958 | sql_create_context |
CREATE TABLE table_name_68 (
country VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is ranked #2?
| SELECT country FROM table_name_68 WHERE rank = 2 | sql_create_context |
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 t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY diagnosis.diagnosisname) AS t1 WHERE t1.c1 <= 3 | eicu |
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
g... | SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 477 OR course.number = 570) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON ... | advising |
CREATE TABLE table_name_58 (
grid VARCHAR,
laps VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When laps are less than 80 and Bruce mclaren is the driver, what is the grid?
| SELECT grid FROM table_name_58 WHERE laps < 80 AND driver = "bruce mclaren" | sql_create_context |
CREATE TABLE Reservations (
Adults VARCHAR,
LastName VARCHAR,
CheckIn VARCHAR,
FirstName VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?
| SELECT Adults FROM Reservations WHERE CheckIn = "2010-10-23" AND FirstName = "CONRAD" AND LastName = "SELBIG" | sql_create_context |
CREATE TABLE table_train_94 (
"id" int,
"mini_mental_state_examination_mmse" int,
"substance_dependence" bool,
"psychiatric_disease" bool,
"modified_hachinski_ischemia_scale" int,
"smoking" bool,
"alcohol_abuse" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following question... | SELECT * FROM table_train_94 WHERE modified_hachinski_ischemia_scale > 4 | criteria2sql |
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 (
CYBQDM text,
CYBQMC... | SELECT jyjgzbb.BGDH FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE hz_info.RYBH = '03485032' AND NOT jyjgzbb.BGDH IN (SELECT jyjgzb... | css |
CREATE TABLE table_204_872 (
id number,
"name" text,
"completed" text,
"architect" text,
"location" text,
"year of listing & ref(s)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year has the most buildings listed ?
| SELECT "year of listing & ref(s)" FROM table_204_872 GROUP BY "year of listing & ref(s)" ORDER BY COUNT("name") DESC LIMIT 1 | squall |
CREATE TABLE table_name_61 (
gold INTEGER,
nation VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Switzerland has how many gold and less than 0 silver?
| SELECT MAX(gold) FROM table_name_61 WHERE nation = "switzerland" AND silver < 0 | sql_create_context |
CREATE TABLE table_61958 (
"President" text,
"Treasurer" text,
"Secretary" text,
"Social AO" text,
"Academic AO" text,
"Internal CO" text,
"External CO" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Social AO has an External CO of simo... | SELECT "Social AO" FROM table_61958 WHERE "External CO" = 'simonas savickas' AND "Internal CO" = 'pieter kuijsten' | wikisql |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TAB... | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '10:00' AND course.course_id = course_offering.course_id AND course.department = 'CLCIV' AND course.number = 327 AND semester.semester = 'WN' AND... | advising |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '潘弘义' AND MED_SER_ORG_NO = '9379599' AND OUT_DIAG_DIS_NM LIKE '%心脏病%' | css |
CREATE TABLE table_53795 (
"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.
-- Name t... | SELECT "Record" FROM table_53795 WHERE "Date" = 'february 27' | wikisql |
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, qtb.MED_ORG_DEPT_NM FROM qtb WHERE qtb.MED_CLINIC_ID = '09914835736' UNION SELECT gyb.MED_ORG_DEPT_CD, gyb.MED_ORG_DEPT_NM FROM gyb WHERE gyb.MED_CLINIC_ID = '09914835736' UNION SELECT zyb.MED_ORG_DEPT_CD, zyb.MED_ORG_DEPT_NM FROM zyb WHERE zyb.MED_CLINIC_ID = '09914835736' UNION SELECT mzb.... | css |
CREATE TABLE table_10725629_2 (
report VARCHAR,
pole_position VARCHAR,
winning_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?
| SELECT report FROM table_10725629_2 WHERE pole_position = "Michael Andretti" AND winning_team = "Galles-Kraco Racing" | sql_create_context |
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in 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
)
CREATE TABLE artist (
artist_na... | SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000 | spider |
CREATE TABLE table_27723526_17 (
high_rebounds VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the high rebound where game is 5?
| SELECT high_rebounds FROM table_27723526_17 WHERE game = 5 | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,... | (SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE h... | 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 gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '47642343' AND NOT gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT <= 748.1) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '47642343' AND NOT fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLIN... | css |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Cou... | SELECT u.Reputation, u.DisplayName FROM Users AS u WHERE u.Reputation > 1000 AND u.Reputation < 1010 | sede |
CREATE TABLE table_69576 (
"Player" text,
"Country" text,
"Year(s) Won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year won has a total less than 281?
| SELECT "Year(s) Won" FROM table_69576 WHERE "Total" < '281' | wikisql |
CREATE TABLE table_name_18 (
score VARCHAR,
date VARCHAR,
home VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on January 14 when the Chicago Black Hawks were home against the New York Rangers?
| SELECT score FROM table_name_18 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND date = "january 14" | sql_create_context |
CREATE TABLE table_52012 (
"Player" text,
"Shoots" text,
"Position" text,
"Acquired" real,
"Place of Birth" text,
"Joined from" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year was player Bruce Graham acquired?
| SELECT "Acquired" FROM table_52012 WHERE "Player" = 'bruce graham' | wikisql |
CREATE TABLE event (
id number,
name text,
stadium_id number,
year text
)
CREATE TABLE record (
id number,
result text,
swimmer_id number,
event_id number
)
CREATE TABLE stadium (
id number,
name text,
capacity number,
city text,
country text,
opening_year numbe... | SELECT COUNT(*) FROM stadium WHERE country <> 'Russia' | spider |
CREATE TABLE table_29058 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the time for result msst 29 24
| SELECT "Time" FROM table_29058 WHERE "Result" = 'MSST 29–24' | wikisql |
CREATE TABLE table_name_30 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 1821 with 1861 of 3733
| SELECT 1821 FROM table_name_30 WHERE 1861 = "3733" | sql_create_context |
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 * FROM person_info JOIN hz_info JOIN mzjzjlb 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 = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE person_info.XM = '沈元纬'... | css |
CREATE TABLE table_10712 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Colour commentator(s)" text,
"Ice level reporters" text,
"Studio host" text,
"Studio analysts" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which ice level repor... | SELECT "Ice level reporters" FROM table_10712 WHERE "Colour commentator(s)" = 'harry neale' AND "Year" > '2004' | wikisql |
CREATE TABLE table_47092 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Average 1" real,
"Points 2" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has... | SELECT "Team" FROM table_47092 WHERE "Goals Against" < '64' AND "Points 2" = '63' AND "Goals For" = '101' | wikisql |
CREATE TABLE table_19542 (
"Pick #" real,
"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.
-- Which players played right wing?
| SELECT "Player" FROM table_19542 WHERE "Position" = 'Right Wing' | wikisql |
CREATE TABLE table_17443 (
"Date" text,
"Winning Team" text,
"Score" text,
"Winning Pitcher" text,
"Losing Pitcher" text,
"Attendance" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the winning pitcher when attendance... | SELECT "Winning Pitcher" FROM table_17443 WHERE "Attendance" = '38109' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM mzjzjlb JOIN jybgb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '8585428' AND jybgb.BGRQ BETWEEN '2006-12-22' AND '2015-03-05' GROUP BY jybgb.KSBM HAVING COUNT(*) > 7) AS T | css |
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 prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Hypovolemia" | mimicsql_data |
CREATE TABLE table_8776 (
"Tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"Career SR" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result fo... | SELECT "1989" FROM table_8776 WHERE "1992" = '0 / 1' | wikisql |
CREATE TABLE table_59323 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Number of electorates (2009) has a Reserve... | SELECT "Number of electorates (2009)" FROM table_59323 WHERE "Reserved for ( SC / ST /None)" = 'total:' | 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 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_NM = '陈玲玲' AND t_kc22.STA_DATE BETWEEN '2007-04-17' AND '2014-06-22' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE table_name_41 (
date VARCHAR,
man_of_the_match VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the Competition with Man of the Match Ollie Bronnimann?
| SELECT date FROM table_name_41 WHERE man_of_the_match = "ollie bronnimann" | sql_create_context |
CREATE TABLE table_name_43 (
attendance INTEGER,
date VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where date is october 7 and game greater than 1, what is the highest attendance?
| SELECT MAX(attendance) FROM table_name_43 WHERE date = "october 7" AND game > 1 | sql_create_context |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday va... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'EHS' AND course.number = 869 AND semester.semester = 'WN' AND semester.semester_id = course_offe... | advising |
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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2179" AND diagnoses.long_title = "Pulmonary collapse" | mimicsql_data |
CREATE TABLE table_60267 (
"Album#" text,
"English Title" text,
"Chinese (Traditional)" text,
"Chinese (Simplified)" text,
"Release date" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 's English title?
| SELECT "English Title" FROM table_60267 WHERE "Chinese (Simplified)" = '你 朋友' | wikisql |
CREATE TABLE table_name_38 (
earnings_per_share__ VARCHAR,
net_profit__us_$m_ VARCHAR,
year_to_april VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of Earnings per share ( ) which has a Net profit (US $m) larger than 66, and a Year to Apr... | SELECT COUNT(earnings_per_share__) AS ¢_ FROM table_name_38 WHERE net_profit__us_$m_ > 66 AND year_to_april < 2010 | sql_create_context |
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 2 AND program_course.category LIKE 'ULCS' | advising |
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transa... | SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code | nvbench |
CREATE TABLE table_43715 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Comp" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the opposing team when playing in the Portugal venue?
| SELECT "Opponents" FROM table_43715 WHERE "Venue" = 'portugal' | wikisql |
CREATE TABLE table_name_28 (
outgoing_manager VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the outgoing manager for the team, necaxa?
| SELECT outgoing_manager FROM table_name_28 WHERE team = "necaxa" | sql_create_context |
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 SUM(t_kc22.AMOUNT) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '05261498' AND gwyjzb.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2002-10-11' AND '2006-09-18' AND t_kc22.MED_INV_ITEM_TYPE = '手术费' UNION SELECT SUM(t_kc22.AMOUNT) FROM fgwyjzb JOIN t_kc22 ON fg... | css |
CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
... | SELECT Location, SUM(Total_Passengers) FROM station GROUP BY Location ORDER BY SUM(Total_Passengers) DESC | nvbench |
CREATE TABLE table_1748444_1 (
builder VARCHAR,
date_built VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the builder for date built is january 1910
| SELECT builder FROM table_1748444_1 WHERE date_built = "January 1910" | sql_create_context |
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name V... | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" ORDER BY COUNT(date_of_enrolment) | nvbench |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Hemochromatos-rbc trans" | mimicsql_data |
CREATE TABLE table_65410 (
"Date" text,
"Internet Explorer" text,
"Chrome" text,
"Firefox" text,
"Safari" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the percentage of safari when firefox was 24.66%
| SELECT "Safari" FROM table_65410 WHERE "Firefox" = '24.66%' | 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 prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dob_year < "2074" | mimicsql_data |
CREATE TABLE table_37057 (
"Game #" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home team has higher than 92 points?
| SELECT "Home" FROM table_37057 WHERE "Points" > '92' | wikisql |
CREATE TABLE table_50807 (
"Year" text,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHICH Regular Season has a League of npsl, and a Year of 2008?
| SELECT "Regular Season" FROM table_50807 WHERE "League" = 'npsl' AND "Year" = '2008' | wikisql |
CREATE TABLE table_name_58 (
boiler_pressure VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the boiler pressure for the Hesperus model?
| SELECT boiler_pressure FROM table_name_58 WHERE name = "hesperus" | sql_create_context |
CREATE TABLE table_64506 (
"Year" real,
"Title" text,
"Hangul / Japanese" text,
"Role" text,
"Network" text,
"Genre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the network in 2011?
| SELECT "Network" FROM table_64506 WHERE "Year" = '2011' | wikisql |
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 demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.diagnosis = "OVERDOSE" | mimicsql_data |
CREATE TABLE table_name_76 (
method VARCHAR,
res VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the method where there is a loss with time 5:00?
| SELECT method FROM table_name_76 WHERE res = "loss" AND time = "5:00" | sql_create_context |
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min nu... | SELECT title, COUNT(title) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY title ORDER BY title DESC | nvbench |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_re... | 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 ((date_day.day_number = 25 AND date_day.month_number = 6 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time... | atis |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE ... | SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offe... | advising |
CREATE TABLE table_69151 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for the time of 49.04 and lane less than 3, what is the nationality?
| SELECT "Nationality" FROM table_69151 WHERE "Lane" < '3' AND "Time" = '49.04' | wikisql |
CREATE TABLE table_name_50 (
height INTEGER,
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Height has a Position of c, and a Player of yiannis bourousis?
| SELECT SUM(height) FROM table_name_50 WHERE position = "c" AND player = "yiannis bourousis" | sql_create_context |
CREATE TABLE table_65102 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Bonus points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lost number for the team... | SELECT "Lost" FROM table_65102 WHERE "Drawn" = '2' AND "Points against" = '572' | wikisql |
CREATE TABLE table_59337 (
"White" text,
"Black" text,
"Year" real,
"Result" text,
"Moves" real,
"Tournament" text,
"Opening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tournament, when Black is 'Kramnik', when Result is ' ', and... | SELECT "Tournament" FROM table_59337 WHERE "Black" = 'kramnik' AND "Result" = '½–½' AND "Moves" = '40' | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Incision of vessel, abdominal arteries" | mimicsql_data |
CREATE TABLE Employee (
name VARCHAR,
eid VARCHAR
)
CREATE TABLE Aircraft (
aid VARCHAR,
name VARCHAR
)
CREATE TABLE Certificate (
eid VARCHAR,
aid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show names for all employees who have certifi... | SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800" | sql_create_context |
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,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26922 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = '... | mimic_iii |
CREATE TABLE table_name_14 (
population_in_1000__1931_ VARCHAR,
car_plates__since_1937_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- between car plates of 80-84 what is the population in 1000 in year 1931?
| SELECT population_in_1000__1931_ FROM table_name_14 WHERE car_plates__since_1937_ = "80-84" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "56962" | mimicsql_data |
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 t1.culturesite FROM (SELECT microlab.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microlab WHERE STRFTIME('%y', microlab.culturetakentime) = '2105' GROUP BY microlab.culturesite) AS t1 WHERE t1.c1 <= 5 | eicu |
CREATE TABLE table_name_75 (
competition VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the competition on 10 august 2011?
| SELECT competition FROM table_name_75 WHERE date = "10 august 2011" | sql_create_context |
CREATE TABLE table_name_9 (
athlete VARCHAR,
react VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Athlete has a Reaction of 0.248?
| SELECT athlete FROM table_name_9 WHERE react = 0.248 | sql_create_context |
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 t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '29216620' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 3853.34) | css |
CREATE TABLE table_61559 (
"Draw" real,
"Artist" text,
"Song" text,
"Results" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the artist for the song 'alt har en mening n '?
| SELECT "Artist" FROM table_61559 WHERE "Song" = 'alt har en mening nå' | wikisql |
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 AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-246447')) AND lab.labname = 'rbc' AND STRFTIME('%y-%m', lab.labresulttime) >= ... | eicu |
CREATE TABLE table_42555 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of matches for the player in rank 8?
| SELECT MAX("Matches") FROM table_42555 WHERE "Rank" = '8' | wikisql |
CREATE TABLE table_52229 (
"DVD Name" text,
"Released" text,
"Audio" text,
"Aspect Ratio" text,
"Duration" text,
"Number of Episodes" real,
"Num of Discs" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What DVD has a time of 2 hours 22 minut... | SELECT "DVD Name" FROM table_52229 WHERE "Duration" = '2 hours 22 minutes' | wikisql |
CREATE TABLE table_name_68 (
car__number VARCHAR,
make VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the car # of the Chevrolet that complete 363 laps?
| SELECT COUNT(car__number) FROM table_name_68 WHERE make = "chevrolet" AND laps = 363 | sql_create_context |
CREATE TABLE genre (
gid int,
genre text
)
CREATE TABLE actor (
aid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREATE TABLE writer (
wid int,
gender text,
name text,
nationality text,
birth_city text,
birth_year int
)
CREAT... | SELECT movie.title FROM actor AS ACTOR_0, actor AS ACTOR_1, cast AS CAST_0, cast AS CAST_1, movie WHERE ACTOR_0.name = 'Matt Damon' AND ACTOR_1.name = 'Ben Affleck' AND CAST_0.aid = ACTOR_0.aid AND CAST_1.aid = ACTOR_1.aid AND movie.mid = CAST_0.msid AND movie.mid = CAST_1.msid | imdb |
CREATE TABLE table_77386 (
"Date" text,
"Round" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real,
"Scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What result is found for the round that has f?
| SELECT "Result" FROM table_77386 WHERE "Round" = 'f' | wikisql |
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 COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'post neurointerventional procedure - embolization') AS t1 GROUP ... | eicu |
CREATE TABLE table_name_75 (
city_of_license__market VARCHAR,
channel___tv___rf__ VARCHAR,
owned_since VARCHAR,
affiliation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city of license/market has an owned since before 2011,and a affiliation of... | SELECT city_of_license__market FROM table_name_75 WHERE owned_since < 2011 AND affiliation = "abc" AND channel___tv___rf__ = "9 (22)" | sql_create_context |
CREATE TABLE table_14030 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Venue has Notes of 58.25 m, and a Competition of world championships?
| SELECT "Venue" FROM table_14030 WHERE "Notes" = '58.25 m' AND "Competition" = 'world championships' | wikisql |
CREATE TABLE table_74327 (
"Player" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" text,
"Strike rate" text,
"Highest Score" text,
"50s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the strike rate for the player ... | SELECT "Strike rate" FROM table_74327 WHERE "Average" = '32.78' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetake... | 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 = 's/p lvad' AND STR... | eicu |
CREATE TABLE table_name_98 (
ethnic_group VARCHAR,
other VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which ethnic group has 5% of people categorizing religion as other?
| SELECT ethnic_group FROM table_name_98 WHERE other = "5%" | sql_create_context |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NA... | SELECT EMAIL, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY | nvbench |
CREATE TABLE table_25331766_3 (
final_score VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score of the game with 7523 in attendance?
| SELECT final_score FROM table_25331766_3 WHERE attendance = 7523 | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.