instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE table_204_344 ( id number, "player" text, "games played" number, "field goals" number, "free throws" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the total amount of points earned by ralf woods ?
SELECT "points" FROM table_204_344 WHERE "player" = 'ralf woods'
squall
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob te...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "2" AND lab.fluid = "Pleural"
mimicsql_data
CREATE TABLE table_name_51 ( goals INTEGER, games VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many goals are associated with 75 games?
SELECT MAX(goals) FROM table_name_51 WHERE games = 75
sql_create_context
CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined b...
SELECT COUNT(a.Id), a.PostId AS "post_link", b.Score FROM Comments AS a INNER JOIN Posts AS b ON b.Id = a.PostId WHERE a.CreationDate >= '8/1/2010' GROUP BY a.PostId, b.Score ORDER BY COUNT(a.Id) DESC LIMIT 100
sede
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime tim...
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15135) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.itemid...
mimic_iii
CREATE TABLE table_47777 ( "Rank" real, "Company" text, "Headquarters" text, "Industry" text, "Sales (billion $)" real, "Profits (billion $)" real, "Assets (billion $)" real, "Market Value (billion $)" real ) -- Using valid SQLite, answer the following questions for the tables provided...
SELECT "Industry" FROM table_47777 WHERE "Profits (billion $)" < '14.2' AND "Assets (billion $)" > '2,467.9'
wikisql
CREATE TABLE table_1139087_2 ( date VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What day was the grand prix in jerez?
SELECT date FROM table_1139087_2 WHERE location = "Jerez"
sql_create_context
CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) 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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN JOSE' AND date_day.day_number = 25 AND date_day.month_number = 6 AND...
atis
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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb...
css
CREATE TABLE table_41620 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Paris-Charles de Gaulle airport is in which country?
SELECT "Country" FROM table_41620 WHERE "Airport" = 'paris-charles de gaulle airport'
wikisql
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 ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY School_ID
nvbench
CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY number, F...
SELECT qtb.MED_SER_ORG_NO FROM qtb WHERE qtb.PERSON_NM = '蒋芳馥' GROUP BY qtb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC UNION SELECT gyb.MED_SER_ORG_NO FROM gyb WHERE gyb.PERSON_NM = '蒋芳馥' GROUP BY gyb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC UNION SELECT zyb.MED_SER_ORG_NO FROM zyb WHERE zyb.PERSON_NM = '蒋芳馥' GROUP BY zyb.MED_...
css
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, d...
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '027-142451' AND patient.unitdischargetime IS NULL
eicu
CREATE TABLE table_78853 ( "Rank" real, "Mountain Peak" text, "Subrange" text, "Elevation" text, "Prominence" text, "Isolation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Rank of Rank Mountain Peak of crested butte pb?
SELECT "Rank" FROM table_78853 WHERE "Mountain Peak" = 'crested butte pb'
wikisql
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "NEWBORN" AND diagnoses.long_title = "Encephalopathy, unspecified"
mimicsql_data
CREATE TABLE table_52763 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which is the lowest Round with the Opponent, Paul C...
SELECT MIN("Round") FROM table_52763 WHERE "Opponent" = 'paul cahoon' AND "Location" = 'amsterdam, netherlands'
wikisql
CREATE TABLE table_name_31 ( score VARCHAR, championship VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the score when the championship is rome and the opponent is richard krajicek?
SELECT score FROM table_name_31 WHERE championship = "rome" AND opponent = "richard krajicek"
sql_create_context
CREATE TABLE table_12798 ( "Track" real, "Title" text, "Songwriter(s)" text, "Production credits" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the songwriter for Track 4, produced by nigel wright and john smits?
SELECT "Songwriter(s)" FROM table_12798 WHERE "Production credits" = 'nigel wright and john smits' AND "Track" = '4'
wikisql
CREATE TABLE table_17304308_1 ( driver VARCHAR, fin_pos VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of driver for fin pos of 19
SELECT COUNT(driver) FROM table_17304308_1 WHERE fin_pos = 19
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 (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'encephalopathy - metabolic' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-2 ye...
eicu
CREATE TABLE table_name_70 ( attendance INTEGER, loss VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much attendance has a Loss of roloson (11 5)?
SELECT SUM(attendance) FROM table_name_70 WHERE loss = "roloson (11–5)"
sql_create_context
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 demographic.name, demographic.ethnicity FROM demographic WHERE demographic.subject_id = "2560"
mimicsql_data
CREATE TABLE table_56053 ( "Year" real, "Song Title" text, "Movie" text, "Music Director" text, "Co-Singers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the average year a Rangam movie came out?
SELECT AVG("Year") FROM table_56053 WHERE "Movie" = 'rangam'
wikisql
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) 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 pat...
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 4
mimic_iii
CREATE TABLE table_204_678 ( id number, "record" text, "athlete" text, "nation" text, "venue" text, "date" text, "#" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the difference between the number of times the record has been set ...
SELECT ABS((SELECT COUNT(*) FROM table_204_678 WHERE "nation" = 'czech republic') - (SELECT COUNT(*) FROM table_204_678 WHERE "nation" = 'china'))
squall
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body t...
SELECT Id AS "user_link", Reputation, DisplayName FROM Users WHERE DisplayName LIKE '%juri' ORDER BY Reputation DESC
sede
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time )...
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-39753')) AND intakeoutput.cellpath LIKE '%in...
eicu
CREATE TABLE table_name_30 ( record_set VARCHAR, actor VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What record was set by walter brennan before 1941?
SELECT record_set FROM table_name_30 WHERE actor = "walter brennan" AND year < 1941
sql_create_context
CREATE TABLE table_name_27 ( modern_title_of_house VARCHAR, house VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the modern house title of the 1st house?
SELECT modern_title_of_house FROM table_name_27 WHERE house = "1st"
sql_create_context
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 patient ( ...
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 = '030-42006...
eicu
CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DOUBLE, transaction_comment VARCHAR(255), other_transaction_details VARCHAR(...
SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code ORDER BY card_type_code DESC
nvbench
CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE gsi ( course_offeri...
SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE course.has_exams = 'N' AN...
advising
CREATE TABLE table_48041 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest game on Febr...
SELECT MIN("Game") FROM table_48041 WHERE "Date" = 'february 10'
wikisql
CREATE TABLE table_204_398 ( id number, "title" text, "year" number, "publisher" text, "developer" text, "platforms" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which publisher had the most projects ?
SELECT "publisher" FROM table_204_398 GROUP BY "publisher" ORDER BY COUNT("title") DESC LIMIT 1
squall
CREATE TABLE table_44338 ( "Team" text, "Tries for" text, "Tries against" text, "Try diff" text, "Points for" text, "Points against" text, "Points diff" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has a 118 Point for?
SELECT "Team" FROM table_44338 WHERE "Points for" = '118'
wikisql
CREATE TABLE table_14465871_1 ( cmdexe___commandcom VARCHAR, unix_shell VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are all values of CMD.EXE / COMMAND.COM for the unix shell echo?
SELECT cmdexe___commandcom FROM table_14465871_1 WHERE unix_shell = "echo"
sql_create_context
CREATE TABLE table_33923 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country has the city, Sydney?
SELECT "Country" FROM table_33923 WHERE "City" = 'sydney'
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Abn react-surg proc NEC" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
mimicsql_data
CREATE TABLE table_26218783_7 ( points INTEGER, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest points won from player victoria azarenka?
SELECT MIN(points) AS won FROM table_26218783_7 WHERE player = "Victoria Azarenka"
sql_create_context
CREATE TABLE albums ( id number, title text, artist_id number ) CREATE TABLE sqlite_sequence ( name text, seq text ) CREATE TABLE invoices ( id number, customer_id number, invoice_date time, billing_address text, billing_city text, billing_state text, billing_country te...
SELECT email, phone FROM customers WHERE first_name = "Astrid" AND last_name = "Gruber"
spider
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following questions for the...
SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name
nvbench
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE diagn...
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4401) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_it...
mimic_iii
CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABL...
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73693) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month...
mimic_iii
CREATE TABLE table_41710 ( "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. -- Which team 1 had a Team 2 of hankook verdes?
SELECT "Team 1" FROM table_41710 WHERE "Team 2" = 'hankook verdes'
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 AVG(demographic.age) FROM demographic WHERE demographic.language = "SPAN" AND demographic.diagnosis = "OVERDOSE"
mimicsql_data
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 zzmzjzjlb ( HXPLC number, HZX...
SELECT jybgb.SHSJ FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '章...
css
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 mzjzjlb.SG, mzjzjlb.TZ 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.YL...
css
CREATE TABLE table_name_30 ( segment_c VARCHAR, episode VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which items in segment C is episode 160?
SELECT segment_c FROM table_name_30 WHERE episode = 160
sql_create_context
CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, OVE_PAY numb...
SELECT SUM(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '5823598' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-12-21' AND '2008-01-25'
css
CREATE TABLE table_name_52 ( engine VARCHAR, years VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the engine for year 2012-?
SELECT engine FROM table_name_52 WHERE years = "2012-"
sql_create_context
CREATE TABLE table_38367 ( "State" text, "Revenue (millions)" text, "Population" real, "Revenue per capita" text, "Spending (millions)" text, "Spending per capita" text, "Net contribution per capita" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
SELECT "State" FROM table_38367 WHERE "Net contribution per capita" = '$-171'
wikisql
CREATE TABLE table_204_64 ( id number, "place" text, "code" number, "area (km2)" number, "population" number, "most spoken language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which place had the largest population ?
SELECT "place" FROM table_204_64 ORDER BY "population" DESC LIMIT 1
squall
CREATE TABLE table_1342359_15 ( result VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the result with district being kansas 1
SELECT result FROM table_1342359_15 WHERE district = "Kansas 1"
sql_create_context
CREATE TABLE table_19325 ( "Episode no." real, "Title" text, "Director" text, "Writer(s)" text, "Original Air Date (ATV)" text, "Production no." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest production number?
SELECT MIN("Production no.") FROM table_19325
wikisql
CREATE TABLE jyjgzbb ( JYZBLSH text, YLJGDM text, BGDH text, BGRQ time, JYRQ time, JCRGH text, JCRXM text, SHRGH text, SHRXM text, JCXMMC text, JCZBDM text, JCFF text, JCZBMC text, JCZBJGDX text, JCZBJGDL number, JCZBJGDW text, SBBM text, YQBH text...
(SELECT mzjzjlb.YLJGDM 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 = '69072554') UNION (SELECT zyjzjlb.YLJGDM FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.K...
css
CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostHistoryTypes ( Id number, Name te...
SELECT COUNT(Id) FROM Posts WHERE ParentId IS NULL AND CreationDate >= '2014/11/01' AND CreationDate < '2014/12/01' AND Tags LIKE '%google-cast%'
sede
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 jybgb.BGRGH, jybgb.BGRXM FROM jybgb WHERE jybgb.BGDH = '45876237401'
css
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id nu...
SELECT TagName, COUNT(p.Id) AS k FROM Posts AS p INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON pt.TagId = t.Id WHERE t.TagName = 'ipfs' AND p.PostTypeId = 1 AND p.CreationDate > DATEADD(Month, -6, DATEADD(dd, DATEDIFF(dd, 0, GETDATE()), 0)) GROUP BY TagName
sede
CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Coun...
SELECT meter_200, SUM(ID) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC
nvbench
CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text...
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LOS ANGELES' AND date_day.day_number = 23 AND date_day.month_number = 4 ...
atis
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.label = "Creatinine"
mimicsql_data
CREATE TABLE table_10872 ( "Date" text, "Round" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the round of the match at venue A with a result of 1-2 on 7 December 2004?
SELECT "Round" FROM table_10872 WHERE "Venue" = 'a' AND "Result" = '1-2' AND "Date" = '7 december 2004'
wikisql
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varc...
SELECT HIRE_DATE, COMMISSION_PCT 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_6813 ( "Name" text, "Position" text, "Number" text, "School/Club Team" text, "Season" text, "Acquisition via" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the position from the school/club Far Eastern?
SELECT "Position" FROM table_6813 WHERE "School/Club Team" = 'far eastern'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, ...
SELECT jybgb.BGDH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '马欣怿' AND jybg...
css
CREATE TABLE table_76630 ( "Player" text, "Nationality" text, "Jersey Number(s)" text, "Position" text, "Years" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position does the player with jersey number 22 play?
SELECT "Position" FROM table_76630 WHERE "Jersey Number(s)" = '22'
wikisql
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE vitalperiodic ( ...
SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-59493')) AND DATETIME(allergy.allergytime, 'start of year') = DATETIME(CURRE...
eicu
CREATE TABLE table_name_63 ( population VARCHAR, gdp__nominal_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which population has a GDP (nominal) of $6.4 billion?
SELECT population FROM table_name_63 WHERE gdp__nominal_ = "$6.4 billion"
sql_create_context
CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY number, F...
SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '袁文栋' AND t_kc22.STA_DATE BETWEEN '2004-09-29' AND '2021-10-04' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 1
css
CREATE TABLE table_24882796_2 ( final_score VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the final score when they played Frankfurt Galaxy?
SELECT final_score FROM table_24882796_2 WHERE opponent = "Frankfurt Galaxy"
sql_create_context
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversa...
SELECT CAST((Reputation / 10) * 10 AS TEXT) + ' - ' + CAST((Reputation / 10) * 10 + 9 AS TEXT) AS RepRange, COUNT(*) AS Count FROM Users GROUP BY Reputation / 10 ORDER BY Reputation / 10
sede
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_DIRE_CD text, MED_DIRE_NM text,...
SELECT SUM(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.PERSON_NM = '陶成化' AND t_kc21.CLINIC_TYPE = '门诊'
css
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE wdmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, K...
SELECT wdmzjzjlb.MZZYZDZZBM, wdmzjzjlb.MZZYZDZZMC FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '14585277536' UNION SELECT bdmzjzjlb.MZZYZDZZBM, bdmzjzjlb.MZZYZDZZMC FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '14585277536'
css
CREATE TABLE table_name_52 ( weight VARCHAR, diameter VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much does the coin with a 14mm diameter weigh?
SELECT weight FROM table_name_52 WHERE diameter = "14mm"
sql_create_context
CREATE TABLE table_name_69 ( call_sign VARCHAR, class VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the call sign for a class of A?
SELECT call_sign FROM table_name_69 WHERE class = "a"
sql_create_context
CREATE TABLE movie ( movie_id int, Title text, Year int, Director text, Budget_million real, Gross_worldwide int ) CREATE TABLE book_club ( book_club_id int, Year int, Author_or_Editor text, Book_Title text, Publisher text, Category text, Result text ) CREATE TABLE ...
SELECT Director, COUNT(Director) FROM movie WHERE Year = 1999 OR Year = 2000 GROUP BY Director ORDER BY COUNT(Director)
nvbench
CREATE TABLE table_name_47 ( country VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Country of the Player with a Score of 66-72-70-69=277?
SELECT country FROM table_name_47 WHERE score = 66 - 72 - 70 - 69 = 277
sql_create_context
CREATE TABLE table_24046 ( "Episode" text, "Broadcast date" text, "Run time" text, "Viewers (in millions)" text, "Archive" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What episode had a run time of 24:18?
SELECT "Episode" FROM table_24046 WHERE "Run time" = '24:18'
wikisql
CREATE TABLE table_11039 ( "Code" real, "Type" text, "Name" text, "Area (km 2 )" real, "Population" real, "Regional County Municipality" text, "Region" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest region of Saint-Flavie...
SELECT MAX("Region") FROM table_11039 WHERE "Name" = 'saint-flavien' AND "Area (km 2 )" > '67.56'
wikisql
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Observation for suspected genetic or metabolic condition"
mimicsql_data
CREATE TABLE table_26897 ( "Team" text, "Truck(s)" text, "#" real, "Driver(s)" text, "Primary Sponsor(s)" text, "Listed Owner(s)" text, "Crew Chief" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the crew chief for rhonda thorson
SELECT "Crew Chief" FROM table_26897 WHERE "Listed Owner(s)" = 'Rhonda Thorson'
wikisql
CREATE TABLE table_203_57 ( id number, "year" number, "round" text, "against" text, "score" text, "scorers" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- based on the table of brazil 's results at the fifa world cup between 1930 and 2010 , in w...
SELECT "year" FROM table_203_57 WHERE "against" = 'italy' AND "score" + "score" = 0
squall
CREATE TABLE table_name_99 ( visitor VARCHAR, game__number VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Visitor has a Game # larger than 62, and a Date of february 25?
SELECT visitor FROM table_name_99 WHERE game__number > 62 AND date = "february 25"
sql_create_context
CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE Users ( Id num...
SELECT Id AS "post_link", CreationDate, Score, ViewCount, AnswerCount, CommentCount FROM Posts WHERE Tags LIKE '%mapbox%' AND ParentId IS NULL AND AnswerCount = 0 AND CommentCount > 0 AND CreationDate > CAST('2019-01-01' AS DATETIME) ORDER BY ViewCount DESC
sede
CREATE TABLE table_name_51 ( sequence_identity_to_human_protein VARCHAR, protein_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR, sequence_length__aa_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which sequence identity to human protein h...
SELECT sequence_identity_to_human_protein FROM table_name_51 WHERE divergence_from_human_lineage__mya_ > 8.8 AND sequence_length__aa_ > 1587 AND protein_name = "soga2"
sql_create_context
CREATE TABLE table_204_698 ( id number, "name" text, "lifetime" text, "nationality" text, "notable as" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which nationality has the most people associated with it ?
SELECT "nationality" FROM table_204_698 GROUP BY "nationality" ORDER BY COUNT(*) DESC LIMIT 1
squall
CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE student_record ( studen...
SELECT DISTINCT course_offering.friday FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'CLCIV' AND course.number = 326 AND semester.semester = 'WN' AND semester.year = 2016
advising
CREATE TABLE table_38918 ( "Position" text, "Name" text, "School" text, "Unanimous" text, "College Hall of Fame" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the school of the player with a college hall of fame nevers hof profile?
SELECT "School" FROM table_38918 WHERE "College Hall of Fame" = 'nevers hof profile'
wikisql
CREATE TABLE table_name_8 ( pick__number INTEGER, reg_gp INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest pick with a Reg GP less than 0?
SELECT MIN(pick__number) FROM table_name_8 WHERE reg_gp < 0
sql_create_context
CREATE TABLE hz_info_zyjzjlb ( JZLSH number, YLJGDM number, zyjzjlb_id number ) CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text,...
SELECT zyjzjlb.ZYBMLX, zyjzjlb.ZYZDBM, zyjzjlb.ZYZDMC FROM zyjzjlb WHERE zyjzjlb.JZLSH = '46834040128'
css
CREATE TABLE table_51470 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people attended when the record was broken with 47 63?
SELECT "Attendance" FROM table_51470 WHERE "Record" = '47–63'
wikisql
CREATE TABLE fzzmzjzjlb ( 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, MZZYZD...
SELECT zzmzjzjlb.JZLSH FROM hz_info JOIN zzmzjzjlb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE hz_info.RYBH = '63547220' AND hz_info.YLJGDM = '9574052' AND NOT zzmzjzjlb.JZKSMC LIKE '%ICU%' UNION SELECT fzzmzjzjlb.JZLSH FROM hz_info JOIN fzzmzjzjlb ON hz_info...
css
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TA...
SELECT Id AS "post_link", * FROM Posts WHERE NOT Tags LIKE '%kali-linux%' AND (Body LIKE '%kali%' COLLATE SQL_Latin1_General_Cp1_CI_AS OR Title LIKE '%kali%' COLLATE SQL_Latin1_General_Cp1_CI_AS) AND ClosedDate IS NULL ORDER BY CreationDate DESC
sede
CREATE TABLE table_72347 ( "Institution" text, "Team" text, "City" text, "Province" text, "First season" real, "Head coach" text, "Enrollment" real, "Endowment" text, "Football stadium" text, "Capacity" real ) -- Using valid SQLite, answer the following questions for the tables...
SELECT "Football stadium" FROM table_72347 WHERE "Enrollment" = '43579'
wikisql
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY Team_ID
nvbench
CREATE TABLE table_name_33 ( number_of_seasons_in_liga_mx INTEGER, club VARCHAR, number_of_seasons_in_top_division VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Number of seasons in Liga MX for Club cruz azul, when their season in th...
SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_33 WHERE club = "cruz azul" AND number_of_seasons_in_top_division > 68
sql_create_context
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2156" AND lab.itemid = "51419"
mimicsql_data
CREATE TABLE Staff ( staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR ) CREATE TABLE Lessons ( staff_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How long is the total lesson time taught by staff with first name as Janessa and last name ...
SELECT SUM(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
sql_create_context
CREATE TABLE greatermanchestercrime ( crimeid text, crimets time, location text, lsoa text, type text, outcome text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What time do most of the crimes happen?
SELECT crimets FROM greatermanchestercrime GROUP BY crimets ORDER BY COUNT(*) DESC LIMIT 1
greatermanchestercrime
CREATE TABLE table_name_82 ( english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the english title of the modern drama, episode 20, that airs on 26 sep- ...
SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = "modern drama" AND number_of_episodes = 20 AND airing_date = "26 sep- 21 oct"
sql_create_context