instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_79726 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score from September 15 that has the Indians as the opponent?
| SELECT "Score" FROM table_79726 WHERE "Opponent" = 'indians' AND "Date" = 'september 15' | wikisql |
CREATE TABLE table_2668254_22 (
incumbent VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent when the candidate was william drayton (j)?
| SELECT incumbent FROM table_2668254_22 WHERE candidates = "William Drayton (J)" | 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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '16747082' AND t_kc21.MED_SER_ORG_NO = '7283689' AND t_kc21.IN_DIAG_DIS_NM LIKE '%失眠%' | css |
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
c... | SELECT Building, COUNT(*) FROM Faculty GROUP BY Building ORDER BY Building | nvbench |
CREATE TABLE table_1430913_1 (
height_from_sea_level_in_meters VARCHAR,
trekking_route VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- if 22km is the trekking route what is height from sea level in meters?
| SELECT height_from_sea_level_in_meters FROM table_1430913_1 WHERE trekking_route = "22km" | sql_create_context |
CREATE TABLE table_72440 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the epis... | SELECT "Written by" FROM table_72440 WHERE "U.S. viewers (millions)" = '1.83' | wikisql |
CREATE TABLE table_name_91 (
qual_1 VARCHAR,
team VARCHAR,
best VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Qual 1 has a Team of team player's, and a Best of 58.405?
| SELECT qual_1 FROM table_name_91 WHERE team = "team player's" AND best = "58.405" | sql_create_context |
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, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Code DESC | nvbench |
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE dataset (
datasetid int,
datase... | SELECT DISTINCT dataset.datasetid FROM dataset, keyphrase, paperdataset, paperkeyphrase WHERE keyphrase.keyphrasename = 'textual entailment' AND paperdataset.datasetid = dataset.datasetid AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paperkeyphrase.paperid = paperdataset.paperid | scholar |
CREATE TABLE table_22597626_6 (
championship VARCHAR,
year VARCHAR,
surface VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the championship for 1980 hard surface
| SELECT championship FROM table_22597626_6 WHERE year = 1980 AND surface = "Hard" | sql_create_context |
CREATE TABLE table_20281 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many overs bowled for muttiah muralitharan?
| SELECT COUNT("Overs Bowled") FROM table_20281 WHERE "Name" = 'Muttiah Muralitharan' | wikisql |
CREATE TABLE table_name_29 (
constructor VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who constructed the car that had a grid of 6?
| SELECT constructor FROM table_name_29 WHERE grid = "6" | sql_create_context |
CREATE TABLE table_name_95 (
position VARCHAR,
round VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does the player from Oklahoma who was drafted in round 7 play?
| SELECT position FROM table_name_95 WHERE round = 7 AND college = "oklahoma" | sql_create_context |
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.admityear < "2155" AND diagnoses.long_title = "Sinoatrial node dysfunction" | mimicsql_data |
CREATE TABLE table_name_78 (
date VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was there a game at Kardinia Park?
| SELECT date FROM table_name_78 WHERE venue = "kardinia park" | sql_create_context |
CREATE TABLE table_203_377 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long is the list of countries that won any medals ?
| SELECT COUNT("nation") FROM table_203_377 WHERE "total" > 0 | squall |
CREATE TABLE table_49710 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average points for someone who has played more than 10?
| SELECT AVG("Points") FROM table_49710 WHERE "Played" > '10' | wikisql |
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 SUM(t_kc22.AMOUNT) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '褚欣合' AND t_kc21.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2005-12-03' AND '2016-10-19' AND t_kc22.MED_INV_ITEM_TYPE = '手术费' | css |
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text... | SELECT COUNT(DISTINCT gtype) FROM video_games | spider |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE a... | SELECT microlab.organism 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 NOT patient.hospitaldischargetime IS NULL ORDER BY patient.... | eicu |
CREATE TABLE table_63698 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the place when less than 1 point is scored?
| SELECT AVG("Place") FROM table_63698 WHERE "Points" < '1' | wikisql |
CREATE TABLE table_17913 (
"Team" text,
"Location" text,
"Stadium" text,
"Founded" real,
"Joined" real,
"Head Coach" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is Bluetongue Stadium located?
| SELECT "Location" FROM table_17913 WHERE "Stadium" = 'Bluetongue Stadium' | wikisql |
CREATE TABLE table_35945 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Score of 106 112?
| SELECT "Date" FROM table_35945 WHERE "Score" = '106–112' | wikisql |
CREATE TABLE table_15158 (
"Game" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a Home of detroit on april 22?
| SELECT "Visitor" FROM table_15158 WHERE "Home" = 'detroit' AND "Date" = 'april 22' | wikisql |
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX ... | SELECT mzjzjlb.SG, mzjzjlb.TZ, mzjzjlb.TW, mzjzjlb.SSY, mzjzjlb.SZY, mzjzjlb.XL, mzjzjlb.HXPLC, mzjzjlb.ML FROM mzjzjlb WHERE mzjzjlb.JZLSH = '08031682316' | css |
CREATE TABLE table_39595 (
"Name" text,
"Dist. from Origin" text,
"Dist. from Terminus" text,
"Speed Limit" text,
"Location (all in Nagano )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location has the name of Sakakita BS?
| SELECT "Location (all in Nagano )" FROM table_39595 WHERE "Name" = 'sakakita bs' | wikisql |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time... | SELECT Id, DisplayName, Reputation, (SELECT COUNT(*) FROM Posts WHERE Posts.OwnerUserId = Users.Id AND Posts.PostTypeId = 1) AS num_questions, (SELECT COUNT(*) FROM Posts WHERE Posts.OwnerUserId = Users.Id AND Posts.PostTypeId = 2) AS num_answers, (SELECT COUNT(*) FROM Posts WHERE Posts.OwnerUserId = Users.Id AND Posts... | sede |
CREATE TABLE table_2668374_18 (
party VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many parties were first elected in 1805?
| SELECT COUNT(party) FROM table_2668374_18 WHERE first_elected = "1805" | sql_create_context |
CREATE TABLE table_204_291 (
id number,
"rank" number,
"name" text,
"nation" text,
"cp" number,
"fp" number,
"points" number,
"placings" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many women from the united states competed in t... | SELECT COUNT("name") FROM table_204_291 WHERE "nation" = 'united states' | squall |
CREATE TABLE table_14102 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"Hometown/School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown of Mike White?
| SELECT "Hometown/School" FROM table_14102 WHERE "Position" = 'of' AND "Player" = 'mike white' | wikisql |
CREATE TABLE table_15511178_3 (
winning_driver VARCHAR,
rd VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many winners were in round 8
| SELECT COUNT(winning_driver) FROM table_15511178_3 WHERE rd = 8 | sql_create_context |
CREATE TABLE table_69555 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the decile sum with a roll smaller than 25, and franz josef area?
| SELECT SUM("Decile") FROM table_69555 WHERE "Roll" < '25' AND "Area" = 'franz josef' | wikisql |
CREATE TABLE table_72668 (
"#" real,
"Minnesota River Conference" text,
"Records" text,
"Pct." text,
"MRC Championships" real,
"Solo" real,
"Co-Champions" real,
"State Champions" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are th... | SELECT "Records" FROM table_72668 WHERE "Pct." = '.464' | wikisql |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM 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 = '94991143' | css |
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 jyjgzbb.JCZBMC, jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM jybgb JOIN jyjgzbb ON jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE jybgb.JZLSH = '18545084468' AND jyjgzbb.JCRXM LIKE '曹%' | css |
CREATE TABLE table_name_16 (
week_2 VARCHAR,
week_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Week 2 has a Week 3 of casey mae?
| SELECT week_2 FROM table_name_16 WHERE week_3 = "casey mae" | sql_create_context |
CREATE TABLE table_18489 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what district was incumbent first elected in 1938?
| SELECT "District" FROM table_18489 WHERE "First elected" = '1938' | wikisql |
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area... | SELECT Year, COUNT(Year) FROM wine WHERE Price > 100 GROUP BY Year ORDER BY Year | nvbench |
CREATE TABLE list (
firstname VARCHAR,
lastname VARCHAR,
classroom VARCHAR
)
CREATE TABLE teachers (
classroom VARCHAR,
firstname VARCHAR,
lastname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all students taught by MARROTTE KIRK. Out... | SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "MARROTTE" AND T2.lastname = "KIRK" | sql_create_context |
CREATE TABLE table_name_98 (
result VARCHAR,
competition VARCHAR,
goal VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score in a 2002 fifa world cup qualification that was less than 10?
| SELECT result FROM table_name_98 WHERE competition = "2002 fifa world cup qualification" AND goal < 10 | sql_create_context |
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 SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM, AMOUNT FROM t_kc22 WHERE MED_CLINIC_ID = '14727892060' AND SOC_SRT_DIRE_NM LIKE '%蓝%' | css |
CREATE TABLE table_15921 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which count... | SELECT "Country ( endonym )" FROM table_15921 WHERE "Official or native language(s) (alphabet/script)" = 'Irish English' | wikisql |
CREATE TABLE table_79331 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is ranked #2?
| SELECT "Country" FROM table_79331 WHERE "Rank" = '2' | wikisql |
CREATE TABLE table_name_67 (
year VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had a score of 0.586?
| SELECT COUNT(year) FROM table_name_67 WHERE score = "0.586" | sql_create_context |
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARC... | SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID | nvbench |
CREATE TABLE table_64452 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How long did Witold Latoszek character lasted?
| SELECT "Duration" FROM table_64452 WHERE "Character" = 'witold latoszek' | wikisql |
CREATE TABLE table_27450976_1 (
written_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people wrote the episode with a production code of 2j5507?
| SELECT COUNT(written_by) FROM table_27450976_1 WHERE production_code = "2J5507" | sql_create_context |
CREATE TABLE table_name_48 (
opponent_in_the_final VARCHAR,
outcome VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Opponent in the final after 1983 with an Outcome of runner-up?
| SELECT opponent_in_the_final FROM table_name_48 WHERE outcome = "runner-up" AND date > 1983 | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" | mimicsql_data |
CREATE TABLE table_1036 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which players have made a total of 12 extra points?... | SELECT "Player" FROM table_1036 WHERE "Extra points" = '12' | wikisql |
CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
D... | SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations GROUP BY Location_Code ORDER BY COUNT(Date_in_Location_From) DESC | nvbench |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
countr... | SELECT COUNT(*) > 0 FROM course, program, program_course WHERE course.department = 'DESCI' AND course.number = 995 AND program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id | advising |
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_AMOUT FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '17535786353' | css |
CREATE TABLE table_1434788_5 (
incumbent VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent in the Ohio 16 district?
| SELECT incumbent FROM table_1434788_5 WHERE district = "Ohio 16" | sql_create_context |
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 Founder, SUM(Revenue) FROM Manufacturers GROUP BY Founder ORDER BY SUM(Revenue) | nvbench |
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.IN_DIAG_DIS_CD, t_kc21.IN_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_NM = '鲁建修' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 4854.45) | css |
CREATE TABLE table_18143210_2 (
number_of_seasons_in_top_division INTEGER,
first_season_in_top_division VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many 'number of seasons in top division' were played if the 'first season in top division' games is in ... | SELECT MAX(number_of_seasons_in_top_division) FROM table_18143210_2 WHERE first_season_in_top_division = "1990-91" | sql_create_context |
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.icd9_code = "3799" | mimicsql_data |
CREATE TABLE table_40244 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What call sign has ERP W greater than 197?
| SELECT "Call sign" FROM table_40244 WHERE "ERP W" > '197' | wikisql |
CREATE TABLE table_77694 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did the away team score when playing Footsc... | SELECT "Away team score" FROM table_77694 WHERE "Home team" = 'footscray' | wikisql |
CREATE TABLE table_name_70 (
result VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the game against the Indianapolis Colts?
| SELECT result FROM table_name_70 WHERE opponent = "indianapolis colts" | sql_create_context |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
... | SELECT p.Id AS "post_link", c.Text FROM Posts AS p JOIN Comments AS c ON c.PostId = p.Id WHERE p.OwnerUserId = @UserId AND NOT c.UserId = @UserId | sede |
CREATE TABLE table_19118 (
"#" real,
"Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d" text,
"Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd" text,
"Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" text,
"Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1" text,
"Malayalam \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u... | SELECT "Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" FROM table_19118 WHERE "Mongolian" = 'Хонгорцог' | wikisql |
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 mzjzjlb_jybgb (
YLJGDM_MZJZJLB te... | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM ... | css |
CREATE TABLE player (
School_ID VARCHAR
)
CREATE TABLE school (
Location VARCHAR,
School_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the locations of schools that have more than 1 player.
| SELECT T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T1.School_ID HAVING COUNT(*) > 1 | sql_create_context |
CREATE TABLE table_61893 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Alinna D Penta was the cyber girl in week 3, who was the cyber girl in week 1?
| SELECT "Week 1" FROM table_61893 WHERE "Week 3" = 'alinna d penta' | wikisql |
CREATE TABLE table_203_404 (
id number,
"pennant\nnumber" text,
"name" text,
"builder" text,
"laid down" text,
"launched" text,
"completed" text,
"fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- total number of j class ships complet... | SELECT COUNT(*) FROM table_203_404 WHERE NOT "completed" IS NULL | squall |
CREATE TABLE table_name_48 (
total_votes INTEGER,
_percentage_of_popular_vote VARCHAR,
_number_of_seats_won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats... | SELECT MAX(total_votes) FROM table_name_48 WHERE _percentage_of_popular_vote = "0.86%" AND _number_of_seats_won > 0 | sql_create_context |
CREATE TABLE Ref_Transaction_Types (
transaction_type_description VARCHAR,
transaction_type_code VARCHAR
)
CREATE TABLE TRANSACTIONS (
transaction_type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the description of the transaction type that... | SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1 | sql_create_context |
CREATE TABLE table_name_9 (
set_3 VARCHAR,
set_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Set 3 has a Set 1 of 25 20?
| SELECT set_3 FROM table_name_9 WHERE set_1 = "25–20" | sql_create_context |
CREATE TABLE time_slot (
time_slot_id text,
day text,
start_hr number,
start_min number,
end_hr number,
end_min number
)
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
CREATE TABLE advisor (
s_id text,
i_id te... | SELECT course_id FROM section WHERE semester = 'Fall' AND year = 2009 EXCEPT SELECT course_id FROM section WHERE semester = 'Spring' AND year = 2010 | spider |
CREATE TABLE table_28565 (
"Finished" text,
"Performance Order" real,
"Percentage of votes" text,
"Artist" text,
"Act" text,
"Semi Finals Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the performance order for 2.15%
| SELECT "Performance Order" FROM table_28565 WHERE "Percentage of votes" = '2.15%' | wikisql |
CREATE TABLE table_35884 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many starts have a year prior to 2012, and team penske as the team, with a finish great... | SELECT SUM("Start") FROM table_35884 WHERE "Year" < '2012' AND "Team" = 'team penske' AND "Finish" > '27' | wikisql |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_typ... | SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20898 AND admissions.dischtime IS NULL) AND NOT transfers.careunit IS NULL ORDER BY transfers.intime LIMIT 1 | mimic_iii |
CREATE TABLE table_30060356_3 (
gt4_cup_winner VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all GT4 Cup winners played on the Spa-Francorchamps Report.
| SELECT gt4_cup_winner FROM table_30060356_3 WHERE circuit = "Spa-Francorchamps Report" | sql_create_context |
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.CKZFWXX, jyjgzbb.CKZFWSX FROM txmzjzjlb JOIN jybgb JOIN jyjgzbb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE txmzjzjlb.JZZDBM = 'Y37.102' AND jyjgzbb.JCZBMC = '转铁蛋白' UNION SELECT jyjgzbb.CKZFWXX,... | css |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2180" AND procedures.icd9_code = "4513" | mimicsql_data |
CREATE TABLE table_name_12 (
big__ INTEGER,
total VARCHAR,
micro__10ha_ VARCHAR,
department VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potos , and a Total smaller than 16,... | SELECT MAX(big__) > 500 AS ha_ FROM table_name_12 WHERE micro__10ha_ > 940 AND department = "potosí" AND total < 16 OFFSET 240 | sql_create_context |
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 prescriptions.formulary_drug_cd, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Mult" | mimicsql_data |
CREATE TABLE table_name_6 (
venue VARCHAR,
competition VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the game that was friendly and resulted in 2-3?
| SELECT venue FROM table_name_6 WHERE competition = "friendly" AND result = "2-3" | sql_create_context |
CREATE TABLE table_name_25 (
evening_gown INTEGER,
swimsuit VARCHAR,
interview VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least evening gown for interview more than 7.97 and swimsui of 7.24
| SELECT MIN(evening_gown) FROM table_name_25 WHERE swimsuit = 7.24 AND interview > 7.97 | sql_create_context |
CREATE TABLE table_name_22 (
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team score for Footscray?
| SELECT home_team AS score FROM table_name_22 WHERE home_team = "footscray" | sql_create_context |
CREATE TABLE table_35268 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date shows the Outcome of winner against ni... | SELECT "Date" FROM table_35268 WHERE "Outcome" = 'winner' AND "Opponents in the final" = 'nikola fraňková carmen klaschka' | wikisql |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT AVG(t_kc24.PER_ACC_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 = '8773150' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2005-06-09' AND '2006-02-24' | css |
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 MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '16747082' AND MED_SER_ORG_NO = '7283689' AND IN_DIAG_DIS_NM LIKE '%失眠%' | css |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id ... | SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'dental caries nec') AND DATETIME(diagnoses_icd.charttime) <= DATETIME(CURRENT_TIME(), '-1 year') GROUP... | mimic_iii |
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_ca... | SELECT Fname, COUNT(Fname) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' GROUP BY Fname | nvbench |
CREATE TABLE table_48517 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What w... | SELECT "Location Attendance" FROM table_48517 WHERE "Date" = 'january 19' | 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 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2200" AND procedures.long_title = "Angiocardiography of right heart structures" | mimicsql_data |
CREATE TABLE table_16388047_1 (
time VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the time for saturday 4 march 1995
| SELECT time FROM table_16388047_1 WHERE date = "Saturday 4 March 1995" | sql_create_context |
CREATE TABLE table_name_3 (
opened INTEGER,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opened has a Category of diesel light rail?
| SELECT MAX(opened) FROM table_name_3 WHERE category = "diesel light rail" | sql_create_context |
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 jyjgzbb (
BGDH text,
BGRQ tim... | SELECT jybgb.BGDH FROM hz_info JOIN wdmzjzjlb JOIN jybgb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '53573541' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FRO... | css |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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,
lan... | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 90663 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'levetiracetam' | mimic_iii |
CREATE TABLE table_name_90 (
code_name VARCHAR,
distribution VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- with distribution of 20.6% what is the code name?
| SELECT code_name FROM table_name_90 WHERE distribution = "20.6%" | sql_create_context |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT * FROM hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.mzjzjlb... | css |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
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 te... | 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 = '4198073' AND jybgb.BGRQ BETWEEN '2005-01-17' AND '2012-01-10' GROUP BY jybgb.KSBM HAVING COUNT(*) <= 30) AS T | css |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number... | SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = '0.9%nacl 1,000 ml' | eicu |
CREATE TABLE table_28822 (
"Category" text,
"Player" text,
"Games played" real,
"Totals" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average for 23 games played
| SELECT "Average" FROM table_28822 WHERE "Games played" = '23' | wikisql |
CREATE TABLE table_22839669_1 (
championship VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What championship had a final score of 6 4, 6 2, 6 2?
| SELECT championship FROM table_22839669_1 WHERE score_in_the_final = "6–4, 6–2, 6–2" | sql_create_context |
CREATE TABLE table_39862 (
"SEASON" text,
"FIRST" text,
"SECOND" text,
"THIRD" text,
"FOURTH" text,
"FIFTH" text,
"SIXTH" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team placed second during the season where Western Australia placed... | SELECT "SECOND" FROM table_39862 WHERE "FIFTH" = 'western australia' AND "SIXTH" = 'south australia' AND "FOURTH" = 'tasmania' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.