instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_71978 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tournament for grass surface and opponent in the final being paul baccanello
| SELECT "Tournament" FROM table_71978 WHERE "Surface" = 'grass' AND "Opponent in the final" = 'paul baccanello' | wikisql |
CREATE TABLE table_name_22 (
opposition VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opposition in the game on July 29?
| SELECT opposition FROM table_name_22 WHERE date = "july 29" | sql_create_context |
CREATE TABLE table_15173 (
"Stage" text,
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"Race Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the distance of the course of stage 4?
| SELECT "Distance" FROM table_15173 WHERE "Stage" = '4' | wikisql |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT qtb.MED_CLINIC_ID FROM qtb WHERE qtb.MED_SER_ORG_NO = '0869256' AND qtb.OUT_DIAG_DIS_NM = '急性支气管炎' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.MED_SER_ORG_NO = '0869256' AND gyb.OUT_DIAG_DIS_NM = '急性支气管炎' UNION S... | 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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_CD, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '9645673' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_CD | css |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_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 = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJG... | css |
CREATE TABLE table_67651 (
"Res." text,
"Record" text,
"Opponent" text,
"Type" text,
"Rd., Time" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the match with a win result and Michael Gomez as the opponent?
| SELECT "Type" FROM table_67651 WHERE "Res." = 'win' AND "Opponent" = 'michael gomez' | wikisql |
CREATE TABLE table_name_78 (
Severe INTEGER,
tropical_cyclones VARCHAR,
tropical_lows VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of severe tropical cyclones when there are 10 tropical cyclones and 14 tropical lows?
| SELECT MAX(Severe) AS tropical_cyclones FROM table_name_78 WHERE tropical_cyclones = 10 AND tropical_lows = 14 | sql_create_context |
CREATE TABLE table_204_804 (
id number,
"version" text,
"length" text,
"album" text,
"remixed by" text,
"year" number,
"comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many songs were remixed by garraund ?
| SELECT COUNT(*) FROM table_204_804 WHERE "remixed by" = 'joachim garraud' | squall |
CREATE TABLE table_name_71 (
change VARCHAR,
share VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the change with share of 2.9%
| SELECT change FROM table_name_71 WHERE share = "2.9%" | sql_create_context |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
... | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'digox... | eicu |
CREATE TABLE table_name_41 (
district VARCHAR,
party VARCHAR,
results VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district is the incumbent Republican and the incumbent retired to run for governor democratic gain?
| SELECT district FROM table_name_41 WHERE party = "republican" AND results = "retired to run for governor democratic gain" | sql_create_context |
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE va... | SELECT MAX(STU_GPA), AVG(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE | nvbench |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
U... | SELECT p1.Id AS "post_link", p1.*, p2.Id AS "post_link", p2.Id AS "post_link", p2.Score AS "p2Score", p2.Body AS "p2Body", p2.OwnerUserId AS "p2UserId", p2.OwnerDisplayName AS "p2OwnerDisplayName", p2.CommentCount AS "p2CommentCount" FROM Posts AS p1, Posts AS p2 WHERE p1.ParentId IS NULL AND NOT p1.AcceptedAnswerId IS... | sede |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT demographic.marital_status, demographic.language FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_33447 (
"Name" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time was the fastest lap during Stoh's 200 in 1982?
| SELECT "Fastest Lap" FROM table_33447 WHERE "Name" = 'stoh''s 200' | wikisql |
CREATE TABLE table_train_89 (
"id" int,
"chronically_uncontrolled_hypertension" bool,
"uncontrolled_diabetes" bool,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"geriatric_depression_scale_gds" int,
"major_depression" bool,... | SELECT * FROM table_train_89 WHERE renal_disease = 1 | criteria2sql |
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 HourOfDay, COUNT(*) AS PostCount FROM (SELECT TIME_TO_STR(DATE(CreationDate, '##UTCTimeShift## hh'), '%I') AS HourOfDay FROM Posts WHERE OwnerUserId = '##UserId##') AS sub GROUP BY HourOfDay ORDER BY HourOfDay | sede |
CREATE TABLE table_1341930_5 (
party VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of party with the incubent james william trimble
| SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = "James William Trimble" | sql_create_context |
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 SUM('4') AS "title", SUM('5') AS "body", SUM('6') AS "tag", COUNT(*) AS "revtot" FROM (SELECT RevisionGUID, '4', '5', '6' FROM (SELECT RevisionGUID, PostHistoryTypeId FROM PostHistory AS ph INNER JOIN Users AS u ON u.Id = ph.UserId WHERE PostHistoryTypeId IN (4, 5, 6) AND AccountId = @accountid) AS data PIVOT(CO... | sede |
CREATE TABLE table_21725 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many verbs mean to grow, to produce
| SELECT COUNT("Part 1") FROM table_21725 WHERE "Verb meaning" = 'to grow, to produce' | wikisql |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Tags (
Id number,
TagName text,
Cou... | SELECT SUM(LENGTH(Body) - LENGTH(REPLACE(Body, ' ', '')) + 1) AS NumbofWords FROM Posts AS p WHERE p.OwnerUserId = '##UserId##' | sede |
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 comment_instructor (
instructor_id int,
student_id int,
score int,
... | SELECT COUNT(*) > 0 FROM course AS COURSE_0, course AS COURSE_1, course_offering AS COURSE_OFFERING_0, course_offering AS COURSE_OFFERING_1, course_prerequisite WHERE COURSE_OFFERING_1.semester = COURSE_OFFERING_0.semester AND COURSE_0.course_id = COURSE_OFFERING_0.course_id AND COURSE_0.department = 'MUSTHTRE' AND COU... | advising |
CREATE TABLE table_77585 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time of the rider with a 398cc yamaha?
| SELECT "Time" FROM table_77585 WHERE "Team" = '398cc yamaha' | wikisql |
CREATE TABLE table_23122988_1 (
comedians VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the comedians during the episode located in Birmingham Hippodrome?
| SELECT comedians FROM table_23122988_1 WHERE location = "Birmingham Hippodrome" | sql_create_context |
CREATE TABLE table_67097 (
"Player" text,
"Years" text,
"Games played" real,
"Goals allowed" real,
"Goals against average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average goals against average for those playing more than 78 games?... | SELECT AVG("Goals against average") FROM table_67097 WHERE "Games played" > '78' | wikisql |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varc... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Intercultural Drama%' OR course.description LIKE '%Intercultural Drama%' OR course.name LIKE '%I... | advising |
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
... | SELECT DISTINCT aircraft_code FROM aircraft WHERE aircraft_code = 'D9S' | atis |
CREATE TABLE SUBJECTS (
subject_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all the subject names.
| SELECT subject_name FROM SUBJECTS | sql_create_context |
CREATE TABLE table_18081 (
"Complete Series" text,
"Region 1" text,
"Region 2" text,
"Region 4" text,
"DVD Extras and Bonus Features" text,
"Number Of Discs" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the region 4 for the complete fifth... | SELECT "Region 4" FROM table_18081 WHERE "Complete Series" = 'The Complete Fifth Series' | wikisql |
CREATE TABLE table_24084 (
"Medal of Honor" text,
"Coast Guard Cross" text,
"Navy Cross" text,
"Distinguished Service Cross" text,
"Air Force Cross" text,
"Homeland Security Distinguished Service Medal" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Coast Guard Cross" FROM table_24084 WHERE "Distinguished Service Cross" = 'Navy Distinguished Service Medal' | wikisql |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT jybgb.BGDH FROM jybgb WHERE jybgb.JZLSH = '65133267001' AND NOT jybgb.KSMC LIKE '%影像%' | css |
CREATE TABLE player (
id number,
player_api_id number,
player_name text,
player_fifa_api_id number,
birthday text,
height number,
weight number
)
CREATE TABLE team_attributes (
id number,
team_fifa_api_id number,
team_api_id number,
date text,
buildupplayspeed number,
... | SELECT preferred_foot, COUNT(*) FROM player_attributes WHERE overall_rating > 80 GROUP BY preferred_foot | spider |
CREATE TABLE table_name_5 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was 2009, when 2001 was, 'not masters series'?
| SELECT 2009 FROM table_name_5 WHERE 2001 = "not masters series" | sql_create_context |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT COUNT(*) > 0 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 = 5828) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_item... | mimic_iii |
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
star... | SELECT DISTINCT course.department, course.name, course.number, program_course.workload FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE area.area LIKE '%theory%' AND program_course.workload < (SELECT MIN(PROGRAM_COURSEalias1.... | advising |
CREATE TABLE table_70029 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country had a film in 1993?
| SELECT "Country" FROM table_70029 WHERE "Year" = '1993' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
h... | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'agent specific therapy - beta blockers overdose' AND STRFTIME('%y', treatment.treatmenttime) = '2105' | eicu |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT prescriptions.formulary_drug_cd FROM prescriptions WHERE prescriptions.drug = "Phenylephrine" | mimicsql_data |
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 T2.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Price | nvbench |
CREATE TABLE table_name_98 (
name VARCHAR,
location VARCHAR,
entered_service VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is located in Angola and entered service in 1988?
| SELECT name FROM table_name_98 WHERE location = "angola" AND entered_service = "1988" | sql_create_context |
CREATE TABLE table_18305523_2 (
story_title VARCHAR,
artist_s VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the issue where the art was done by Barry Kitson and Farmer?
| SELECT story_title FROM table_18305523_2 WHERE artist_s = "Barry Kitson and Farmer" | sql_create_context |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE... | SELECT COUNT(*) AS QuestionCount, CAST(TIME_TO_STR(Posts.CreationDate, '%Y') AS INT) AS Year FROM Posts JOIN PostTags ON Posts.Id = PostTags.PostId JOIN Tags ON Tags.Id = PostTags.TagId WHERE Tags.TagName = 'hibernate' OR Tags.TagName = 'jpa' GROUP BY TIME_TO_STR(Posts.CreationDate, '%Y') ORDER BY Year DESC | sede |
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 * FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '4112809' AND t_kc21.IN_HOSP_DATE BETWEEN '2002-05-16' AND '2019-10-05' EXCEPT SELECT * FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '4112809' AND t_kc21.IN_HOSP_DATE BETWEEN '2002-05-16' AND '2019-10-05' AND t_kc21.MED_ORG_DEPT_NM = '小儿呼吸内科' | css |
CREATE TABLE table_41027 (
"Tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"Win %" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "2007" FROM table_41027 WHERE "2003" = '1r' | wikisql |
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 SALARY, DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | nvbench |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
Creati... | SELECT * FROM Posts WHERE Id = 1 | sede |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport 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, 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 = 'BOST... | atis |
CREATE TABLE table_15327 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chassis had 16 points?
| SELECT "Chassis" FROM table_15327 WHERE "Points" = '16' | wikisql |
CREATE TABLE table_38119 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home has 136-134 as the score?
| SELECT "Home" FROM table_38119 WHERE "Score" = '136-134' | wikisql |
CREATE TABLE table_name_47 (
home_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has Windy Hill as their home venue
| SELECT home_team AS score FROM table_name_47 WHERE venue = "windy hill" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,... | SELECT mzjzjlb.JZLSH 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 hz_info.YLJGDM = '9825569' AND mzjzjlb.JZKSMC LIKE '%性病%' | css |
CREATE TABLE table_23939 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of the votes in Tippah did Obama get?
| SELECT "Obama%" FROM table_23939 WHERE "County" = 'Tippah' | wikisql |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minu... | 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 = 'ATLANTA' AND date_day.day_number = 16 AND date_day.month_number = 6 AND d... | atis |
CREATE TABLE table_name_11 (
team_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1st leg of the Al Fahaheel Team 1?
| SELECT 1 AS st_leg FROM table_name_11 WHERE team_1 = "al fahaheel" | sql_create_context |
CREATE TABLE table_2562113_1 (
enrollment INTEGER,
nickname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the enrollment for the hawks?
| SELECT MAX(enrollment) FROM table_2562113_1 WHERE nickname = "Hawks" | sql_create_context |
CREATE TABLE table_54292 (
"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 home team played against Footscray as the a... | SELECT "Home team" FROM table_54292 WHERE "Away team" = 'footscray' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE zyjybgb (
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,
... | SELECT zyjybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN zyjybgb 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 WHERE hz_info.RYBH = '03485032' AND NOT zyjybgb.BGDH IN (SELECT jyjgzbb.BGDH FROM ... | css |
CREATE TABLE table_name_67 (
callsign VARCHAR,
on_air_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 4zr's callsign?
| SELECT callsign FROM table_name_67 WHERE on_air_id = "4zr" | 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 t_kc21.MED_ORG_DEPT_NM, AVG(t_kc24.OVE_PAY / t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '3761566' GROUP BY t_kc21.MED_ORG_DEPT_NM | css |
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | SELECT Date_of_Birth, Height FROM people ORDER BY Date_of_Birth | nvbench |
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
g... | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester IN ('SP', 'SU', 'SS') AND semester.semester_i... | advising |
CREATE TABLE employees (
id number,
last_name text,
first_name text,
title text,
reports_to number,
birth_date time,
hire_date time,
address text,
city text,
state text,
country text,
postal_code text,
phone text,
fax text,
email text
)
CREATE TABLE artists (... | SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.album_id GROUP BY T1.id HAVING COUNT(T1.id) > 10 | spider |
CREATE TABLE table_204_939 (
id number,
"year" number,
"chassis" text,
"engine" text,
"start" text,
"finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in how many years was the finish 7th ?
| SELECT COUNT("year") FROM table_204_939 WHERE "finish" = 7 | squall |
CREATE TABLE table_name_40 (
first_runner_up VARCHAR,
miss_maja_pilipinas VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What First runner-up has a Miss Maja Pilipinas of nanette prodigalidad?
| SELECT first_runner_up FROM table_name_40 WHERE miss_maja_pilipinas = "nanette prodigalidad" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT demographic.ethnicity FROM demographic WHERE demographic.subject_id = "55094" | mimicsql_data |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREAT... | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'vent rate')) AND DATETIME(cost.chargetime, 'start of year') = DATETI... | eicu |
CREATE TABLE table_31773 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the country for san juan
| SELECT "Country" FROM table_31773 WHERE "City" = 'san juan' | wikisql |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number 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, fare, flight, flight_fare 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... | atis |
CREATE TABLE restaurant_type (
restypeid number,
restypename text,
restypedescription text
)
CREATE TABLE visits_restaurant (
stuid number,
resid number,
time time,
spent number
)
CREATE TABLE restaurant (
resid number,
resname text,
address text,
rating number
)
CREATE TA... | SELECT restypedescription FROM restaurant_type WHERE restypename = "Sandwich" | spider |
CREATE TABLE university (
school_id number,
school text,
location text,
founded number,
affiliation text,
enrollment number,
nickname text,
primary_conference text
)
CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text... | SELECT COUNT(DISTINCT school_id) FROM basketball_match | spider |
CREATE TABLE table_8595 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did Newport RFC ... | SELECT "Points" FROM table_8595 WHERE "Club" = 'newport rfc' | wikisql |
CREATE TABLE table_name_90 (
locality VARCHAR,
ages VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Locality of the Penarth Group School for Ages 8-16?
| SELECT locality FROM table_name_90 WHERE ages = "8-16" AND school = "penarth group school" | sql_create_context |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
fligh... | 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 = 'LAS VEGAS' AND date_day.day_number = 27 AND date_day.month_number = 8 AND... | atis |
CREATE TABLE table_name_76 (
cores VARCHAR,
l3_cache VARCHAR,
model_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860?
| SELECT cores FROM table_name_76 WHERE l3_cache = "8 mb" AND model_number = "core i7-860" | sql_create_context |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtim... | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 's/p exploratory laparoscopy' AND STRFTIM... | eicu |
CREATE TABLE table_204_779 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name a station that shows sports but is not televisa .
| SELECT "network name" FROM table_204_779 WHERE "programming type" = 'sports' AND "owner" <> 'televisa' | squall |
CREATE TABLE table_name_15 (
system VARCHAR,
actual_version VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which System has an Actual Version 9.0?
| SELECT system FROM table_name_15 WHERE actual_version = "9.0" | sql_create_context |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2168" AND procedures.short_title = "Int insert lead in vent" | mimicsql_data |
CREATE TABLE table_1277350_3 (
saturday_shani__saturn_ VARCHAR,
sunday_surya__the_sun_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the system where Sunday is ny yitru kizhamai, what is Saturday?
| SELECT saturday_shani__saturn_ FROM table_1277350_3 WHERE sunday_surya__the_sun_ = "ஞாயிற்று கிழமை Nyāyitru kizhamai" | 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.gender, demographic.dischtime FROM demographic WHERE demographic.subject_id = "55094" | mimicsql_data |
CREATE TABLE table_2701851_2 (
title VARCHAR,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of episode # 10a?
| SELECT title FROM table_2701851_2 WHERE no_in_series = "10a" | sql_create_context |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 WHERE demographic.admityear < "2154" AND diagnoses.short_title = "Urinary incontinence NOS" | mimicsql_data |
CREATE TABLE table_name_6 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score on september 20?
| SELECT score FROM table_name_6 WHERE date = "september 20" | sql_create_context |
CREATE TABLE table_name_10 (
res VARCHAR,
method VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata?
| SELECT res FROM table_name_10 WHERE method = "decision (unanimous)" AND opponent = "wataru sakata" | sql_create_context |
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program (
program_id int,
name v... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.end_time <= '12:00:00' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semest... | advising |
CREATE TABLE table_9802 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score on Jan 22, 1995 when the margin of victory was 1 strok... | SELECT "Winning score" FROM table_9802 WHERE "Margin of victory" = '1 stroke' AND "Date" = 'jan 22, 1995' | wikisql |
CREATE TABLE table_18254488_2 (
uefa_champions_league INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of uefa champion leagues?
| SELECT MAX(uefa_champions_league) FROM table_18254488_2 | sql_create_context |
CREATE TABLE table_79469 (
"Event" text,
"Class" text,
"Gold" text,
"Silver" text,
"Bronze" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the event when gold is darren kenny great britain (gbr)?
| SELECT "Event" FROM table_79469 WHERE "Gold" = 'darren kenny great britain (gbr)' | wikisql |
CREATE TABLE users (
user_id number,
role_code text,
user_name text,
user_login text,
password text
)
CREATE TABLE images (
image_id number,
image_alt_text text,
image_name text,
image_url text
)
CREATE TABLE roles (
role_code text,
role_description text
)
CREATE TABLE fun... | SELECT AVG(access_count) FROM documents | spider |
CREATE TABLE table_61535 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population of the parish that has an area of 304.06?
| SELECT SUM("Population") FROM table_61535 WHERE "Area km 2" = '304.06' | wikisql |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_nam... | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2536) AND prescriptions.drug IN ('furosemide', 'vial', 'zolpidem tartrate') AND STRFTIME('%y-%m', prescriptions.startdate) >= '2104-03' | mimic_iii |
CREATE TABLE table_69087 (
"Game" real,
"Date" text,
"Score" text,
"Location" text,
"Time" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of people who attended the game later than game 6?
| SELECT COUNT("Attendance") FROM table_69087 WHERE "Game" > '6' | wikisql |
CREATE TABLE table_54226 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Trofeo Fast Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner of Stage 12 with a Points Classification of Fra... | SELECT "Winner" FROM table_54226 WHERE "Points classification" = 'francesco moser' AND "Stage" = '12' | wikisql |
CREATE TABLE table_14233 (
"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 Player from Dayton, Oh with a Pick of 15 or larger?
| SELECT "Player" FROM table_14233 WHERE "Pick" > '15' AND "Hometown/School" = 'dayton, oh' | wikisql |
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
... | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM cite, paper, venue WHERE paper.paperid = cite.citedpaperid AND paper.year = 2010 AND venue.venueid = paper.venueid AND venue.venuename = 'EMNLP' GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC | scholar |
CREATE TABLE Ref_Payment_Methods (
payment_method_code CHAR(10),
payment_method_description VARCHAR(80)
)
CREATE TABLE Bookings_Services (
Order_ID INTEGER,
Product_ID INTEGER
)
CREATE TABLE Clients (
Client_ID INTEGER,
Address_ID INTEGER,
Customer_Email_Address VARCHAR(255),
Customer_... | SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number... | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) AND STRFTIME('%y', lab.labresulttime) = '2104' GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 3 | eicu |
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 PostLinks (
Id... | SELECT Q.Id FROM Posts AS Q WHERE Q.PostTypeId = 1 AND Q.Tags LIKE @Pattern AND (Q.Score < @QuestionScore OR (@Accepted = 1 AND Q.AcceptedAnswerId IS NULL) OR NOT EXISTS(SELECT * FROM Posts AS A WHERE A.ParentId = Q.Id AND A.Score >= @AnswerScore)) | sede |
CREATE TABLE table_name_13 (
crowd INTEGER,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the largest crowd at a game where Collingwood was the away team?
| SELECT MAX(crowd) FROM table_name_13 WHERE away_team = "collingwood" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.