instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_62453 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tim Wollthan's Date of Birth?
| SELECT "Date of Birth" FROM table_62453 WHERE "Name" = 'tim wollthan' | wikisql |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
char... | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'protein, total') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23436) AND STRFTIME('%y', labevents.charttime) = '2105' | mimic_iii |
CREATE TABLE table_71226 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent played on July 15?
| SELECT "Opponent" FROM table_71226 WHERE "Date" = 'july 15' | wikisql |
CREATE TABLE table_name_77 (
season INTEGER,
mole VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season has a Mole of frederique van der wal?
| SELECT MAX(season) FROM table_name_77 WHERE mole = "frederique van der wal" | sql_create_context |
CREATE TABLE table_8649 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has an Opponent of @ buffalo sabres... | SELECT "Score" FROM table_8649 WHERE "Opponent" = '@ buffalo sabres' | wikisql |
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
e... | SELECT date, COUNT(date) FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107) ORDER BY COUNT(date) DESC | nvbench |
CREATE TABLE table_63363 (
"Name" text,
"Network" text,
"Owner" text,
"Launch date" text,
"Channel ( BKK )" text,
"Broadcasting area" text,
"Transmitted area" text,
"Broadcasting hours" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Network" FROM table_63363 WHERE "Name" = 'bbtv channel 7' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT FEMUR FRACTURE" AND demographic.dod_year <= "2132.0" | mimicsql_data |
CREATE TABLE table_52680 (
"Division" text,
"League Apps (Sub)" real,
"League Goals" real,
"FA Cup Apps (Sub)" text,
"FA Cup Goals" real,
"FL Cup Apps (Sub)" real,
"FL Cup Goals" real,
"Other Apps" real,
"Other Goals" real,
"Total Apps (Sub)" text,
"Total Goals" real
)
-- U... | SELECT AVG("FL Cup Apps (Sub)") FROM table_52680 WHERE "FL Cup Goals" > '0' AND "Other Apps" < '0' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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 = "Adv eff antifung antbiot" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE table_24189 (
"No in Series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many dates di... | SELECT COUNT("Original air date") FROM table_24189 WHERE "Title" = 'Out of Sight' | wikisql |
CREATE TABLE table_47402 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT COUNT("Draws") FROM table_47402 WHERE "Played" < '38' | wikisql |
CREATE TABLE table_44963 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the list date of the historic place that was built 1896, 1914?
| SELECT "Listed" FROM table_44963 WHERE "Built" = '1896, 1914' | wikisql |
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 DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Other%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_c... | advising |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%Chennai%' OR UPPER(Location) LIKE '%chennai%' OR Location LIKE '%Chennai%' AND Reputation >= 2100 ORDER BY Reputation DESC | sede |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CR... | SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 17462 AND admissions.dischtime IS NULL | mimic_iii |
CREATE TABLE table_59745 (
"A. Dyck" text,
"H. Rempel" text,
"R. Epp" text,
"J. Thiessen" text,
"J. J. Neufeld" text,
"Ed Zacharias" text,
"word meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the R. Epp, has Ed Zacharias fr... | SELECT "R. Epp" FROM table_59745 WHERE "Ed Zacharias" = 'rollen, jerolt, golt' | wikisql |
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_nam... | SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code ORDER BY facility_code DESC | nvbench |
CREATE TABLE qtb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT qtb.MED_SER_ORG_NO FROM qtb WHERE qtb.PERSON_ID = '16090485' AND qtb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_CD = '056956') UNION SELECT gyb.MED_SER_ORG_NO FROM gyb WHERE gyb.PERSON_ID = '16090485' AND gyb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE... | css |
CREATE TABLE table_name_72 (
date VARCHAR,
competition VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Date has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1
| SELECT date FROM table_name_72 WHERE competition = "welsh rugby union challenge trophy" AND result = "34-34" | sql_create_context |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT jybgb.BGDH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '花英勋' AND NOT ... | css |
CREATE TABLE table_56662 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver has a grid value of 22?
| SELECT "Driver" FROM table_56662 WHERE "Grid" = '22' | wikisql |
CREATE TABLE table_37879 (
"Date" text,
"City" text,
"Result" text,
"Score" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sscore for world cup qualifying october 15, 2008
| SELECT "Score" FROM table_37879 WHERE "Competition" = 'world cup qualifying' AND "Date" = 'october 15, 2008' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2174" AND diagnoses.long_title = "Ventricular septal defect" | mimicsql_data |
CREATE TABLE table_72476 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT MIN("PA") FROM table_72476 WHERE "Ends Lost" = '45' | wikisql |
CREATE TABLE table_21350772_2 (
lifetime__years_ VARCHAR,
chemical_formula VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lifetime (years) for chemical formula ch 4?
| SELECT lifetime__years_ FROM table_21350772_2 WHERE chemical_formula = "CH 4" | sql_create_context |
CREATE TABLE table_63080 (
"Rank (2012)" real,
"Rank (2010)" real,
"Employer" text,
"Industry" text,
"2012 Employees (Total)" real,
"2010 Employees (Total)" real,
"2007 Employees (Total)" text,
"Head office" text
)
-- Using valid SQLite, answer the following questions for the tables pr... | SELECT SUM("2010 Employees (Total)") FROM table_63080 WHERE "Employer" = 'university of alberta' | wikisql |
CREATE TABLE table_47306 (
"Rank" real,
"Rank Forbes 2000" real,
"Name" text,
"Headquarters" text,
"Revenue (Bn.$)" real,
"Profit (Bn.$)" real,
"Assets (Bn.$)" real,
"Market value (Bn.$)" real,
"Industry" text
)
-- Using valid SQLite, answer the following questions for the tables p... | SELECT COUNT("Rank") FROM table_47306 WHERE "Assets (Bn.$)" = '70.74' AND "Market value (Bn.$)" > '11.29' | wikisql |
CREATE TABLE table_65078 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the actor that played rachel mckenna?
| SELECT "Actor" FROM table_65078 WHERE "Character" = 'rachel mckenna' | wikisql |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admis... | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12775 AND admissions.dischtime IS NULL)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items... | mimic_iii |
CREATE TABLE table_7474 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the region for the date November 18, 2002?
| SELECT "Region" FROM table_7474 WHERE "Date" = 'november 18, 2002' | wikisql |
CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size real,
Number... | SELECT Type, COUNT(*) FROM store GROUP BY Type ORDER BY Type DESC | nvbench |
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
... | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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.J... | css |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
... | SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'testosterone 5mg patch' | mimic_iii |
CREATE TABLE table_28074 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least extra points
| SELECT MIN("Extra points") FROM table_28074 | wikisql |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-87465'... | eicu |
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 COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.ZSEBZ = '0533965' AND bdmzjzjlb.JZKSRQ BETWEEN '2008-07-19' AND '2011-06-29' | css |
CREATE TABLE table_22824324_2 (
three_pointers VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games had three pointers where the number of points was 581?
| SELECT COUNT(three_pointers) FROM table_22824324_2 WHERE points = 581 | sql_create_context |
CREATE TABLE table_36013 (
"Name" text,
"Birth date" text,
"Age as of 1 February 2014" text,
"Country of birth" text,
"Place of residence" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is 111years, 358days Age as of 1 February 2014?
| SELECT "Name" FROM table_36013 WHERE "Age as of 1 February 2014" = '111years, 358days' | wikisql |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course (
course_id int,
name varchar,
dep... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.start_time > '09:30' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.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 MED_SER_ORG_NO FROM t_kc21 WHERE PERSON_ID = '71927625' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc22 WHERE SOC_SRT_DIRE_NM = '九味镇心颗粒') | css |
CREATE TABLE table_73929 (
"Week #" 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.
-- What are all the week # where subject matter is auditioner's choice
| SELECT "Week #" FROM table_73929 WHERE "Theme" = 'Auditioner''s Choice' | wikisql |
CREATE TABLE table_78518 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid?
| SELECT MAX("Grid") FROM table_78518 WHERE "Laps" < '39' AND "Driver" = 'juan manuel fangio' | wikisql |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE procedures_icd (
... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'insert spin... | mimic_iii |
CREATE TABLE table_28988 (
"Proto-Slavic" text,
"Russian" text,
"Ukrainian" text,
"Belarusian" text,
"Polish" text,
"Czech" text,
"Slovak" text,
"Slovene" text,
"Serbo-Croatian" text,
"Bulgarian" text,
"Macedonian" text
)
-- Using valid SQLite, answer the following question... | SELECT "Proto-Slavic" FROM table_28988 WHERE "Polish" = 'gniazdo' | wikisql |
CREATE TABLE table_37163 (
"Years covered" text,
"All bills sponsored" real,
"All amendments sponsored" real,
"All bills cosponsored" real,
"All amendments cosponsored" real,
"Original bills cosponsored" real,
"Original amendments cosponsored" real,
"Bill support withdrawn" real,
"Am... | SELECT MIN("Original amendments cosponsored") FROM table_37163 WHERE "All bills sponsored" < '64' AND "Bill support withdrawn" < '0' | wikisql |
CREATE TABLE table_name_8 (
event VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name of the Event with a time of 2:19?
| SELECT event FROM table_name_8 WHERE time = "2:19" | sql_create_context |
CREATE TABLE table_35598 (
"Length of game" text,
"Date" text,
"Away team" text,
"Score" text,
"Home team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the away team for the game played on December 24, 1977?
| SELECT "Away team" FROM table_35598 WHERE "Date" = 'december 24, 1977' | 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 MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '孙雅洁' AND MED_SER_ORG_NO = '5601930' AND OUT_DIAG_DIS_NM LIKE '%肾结石%' | css |
CREATE TABLE table_50434 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter" real,
"Year named" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years is ur sulcus listed with a diameter less than 1,145.0?
| SELECT COUNT("Year named") FROM table_50434 WHERE "Name" = 'ur sulcus' AND "Diameter" < '1,145.0' | wikisql |
CREATE TABLE table_name_43 (
competition VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Competition On 26 jan 2005
| SELECT competition FROM table_name_43 WHERE date = "26 jan 2005" | 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 procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.diagnosis = "PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS" | mimicsql_data |
CREATE TABLE table_22740 (
"Mother Tongue" text,
"Population (2006)" real,
"Percentage (2006)" text,
"Population (2011)" real,
"Percentage (2011)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest population(2011)?
| SELECT MIN("Population (2011)") FROM table_22740 | wikisql |
CREATE TABLE table_name_55 (
website VARCHAR,
license VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Website, when License is Apache License 2.0?
| SELECT website FROM table_name_55 WHERE license = "apache license 2.0" | 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.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = ... | css |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | mimic_iii |
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 diagnoses.long_title = "Chronic pulmonary heart disease, unspecified" | mimicsql_data |
CREATE TABLE table_name_42 (
pick INTEGER,
position VARCHAR,
hometown_school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What pick number was the rhp with a hometown/school of university of hawaii?
| SELECT MIN(pick) FROM table_name_42 WHERE position = "rhp" AND hometown_school = "university of hawaii" | sql_create_context |
CREATE TABLE table_65570 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Dolphins points" real,
"Opponents" real,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the game with an attendance ... | SELECT MIN("Game") FROM table_65570 WHERE "Attendance" = '71,962' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.icd9_code = "311" | mimicsql_data |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
... | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'insert endotracheal tube') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17638 AND NOT admissions.d... | mimic_iii |
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults number,
kids number
)
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
basepric... | SELECT kids FROM reservations WHERE firstname = "ROY" AND lastname = "SWEAZY" | spider |
CREATE TABLE table_34038 (
"Indoor Year" text,
"Record" text,
"Regular Season Finish" text,
"Playoffs" text,
"Avg Attend." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- indoor year is 1978, what is the record?
| SELECT "Record" FROM table_34038 WHERE "Indoor Year" = '1978' | wikisql |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | (SELECT mzjzjlb.YLJGDM FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '72267378') UNION (SELECT zyjzjlb.YLJGDM FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.K... | css |
CREATE TABLE table_8279 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the winner and score of the tournament with semifinalists g... | SELECT "Winner and score" FROM table_8279 WHERE "Semifinalists" = 'goran prpić sergi bruguera' | wikisql |
CREATE TABLE ftxmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZD... | SELECT * FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIG... | SELECT CRS_DESCRIPTION, COUNT(CRS_DESCRIPTION) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY CRS_DESCRIPTION | nvbench |
CREATE TABLE table_69445 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest attendance on September 14, 1986?
| SELECT MAX("Attendance") FROM table_69445 WHERE "Date" = 'september 14, 1986' | wikisql |
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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.dob_year < "2056" | mimicsql_data |
CREATE TABLE table_name_8 (
grid INTEGER,
driver VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What grid for jacques villeneuve with over 36 laps?
| SELECT MAX(grid) FROM table_name_8 WHERE driver = "jacques villeneuve" AND laps > 36 | sql_create_context |
CREATE TABLE table_38773 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which sport has 94kg men's weightlifting as one of its events?
| SELECT "Sport" FROM table_38773 WHERE "Event" = '94kg men''s weightlifting' | wikisql |
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
-- Using valid SQLite, answer the following questions for the ... | SELECT Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Editor_ID ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
)
CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage real... | SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type | nvbench |
CREATE TABLE table_11622392_1 (
location VARCHAR,
purse__$__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tournaments in Texas had a purse higher than 330105.1624276874?
| SELECT COUNT(1 AS st_prize__) AS $__ FROM table_11622392_1 WHERE location = "Texas" AND purse__$__ > 330105.1624276874 | 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.admission_location, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "29541" | mimicsql_data |
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 WHERE demographic.gender = "F" AND demographic.discharge_location = "DEAD/EXPIRED" | mimicsql_data |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val... | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3369)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit ht' ... | mimic_iii |
CREATE TABLE table_name_43 (
platform_s_ VARCHAR,
developer_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the platform when the developer was Telltale Games?
| SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games" | sql_create_context |
CREATE TABLE volume (
Song VARCHAR,
Weeks_on_Top VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the song in the volume with the maximum weeks on top?
| SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1 | sql_create_context |
CREATE TABLE table_204_621 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- don january won the tucson open invitational... | SELECT "date" FROM table_204_621 WHERE "tournament" = 'tucson open invitational' AND "date" <> 1960 | squall |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TA... | SELECT COUNT(Id) FROM Posts WHERE (Tags LIKE '%bootstrap%' OR Tags LIKE '%mobile%' OR Tags LIKE '%css3%' OR Tags LIKE '%html5%' OR Tags LIKE '%css%' OR Tags LIKE '%html%') | sede |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
hi... | 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMO... | atis |
CREATE TABLE table_name_27 (
game INTEGER,
time VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the last game that had a time of 2:46 and attendance of more than 57,533?
| SELECT MAX(game) FROM table_name_27 WHERE time = "2:46" AND attendance > 57 OFFSET 533 | sql_create_context |
CREATE TABLE table_42338 (
"Year" text,
"Matches" text,
"Wins" text,
"Losses" text,
"No Result" text,
"Success Rate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has 2 wins?
| SELECT "Year" FROM table_42338 WHERE "Wins" = '2' | wikisql |
CREATE TABLE table_16212 (
"Player" text,
"Matches" real,
"Inns" real,
"N/O" real,
"Runs" real,
"High Score" real,
"Average" text,
"100" real,
"50" real,
"Catches" real,
"Stump" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Player" FROM table_16212 WHERE "Inns" = '21' | wikisql |
CREATE TABLE book_club (
publisher VARCHAR,
YEAR VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show publishers with a book published in 1989 and a book in 1990.
| SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990 | sql_create_context |
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Enrolled_in (
StuID INTEGER,
CID VARCHAR(7),
Grade VARCHAR(2)
)
CREATE TABLE Department (
DN... | SELECT Days, SUM(Credits) FROM Course GROUP BY Days ORDER BY Credits | nvbench |
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 procedures.short_title, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Betty Campbell" | mimicsql_data |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
... | SELECT Tags.TagName AS "tag_name", COUNT(*) AS "number_of_associated_posts" FROM PostTags INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE PostTags.PostId IN (SELECT DISTINCT PostId FROM PostTags INNER JOIN Tags ON Tags.Id = PostTags.TagId INNER JOIN Posts ON Posts.Id = PostTags.PostId WHERE Tags.TagName = '##TagName:... | sede |
CREATE TABLE faculty_participates_in (
facid number,
actid number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE partic... | SELECT DISTINCT rank FROM faculty | spider |
CREATE TABLE table_62711 (
"Ship name" text,
"Year built/refurbished" text,
"Length" text,
"Crew" real,
"Guests" real,
"Staterooms" real,
"Comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Of the ships with diesel-electric hybrid engi... | SELECT MIN("Staterooms") FROM table_62711 WHERE "Comments" = 'diesel-electric hybrid engines' AND "Length" = '443 feet' AND "Guests" > '190' | wikisql |
CREATE TABLE table_77544 (
"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 is Essendon's home team that has an away cr... | SELECT "Away team" FROM table_77544 WHERE "Crowd" > '19,491' AND "Home team" = 'essendon' | wikisql |
CREATE TABLE table_59722 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Place, when Score is '66', when Country is 'United States', and when Player is 'Dudley Hart'?
| SELECT "Place" FROM table_59722 WHERE "Score" = '66' AND "Country" = 'united states' AND "Player" = 'dudley hart' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.dob_year < "2090" | mimicsql_data |
CREATE TABLE table_name_28 (
result VARCHAR,
venue VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the Todman stakes race at rosehill?
| SELECT result FROM table_name_28 WHERE venue = "rosehill" AND race = "todman stakes" | sql_create_context |
CREATE TABLE table_14595 (
"Perfect stem" text,
"Future stem" text,
"Imperfect stem" text,
"Short stem" text,
"Meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the future stem for the word that has an imperfect stem of hartzen?
| SELECT "Future stem" FROM table_14595 WHERE "Imperfect stem" = 'hartzen' | wikisql |
CREATE TABLE table_name_93 (
runner_up VARCHAR,
venue VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the runner-up in 1980 at the Pocking venue?
| SELECT runner_up FROM table_name_93 WHERE venue = "pocking" AND year = "1980" | sql_create_context |
CREATE TABLE ship (
ship_id number,
name text,
type text,
built_year number,
class text,
flag text
)
CREATE TABLE captain (
captain_id number,
name text,
ship_id number,
age text,
class text,
rank text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT type FROM ship WHERE flag = 'Panama' INTERSECT SELECT type FROM ship WHERE flag = 'Malta' | spider |
CREATE TABLE table_2588674_1 (
village VARCHAR,
area_km² VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What village has an area of 27.19 km2?
| SELECT village FROM table_2588674_1 WHERE area_km² = "27.19" | sql_create_context |
CREATE TABLE table_61913 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country, when Place is 'T3', and when Score is '67-70=137'?
| SELECT "Country" FROM table_61913 WHERE "Place" = 't3' AND "Score" = '67-70=137' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.