instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.dob_year < "2076" | 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 INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Gram-neg septicemia NEC" AND lab.label = "Urea Nitrogen, Urine" | mimicsql_data |
CREATE TABLE ref_document_status (
document_status_code text,
document_status_description text
)
CREATE TABLE documents (
document_id number,
document_status_code text,
document_type_code text,
shipping_agent_code text,
receipt_date time,
receipt_number text,
other_details text
)
C... | SELECT document_id FROM documents WHERE document_status_code = "done" AND document_type_code = "Paper" INTERSECT SELECT document_id FROM documents JOIN ref_shipping_agents ON documents.shipping_agent_code = ref_shipping_agents.shipping_agent_code WHERE ref_shipping_agents.shipping_agent_name = "USPS" | spider |
CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(10),
customer_code VARCHAR(20),
customer_name VARCHAR(80),
customer_address VARCHAR(255),
customer_phone VARCHAR(80),
customer_email VARCHAR(80)
)
CREATE TABLE Products (
product_id INTEGER,
product_type_code ... | SELECT product_type_code, SUM(product_price) FROM Product_Suppliers AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 GROUP BY product_type_code ORDER BY SUM(product_price) DESC | nvbench |
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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT demographic.language FROM demographic WHERE demographic.name = "Jerry Deberry" | mimicsql_data |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT * FROM jybgb WHERE jybgb.JZLSH = '21869177682' | css |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT 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.JZZDBM = 'Z80.670' AND jyjgzbb.JCZBDM = '849746' | css |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 's/p cabg < 7 days' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start ... | eicu |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name | nvbench |
CREATE TABLE table_name_8 (
name VARCHAR,
pos VARCHAR,
date_of_birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- born on 1973-08-21, what is the cf's name?
| SELECT name FROM table_name_8 WHERE pos = "cf" AND date_of_birth = "1973-08-21" | 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.discharge_location = "HOME HEALTH CARE" AND procedures.icd9_code = "8163" | mimicsql_data |
CREATE TABLE table_21258 (
"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("Top 5") FROM table_21258 WHERE "Top 10" = '5' AND "Team(s)" = '#40 Chip Ganassi Racing' | wikisql |
CREATE TABLE table_name_99 (
gold INTEGER,
rank VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Gold has a Rank of 15, and a Total smaller than 2?
| SELECT AVG(gold) FROM table_name_99 WHERE rank = "15" AND total < 2 | sql_create_context |
CREATE TABLE table_76042 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of bronze medals when the total medals were 78 and there were less than 12 golds?
| SELECT SUM("Bronze") FROM table_76042 WHERE "Total" = '78' AND "Gold" < '12' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,... | SELECT COUNT(*) FROM mzjzjlb WHERE YLJGDM = '4755541' AND JZKSRQ BETWEEN '2006-02-16' AND '2010-03-24' AND WDBZ > 0 | css |
CREATE TABLE table_24418525_1 (
power_kw VARCHAR,
coverage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much power covers dumaguete central visayas region?
| SELECT COUNT(power_kw) FROM table_24418525_1 WHERE coverage = "Dumaguete Central Visayas Region" | sql_create_context |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospit... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 926 AND STRFTIME('%y', patient.unitadmittime) >= '2104' | eicu |
CREATE TABLE table_name_82 (
opponent VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent for the KOTC 25: Flaming Fury event?
| SELECT opponent FROM table_name_82 WHERE event = "kotc 25: flaming fury" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.long_title = "Cholangitis" | mimicsql_data |
CREATE TABLE table_32916 (
"Player" text,
"Span" text,
"Start" real,
"Tries" real,
"Conv" real,
"Pens" real,
"Drop" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the player fero lasagavibau who has the lowest start?
| SELECT MIN("Start") FROM table_32916 WHERE "Player" = 'fero lasagavibau' | wikisql |
CREATE TABLE table_name_80 (
attendance INTEGER,
h___a VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of attendance for H/A values of 'n'?
| SELECT SUM(attendance) FROM table_name_80 WHERE h___a = "n" | sql_create_context |
CREATE TABLE table_7756 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Who knows the most about the guest host? panelists" text,
"Coat Of Cash Wearing Celebrity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did the show ai... | SELECT "Air Date" FROM table_7756 WHERE "Who knows the most about the guest host? panelists" = 'duncan james and kim woodburn' | 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,... | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 14987 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ... | mimic_iii |
CREATE TABLE Project_Staff (
role_code VARCHAR,
date_from VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?
| SELECT COUNT(*) FROM Project_Staff WHERE role_code = 'leader' OR date_from < '1989-04-24 23:51:54' | sql_create_context |
CREATE TABLE table_29969 (
"No." real,
"Player" text,
"Club" text,
"Test career" text,
"Tests" real,
"Catches" real,
"Stumpings" real,
"Total dismissals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total dismissals did the pl... | SELECT MAX("Total dismissals") FROM table_29969 WHERE "Club" = 'Guyana' | wikisql |
CREATE TABLE table_14118521_1 (
mission VARCHAR,
primary_payload_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the mission with primary payload(s) being spacelab life sciences-2
| SELECT mission FROM table_14118521_1 WHERE primary_payload_s_ = "Spacelab Life Sciences-2" | sql_create_context |
CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE volume (
Volume_ID int,
V... | SELECT Result, COUNT(Result) FROM music_festival GROUP BY Result | nvbench |
CREATE TABLE table_name_40 (
tonnage_grt VARCHAR,
ship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the tonnage grt of the ship author?
| SELECT tonnage_grt FROM table_name_40 WHERE ship = "author" | sql_create_context |
CREATE TABLE table_17246160_1 (
position VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position for the Josef Kaufmann Racing team?
| SELECT position FROM table_17246160_1 WHERE team = "Josef Kaufmann Racing" | sql_create_context |
CREATE TABLE employment (
company_id number,
people_id number,
year_working number
)
CREATE TABLE company (
company_id number,
name text,
headquarters text,
industry text,
sales_in_billion number,
profits_in_billion number,
assets_in_billion number,
market_value_in_billion n... | SELECT name FROM company ORDER BY sales_in_billion | spider |
CREATE TABLE table_76298 (
"Year" real,
"Date" text,
"Driver / Rider" text,
"Car / Motorcycle" text,
"Time" text,
"Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver is Indian?
| SELECT "Driver / Rider" FROM table_76298 WHERE "Car / Motorcycle" = 'indian' | wikisql |
CREATE TABLE table_train_11 (
"id" int,
"pregnancy_or_lactation" bool,
"severe_sepsis" bool,
"active_infection" bool,
"heart_disease" bool,
"body_weight" float,
"septic_shock" bool,
"serum_aminotransferase_level_alt_ast" int,
"NOUSE" float
)
-- Using valid SQLite, answer the follow... | SELECT * FROM table_train_11 WHERE active_infection = 1 AND (severe_sepsis = 1 OR septic_shock = 1) | criteria2sql |
CREATE TABLE screen_mode (
graphics_mode number,
char_cells text,
pixels text,
hardware_colours number,
used_kb number,
map text,
type text
)
CREATE TABLE chip_model (
model_name text,
launch_year number,
ram_mib number,
rom_mib number,
slots text,
wifi text,
blu... | SELECT DISTINCT T2.hardware_model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.graphics_mode = T2.screen_mode WHERE T1.type = "Graphics" OR t2.company_name = "Nokia Corporation" | spider |
CREATE TABLE table_name_76 (
capacity INTEGER,
rank VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Capacity is the lowest one that has a Rank smaller than 15, and a City of belgrade?
| SELECT MIN(capacity) FROM table_name_76 WHERE rank < 15 AND city = "belgrade" | sql_create_context |
CREATE TABLE Parties_in_Events (
Party_ID INTEGER,
Event_ID INTEGER,
Role_Code CHAR(15)
)
CREATE TABLE Assets_in_Events (
Asset_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Events (
Event_ID INTEGER,
Address_ID INTEGER,
Channel_ID INTEGER,
Event_Type_Code CHAR(15),
Finance_ID IN... | SELECT Product_Name, COUNT(Product_Name) FROM Products GROUP BY Product_Name | nvbench |
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE... | SELECT Nationality, SUM(meter_100) FROM swimmer GROUP BY Nationality ORDER BY Nationality | nvbench |
CREATE TABLE table_name_55 (
director VARCHAR,
film_title_used_in_nomination VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Director of Gulf Stream Under the Iceberg?
| SELECT director FROM table_name_55 WHERE film_title_used_in_nomination = "gulf stream under the iceberg" | sql_create_context |
CREATE TABLE table_name_27 (
original_name VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which film originated in France?
| SELECT original_name FROM table_name_27 WHERE country = "france" | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '6103336' GROUP BY t_kc21.MED_ORG_DEPT_CD HAVING AVG(t_kc21.IN_HOSP_DAYS) > 30) AS T | css |
CREATE TABLE table_2102945_1 (
archive VARCHAR,
viewers__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When there are 7.5 million viewers what is the archive?
| SELECT archive FROM table_2102945_1 WHERE viewers__in_millions_ = "7.5" | sql_create_context |
CREATE TABLE table_50045 (
"Episode" text,
"Rating" real,
"Share" real,
"Viewers (millions)" real,
"Weekly Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Viewers (millions) has an Episode of 'i'm not a good villain', and a Share smaller ... | SELECT MAX("Viewers (millions)") FROM table_50045 WHERE "Episode" = 'i''m not a good villain' AND "Share" < '12' | wikisql |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departu... | 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, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADELPHIA' AND days.day_name = 'SATURDAY' AND flight.flight_days = days.days_cod... | atis |
CREATE TABLE table_76178 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What result in a week over 2 occurred with an attendance greater than 53,043 on November 18, 1979?
| SELECT "Result" FROM table_76178 WHERE "Attendance" > '53,043' AND "Week" > '2' AND "Date" = 'november 18, 1979' | wikisql |
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.long_title = "Other and unspecified repair of atrial septal defect" | mimicsql_data |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | SELECT RZBQDM, RZBQMC, RYCWH FROM zyjzjlb WHERE JZLSH = '30702944784' | css |
CREATE TABLE airlines (
alid integer,
name text,
iata varchar(2),
icao varchar(3),
callsign text,
country text,
active varchar(2)
)
CREATE TABLE routes (
rid integer,
dst_apid integer,
dst_ap varchar(4),
src_apid bigint,
src_ap varchar(4),
alid bigint,
airline va... | SELECT country, COUNT(country) FROM airlines WHERE name LIKE 'Orbit%' GROUP BY country | nvbench |
CREATE TABLE gyb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_ID = '70820807' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE ... | css |
CREATE TABLE table_name_14 (
rank VARCHAR,
goals VARCHAR,
scorer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has Goals larger than 4, and a Scorer of oh seok-jae?
| SELECT rank FROM table_name_14 WHERE goals > 4 AND scorer = "oh seok-jae" | sql_create_context |
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | 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 = 'SAN JOSE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUST... | atis |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId... | SELECT p.Id, pht.Name FROM Posts AS p INNER JOIN PostHistory AS ph ON ph.PostId = p.Id INNER JOIN PostHistoryTypes AS pht ON pht.Id = ph.PostHistoryTypeId | sede |
CREATE TABLE table_203_830 (
id number,
"year" number,
"song" text,
"chart positions\nus country" number,
"chart positions\ncan country" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which years had the least number of singles r... | SELECT "year" FROM table_203_830 GROUP BY "year" HAVING COUNT("song") = (SELECT COUNT("song") FROM table_203_830 GROUP BY "year" ORDER BY COUNT("song") LIMIT 1) | squall |
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 COUNT(*) FROM txmzjzjlb WHERE txmzjzjlb.YLJGDM = '4804151' AND txmzjzjlb.JZKSRQ BETWEEN '2014-02-08' AND '2016-04-24' AND txmzjzjlb.WDBZ > 0 UNION SELECT COUNT(*) FROM ftxmzjzjlb WHERE ftxmzjzjlb.YLJGDM = '4804151' AND ftxmzjzjlb.JZKSRQ BETWEEN '2014-02-08' AND '2016-04-24' AND ftxmzjzjlb.WDBZ > 0 | css |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,... | SELECT COUNT(Posts.Id) FROM Posts INNER JOIN (SELECT DISTINCT PostId FROM PostTags WHERE TagId = (SELECT Id FROM Tags WHERE TagName = 'vba')) AS t1 ON Posts.Id = t1.PostId WHERE Posts.PostTypeId = 1 UNION ALL SELECT COUNT(Posts.Id) FROM Posts INNER JOIN (SELECT DISTINCT PostId FROM PostTags WHERE TagId = (SELECT Id FRO... | sede |
CREATE TABLE table_train_265 (
"id" int,
"systolic_blood_pressure_sbp" int,
"fasting_blood_glucose_fbg" float,
"diastolic_blood_pressure_dbp" int,
"hba1c" float,
"body_mass_index_bmi" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT * FROM table_train_265 WHERE fasting_blood_glucose_fbg > 126 | criteria2sql |
CREATE TABLE table_63804 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is ranked smaller than 2?
| SELECT "Country" FROM table_63804 WHERE "Rank" < '2' | wikisql |
CREATE TABLE table_11677691_12 (
position VARCHAR,
hometown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the positions of players who's hometown is concord, california
| SELECT position FROM table_11677691_12 WHERE hometown = "Concord, California" | sql_create_context |
CREATE TABLE Suppliers (
supplier_id INTEGER,
supplier_name VARCHAR(80),
supplier_phone VARCHAR(80)
)
CREATE TABLE Staff (
staff_id INTEGER,
staff_gender VARCHAR(1),
staff_name VARCHAR(80)
)
CREATE TABLE Products (
product_id INTEGER,
product_type_code VARCHAR(10),
product_name VAR... | SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code | nvbench |
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
C... | 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 = 'TAMPA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CINCINNA... | atis |
CREATE TABLE table_46273 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium... | SELECT "Date" FROM table_46273 WHERE "Year" < '1988' AND "Loser" = 'philadelphia eagles' AND "Location" = 'giants stadium' AND "Result" = '21-0' | wikisql |
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old is the average pers... | SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY AVG(age) | nvbench |
CREATE TABLE table_3740 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What wa... | SELECT "Team" FROM table_3740 WHERE "Game" = '4' | wikisql |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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.J... | css |
CREATE TABLE actor (
Name VARCHAR,
Musical_ID VARCHAR
)
CREATE TABLE musical (
Musical_ID VARCHAR,
Year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show names of actors in descending order of the year their musical is awarded.
| SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC | sql_create_context |
CREATE TABLE table_1256 (
"Elected" real,
"Assembled" text,
"Dissolved" text,
"First member" text,
"Second member" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was parliament assembled when John rudhale was first member?
| SELECT "Assembled" FROM table_1256 WHERE "First member" = 'John Rudhale' | wikisql |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE intakeoutput (
in... | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-3736' AND NOT patient.hospitaldischargetime IS NULL ORDER ... | eicu |
CREATE TABLE table_53495 (
"Year" real,
"Western champion" text,
"Result" text,
"Eastern champion" text,
"Finals MVP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the MVP finals that includes Detroit shock from the eastern championship and ... | SELECT "Finals MVP" FROM table_53495 WHERE "Eastern champion" = 'detroit shock' AND "Western champion" = 'sacramento monarchs' | wikisql |
CREATE TABLE table_43280 (
"Administrative Panel" real,
"Agricultural Panel" real,
"Cultural and Educational Panel" real,
"Industrial and Commercial Panel" real,
"Labour Panel" real,
"National University of Ireland" real,
"University of Dublin" real,
"Nominated by the Taoiseach" real,
... | SELECT AVG("Administrative Panel") FROM table_43280 WHERE "Cultural and Educational Panel" > '1' AND "Industrial and Commercial Panel" < '4' | wikisql |
CREATE TABLE table_name_81 (
location VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is Shakhtar-2 located?
| SELECT location FROM table_name_81 WHERE team = "shakhtar-2" | sql_create_context |
CREATE TABLE table_name_58 (
record VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when Danilo Pereira was the opponent?
| SELECT record FROM table_name_58 WHERE opponent = "danilo pereira" | sql_create_context |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE procedures_icd (
... | SELECT SUM(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 = 25733) AND icustays.outtime IS NULL) | mimic_iii |
CREATE TABLE customers (
customer_id number,
customer_first_name text,
customer_last_name text,
customer_address text,
customer_phone text,
customer_email text,
other_customer_details text
)
CREATE TABLE financial_transactions (
transaction_id number,
previous_transaction_id number,... | SELECT card_type_code, COUNT(*) FROM customers_cards GROUP BY card_type_code | spider |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
c... | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 5 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOI... | eicu |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE SuggestedEdits (
Id number,
... | SELECT Reputation FROM Users WHERE Reputation >= 101 | sede |
CREATE TABLE table_19652 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production cod... | SELECT MAX("Production code") FROM table_19652 WHERE "No. in series" = '229' | wikisql |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE... | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52736 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND prescriptions.drug = 'insulin' ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagn... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'gabapentin 300 mg cap' AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) | eicu |
CREATE TABLE table_2309 (
"#" real,
"Date" text,
"at/vs." text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for january 18, 1997
| SELECT "Record" FROM table_2309 WHERE "Date" = 'January 18, 1997' | wikisql |
CREATE TABLE table_17190012_7 (
high_rebounds VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who did highest rebounds in the game with score w 105 88 (ot)
| SELECT high_rebounds FROM table_17190012_7 WHERE score = "W 105–88 (OT)" | sql_create_context |
CREATE TABLE table_name_35 (
opponent VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opposing team in the game attended by 65,554?
| SELECT opponent FROM table_name_35 WHERE attendance = "65,554" | sql_create_context |
CREATE TABLE table_59864 (
"Atomic property" text,
"Helium" text,
"Neon" text,
"Argon" text,
"Krypton" text,
"Xenon" text,
"Radon" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Krypton has Neon of 10?
| SELECT "Krypton" FROM table_59864 WHERE "Neon" = '10' | wikisql |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
Creati... | SELECT a.Id AS "post_link", a.Score FROM Posts AS a INNER JOIN Posts AS q ON a.ParentId = q.Id WHERE NOT q.ClosedDate IS NULL | sede |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text... | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE jyjgzbb.JYRQ BETWEEN '2014-10-26' AND '2015-11-0... | css |
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.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder | nvbench |
CREATE TABLE table_name_7 (
nation VARCHAR,
silver VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nation has the number of silver medals greater than 1, and bronze medals as 1?
| SELECT nation FROM table_name_7 WHERE silver > 1 AND bronze = 1 | sql_create_context |
CREATE TABLE table_25030512_24 (
result VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the result for 1998
| SELECT result FROM table_25030512_24 WHERE first_elected = "1998" | sql_create_context |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id num... | SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9566) AND icustays.outtime IS NULL)) - (SELECT SUM(outputevents.value) FROM output... | mimic_iii |
CREATE TABLE table_16025095_1 (
attendance INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the minimum crowd on January 24, 1987?
| SELECT MIN(attendance) FROM table_16025095_1 WHERE date = "January 24, 1987" | sql_create_context |
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr nume... | SELECT T1.dept_name, COUNT(DISTINCT T2.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name ORDER BY T1.dept_name | nvbench |
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 instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN student_record ON student_record.offering_id = offering_instructor.offering_id INNER JOIN student ON student.student_id = student_record.student_id WHERE (student_rec... | advising |
CREATE TABLE table_64880 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text,
"Trofeo Super Team" text
)
-- Using valid SQLite, answer the following questio... | SELECT "Intergiro classification" FROM table_64880 WHERE "Points classification" = 'paolo bettini' AND "Trofeo Super Team" = 'davitamon-lotto' AND "Mountains classification" = 'josé rujano' | wikisql |
CREATE TABLE party_services (
booking_id number,
customer_id number,
service_id number,
service_datetime time,
booking_made_date time
)
CREATE TABLE addresses (
address_id number,
line_1_number_building text,
town_city text,
zip_postcode text,
state_province_county text,
cou... | SELECT DISTINCT t1.individual_last_name FROM individuals AS t1 JOIN organization_contact_individuals AS t2 ON t1.individual_id = t2.individual_id | spider |
CREATE TABLE table_name_1 (
placings VARCHAR,
points VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Placings have Points smaller than 330.84, and a Name of silvo svajger?
| SELECT COUNT(placings) FROM table_name_1 WHERE points < 330.84 AND name = "silvo svajger" | sql_create_context |
CREATE TABLE church (
church_id number,
name text,
organized_by text,
open_date number,
continuation_of text
)
CREATE TABLE people (
people_id number,
name text,
country text,
is_male text,
age number
)
CREATE TABLE wedding (
church_id number,
male_id number,
female... | SELECT country FROM people WHERE age < 25 INTERSECT SELECT country FROM people WHERE age > 30 | spider |
CREATE TABLE table_name_58 (
round INTEGER,
race_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest round with a Race Title of korean grand prix?
| SELECT MAX(round) FROM table_name_58 WHERE race_title = "korean grand prix" | 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 MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '3249384' AND t_kc21.OUT_DIAG_DIS_NM = '持久的妄想性障碍') | css |
CREATE TABLE table_5799 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What class has a MHZ frequency under 103.1 licensed in morro bay, cal... | SELECT "Class" FROM table_5799 WHERE "Frequency MHz" < '103.1' AND "City of license" = 'morro bay, california' | wikisql |
CREATE TABLE table_13987 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of the Player with a Time of 7:20.32 and Notes of FB?
| SELECT COUNT("Rank") FROM table_13987 WHERE "Notes" = 'fb' AND "Time" = '7:20.32' | wikisql |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following questions for the... | SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 | nvbench |
CREATE TABLE table_1918850_2 (
championship VARCHAR,
opponents_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which championship had arantxa s nchez vicario todd woodbridge as opponents in the final
| SELECT championship FROM table_1918850_2 WHERE opponents_in_the_final = "Arantxa Sánchez Vicario Todd Woodbridge" | sql_create_context |
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
... | SELECT name, ID FROM swimmer ORDER BY ID | nvbench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.