instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_73282 (
"Season" real,
"Episode" real,
"Episode Summary" text,
"Premier date" text,
"External Link" text,
"Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the newest season?
| SELECT MAX("Season") FROM table_73282 | wikisql |
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 building (
building_id text,
Name text,
Street_address text,
Years_as_tallest... | SELECT Name, Height_feet FROM building AS T1 JOIN Institution AS T2 ON T1.building_id = T2.building_id WHERE T2.Founded > 1880 ORDER BY Height_feet | nvbench |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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 varc... | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(DEPARTMENT_ID) DESC | nvbench |
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | SELECT COUNT(*) > 0 FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN... | advising |
CREATE TABLE table_56485 (
"Grid" real,
"Constructor" text,
"Qual" real,
"Rank" real,
"Laps" real,
"Time/Retired" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest grid with a Time/Retired of engine, and a qual of less than 138... | SELECT MIN("Grid") FROM table_56485 WHERE "Time/Retired" = 'engine' AND "Qual" < '138.75' | wikisql |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT jyjgzbb.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 table_25224 (
"Rnd" real,
"Date" text,
"Length" text,
"Race Name" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the lengths hosted by Poco... | SELECT "Length" FROM table_25224 WHERE "Track" = 'Pocono International Raceway' | wikisql |
CREATE TABLE table_name_2 (
pick VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number of Penn State?
| SELECT pick FROM table_name_2 WHERE school = "penn state" | sql_create_context |
CREATE TABLE table_name_11 (
location VARCHAR,
built VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the historic place that was built in 1910?
| SELECT location FROM table_name_11 WHERE built = "1910" | sql_create_context |
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_required varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank i... | 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 = 'CHICAGO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATT... | atis |
CREATE TABLE table_204_263 (
id number,
"pick" number,
"player" text,
"country of origin" text,
"pba team" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team got more players , pop cola or gordon 's ?
| SELECT "pba team" FROM table_204_263 WHERE "pba team" IN ('pop cola 800s', "gordon's gin boars") GROUP BY "pba team" ORDER BY COUNT("player") DESC LIMIT 1 | squall |
CREATE TABLE table_name_7 (
election VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the 1st member in the 1884 by-election?
| SELECT 1 AS st_member FROM table_name_7 WHERE election = "1884 by-election" | sql_create_context |
CREATE TABLE table_6415 (
"Rank" real,
"Airport" text,
"Code (IATA/ICAO)" text,
"Total Cargo (Metric Tonnes)" real,
"% Change" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank for the airport with a code of HKG/VHHH?
| SELECT MAX("Rank") FROM table_6415 WHERE "Code (IATA/ICAO)" = 'hkg/vhhh' | wikisql |
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_cred... | SELECT COUNT(DISTINCT course.course_id, semester.semester) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 500 AND 500 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = course_offering.se... | advising |
CREATE TABLE table_name_73 (
date VARCHAR,
injured VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date did the massacre result with 21 Injured?
| SELECT date FROM table_name_73 WHERE injured = "21" | sql_create_context |
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, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | nvbench |
CREATE TABLE table_15496 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did a Position of 21st (q) happen?
| SELECT "Year" FROM table_15496 WHERE "Position" = '21st (q)' | wikisql |
CREATE TABLE Enrolled_in (
StuID INTEGER,
CID VARCHAR(7),
Grade VARCHAR(2)
)
CREATE TABLE Gradeconversion (
lettergrade VARCHAR(2),
gradepoint FLOAT
)
CREATE TABLE Department (
DNO INTEGER,
Division VARCHAR(2),
DName VARCHAR(25),
Room VARCHAR(5),
Building VARCHAR(13),
DPhon... | SELECT Days, AVG(Credits) FROM Course GROUP BY Days ORDER BY Credits | nvbench |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
C... | SELECT DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) AS ym, COUNT(DISTINCT p.OwnerUserId) AS users FROM Posts AS p JOIN PostTags AS pt ON p.Id = pt.PostId JOIN Tags AS t ON t.Id = pt.TagId WHERE t.TagName = '##Parameter##' GROUP BY DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) ORDER BY D... | sede |
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TE... | SELECT Winery, COUNT(Winery) FROM wine WHERE Price > 100 GROUP BY Winery ORDER BY COUNT(Winery) DESC | nvbench |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text,
person_info_CSD text,
person_info_CSRQ time,
person_info_GJDM text,
person_info_GJMC text,
person_info_JGDM text,
person_info_JGMC text,
person_info_MZDM text,
person_info_MZMC text,
person_info_XBDM ... | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb ON 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 hz_info.person_info_XM = '鲁嘉歆' AND jybgb.BGRQ BETWEEN '2002-06-25' AND '2021-01-22' ... | css |
CREATE TABLE table_67289 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the game when the record was 68-39?
| SELECT "Score" FROM table_67289 WHERE "Record" = '68-39' | wikisql |
CREATE TABLE table_16857_2 (
season INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the first season?
| SELECT MIN(season) FROM table_16857_2 | sql_create_context |
CREATE TABLE table_name_57 (
attendance INTEGER,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance in week 4?
| SELECT AVG(attendance) FROM table_name_57 WHERE week = 4 | sql_create_context |
CREATE TABLE table_name_77 (
elevator VARCHAR,
elector VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the elevator when the elector is Pietro Colonna?
| SELECT elevator FROM table_name_77 WHERE elector = "pietro colonna" | sql_create_context |
CREATE TABLE table_37296 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When has a Visitor of new england whalers, and a Record of 9 9 1? Question 2
| SELECT "Date" FROM table_37296 WHERE "Visitor" = 'new england whalers' AND "Record" = '9–9–1' | wikisql |
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
-- Using valid SQLite, answer the following questions fo... | SELECT Clean_Jerk, Total FROM body_builder | nvbench |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime t... | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4 | eicu |
CREATE TABLE table_58807 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country is Brian Henninger from, who had a score larger than 69?
| SELECT "Country" FROM table_58807 WHERE "Score" > '69' AND "Player" = 'brian henninger' | wikisql |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE ... | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ALA' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Spring-... | advising |
CREATE TABLE coach (
coach_id number,
coach_name text,
gender text,
club_id number,
rank number
)
CREATE TABLE club (
club_id number,
club_name text,
region text,
start_year number
)
CREATE TABLE match_result (
rank number,
club_id number,
gold number,
big_silver nu... | SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id | spider |
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 demographic (... | 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.long_title = "Other preterm infants, 1,750-1,999 grams" AND lab."CATEGORY" = "Hematology" | mimicsql_data |
CREATE TABLE table_name_76 (
career_win_loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Career Win-Loss has a 2001 of 1 1?
| SELECT career_win_loss FROM table_name_76 WHERE 2001 = "1–1" | sql_create_context |
CREATE TABLE table_22570439_1 (
written_by VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the written by when mark worthington is the director?
| SELECT written_by FROM table_22570439_1 WHERE directed_by = "Mark Worthington" | sql_create_context |
CREATE TABLE table_58888 (
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when City / State is 'Mallala , South Australia', and when Team is 'R.J.MacArthur Onslow'... | SELECT "Date" FROM table_58888 WHERE "City / State" = 'mallala , south australia' AND "Team" = 'r.j.macarthur onslow' | wikisql |
CREATE TABLE table_49872 (
"Series Sorted" text,
"Title" text,
"Author" text,
"Featuring" text,
"Released" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the title when the featuring is leela and series sorted is 4s/b?
| SELECT "Title" FROM table_49872 WHERE "Featuring" = 'leela' AND "Series Sorted" = '4s/b' | wikisql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
... | SELECT COUNT(*) FROM treatment WHERE treatment.treatmentname = 'stress ulcer prophylaxis - proton pump inhibitor' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | eicu |
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station... | SELECT date, COUNT(date) FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 GROUP BY date ORDER BY date | nvbench |
CREATE TABLE table_55006 (
"Year" text,
"Make & Model" text,
"Length" text,
"Engine Type" text,
"Numbers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has a make & model of mci d4000n?
| SELECT "Year" FROM table_55006 WHERE "Make & Model" = 'mci d4000n' | wikisql |
CREATE TABLE table_44961 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who built the conant creek pegram truss railroad bridge?
| SELECT "Built" FROM table_44961 WHERE "Name" = 'conant creek pegram truss railroad bridge' | wikisql |
CREATE TABLE table_42019 (
"Name" text,
"Total" text,
"League" text,
"Canadian Championship" text,
"CONCACAF Champions League" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total when the name is Carl Robinson Category:Articles with hca... | SELECT "Total" FROM table_42019 WHERE "Name" = 'carl robinson category:articles with hcards' | 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 COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '27804437' AND t_kc22.STA_DATE BETWEEN '2010-08-25' AND '2011-01-15' AND t_kc22.SELF_PAY_PRO < 0.31 UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjzb... | css |
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.gender = "F" AND demographic.admityear < "2203" | mimicsql_data |
CREATE TABLE table_name_69 (
home_team VARCHAR,
date VARCHAR,
tie_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Home Team, when Date is 18 February 1956, and when Tie No is 3?
| SELECT home_team FROM table_name_69 WHERE date = "18 february 1956" AND tie_no = "3" | sql_create_context |
CREATE TABLE table_74306 (
"#" real,
"Episode" text,
"Directed by" text,
"Written by" text,
"U.S. Viewers (in millions)" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the titles of episodes numbered 19?
| SELECT "Episode" FROM table_74306 WHERE "#" = '19' | 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 WHERE demographic.gender = "M" AND demographic.admityear < "2155" | mimicsql_data |
CREATE TABLE table_name_22 (
laps INTEGER,
grid VARCHAR,
points VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5?
| SELECT MIN(laps) FROM table_name_22 WHERE points > 5 AND team = "forsythe racing" AND grid = 5 | sql_create_context |
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, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT 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_kc21.IN_HOSP_DATE BETWEEN '200... | css |
CREATE TABLE table_33628 (
"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 was Hawthorn's score as the away team?
| SELECT "Away team score" FROM table_33628 WHERE "Away team" = 'hawthorn' | wikisql |
CREATE TABLE table_name_10 (
pba_team VARCHAR,
college VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What PBA team is the player from Ateneo college and a pick of 17?
| SELECT pba_team FROM table_name_10 WHERE college = "ateneo" AND pick = 17 | sql_create_context |
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 SOC_SRT_DIRE_CD FROM t_kc22 WHERE MED_CLINIC_ID = '26465416775' AND SOC_SRT_DIRE_NM = '银杏叶片(薄膜衣)' | css |
CREATE TABLE table_51124 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Drawn is the highest one that has a Position smaller than 4, and a Lost smaller than... | SELECT MAX("Drawn") FROM table_51124 WHERE "Position" < '4' AND "Lost" < '2' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX num... | SELECT * FROM hz_info JOIN zyjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND person_info_hz_i... | css |
CREATE TABLE table_9514 (
"Party" text,
"Leader" text,
"Seats" text,
"% of seats" text,
"First Pref votes" text,
"% FPv" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Leader has Spoilt Votes as % of Seats?
| SELECT "Leader" FROM table_9514 WHERE "% of seats" = 'spoilt votes' | wikisql |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 T... | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | nvbench |
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.marital_status = "SINGLE" AND demographic.ethnicity = "WHITE" | mimicsql_data |
CREATE TABLE table_name_73 (
final VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the final result for the 63.5 kg?
| SELECT final FROM table_name_73 WHERE event = "63.5 kg" | sql_create_context |
CREATE TABLE table_1315 (
"Kansas State vs." text,
"Overall Record" text,
"at Manhattan" text,
"at Opponents Venue" text,
"at Neutral Site" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"Big 12 Games" text
)
-- Using valid SQLite, answer the followin... | SELECT "Current Streak" FROM table_1315 WHERE "Kansas State vs." = 'TCU' | wikisql |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 608 AND STRFTIME('%y', patient.unitadmittime) >= '2105' | eicu |
CREATE TABLE table_58648 (
"Season" real,
"Date" text,
"Winning Driver" text,
"Car #" real,
"Sponsor" text,
"Make" text,
"Distance" text,
"Avg Speed" text,
"Margin of Victory" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT MAX("Car #") FROM table_58648 WHERE "Sponsor" = 'post-it / national guard' | wikisql |
CREATE TABLE table_77293 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total of the Player with a Finish of 1?
| SELECT COUNT("Total") FROM table_77293 WHERE "Finish" = '1' | wikisql |
CREATE TABLE table_32598 (
"Name" text,
"Party" text,
"Province (Division)" text,
"Date appointed" text,
"Appointed by" text,
"Left office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party does Claudette Tardif belong to?
| SELECT "Party" FROM table_32598 WHERE "Name" = 'claudette tardif' | wikisql |
CREATE TABLE table_2790 (
"Date" text,
"Location" text,
"Opponent" text,
"Cyclones Points" real,
"Opp. Points" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did the opposing team get in the game with 6-2 record?
| SELECT MIN("Opp. Points") FROM table_2790 WHERE "Record" = '6-2' | wikisql |
CREATE TABLE table_9466 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Away has a Date of 14 september 2008, and an Attendance larger than 1881?
| SELECT "Away" FROM table_9466 WHERE "Date" = '14 september 2008' AND "Attendance" > '1881' | wikisql |
CREATE TABLE table_46083 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score of the game with a Record of 5 4 3?
| SELECT "Score" FROM table_46083 WHERE "Record" = '5–4–3' | wikisql |
CREATE TABLE table_4023 (
"Representative" text,
"Party" text,
"Years" text,
"Congress" text,
"District Home" text,
"Occupation" text,
"Electoral history" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party is listed for the Representa... | SELECT "Party" FROM table_4023 WHERE "Congress" = '85th' | wikisql |
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_44052 (
"Class" text,
"Wheel arrangement" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Quantitiy Made, when Quantity Preserved i... | SELECT "Quantity made" FROM table_44052 WHERE "Quantity preserved" = '4-4-0 — oooo — american' | wikisql |
CREATE TABLE table_name_92 (
surface VARCHAR,
semifinalists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surface has Semifinalists of wally masur malivai washington?
| SELECT surface FROM table_name_92 WHERE semifinalists = "wally masur malivai washington" | sql_create_context |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
... | SELECT TargetTagName AS "tag", COUNT(SourceTagName) AS "synonym_count" FROM TagSynonyms WHERE NOT ApprovalDate IS NULL GROUP BY TargetTagName ORDER BY 'synonym_count' DESC LIMIT 500 | sede |
CREATE TABLE table_25200461_9 (
population VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the population if the city is Gilroy?
| SELECT population FROM table_25200461_9 WHERE city = "Gilroy" | sql_create_context |
CREATE TABLE table_56140 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total series numbe... | SELECT SUM("No. in series") FROM table_56140 WHERE "Director" = 'jefferson kibbee' AND "Production code" = '2398191' | wikisql |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'septicemia nos') A... | mimic_iii |
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 zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZ... | css |
CREATE TABLE table_name_18 (
opponent_team VARCHAR,
match VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at Pasir Gudang, Malaysia with a match larger than 2?
| SELECT opponent_team FROM table_name_18 WHERE match > 2 AND location = "pasir gudang, malaysia" | sql_create_context |
CREATE TABLE table_68735 (
"Season" real,
"Div." text,
"Tms." real,
"Pos." real,
"Attendance/G" real,
"J. League Cup" text,
"Emperor's Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had the highest attendance/g than 3,289?
| SELECT MAX("Season") FROM table_68735 WHERE "Attendance/G" < '3,289' | wikisql |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
... | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2874) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'phosphate') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT... | mimic_iii |
CREATE TABLE table_18181 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all results in elections with Richard Baker as the incumbent.
| SELECT "Result" FROM table_18181 WHERE "Incumbent" = 'Richard Baker' | wikisql |
CREATE TABLE table_23826 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many were written by ... | SELECT COUNT("Written by") FROM table_23826 WHERE "Directed by" = 'Peter Winther' | wikisql |
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 AVG(MED_AMOUT) FROM t_kc21 WHERE MED_ORG_DEPT_CD = '8867' AND IN_HOSP_DATE BETWEEN '2004-10-20' AND '2013-08-27' AND IN_DIAG_DIS_CD = 'O01.280' AND CLINIC_TYPE = '住院' | css |
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 Headquarter, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | nvbench |
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varcha... | SELECT business.city FROM business, category WHERE business.name = 'Taj Mahal' AND category.business_id = business.business_id AND category.category_name = 'restaurant' | yelp |
CREATE TABLE table_name_40 (
record VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of game 48?
| SELECT record FROM table_name_40 WHERE game = 48 | sql_create_context |
CREATE TABLE table_name_75 (
opponent VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Round of first had what opponent?
| SELECT opponent FROM table_name_75 WHERE round = "first" | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | mimicsql_data |
CREATE TABLE table_36253 (
"Rank" real,
"Name" text,
"Club" text,
"Nation" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competitors are scored 124.51 points?
| SELECT "Name" FROM table_36253 WHERE "Points" = '124.51' | 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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT SUM(t_kc22.AMOUNT) 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_ID = '80471711' AND t_kc21.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2000-08-06' AND '2003-10-30' AND t_kc22.MED_I... | css |
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 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 All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)... | SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Date_in_Locaton_To ORDER BY Date_in_Locaton_To 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2195" AND procedures.short_title = "Clo endosc bx bile duct" | mimicsql_data |
CREATE TABLE table_27599216_6 (
institution VARCHAR,
football_stadium VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many institutions are shown for the football stadium of mosaic stadium?
| SELECT COUNT(institution) FROM table_27599216_6 WHERE football_stadium = "Mosaic Stadium" | sql_create_context |
CREATE TABLE table_70084 (
"Date of Issue" text,
"Theme" text,
"Denomination" text,
"Printer" text,
"Quantity" text,
"Design" text,
"Perforation" text,
"First Day Cover Cancellation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When di... | SELECT "Date of Issue" FROM table_70084 WHERE "Theme" = 'bobsleigh' | 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 prescriptions (
subject_id text,
hadm_id... | SELECT demographic.days_stay, lab.label FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Francis Baseler" | mimicsql_data |
CREATE TABLE table_name_31 (
mobile VARCHAR,
opera VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of users were using mobile browsers during the period in which 2.62% were using Opera?
| SELECT mobile FROM table_name_31 WHERE opera = "2.62%" | sql_create_context |
CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(50),
country varchar2(20),
f_id number(10),
genre_is varchar2(20),
rating number(10),
languages varchar2(20),
releasedate Date,
resolution number(10)
)
CREATE TABLE genre (
g_name varchar2(20),
rating varchar2(... | SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY AVG(rating) DESC | nvbench |
CREATE TABLE table_25371 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ha... | SELECT "High rebounds" FROM table_25371 WHERE "Record" = '23-47' | wikisql |
CREATE TABLE table_19517621_4 (
episode__number INTEGER,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest episode number with the title of Jerusalem?
| SELECT MAX(episode__number) FROM table_19517621_4 WHERE title = "Jerusalem" | sql_create_context |
CREATE TABLE table_11869952_3 (
mission VARCHAR,
launch_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which missions were scheduled to launch on November 16, 2006?
| SELECT mission FROM table_11869952_3 WHERE launch_date = "November 16, 2006" | sql_create_context |
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 IN_DIAG_DIS_CD, IN_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_NM = '冯沛文' AND IN_HOSP_DATE BETWEEN '2006-01-04' AND '2010-07-16' GROUP BY IN_DIAG_DIS_CD ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE table_name_13 (
state VARCHAR,
first_elected VARCHAR,
member VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the State, when the year First elected is 1966, and when the Member is Alan Jarman?
| SELECT state FROM table_name_13 WHERE first_elected = "1966" AND member = "alan jarman" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.