instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_76 (
since INTEGER,
transfer_fee VARCHAR,
ends VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest year in since that had a transfer fee of 14m and ended after 2011?
| SELECT MIN(since) FROM table_name_76 WHERE transfer_fee = "€ 14m" AND ends > 2011 | sql_create_context |
CREATE TABLE table_name_79 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record on march 26?
| SELECT record FROM table_name_79 WHERE date = "march 26" | sql_create_context |
CREATE TABLE table_name_80 (
year VARCHAR,
first_publisher VARCHAR,
english_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Year of Kodansha Novels' Tokyo Nightmare?
| SELECT year FROM table_name_80 WHERE first_publisher = "kodansha novels" AND english_title = "tokyo nightmare" | sql_create_context |
CREATE TABLE table_65004 (
"Municipality" text,
"FIPS code" real,
"Founded" real,
"Population (2010)" real,
"Area" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq ... | SELECT AVG("FIPS code") FROM table_65004 WHERE "Area" = '114.76 sq mi (297.23 sq km)' AND "Population (2010)" < '166,327' | wikisql |
CREATE TABLE table_name_17 (
class VARCHAR,
power VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the class when the power is 22500 watts?
| SELECT class FROM table_name_17 WHERE power = "22500 watts" | sql_create_context |
CREATE TABLE table_60259 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Place which has a Score of 67-71=138, united states?
| SELECT "Place" FROM table_60259 WHERE "Country" = 'united states' AND "Score" = '67-71=138' | wikisql |
CREATE TABLE table_63271 (
"Name" text,
"Games" text,
"A-League" text,
"Finals" text,
"Goals" real,
"Assists" real,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of goals of the player with 9 (0) games and ... | SELECT MIN("Goals") FROM table_63271 WHERE "Games" = '9 (0)' AND "Assists" < '0' | wikisql |
CREATE TABLE table_name_21 (
home_team VARCHAR,
crowd INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played as the home team when the attendance was more than 30,080?
| SELECT home_team FROM table_name_21 WHERE crowd > 30 OFFSET 080 | sql_create_context |
CREATE TABLE table_name_81 (
set_2 VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Set 2, when Total is '52:44'?
| SELECT set_2 FROM table_name_81 WHERE total = "52:44" | sql_create_context |
CREATE TABLE table_name_85 (
college_junior_club_team VARCHAR,
round INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the college club that plays before round 3?
| SELECT college_junior_club_team FROM table_name_85 WHERE round < 3 | sql_create_context |
CREATE TABLE table_8048 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the report for Challenge Stadium?
| SELECT "Report" FROM table_8048 WHERE "Venue" = 'challenge stadium' | wikisql |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT SUM(t_kc22.AMOUNT) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '水清妍' AND gwyjzb.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2004-09-13' AND '2007-06-05' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT SUM(t_kc22.AMOUNT) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb... | css |
CREATE TABLE table_330 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What height was the player that played for the Rock... | SELECT "Height in Ft." FROM table_330 WHERE "Years for Rockets" = '1992-93' | wikisql |
CREATE TABLE table_name_94 (
total VARCHAR,
sports VARCHAR,
silver VARCHAR,
gold VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total medals the Year Yugoslavia had 1 Sport and won 0 Gold, Bronze or Silver?
| SELECT total FROM table_name_94 WHERE gold = "0" AND bronze = "0" AND silver = "0" AND sports = "1" | sql_create_context |
CREATE TABLE table_26847237_3 (
score VARCHAR,
opposition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score when the opposition is mid canterbury?
| SELECT score FROM table_26847237_3 WHERE opposition = "Mid Canterbury" | sql_create_context |
CREATE TABLE table_name_11 (
round VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round did Dundee United end in?
| SELECT round FROM table_name_11 WHERE club = "dundee united" | 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 qtb.MED_CLINIC_ID FROM qtb WHERE qtb.PERSON_NM = '秦鸿德' AND qtb.MED_SER_ORG_NO = '6682741' AND NOT qtb.OUT_DIAG_DIS_NM LIKE '%脑瘫%' UNION SELECT gyb.MED_CLINIC_ID FROM gyb WHERE gyb.PERSON_NM = '秦鸿德' AND gyb.MED_SER_ORG_NO = '6682741' AND NOT gyb.OUT_DIAG_DIS_NM LIKE '%脑瘫%' UNION SELECT zyb.MED_CLINIC_ID FROM zyb ... | css |
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 hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb... | css |
CREATE TABLE stadium (
id number,
name text,
home_games number,
average_attendance number,
total_attendance number,
capacity_percentage number
)
CREATE TABLE injury_accident (
game_id number,
id number,
player text,
injury text,
number_of_matches text,
source text
)
CRE... | SELECT COUNT(DISTINCT source) FROM injury_accident | spider |
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 WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.age < "31" | mimicsql_data |
CREATE TABLE table_dev_34 (
"id" int,
"gender" string,
"heart_disease" bool,
"body_weight" float,
"hematocrit_hct" float,
"fasting_blood_glucose_fbg" float,
"hyperlipidemia" bool,
"systemic_illness" bool,
"angina" bool,
"serum_ldl" int,
"clinically_significant_atherosclerotic... | SELECT * FROM table_dev_34 WHERE (hematocrit_hct < 36 AND gender = 'male') OR (hematocrit_hct < 32 AND gender = 'female') | criteria2sql |
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 7 AND date_day.month_number = 7 AND da... | atis |
CREATE TABLE table_204_110 (
id number,
"year" number,
"champion" text,
"city" text,
"llws" text,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who came in first place in 1966 ?
| SELECT "champion" FROM table_204_110 WHERE "year" = 1966 | squall |
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 MIN(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dod_year < "2158.0" | mimicsql_data |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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,
C... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.PERSON_NM = '孙弘量' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE table_name_4 (
club VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What club had 0 goals?
| SELECT club FROM table_name_4 WHERE goals = 0 | sql_create_context |
CREATE TABLE table_name_52 (
rank INTEGER,
games INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest rank when there are more than 2 games?
| SELECT MIN(rank) FROM table_name_52 WHERE games > 2 | sql_create_context |
CREATE TABLE table_203_466 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in medals between cuba and mexico ?
| SELECT (SELECT "total" FROM table_203_466 WHERE "nation" = 'cuba') - (SELECT "total" FROM table_203_466 WHERE "nation" = 'mexico') | squall |
CREATE TABLE table_77693 (
"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.
-- Where did North Melbourne play as the home team?... | SELECT "Venue" FROM table_77693 WHERE "Home team" = 'north melbourne' | wikisql |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info ON person_info.RYBH = person_info_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... | css |
CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions... | SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id | spider |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'pneumonia') AS t1 JOIN (SELECT patient.uniquepid, medication.drugstarttim... | eicu |
CREATE TABLE table_12306 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Away team when Arsenal is the Home team?
| SELECT "Away team" FROM table_12306 WHERE "Home team" = 'arsenal' | wikisql |
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pre... | SELECT installation_date, COUNT(installation_date) FROM station GROUP BY installation_date ORDER BY installation_date | nvbench |
CREATE TABLE table_2601 (
"Episode #" real,
"US Air Date" text,
"Rating" text,
"Share" real,
"Rating/Share (18-49)" text,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes have episode #11?
| SELECT COUNT("US Air Date") FROM table_2601 WHERE "Episode #" = '11' | wikisql |
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM 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 mzjzjlb.MZZYZDZZBM, mzjzjlb.MZZYZDZZMC FROM mzjzjlb WHERE mzjzjlb.JZLSH = '14585277536' | css |
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Creation of conduit between left ventricle and aorta" AND lab.fluid = "Pleural" | mimicsql_data |
CREATE TABLE table_name_98 (
animal_name VARCHAR,
tv_series VARCHAR,
species VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What animal was yes for tv series and was a terrapins?
| SELECT animal_name FROM table_name_98 WHERE tv_series = "yes" AND species = "terrapins" | sql_create_context |
CREATE TABLE table_12512 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Raiders points" real,
"Opponents" real,
"First Downs" real,
"Record" text,
"Streak" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Date" FROM table_12512 WHERE "Raiders points" = '17' | wikisql |
CREATE TABLE table_67863 (
"Language" text,
"Number" text,
"percentage (%)" text,
"males" text,
"females" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What females speak Romanian?
| SELECT "females" FROM table_67863 WHERE "Language" = 'romanian' | wikisql |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_re... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND date_day.day_number = 17 AND date_day.month_number = 4 AND d... | atis |
CREATE TABLE table_10706961_2 (
winning_team VARCHAR,
winning_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which teams won when Bobby Rahal was their winning driver?
| SELECT winning_team FROM table_10706961_2 WHERE winning_driver = "Bobby Rahal" | sql_create_context |
CREATE TABLE table_name_38 (
song_choice VARCHAR,
result VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which song garnered an advanced result during top 20 week ?
| SELECT song_choice FROM table_name_38 WHERE result = "advanced" AND week = "top 20" | sql_create_context |
CREATE TABLE table_name_50 (
week_11_nov_16 VARCHAR,
week_13_nov_30 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the week 11 nov 16 standing with wisconsin (10-1) on week 13 Nov 30?
| SELECT week_11_nov_16 FROM table_name_50 WHERE week_13_nov_30 = "wisconsin (10-1)" | sql_create_context |
CREATE TABLE table_name_22 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Score that has the Date of april 8?
| SELECT score FROM table_name_22 WHERE date = "april 8" | sql_create_context |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE time_inte... | SELECT DISTINCT FLIGHT_0.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, date_day AS DATE... | atis |
CREATE TABLE table_name_14 (
tyres VARCHAR,
year VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tyre was before 1995 with 142 laps?
| SELECT tyres FROM table_name_14 WHERE year < 1995 AND laps = 142 | sql_create_context |
CREATE TABLE table_25438110_5 (
casinos VARCHAR,
fy09_$millions VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many casinos are associated with a FY2009 $mil value of exactly $279?
| SELECT COUNT(casinos) FROM table_25438110_5 WHERE fy09_$millions = "$279" | sql_create_context |
CREATE TABLE table_name_5 (
nationality VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nationality of the Deacon of S. Maria in Via Lata?
| SELECT nationality FROM table_name_5 WHERE title = "deacon of s. maria in via lata" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" | mimicsql_data |
CREATE TABLE table_203_543 (
id number,
"year" text,
"show" text,
"role" text,
"channel" text,
"extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the name of the last television show between 2004 and february , 2013 in which mauli d... | SELECT "show" FROM table_203_543 WHERE "role" = 'herself' | squall |
CREATE TABLE table_5144 (
"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 average grid with a number of laps smaller than 8?
| SELECT AVG("Grid") FROM table_5144 WHERE "Laps" < '8' | wikisql |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT FIRST_NAME, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SALARY DESC | nvbench |
CREATE TABLE table_22625 (
"Country" text,
"TV Network(s)" text,
"Series Premiere" text,
"Weekly Schedule" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every status with a weekly schedule of Monday to Thursday @ 11:00 pm?
| SELECT "Status" FROM table_22625 WHERE "Weekly Schedule" = 'Monday to Thursday @ 11:00 pm' | wikisql |
CREATE TABLE table_name_27 (
date VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the Los Angeles open?
| SELECT date FROM table_name_27 WHERE tournament = "los angeles open" | sql_create_context |
CREATE TABLE table_66165 (
"Rank:" real,
"Premier:" text,
"Party:" text,
"Assumed Office:" text,
"Left Office:" text,
"TOTAL Time in Office:" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the rank when the assumed office is 9 april 1903... | SELECT SUM("Rank:") FROM table_66165 WHERE "Assumed Office:" = '9 april 1903' | wikisql |
CREATE TABLE table_78713 (
"Model" text,
"First Year" real,
"Distribution" text,
"Engine" text,
"Displacement cc" real,
"Power hp (kW)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of First Year, when Displacement CC i... | SELECT COUNT("First Year") FROM table_78713 WHERE "Displacement cc" > '4719' AND "Engine" = 'v8' AND "Power hp (kW)" = '335 (246)' AND "Model" = 'ghibli ss' | wikisql |
CREATE TABLE table_204_414 (
id number,
"name" text,
"armenian" text,
"location" text,
"# of prisoners designed for" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the location used the most number of times in the table .
| SELECT "location" FROM table_204_414 GROUP BY "location" ORDER BY COUNT(*) DESC LIMIT 1 | squall |
CREATE TABLE table_1473672_4 (
college_junior_club_team VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of teams for college/junior club for philadelphia flyers
| SELECT COUNT(college_junior_club_team) FROM table_1473672_4 WHERE nhl_team = "Philadelphia Flyers" | sql_create_context |
CREATE TABLE table_name_77 (
team__number2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 2nd leg score in the matchup with a team 2 of KK Borac?
| SELECT 2 AS nd_leg FROM table_name_77 WHERE team__number2 = "kk borac" | sql_create_context |
CREATE TABLE table_name_88 (
week VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week's game had a result of l 35 37?
| SELECT week FROM table_name_88 WHERE result = "l 35–37" | sql_create_context |
CREATE TABLE table_51312 (
"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 date was fitzroy the away team?
| SELECT "Date" FROM table_51312 WHERE "Away team" = 'fitzroy' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE p... | 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-19168')) AND DATETIME(medication.drugstarttime) >= DATETIM... | eicu |
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE ... | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_... | atis |
CREATE TABLE table_name_93 (
tournament VARCHAR,
outcome VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournament has an Outcome of runner-up, and an Opponent of ma a zec pe kiri ?
| SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič" | sql_create_context |
CREATE TABLE table_name_2 (
fs VARCHAR,
sp INTEGER,
places VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average SP+FS with places less tha 94 for renata baierova
| SELECT AVG(sp) + fs FROM table_name_2 WHERE places < 94 AND name = "renata baierova" | sql_create_context |
CREATE TABLE table_name_76 (
name VARCHAR,
pick__number VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was picked in round 15 with a pick smaller than 13?
| SELECT name FROM table_name_76 WHERE pick__number < 13 AND round = 15 | sql_create_context |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDa... | SELECT COUNT(DISTINCT Posts.OwnerUserId) FROM Posts, PostTags, Tags WHERE Posts.PostTypeId = 2 AND Posts.Id IN (SELECT Posts.AcceptedAnswerId FROM Posts, PostTags, Tags WHERE Posts.PostTypeId = 1 AND Posts.Id = PostTags.PostId AND PostTags.TagId = Tags.Id AND Tags.TagName LIKE '%##TagName##%') | sede |
CREATE TABLE table_36697 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text,
"TV Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the TV time for the road game against Phoenix where the score was 98-99?
| SELECT "TV Time" FROM table_36697 WHERE "Home Team" = 'phoenix' AND "Result" = '98-99' | wikisql |
CREATE TABLE table_203_88 (
id number,
"language" text,
"number" number,
"percentage (%)" number,
"males" number,
"females" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest percentage of speakers other than polish ?
| SELECT "language" FROM table_203_88 WHERE "language" <> 'polish' ORDER BY "percentage (%)" DESC LIMIT 1 | squall |
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
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 EMPLOYEE (
EMP_NUM int,
... | 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 GROUP BY EMP_FNAME, CRS_DESCRIPTION ORDER BY CRS_DESCRIPTION | nvbench |
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_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.AMOUNT FROM t_kc22 WHERE t_kc21_t_kc22.MED_CLINIC_ID = '83739399515' AND t_kc22.AMOUNT > (SELECT MIN(t_kc22.AMOUNT) FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.ME... | css |
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type ... | SELECT Work_Type, AVG(Years_working) FROM journalist AS t1 JOIN news_report AS t2 ON t1.journalist_ID = t2.journalist_ID GROUP BY t2.Work_Type | nvbench |
CREATE TABLE table_42469 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position for Orlando for 1989 1999?
| SELECT "Position" FROM table_42469 WHERE "Years in Orlando" = '1989–1999' | wikisql |
CREATE TABLE Project_outcomes (
outcome_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Patent outcomes are generated from all the projects?
| SELECT COUNT(*) FROM Project_outcomes WHERE outcome_code = 'Patent' | sql_create_context |
CREATE TABLE table_204_530 (
id number,
"type" text,
"stage" number,
"cyclist" text,
"team" text,
"reason" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many people withdrew in the 4th stage ?
| SELECT COUNT("type") FROM table_204_530 WHERE "stage" = 4 | squall |
CREATE TABLE table_name_6 (
position INTEGER,
points VARCHAR,
bike_no VARCHAR,
driver___passenger VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Postion, when Bike No is greater than 10, when Driver / Passenger is Nicky Pulinx / On... | SELECT MIN(position) FROM table_name_6 WHERE bike_no > 10 AND driver___passenger = "nicky pulinx / ondrej cermak" AND points > 244 | sql_create_context |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
... | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'pancreatitis - relapsing')) AND DATETIME(cos... | eicu |
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 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 = '28448699' 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 table_204_467 (
id number,
"date" text,
"opponents" text,
"h/a" text,
"result\nf-a" text,
"scorers" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the difference in score on january 2 1922 ?
| SELECT ABS("result\nf-a" - "result\nf-a") FROM table_204_467 WHERE "date" = '2 january 1922' | squall |
CREATE TABLE table_name_12 (
driver VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver drove in grid 19?
| SELECT driver FROM table_name_12 WHERE grid = 19 | sql_create_context |
CREATE TABLE table_9647 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Round, when Method is 'submission (reverse armbar)'?
| SELECT "Round" FROM table_9647 WHERE "Method" = 'submission (reverse armbar)' | 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 lab.label FROM lab WHERE lab.subject_id = "19187" | mimicsql_data |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '8063652' AND IN_HOSP_DATE BETWEEN '2003-09-30' AND '2015-02-04' AND CLINIC_TYPE = '门诊' | css |
CREATE TABLE table_203_394 (
id number,
"title" text,
"author" text,
"date" number,
"length\n(first edition)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who authored the least number of titles ?
| SELECT "author" FROM table_203_394 GROUP BY "author" ORDER BY COUNT("title") LIMIT 1 | squall |
CREATE TABLE table_30557 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team drafted a player from HC Slavia Praha (Czechoslov... | SELECT "NHL team" FROM table_30557 WHERE "College/junior/club team" = 'HC Slavia Praha (Czechoslovakia)' | wikisql |
CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE activity (
actid number,
activity_name text
)
CREATE TABLE faculty... | SELECT T1.lname FROM faculty AS T1 JOIN faculty_participates_in AS T2 ON T1.facid = T2.facid JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM faculty AS T1 JOIN faculty_participates_in AS T2 ON T1.facid = T2.facid JOIN activity AS T3 ON T2.actid = T2.actid WH... | spider |
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 zyjybgb.SHSJ FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb 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 = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE person_info.XM = '周泰宁' ... | css |
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
previous_en... | SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 ORDER BY catalog_level_number | nvbench |
CREATE TABLE table_203_269 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had the least aggregate wins ?
| SELECT "club" FROM table_203_269 ORDER BY "aggregate" LIMIT 1 | squall |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM, UNIVALENT FROM t_kc22 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '17172279' AND MED_SER_ORG_NO = '7202022') ORDER BY UNIVALENT DESC LIMIT 1 | css |
CREATE TABLE medicine (
id number,
name text,
trade_name text,
fda_approved text
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id number,
medicine_id number,
interaction_type text
)
CREATE TABLE enzyme (
id number,
name text,
location text,
product text,
chromosom... | SELECT COUNT(*) FROM medicine WHERE fda_approved = 'No' | spider |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop, food_service WHERE ((CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'CINCINN... | atis |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '76364706' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc22 WHERE AMOUNT >= 3367.94) | css |
CREATE TABLE table_name_47 (
result VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game that was attended by 16,000 people?
| SELECT result FROM table_name_47 WHERE attendance = "16,000" | sql_create_context |
CREATE TABLE department (
dept_name text,
building text,
budget number
)
CREATE TABLE student (
id text,
name text,
dept_name text,
tot_cred number
)
CREATE TABLE prereq (
course_id text,
prereq_id text
)
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
s... | SELECT semester, year FROM section GROUP BY semester, year ORDER BY COUNT(*) DESC LIMIT 1 | spider |
CREATE TABLE table_2593 (
"Year" text,
"Day" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "Report" FROM table_2593 WHERE "Day" = 'Sunday' AND "Average Speed (mph)" = '128.27' | wikisql |
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 = "Ocl crtd art wo infrct" AND lab.flag = "delta" | 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 WHERE demographic.marital_status = "MARRIED" AND diagnoses.short_title = "Poison-drug/medicin NEC" | mimicsql_data |
CREATE TABLE table_name_43 (
championship VARCHAR,
margin VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which championship had a margin of 10 strokes?
| SELECT championship FROM table_name_43 WHERE margin = "10 strokes" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.