instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_76 (
score VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score when the record was 9-3-0?
| SELECT score FROM table_name_76 WHERE record = "9-3-0" | sql_create_context |
CREATE TABLE table_15796100_1 (
order__number VARCHAR,
theme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the order number for the theme of Mariah Carey?
| SELECT order__number FROM table_15796100_1 WHERE theme = "Mariah Carey" | sql_create_context |
CREATE TABLE table_name_68 (
shirt_sponsor VARCHAR,
kit_manufacturer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which shirt sponser has Nike as a kit manufacturer?
| SELECT shirt_sponsor FROM table_name_68 WHERE kit_manufacturer = "nike" | sql_create_context |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name te... | SELECT COUNT(*) FROM Tags WHERE Tags.Count > 5000 | sede |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NA... | SELECT JOB_TITLE, AVG(SALARY) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID GROUP BY T2.JOB_TITLE ORDER BY AVG(SALARY) DESC | nvbench |
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 WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" | mimicsql_data |
CREATE TABLE gyb (
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_SER_ORG_NO FROM qtb WHERE qtb.PERSON_NM = '潘向荣' AND qtb.IN_HOSP_DATE BETWEEN '2011-03-13' AND '2013-06-11' GROUP BY qtb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT gyb.MED_SER_ORG_NO FROM gyb WHERE gyb.PERSON_NM = '潘向荣' AND gyb.IN_HOSP_DATE BETWEEN '2011-03-13' AND '2013-06-11' GROUP BY gy... | 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 SUM(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.PERSON_ID = '02992018' AND t_kc21.CLINIC_TYPE = '门诊' | css |
CREATE TABLE table_name_73 (
home_team VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home team played against Richmond?
| SELECT home_team FROM table_name_73 WHERE away_team = "richmond" | sql_create_context |
CREATE TABLE diagnoses (
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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2115" AND lab.label = "Quantitative G6PD" | mimicsql_data |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE inputevents_cv (
row_id nu... | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 25461 AND DATETIME(admissions.dischtime) >= DATETIME(CURRENT_TIME(), '-6 year') ORDER BY admissions.dischtime DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_62225 (
"Rank" text,
"Country" text,
"Highest point" text,
"Height (m)" real,
"Height (ft)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How high is Macedonia's highest point?
| SELECT "Height (ft)" FROM table_62225 WHERE "Country" = 'macedonia' | wikisql |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medi... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-78314' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | eicu |
CREATE TABLE table_20988 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT COUNT("Top 10") FROM table_20988 WHERE "Position" = '51st' | wikisql |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)... | SELECT DISTINCT flight.flight_id FROM airport_service, city, flight, flight_stop WHERE city.city_code = airport_service.city_code AND city.city_name = 'DENVER' AND flight_stop.stop_airport = airport_service.airport_code AND flight.airline_code = 'UA' AND flight.flight_id = flight_stop.flight_id | atis |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
... | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 63849 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) ORDER BY microbiologyevents.charttime DESC LIMIT 1 | mimic_iii |
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 hz_info (
KH text,
KLX number... | SELECT COUNT(*) FROM jybgb WHERE jybgb.YLJGDM = '4850709' AND jybgb.BGRQ BETWEEN '2004-06-21' AND '2018-03-17' | 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 demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "7" AND lab.label = "Bilirubin" | mimicsql_data |
CREATE TABLE table_75819 (
"Date" text,
"Opponent" text,
"Location" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game against North Carolina?
| SELECT "Date" FROM table_75819 WHERE "Opponent" = 'north carolina' | wikisql |
CREATE TABLE table_67854 (
"Tournament" text,
"Wins" real,
"Top-10" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest wins a tournament with 3 cuts and more than 4 events has?
| SELECT MAX("Wins") FROM table_67854 WHERE "Cuts made" = '3' AND "Events" > '4' | wikisql |
CREATE TABLE table_49974 (
"Name" text,
"Heir of" text,
"Birth" text,
"Ceased to be Duke of Girona" text,
"Death" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE DEATH WHEN BIRTH DATE IS 2 AUGUST 1424?
| SELECT "Death" FROM table_49974 WHERE "Birth" = '2 august 1424' | wikisql |
CREATE TABLE table_name_12 (
losses VARCHAR,
team VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?
| SELECT COUNT(losses) FROM table_name_12 WHERE team = "cornwall hc" AND goals_for > 18 | sql_create_context |
CREATE TABLE table_1341577_43 (
party VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party is associated with the person who was first elected in 1982?
| SELECT party FROM table_1341577_43 WHERE first_elected = 1982 | sql_create_context |
CREATE TABLE table_76890 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To Par, when Country is 'United States', when Place is 'T4', and when Player is 'Arnold Palmer'?
| SELECT "To par" FROM table_76890 WHERE "Country" = 'united states' AND "Place" = 't4' AND "Player" = 'arnold palmer' | wikisql |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | WITH temp AS (SELECT n FROM (VALUES (1), (2), (3), (4)) AS temp(n)) SELECT ROW_NUMBER() OVER (ORDER BY (SELECT 1)) AS n FROM temp AS t1, temp AS t2, temp AS t3 | sede |
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGE... | SELECT LName, COUNT(LName) FROM Student WHERE NOT StuID IN (SELECT T1.StuID FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy WHERE T2.AllergyType = "food") GROUP BY LName ORDER BY COUNT(LName) | nvbench |
CREATE TABLE table_204_554 (
id number,
"rank" number,
"name" text,
"nation" text,
"time" text,
"speed" number,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the last russian to be ranked ?
| SELECT "name" FROM table_204_554 WHERE "nation" = 'russia' ORDER BY "rank" DESC LIMIT 1 | squall |
CREATE TABLE membership_register_branch (
member_id number,
branch_id text,
register_year text
)
CREATE TABLE branch (
branch_id number,
name text,
open_year text,
address_road text,
city text,
membership_amount text
)
CREATE TABLE member (
member_id number,
card_number tex... | SELECT card_number, name, hometown FROM member ORDER BY level DESC | spider |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | SELECT MAX(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-1629')) AND NOT vitalperiodic.heartrate IS NULL ... | eicu |
CREATE TABLE mzjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
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,
... | SELECT zyjybgb.SQRGH, zyjybgb.SQRXM FROM zyjybgb WHERE zyjybgb.BGDH = '03066452017' UNION SELECT mzjybgb.SQRGH, mzjybgb.SQRXM FROM mzjybgb WHERE mzjybgb.BGDH = '03066452017' | css |
CREATE TABLE table_14288212_1 (
first_played INTEGER,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year did Italy begin playing?
| SELECT MIN(first_played) FROM table_14288212_1 WHERE team = "Italy" | sql_create_context |
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),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(DEPARTMENT_ID) DESC | nvbench |
CREATE TABLE table_name_97 (
kosal VARCHAR,
sitalsasthi_carnival VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Kosal with a balangir town sitalsasthi carnival?
| SELECT kosal FROM table_name_97 WHERE sitalsasthi_carnival = "balangir town" | sql_create_context |
CREATE TABLE airport (
id number,
city text,
country text,
iata text,
icao text,
name text
)
CREATE TABLE operate_company (
id number,
name text,
type text,
principal_activities text,
incorporated_in text,
group_equity_shareholding number
)
CREATE TABLE flight (
id ... | SELECT name FROM airport WHERE country <> 'Iceland' | spider |
CREATE TABLE table_name_93 (
date VARCHAR,
score VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date in Stade Leopold Senghor, Dakar was the Score 4 0?
| SELECT date FROM table_name_93 WHERE score = "4–0" AND venue = "stade leopold senghor, dakar" | sql_create_context |
CREATE TABLE table_76204 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Date for the Region of Europe and has the Catalog of 28765 22392 8?
| SELECT "Date" FROM table_76204 WHERE "Region" = 'europe' AND "Catalog" = '28765 22392 8' | wikisql |
CREATE TABLE table_name_31 (
percentage___percentage_ VARCHAR,
males VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which language do 1% of males speak?
| SELECT percentage___percentage_ FROM table_name_31 WHERE males = "1" | sql_create_context |
CREATE TABLE table_5263 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition took place in Bangkok?
| SELECT "Competition" FROM table_5263 WHERE "Venue" = 'bangkok' | wikisql |
CREATE TABLE table_204_641 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the top driver a... | SELECT "driver" FROM table_204_641 ORDER BY "pos" LIMIT 1 | squall |
CREATE TABLE table_44029 (
"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 SUM("Profits (billion $)") FROM table_44029 WHERE "Headquarters" = 'usa' AND "Industry" = 'banking' AND "Sales (billion $)" < '98.64' | wikisql |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc21.MED_ORG_DEPT_NM, AVG(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.MED_SER_ORG_NO = '9182083' GROUP BY t_kc21.MED_ORG_DEPT_NM | css |
CREATE TABLE domain_journal (
did int,
jid int
)
CREATE TABLE conference (
cid int,
homepage varchar,
name varchar
)
CREATE TABLE domain_author (
aid int,
did int
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE domai... | SELECT journal.name FROM journal, keyword, publication, publication_keyword WHERE keyword.keyword = 'Relational Database' AND publication_keyword.kid = keyword.kid AND publication.jid = journal.jid AND publication.pid = publication_keyword.pid GROUP BY journal.name ORDER BY COUNT(DISTINCT (publication.title)) DESC LIMI... | academic |
CREATE TABLE table_name_2 (
draw INTEGER,
lost VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total draws was played less than 18 with 11 losts?
| SELECT SUM(draw) FROM table_name_2 WHERE lost = 11 AND played < 18 | sql_create_context |
CREATE TABLE table_17335602_1 (
winners_share___ INTEGER,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winner's share in the wegmans lpga championship?
| SELECT MAX(winners_share___) AS $__ FROM table_17335602_1 WHERE tournament = "Wegmans LPGA Championship" | sql_create_context |
CREATE TABLE table_22670216_1 (
rnd VARCHAR,
track VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number?
| SELECT COUNT(rnd) FROM table_22670216_1 WHERE track = "Ontario Motor Speedway" AND pole_position = "Johnny Rutherford" | sql_create_context |
CREATE TABLE table_77837 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Venue has a Home team of essendon?
| SELECT "Venue" FROM table_77837 WHERE "Home team" = 'essendon' | wikisql |
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.admission_type = "URGENT" AND prescriptions.route = "PO/NG" | mimicsql_data |
CREATE TABLE table_name_66 (
road_team VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name Road Team of Game of game 4?
| SELECT road_team FROM table_name_66 WHERE game = "game 4" | sql_create_context |
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),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT FIRST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME | nvbench |
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 jyjgzbb.JCFF FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb 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 = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJG... | css |
CREATE TABLE table_23566 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Foochow" text,
"Area" real,
"Population" real,
"Density" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the traditional for
| SELECT "Traditional" FROM table_23566 WHERE "Simplified" = '屏南县' | wikisql |
CREATE TABLE On_Call (
Nurse INTEGER,
BlockFloor INTEGER,
BlockCode INTEGER,
OnCallStart DATETIME,
OnCallEnd DATETIME
)
CREATE TABLE Undergoes (
Patient INTEGER,
Procedures INTEGER,
Stay INTEGER,
DateUndergoes DATETIME,
Physician INTEGER,
AssistingNurse INTEGER
)
CREATE TAB... | SELECT Name, COUNT(Name) FROM Appointment AS T1 JOIN Patient AS T2 ON T1.Patient = T2.SSN GROUP BY Name ORDER BY Name | nvbench |
CREATE TABLE table_56062 (
"State" text,
"Votes" real,
"Votes since 1856" real,
"Democratic votes" real,
"D votes since 1856" real,
"% of D votes" text,
"D % since 1856" text,
"Republican votes" real,
"% of R votes" text,
"R % since 1856" text,
"Other votes" real,
"O vote... | SELECT COUNT("Democratic votes") FROM table_56062 WHERE "Other votes" < '18' AND "% of R votes" = '52.63%' AND "Votes since 1856" < '38' | wikisql |
CREATE TABLE table_4113 (
"Townland" text,
"s Acre" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the poor law union on Marshalstown?
| SELECT "Poor law union" FROM table_4113 WHERE "Townland" = 'Marshalstown' | wikisql |
CREATE TABLE table_22109 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the first elected in the Florida 19 district?
| SELECT "First elected" FROM table_22109 WHERE "District" = 'Florida 19' | wikisql |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE fare (
fare_id int,
from_... | 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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND flight.flight_number = 417 AND flight.to_airport = AIRPORT_SERVICE_1.airport_... | atis |
CREATE TABLE table_name_52 (
name VARCHAR,
area VARCHAR,
roll VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school in Balclutha has a roll smaller than 55?
| SELECT name FROM table_name_52 WHERE area = "balclutha" AND roll < 55 | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" | mimicsql_data |
CREATE TABLE table_25649 (
"Country" text,
"KEI" text,
"KI" text,
"Economic Incentive Regime" text,
"Innovation" text,
"Education" text,
"ICT" text,
"2008 Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many KEI catagories are l... | SELECT COUNT("KEI") FROM table_25649 WHERE "Economic Incentive Regime" = '2.56' | wikisql |
CREATE TABLE table_name_85 (
record VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of the champion in 2008?
| SELECT record FROM table_name_85 WHERE year = 2008 | sql_create_context |
CREATE TABLE table_name_36 (
location VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Location for the jiu-jitsu vs martial arts?
| SELECT location FROM table_name_36 WHERE event = "jiu-jitsu vs martial arts" | sql_create_context |
CREATE TABLE table_15187735_20 (
segment_c VARCHAR,
segment_d VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many segment C are there in the episode where segment D is bicycle tires?
| SELECT COUNT(segment_c) FROM table_15187735_20 WHERE segment_d = "Bicycle Tires" | sql_create_context |
CREATE TABLE claims_documents (
claim_id number,
document_type_code text,
created_by_staff_id number,
created_date number
)
CREATE TABLE customers (
customer_id number,
customer_details text
)
CREATE TABLE claims_processing_stages (
claim_stage_id number,
next_claim_stage_id number,
... | SELECT customer_details FROM customers EXCEPT SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id | spider |
CREATE TABLE table_61019 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Place has a Score of 71-70=141?
| SELECT "Place" FROM table_61019 WHERE "Score" = '71-70=141' | wikisql |
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 (SELECT COUNT(*) FROM person_info JOIN hz_info JOIN mzjzjlb 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 WHERE person_info.XM = '水光耀' AND mzjzjlb.JZKSRQ BETWEEN '2005-01-09' AND '2013-08-02') + (SELECT COUNT(*) FROM person_info J... | css |
CREATE TABLE table_name_68 (
artist VARCHAR,
number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which artist has a serial number of BOONCD1?
| SELECT artist FROM table_name_68 WHERE number = "booncd1" | sql_create_context |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight_stop (
flight_id int,
stop... | 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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALL... | atis |
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 d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'chr lym leuk w rmsion' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'chr lym leuk w rmsion' | mimic_iii |
CREATE TABLE table_name_76 (
result VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game that was attended by 72,703 people?
| SELECT result FROM table_name_76 WHERE attendance = "72,703" | sql_create_context |
CREATE TABLE table_4902 (
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the runner-up for Ilhwa Chunma?
| SELECT "Runner-up" FROM table_4902 WHERE "Winner" = 'ilhwa chunma' | wikisql |
CREATE TABLE table_name_96 (
team VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wins of 0 involves what team?
| SELECT team FROM table_name_96 WHERE wins = 0 | sql_create_context |
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 Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT T1.Code, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | nvbench |
CREATE TABLE table_6377 (
"Year" text,
"Team" text,
"Attempts" text,
"Completions" text,
"Completion %" text,
"Yards" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which Completion % has a Yards of 2,175?
| SELECT "Completion %" FROM table_6377 WHERE "Yards" = '2,175' | wikisql |
CREATE TABLE table_13524 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text,
"Year Joined" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total... | SELECT COUNT("Enrollment") FROM table_13524 WHERE "# / County" = '57 noble' AND "IHSAA Class" = 'aa' | wikisql |
CREATE TABLE table_name_86 (
place INTEGER,
units_sold_in_the_uk VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Of the games that sold 321,000 units in the UK, what is their average place?
| SELECT AVG(place) FROM table_name_86 WHERE units_sold_in_the_uk = "321,000" | sql_create_context |
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.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Other%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_c... | advising |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT Name, Code FROM Products WHERE Price BETWEEN 60 AND 120 | nvbench |
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Plays_Games (
S... | SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName ORDER BY SportName DESC | nvbench |
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
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,
... | 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 = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALL... | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicare" AND diagnoses.long_title = "Iatrogenic cerebrovascular infarction or hemorrhage" | mimicsql_data |
CREATE TABLE table_63364 (
"Name" text,
"Network" text,
"Owner" text,
"Launch date" text,
"Channel ( BKK )" text,
"Broadcasting area" text,
"Transmitted area" text,
"Broadcasting hours" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Name" FROM table_63364 WHERE "Channel ( BKK )" = '29 (uhf)' | wikisql |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE date_day ... | 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 = 'BALTIMORE' AND date_day.day_number = 24 AND date_day.month_number = 5 AND... | atis |
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 varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varc... | SELECT JOB_ID, COUNT(JOB_ID) FROM employees WHERE SALARY > (SELECT MAX(SALARY) FROM employees WHERE JOB_ID = 'PU_MAN') GROUP BY JOB_ID ORDER BY COUNT(JOB_ID) DESC | nvbench |
CREATE TABLE table_15971 (
"Formula" text,
"Notation" text,
"T c (K)" real,
"No. of Cu-O planes in unit cell" real,
"Crystal structure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the formula tl 2 ba 2 cuo 6?
| SELECT "No. of Cu-O planes in unit cell" FROM table_15971 WHERE "Formula" = 'Tl 2 Ba 2 CuO 6' | wikisql |
CREATE TABLE table_40063 (
"Year" real,
"Venue" text,
"City" text,
"State" text,
"Host" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the city that is located in California when the year is greater than 2009?
| SELECT "City" FROM table_40063 WHERE "State" = 'california' AND "Year" > '2009' | wikisql |
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_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'serum trans... | mimic_iii |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "16" AND diagnoses.short_title = "Staph pneumonia NEC" | mimicsql_data |
CREATE TABLE ORDER_ITEMS (
Other_Item_Details VARCHAR,
Product_ID VARCHAR
)
CREATE TABLE Products (
Product_ID VARCHAR,
Product_price INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the order details of the products with price higher than 20... | SELECT T1.Other_Item_Details FROM ORDER_ITEMS AS T1 JOIN Products AS T2 ON T1.Product_ID = T2.Product_ID WHERE T2.Product_price > 2000 | sql_create_context |
CREATE TABLE table_name_59 (
bronze INTEGER,
total VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bronze has a Total of 11, and a Silver smaller than 6?
| SELECT MAX(bronze) FROM table_name_59 WHERE total = 11 AND silver < 6 | sql_create_context |
CREATE TABLE table_67928 (
"Wins" real,
"Draws" real,
"Losses" real,
"Goal difference" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of draws that have a total of 1 and a goal difference of 2:0?
| SELECT AVG("Draws") FROM table_67928 WHERE "Total" = '1' AND "Goal difference" = '2:0' | wikisql |
CREATE TABLE table_5931 (
"Country" text,
"Project Name" text,
"Year startup" text,
"Operator" text,
"Peak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name of the project that peaked at 40 and was in the USA?
| SELECT "Project Name" FROM table_5931 WHERE "Peak" = '40' AND "Country" = 'usa' | wikisql |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'prescriptions' AND cost.event_id IN (SELECT prescriptions.row_id FROM prescriptions WHERE prescriptions.drug = 'clonidine tts 1 patch') | mimic_iii |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | 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-1337')) AND DATETIME(microlab.culturetakentime) >= DATETIME(CURRENT_TIME()... | eicu |
CREATE TABLE table_25037577_1 (
year VARCHAR,
high_school_principal VARCHAR,
superintendent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years was lynn muscarella the high school principal and charlie wiltse the superintendent?
| SELECT COUNT(year) FROM table_25037577_1 WHERE high_school_principal = "Lynn Muscarella" AND superintendent = "Charlie Wiltse" | sql_create_context |
CREATE TABLE mzb (
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 COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_ID = '36587624' AND t_kc22.STA_DATE BETWEEN '2007-08-26' AND '2014-09-01' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.PERSON_ID = '3... | css |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
Owner... | SELECT Q.OwnerUserId AS "user_link", COUNT(*) AS Count FROM Posts AS Q, Posts AS A, Posts AS AA WHERE A.ParentId = Q.Id AND Q.OwnerUserId > 0 AND A.OwnerUserId > 0 AND AA.OwnerUserId > 0 AND Q.AcceptedAnswerId = AA.Id AND A.OwnerUserId = Q.OwnerUserId AND AA.OwnerUserId != Q.OwnerUserId GROUP BY Q.OwnerUserId ORDER BY ... | sede |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | SELECT Id AS "post_link", LENGTH(Body) AS length, Score FROM Posts WHERE OwnerUserId = '##UserId##' ORDER BY length DESC, Score | sede |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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 te... | SELECT (SELECT COUNT(*) FROM person_info JOIN hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM A... | css |
CREATE TABLE table_29475589_3 (
episode_title VARCHAR,
no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 22 is the number what is the episode title?
| SELECT episode_title FROM table_29475589_3 WHERE no = 22 | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.