instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsysto... | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-55868' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitala... | eicu |
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Pie chart. how old is the y... | SELECT job, MIN(age) FROM Person GROUP BY job | nvbench |
CREATE TABLE table_test_24 (
"id" int,
"history_of_bleeding_diathesis" bool,
"bleeding" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"blood_draw" bool,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"allergy_to_clopidogrel" bool,
"cardiogenic_shock" boo... | SELECT * FROM table_test_24 WHERE renal_disease = 1 | criteria2sql |
CREATE TABLE table_name_58 (
round VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what round was a left wing drafted?
| SELECT round FROM table_name_58 WHERE position = "left wing" | sql_create_context |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Na... | SELECT t1.Count AS "count_1", 'site://tags/' + t1.TagName + '|' + t1.TagName AS "tag_1", t2.Count AS "count_2", 'site://tags/' + t2.TagName + '|' + t2.TagName AS "tag_2" FROM Tags AS t1, Tags AS t2 WHERE t2.TagName = t1.TagName + 's' AND LENGTH(t1.TagName) <= 3 ORDER BY CASE WHEN t2.Count > t1.Count THEN t2.Count ELSE ... | sede |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2156" AND diagnoses.short_title = "Chrnc hpt C wo hpat coma" | mimicsql_data |
CREATE TABLE table_13664 (
"Rank" real,
"Heat" real,
"Cyclist" text,
"Nation" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Heat has a Nation of australia, and a Rank larger than 7?
| SELECT MAX("Heat") FROM table_13664 WHERE "Nation" = 'australia' AND "Rank" > '7' | wikisql |
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 treatment (
treatmentid number... | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-14800') AND NOT patient.unitdischargetime IS NU... | eicu |
CREATE TABLE table_23440 (
"Episode" text,
"First broadcast" text,
"Rufus guest" text,
"Marcus guest" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the episode in which Sean Lock was Rufus's guest?
| SELECT "Winner" FROM table_23440 WHERE "Rufus guest" = 'Sean Lock' | wikisql |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total... | SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department LIKE '%CCS%' AND program_course.category LIKE '%PreMajor%' 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description... | SELECT a.PostId, a.userid, a.TagName FROM (SELECT pt.PostId AS postid, t.TagName AS tagname, u.Id AS userid FROM Tags AS t JOIN PostTags AS pt ON pt.TagId = t.Id JOIN Posts AS q ON q.Id = pt.PostId JOIN Posts AS a ON a.ParentId = q.Id JOIN Users AS u ON u.Id = a.OwnerUserId) AS a WHERE a.PostId = @postid | sede |
CREATE TABLE table_24160 (
"University" text,
"Nick" text,
"University status" real,
"Founded" real,
"Location" text,
"Division" text,
"Specialization" text,
"Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is every locatio... | SELECT "Location" FROM table_24160 WHERE "Specialization" = 'Textile engineering' | wikisql |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Abn react-renal dialysis" AND prescriptions.route = "IV" | mimicsql_data |
CREATE TABLE table_46230 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1993 value with a 1r in 1991 and sf in 1990?
| SELECT "1993" FROM table_46230 WHERE "1991" = '1r' AND "1990" = 'sf' | wikisql |
CREATE TABLE table_13075 (
"Helium" text,
"Neon" text,
"Argon" text,
"Krypton" text,
"Xenon" text,
"Radon" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What krypton has an argon of 20.85?
| SELECT "Krypton" FROM table_13075 WHERE "Argon" = '20.85' | wikisql |
CREATE TABLE table_29146 (
"No. in total" text,
"No. in series" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title for episode number 30?
| SELECT "Title" FROM table_29146 WHERE "No. in total" = '30' | wikisql |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | SELECT SUM(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '3422258' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2017-12-15' AND '2020-05-04' | css |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE (course.number = 358 OR course.number = 484) AND course_offering.end_time > '17:00:00' AND semester.semester = 'WN' AND semester.year = ... | advising |
CREATE TABLE table_56115 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who constructed the car that has a Time/Retired of engine, and over 50 laps?
| SELECT "Constructor" FROM table_56115 WHERE "Time/Retired" = 'engine' AND "Laps" > '50' | wikisql |
CREATE TABLE table_29627 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of points for game 32?
| SELECT MIN("Points") FROM table_29627 WHERE "Game" = '32' | wikisql |
CREATE TABLE table_64724 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on May 10, 2009?
| SELECT "Opponent" FROM table_64724 WHERE "Date" = 'may 10, 2009' | 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 demographic.days_stay, demographic.dischtime FROM demographic WHERE demographic.name = "Mary Davis" | mimicsql_data |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
... | SELECT txmzjzjlb.YLJGDM FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '34588710' UNION SELECT ftxmzjzjlb.YLJGDM FROM hz_info JOIN ftxmzjzjlb ON hz_info.YLJGDM = ftxmzjzjlb.YLJGDM AND hz_info.KH = ftxmzjzjlb.KH AND hz_i... | css |
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,... | SELECT Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY Date_Payment_Made DESC | nvbench |
CREATE TABLE table_16799784_4 (
longitude VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Grechukha Tholi has what longitude?
| SELECT longitude FROM table_16799784_4 WHERE name = "Grechukha Tholi" | sql_create_context |
CREATE TABLE table_name_11 (
venue VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue was round 20 held at?
| SELECT venue FROM table_name_11 WHERE round = 20 | sql_create_context |
CREATE TABLE table_73924 (
"Episode" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the original artist of the song choice ' The Letter '?
| SELECT "Original artist" FROM table_73924 WHERE "Song choice" = ' The Letter ' | wikisql |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... | SELECT * FROM t_kc21 WHERE t_kc21.PERSON_ID = '77494849' AND t_kc21.MED_SER_ORG_NO = '2952772' AND t_kc21.MED_ORG_DEPT_NM LIKE '%不育%' | css |
CREATE TABLE table_name_37 (
year INTEGER,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the most recent year the venue was Barcelona, Spain?
| SELECT MAX(year) FROM table_name_37 WHERE venue = "barcelona, spain" | sql_create_context |
CREATE TABLE table_57705 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Laps Did Driver David Coulthard have on a Grid smaller than 11?
| SELECT "Laps" FROM table_57705 WHERE "Grid" < '11' AND "Driver" = 'david coulthard' | wikisql |
CREATE TABLE table_19130829_4 (
team__number1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the 1st leg result in the round where team #1 is Iraklis?
| SELECT 1 AS st_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis" | sql_create_context |
CREATE TABLE table_name_89 (
score VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when York City was home?
| SELECT score FROM table_name_89 WHERE home_team = "york city" | sql_create_context |
CREATE TABLE table_name_64 (
silver VARCHAR,
gold VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times is gold more than 0 and the rank less than 2?
| SELECT COUNT(silver) FROM table_name_64 WHERE gold > 0 AND rank < 2 | sql_create_context |
CREATE TABLE table_name_64 (
track VARCHAR,
event_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At which track did the event Daytona Arca 200 take place?
| SELECT track FROM table_name_64 WHERE event_name = "daytona arca 200" | sql_create_context |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id nu... | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 32154) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'sodium') AND STRFTIME('%y-%m', labevents.charttime) = '2104-01' ORDER BY labeven... | mimic_iii |
CREATE TABLE hall_of_fame (
player_id text,
yearid number,
votedby text,
ballots text,
needed text,
votes text,
inducted text,
category text,
needed_note text
)
CREATE TABLE player_award (
player_id text,
award_id text,
year number,
league_id text,
tie text,
... | SELECT T1.birth_month FROM player AS T1 JOIN hall_of_fame AS T2 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y" GROUP BY T1.birth_month ORDER BY COUNT(*) DESC LIMIT 1 | thehistoryofbaseball |
CREATE TABLE table_1918850_2 (
year VARCHAR,
opponents_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when were helena sukov todd woodbridge the opponents in the final
| SELECT year FROM table_1918850_2 WHERE opponents_in_the_final = "Helena Suková Todd Woodbridge" | sql_create_context |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
... | SELECT MAX(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73693)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'fol... | mimic_iii |
CREATE TABLE table_10996 (
"Stadium" text,
"Capacity" text,
"City" text,
"Province" text,
"Expected Completion" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What province is Hamilton part of?
| SELECT "Province" FROM table_10996 WHERE "City" = 'hamilton' | wikisql |
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 prescriptions.formulary_drug_cd, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Cefpodoxime Proxetil" | mimicsql_data |
CREATE TABLE table_6669 (
"Mission" text,
"Resident Country" text,
"Local Location" text,
"Local Mission" text,
"Local Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mission for switzerland as a resident County?
| SELECT "Mission" FROM table_6669 WHERE "Resident Country" = 'switzerland' | wikisql |
CREATE TABLE table_204_7 (
id number,
"#" number,
"date" text,
"film" text,
"gross" text,
"top ten places" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which movies were number 1 for at least two consecutive weeks ?
| SELECT "film" FROM table_204_7 GROUP BY "film" HAVING COUNT(*) >= 2 | squall |
CREATE TABLE table_name_93 (
frequency VARCHAR,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Frequency has a Call sign of kcse?
| SELECT frequency FROM table_name_93 WHERE call_sign = "kcse" | sql_create_context |
CREATE TABLE table_27704991_1 (
long_ranged_weapons VARCHAR,
close_ranged_weapons VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the Close ranged weapons are the knife (stone), knife (iron), what are the Long ranged weapons?
| SELECT long_ranged_weapons FROM table_27704991_1 WHERE close_ranged_weapons = "Knife (stone), Knife (iron)" | sql_create_context |
CREATE TABLE table_24080 (
"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 "Medal of Honor" FROM table_24080 WHERE "Air Force Cross" = 'Army Distinguished Service Medal' | wikisql |
CREATE TABLE table_12269 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event is defending champion the total?
| SELECT "Event" FROM table_12269 WHERE "Total" = 'defending champion' | wikisql |
CREATE TABLE table_25244412_2 (
total_electricity__gw VARCHAR,
_percentage_renewable VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many data was given the total electricity in GW-h if % renewable is 92.3%?
| SELECT COUNT(total_electricity__gw) AS ·h_ FROM table_25244412_2 WHERE _percentage_renewable = "92.3%" | sql_create_context |
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
dat... | SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_16575 (
"Club" text,
"Position in 2012\u201313" text,
"First season in top division" text,
"Number of seasons in top division" real,
"Number of seasons in the Premier League" real,
"First season of current spell in top division" text,
"Top division titles" real,
"Last ... | SELECT MIN("Top division titles") FROM table_16575 | wikisql |
CREATE TABLE table_name_35 (
miss_air__1st_runner_up_ VARCHAR,
year VARCHAR,
miss_water__2nd_runner_up_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won Miss Air (1st Runner-up) when Catherine Untalan was Miss Water (2nd Runner-up) earlier than 200... | SELECT miss_air__1st_runner_up_ FROM table_name_35 WHERE year < 2007 AND miss_water__2nd_runner_up_ = "catherine untalan" | 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 course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program (
program_id int,
name varchar... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ENGR' AND course.number = 599 AND semester.semester = 'Summer' AND semester.semester_id = course_offering.semester | advising |
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 COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '凤慧捷' AND t_kc22.STA_DATE BETWEEN '2003-03-14' AND '2017-06-09' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_29201 (
"model" text,
"Speed (GHz)" text,
"L3 Cache (MB)" real,
"QPI speed (GT/s)" text,
"DDR3 Clock (MHz)" real,
"TDP (W)" real,
"Cores" real,
"Threads" real,
"Turbo-Boost" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Speed (GHz)" FROM table_29201 WHERE "model" = 'W3540' | wikisql |
CREATE TABLE table_name_48 (
release_date VARCHAR,
fpu_width VARCHAR,
l2_cache VARCHAR,
multi_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the release date of the 2x 512 kb L2 cache with a 11x multi 1, and a FPU width of 128-bit?
| SELECT release_date FROM table_name_48 WHERE l2_cache = "2x 512 kb" AND multi_1 = "11x" AND fpu_width = "128-bit" | sql_create_context |
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ASIAN' AND course.number = 252 AND semester.semester = 'Spring' AND semester.semester_id = course_offering.semester AND semester.year = 2010 | advising |
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 t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '魏德水' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID... | css |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Self Pay" AND diagnoses.short_title = "DMI neuro nt st uncntrld" | mimicsql_data |
CREATE TABLE table_name_8 (
bronze INTEGER,
gold VARCHAR,
silver VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?
| SELECT SUM(bronze) FROM table_name_8 WHERE silver = 1 AND rank < 4 AND gold > 1 | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "23875" | mimicsql_data |
CREATE TABLE table_203_755 (
id number,
"singing position" number,
"song title" text,
"informal translation" text,
"act" text,
"percentage of votes" text,
"final position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the top song t... | SELECT "song title" FROM table_203_755 WHERE id = 1 | squall |
CREATE TABLE table_26382 (
"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 MAX("Wins") FROM table_26382 WHERE "Poles" = '2' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT demographic.dob, demographic.gender FROM demographic WHERE demographic.subject_id = "17570" | mimicsql_data |
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type ... | SELECT Nationality, SUM(Age) FROM journalist GROUP BY Nationality ORDER BY Nationality | nvbench |
CREATE TABLE table_6746 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which November has a Game smaller than 16, and Points larger than 22?
| SELECT SUM("November") FROM table_6746 WHERE "Game" < '16' AND "Points" > '22' | wikisql |
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | SELECT DISTINCT course_offering.end_time, course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.start_time, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course, course_offering, semester WHERE course.course_id = course_offe... | advising |
CREATE TABLE table_name_1 (
score VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in Volkswagen Challenger tournament?
| SELECT score FROM table_name_1 WHERE tournament = "volkswagen challenger" | sql_create_context |
CREATE TABLE table_78236 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest average of the contestant with an interview of 8.275 and an evening gown big... | SELECT MIN("Average") FROM table_78236 WHERE "Interview" = '8.275' AND "Evening Gown" > '8.7' | wikisql |
CREATE TABLE products (
price VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Compute the number of products with a price larger than or equal to $180.
| SELECT COUNT(*) FROM products WHERE price >= 180 | sql_create_context |
CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
... | SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations ORDER BY Date_in_Location_From | nvbench |
CREATE TABLE table_70551 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the smallest number of laps marco simoncelli has with grid less than 8 and gilera as the ma... | SELECT MIN("Laps") FROM table_70551 WHERE "Manufacturer" = 'gilera' AND "Rider" = 'marco simoncelli' AND "Grid" < '8' | wikisql |
CREATE TABLE table_10015132_21 (
school_club_team VARCHAR,
years_in_toronto VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school did the player that played 2004-05 attend?
| SELECT school_club_team FROM table_10015132_21 WHERE years_in_toronto = "2004-05" | sql_create_context |
CREATE TABLE table_65086 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Count the sum of Col (m) which has an Elevation (m) of 3,011, and a Country of equatorial g... | SELECT SUM("Col (m)") FROM table_65086 WHERE "Elevation (m)" = '3,011' AND "Country" = 'equatorial guinea ( bioko )' | wikisql |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.long_title = "Other emphysema" | mimicsql_data |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
... | SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN mzjzjlb_jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND mzjz... | css |
CREATE TABLE table_name_68 (
college VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College has a Position of Offensive Tackle?
| SELECT college FROM table_name_68 WHERE position = "offensive tackle" | sql_create_context |
CREATE TABLE table_name_41 (
bronze INTEGER,
rank VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Rank 14 with a total greater than 1 has what as the average bronze?
| SELECT AVG(bronze) FROM table_name_41 WHERE rank = 14 AND total > 1 | sql_create_context |
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor | nvbench |
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 jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDSM = '过敏性皮炎' AND jyjgzbb.JCZBDM = '675208' | css |
CREATE TABLE table_70795 (
"Player" text,
"Height" real,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position does Sergio Rodr guez, who is less than 1.96 tall and was born after 1980, play?
| SELECT "Position" FROM table_70795 WHERE "Height" < '1.96' AND "Year born" > '1980' AND "Player" = 'sergio rodríguez' | wikisql |
CREATE TABLE table_name_13 (
position VARCHAR,
player VARCHAR,
round VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the position when the round is higher than 3, the nationality is united states and the player is nick pry... | SELECT position FROM table_name_13 WHERE round > 3 AND nationality = "united states" AND player = "nick pryor" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | SELECT t_kc21.MED_ORG_DEPT_NM, AVG(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '9886124' GROUP BY t_kc21.MED_ORG_DEPT_NM | css |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT gwyjzb.OUT_DIAG_DOC_CD, gwyjzb.OUT_DIAG_DOC_NM FROM gwyjzb WHERE gwyjzb.PERSON_NM = '谢婉慧' AND gwyjzb.IN_HOSP_DATE BETWEEN '2000-07-26' AND '2013-12-31' GROUP BY gwyjzb.OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT fgwyjzb.OUT_DIAG_DOC_CD, fgwyjzb.OUT_DIAG_DOC_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_NM... | css |
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 AVG(demographic.age) FROM demographic WHERE demographic.language = "RUSS" AND demographic.diagnosis = "PITUITARY BLEED" | mimicsql_data |
CREATE TABLE table_name_2 (
overall INTEGER,
player VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total overall in round 1, in which Charles White was a player?
| SELECT SUM(overall) FROM table_name_2 WHERE player = "charles white" AND round < 1 | sql_create_context |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartr... | SELECT AVG(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-26867') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-24 month') GROUP BY STRFTIME... | eicu |
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName ORDER BY roomName | nvbench |
CREATE TABLE table_1341663_10 (
district VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the district where the candidates are charles edward bennett (d) unopposed?
| SELECT district FROM table_1341663_10 WHERE candidates = "Charles Edward Bennett (D) Unopposed" | sql_create_context |
CREATE TABLE table_10160447_1 (
points VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the points with driver mark martin
| SELECT points FROM table_10160447_1 WHERE driver = "Mark Martin" | sql_create_context |
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,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
... | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17237)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial... | mimic_iii |
CREATE TABLE table_name_72 (
former_team VARCHAR,
pick INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Former Team has a Pick larger than 20?
| SELECT former_team FROM table_name_72 WHERE pick > 20 | sql_create_context |
CREATE TABLE table_74442 (
"Rank" real,
"Country/Territory" text,
"Mister World" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables p... | SELECT MIN("1st runner-up") FROM table_74442 | wikisql |
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ... | SELECT title, COUNT(title) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars BETWEEN 3 AND 5 GROUP BY title ORDER BY COUNT(title) | nvbench |
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 COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '76284316' AND t_kc22.STA_DATE BETWEEN '2010-12-15' AND '2018-05-30' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_9738 (
"Name (Birth\u2013death)" text,
"Took office" text,
"Left office" text,
"Political party" text,
"Note(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name (Birth-Death), when Left Office is 7 October 1958?
| SELECT "Name (Birth\u2013death)" FROM table_9738 WHERE "Left office" = '7 october 1958' | wikisql |
CREATE TABLE table_23578 (
"Story #" real,
"Target #" text,
"Title" text,
"Author" text,
"Reader" text,
"Format" text,
"Company" text,
"Release Date" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the format of t... | SELECT "Format" FROM table_23578 WHERE "Title" = 'The Mind Robber' | wikisql |
CREATE TABLE table_76259 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round against opponent Klas Akesson?
| SELECT AVG("Round") FROM table_76259 WHERE "Opponent" = 'klas akesson' | wikisql |
CREATE TABLE table_66998 (
"Stage (Winner)" text,
"General Classification Yellow Jersey" text,
"Mountains Classification Green Jersey" text,
"Points Classification Navy Blue Jersey" text,
"Intermediate Sprints Classification Red Jersey" text,
"Team Classification" text
)
-- Using valid SQLite,... | SELECT "General Classification Yellow Jersey" FROM table_66998 WHERE "Mountains Classification Green Jersey" = 'murilo antonio fischer' AND "Team Classification" = 'lampre-fondital' | wikisql |
CREATE TABLE table_dev_28 (
"id" int,
"gender" string,
"systolic_blood_pressure_sbp" int,
"consent" bool,
"hemoglobin_a1c_hba1c" float,
"hematocrit_hct" float,
"fasting_triglycerides" int,
"fasting_blood_glucose_fbg" float,
"diastolic_blood_pressure_dbp" int,
"hba1c" float,
"... | SELECT * FROM table_dev_28 WHERE (gender = 'male' OR gender = 'female') AND (age >= 20 AND age <= 70) AND consent = 1 | criteria2sql |
CREATE TABLE table_51265 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code of the episode before season 8,... | SELECT "Production code" FROM table_51265 WHERE "Season #" < '8' AND "Series #" < '31' AND "Original air date" = 'september 21, 1995' | wikisql |
CREATE TABLE table_52165 (
"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.
-- Who was Richmond's away team opponent?
| SELECT "Away team" FROM table_52165 WHERE "Home team" = 'richmond' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.