context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
... | how many days has elapsed since patient 70267 was last diagnosed with nonrupt cerebral aneurym on their current hospital encounter? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnoses_icd.charttime)) FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'nonrupt cerebral aneurym') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM adm... | mimic_iii |
CREATE TABLE table_35512 (
"Manufacturer" text,
"Model" text,
"Quantity" real,
"Introduced" real,
"Retired" real
) | How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999? | SELECT SUM("Introduced") FROM table_35512 WHERE "Manufacturer" = 'fokker' AND "Quantity" = '5' AND "Retired" > '1999' | wikisql |
CREATE TABLE txmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | 列出患者奚经略所有检验结果指标记录中的检测方法在2007-09-21到2008-12-08内有什么? | SELECT jyjgzbb.JCFF FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.... | css |
CREATE TABLE institution (
institution_id VARCHAR,
founded VARCHAR,
type VARCHAR
)
CREATE TABLE protein (
institution_id VARCHAR
) | How many proteins are associated with an institution founded after 1880 or an institution with type 'Private'? | SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private' | sql_create_context |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
Exp... | Posts from MathOverflow an Mathematics with the same title between two given dates. | SELECT b.Title, a.CreationDate AS "MO Date", b.CreationDate AS "MSE Date", ('http://mathoverflow.net/questions/' + CAST(a.Id AS TEXT)), ('http://math.stackexchange.com/questions/' + CAST(b.Id AS TEXT)) FROM "stackexchange.mathoverflow".Posts AS a JOIN "stackexchange.math".Posts AS b ON a.Title = b.Title WHERE b.PostTyp... | sede |
CREATE TABLE table_31906 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | In less than 58 laps, what is the highest grid for Alexander Wurz? | SELECT MAX("Grid") FROM table_31906 WHERE "Driver" = 'alexander wurz' AND "Laps" < '58' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | give me the number of patients who were diagnosed with benign neoplasm of spinal meninges and admitted in hospital before 2158. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2158" AND diagnoses.long_title = "Benign neoplasm of spinal meninges" | mimicsql_data |
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
)
... | count the number of patients whose admission location is clinic referral/premature and diagnoses short title is dysphagia nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND diagnoses.short_title = "Dysphagia NOS" | mimicsql_data |
CREATE TABLE table_name_38 (
country VARCHAR,
director VARCHAR
) | Tell me the country for julian schnabel | SELECT country FROM table_name_38 WHERE director = "julian schnabel" | sql_create_context |
CREATE TABLE regions (
region_id number,
region_name text
)
CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE jobs (
job_id text,
job_title text,
min_salary number,
max_salary number
)
CREATE TABLE employees (
employee_id number,
... | Return the full names and salaries for employees with first names that end with the letter m. | SELECT first_name, last_name, salary FROM employees WHERE first_name LIKE '%m' | spider |
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... | has patient 19096 undergone a procedure this year? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19096) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | mimic_iii |
CREATE TABLE table_203_359 (
id number,
"outcome" text,
"year" number,
"championship" text,
"surface" text,
"opponent" text,
"score" text
) | how many consecutive years was there a hard surface at the championship ? | SELECT COUNT("year") FROM table_203_359 WHERE "surface" = 'hard' | squall |
CREATE TABLE table_77981 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | How tall is Daniel Orton? | SELECT "Height" FROM table_77981 WHERE "Player" = 'daniel orton' | wikisql |
CREATE TABLE table_name_58 (
nationality VARCHAR,
time VARCHAR
) | What Nationality has a Time of 9:01.70? | SELECT nationality FROM table_name_58 WHERE time = "9:01.70" | sql_create_context |
CREATE TABLE table_name_53 (
seats INTEGER,
quantity INTEGER
) | How many seats have a quantity over 45? | SELECT SUM(seats) FROM table_name_53 WHERE quantity > 45 | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | give me the number of patients whose discharge location is home health care and procedure long title is percutaneous aspiration of liver? | 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 = "Percutaneous aspiration of liver" | mimicsql_data |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
item... | how many hours have elapsed since patient 11826 was prescribed tacrolimus in their current hospital visit for the first time? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11826 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'tacrolimus' ORDER BY prescriptions.startdate... | mimic_iii |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId n... | Suggested Edit Rejections For User. Shows all edits, that were rejected | SELECT COUNT(*) FROM SuggestedEdits WHERE NOT RejectionDate IS NULL | sede |
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,
ZYLBDM text,
ZYMC text
)
CREATE TABLE ftxmzjzjlb (
HXPLC number,
HZ... | 医院9831232从12年8月1日到2019年2月12日的门诊就诊中,有多少科室开出的检验报告单少于6张 | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM txmzjzjlb JOIN jybgb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE txmzjzjlb.YLJGDM = '9831232' AND jybgb.BGRQ BETWEEN '2012-08-01' AND '2019-02-12' GROUP BY jybgb.KSBM HAVING COUNT(*) < 6 UNION SELECT jybgb.KSBM FROM ftxmzjzjlb J... | css |
CREATE TABLE table_11849 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
) | Who wins with a score 7 6(4), 6 4 | SELECT "Winner" FROM table_11849 WHERE "Score" = '7–6(4), 6–4' | wikisql |
CREATE TABLE table_21393 (
"Name" text,
"Model" text,
"Max FS" text,
"Tested FS" text,
"Short description" text,
"Publication" text,
"Method" text,
"Output" text,
"Status" text
) | what is the total number of model wehre the status is named geneva? | SELECT COUNT("Model") FROM table_21393 WHERE "Status" = 'Status' AND "Name" = 'GenEva' | wikisql |
CREATE TABLE table_38704 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | What was the earliest game with a record of 23 6 4? | SELECT MIN("Game") FROM table_38704 WHERE "Record" = '23–6–4' | wikisql |
CREATE TABLE table_21926985_2 (
state_rank_by_revenue VARCHAR,
known_for VARCHAR
) | What is the rank of the company known for retailing? | SELECT COUNT(state_rank_by_revenue) FROM table_21926985_2 WHERE known_for = "Retailing" | sql_create_context |
CREATE TABLE table_21076286_2 (
broadcast_network VARCHAR,
broadcast_scope VARCHAR
) | Name the broadcast network for saitama prefecture | SELECT broadcast_network FROM table_21076286_2 WHERE broadcast_scope = "Saitama Prefecture" | sql_create_context |
CREATE TABLE table_name_58 (
coach VARCHAR,
founded VARCHAR,
team VARCHAR
) | Which coach founded the Western Strikers team after 1963? | SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = "western strikers" | sql_create_context |
CREATE TABLE table_68501 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | Who was the opponent at the game that had a loss of Saarloos (7-7)? | SELECT "Opponent" FROM table_68501 WHERE "Loss" = 'saarloos (7-7)' | wikisql |
CREATE TABLE table_36726 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | Which Record has a Game of 41? | SELECT "Record" FROM table_36726 WHERE "Game" = '41' | wikisql |
CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Pr... | Bar chart of the total number from each headquarters, and rank in desc by the x axis. | SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters ORDER BY Headquarters DESC | nvbench |
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE sectio... | how many students are in each department?, order X-axis in desc order. | SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY dept_name DESC | nvbench |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | for patients who were since 4 years ago diagnosed with intra-abdominal abscess - hepatic, what were the top four most common specimen tests that followed during the same month? | SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'intra-abdominal abscess - hepatic' AND DATET... | eicu |
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... | how many patients are born before 2087 and tested with joint fluid in lab? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2087" AND lab.fluid = "Joint Fluid" | mimicsql_data |
CREATE TABLE table_51219 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) | How many goals were scored on November 22, 1994? | SELECT SUM("Goal") FROM table_51219 WHERE "Date" = 'november 22, 1994' | wikisql |
CREATE TABLE table_17025 (
"Ships name" text,
"Date entered service" text,
"Date withdrawn" text,
"Tonnage" real,
"Type of Ship" text
) | what's the date where ships name is zeeland entered service | SELECT "Date entered service" FROM table_17025 WHERE "Ships name" = 'Zeeland' | wikisql |
CREATE TABLE table_204_107 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | which country has the most bronze medals in european baseball championships ? | SELECT "nation" FROM table_204_107 ORDER BY "bronze" DESC LIMIT 1 | squall |
CREATE TABLE table_203_47 (
id number,
"game" number,
"date" text,
"opponent" text,
"location" text,
"score" text,
"ot" text,
"attendance" number,
"record" text
) | what location had the most games ? | SELECT "location" FROM table_203_47 GROUP BY "location" ORDER BY COUNT("game") DESC LIMIT 1 | squall |
CREATE TABLE table_11622771_1 (
purse__ VARCHAR,
date VARCHAR
) | How many purses were there for the mar 16? | SELECT COUNT(purse__) AS $__ FROM table_11622771_1 WHERE date = "Mar 16" | sql_create_context |
CREATE TABLE table_name_20 (
record VARCHAR,
date VARCHAR
) | Which Record has a Date of 23 february 1986? | SELECT record FROM table_name_20 WHERE date = "23 february 1986" | sql_create_context |
CREATE TABLE table_29264319_1 (
artist_2 VARCHAR,
artist_1 VARCHAR
) | Who is the artist 2 on the setlist where the artist 1 is Sparfunk & D-Code? | SELECT artist_2 FROM table_29264319_1 WHERE artist_1 = "Sparfunk & D-Code" | sql_create_context |
CREATE TABLE table_name_63 (
played INTEGER,
points VARCHAR,
against VARCHAR,
lost VARCHAR
) | How much Played has an Against larger than 37, and a Lost of 15, and Points smaller than 11? | SELECT SUM(played) FROM table_name_63 WHERE against > 37 AND lost = 15 AND points < 11 | sql_create_context |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE... | how much was patient 16169's arterial bp mean change second measured on the first intensive care unit visit compared to the value first measured on the first intensive care unit visit. | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16169) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.item... | mimic_iii |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | Find Time and ID , and visualize them by a bar chart, display by the y-axis in ascending please. | SELECT Time, ID FROM swimmer ORDER BY ID | nvbench |
CREATE TABLE table_dev_10 (
"id" int,
"gender" string,
"hba1c" float,
"serum_creatinine" float,
"alcohol_abuse" bool,
"baseline_hemoglobin_hgb" float,
"NOUSE" float
) | hba1c < 10 % | SELECT * FROM table_dev_10 WHERE hba1c < 10 | criteria2sql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | how many patients whose diagnoses long title is cerebral embolism with cerebral infarction and drug route is oral? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Cerebral embolism with cerebral infarction" AND prescriptions.route = "ORAL" | mimicsql_data |
CREATE TABLE table_name_35 (
runner_up VARCHAR,
winner VARCHAR
) | Name the runner-up for janice yan ( ) | SELECT runner_up FROM table_name_35 WHERE winner = "janice yan (閻奕格)" | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | Tell me the number of married patients who underwent a procedure called open heart valvuloplasty of mitral valve without replacement. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.short_title = "Opn mitral valvuloplasty" | mimicsql_data |
CREATE TABLE table_name_22 (
home_captain VARCHAR,
result VARCHAR
) | Who was the Home captain when the Result was Aus by 218 runs? | SELECT home_captain FROM table_name_22 WHERE result = "aus by 218 runs" | sql_create_context |
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE weather (
date TEXT,
... | Show me start_station_id by start station name in a histogram, and could you rank bars in ascending order? | SELECT start_station_name, start_station_id FROM trip ORDER BY start_station_name | nvbench |
CREATE TABLE table_65966 (
"School" text,
"Location" text,
"Mascot" text,
"Size" real,
"IHSAA Class" text,
"County" text,
"Year Joined" real,
"Previous Conference" text
) | Which Location has a Previous Conference of independents, and a Mascot of hilltoppers? | SELECT "Location" FROM table_65966 WHERE "Previous Conference" = 'independents' AND "Mascot" = 'hilltoppers' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | what is the number of patients whose admission type is emergency and with procedure nasal sinus dx proc nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.short_title = "Nasal sinus dx proc NEC" | mimicsql_data |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | provide the number of patients whose admission year is less than 2170 and diagnoses short title is delirium d/t other cond? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2170" AND diagnoses.short_title = "Delirium d/t other cond" | mimicsql_data |
CREATE TABLE table_20699 (
"Year" real,
"Lansing (LAN)" text,
"Detroit (DTW)" text,
"Grand Rapids (GRR)" text,
"Flint (FNT)" text,
"Kalamazoo (AZO)" text,
"Saginaw (MBS)" text
) | When Lansing's fare is $433.59, what is the Detroit fare? | SELECT "Detroit (DTW)" FROM table_20699 WHERE "Lansing (LAN)" = '$433.59' | wikisql |
CREATE TABLE table_33777 (
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) | What circuit did marlboro team penske win with an unknown fastest lap? | SELECT "Circuit" FROM table_33777 WHERE "Winning team" = 'marlboro team penske' AND "Fastest lap" = 'unknown' | wikisql |
CREATE TABLE table_23850 (
"Parish" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real
) | What is the total number of votes McCain had in Webster? | SELECT MAX("McCain#") FROM table_23850 WHERE "Parish" = 'Webster' | wikisql |
CREATE TABLE table_203_509 (
id number,
"year" number,
"laetare medalist" text,
"position" text
) | what are the total number of times soldier is listed as the position on this chart ? | SELECT COUNT(*) FROM table_203_509 WHERE "position" = 'soldier' | squall |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TAB... | What courses are not in the SM department but are required for the major ? | SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department <> 'SM' AND program_course.course_id = course.course_id AND program.program_id = program_course.program_id | advising |
CREATE TABLE table_29085 (
"Round #" text,
"Home Team" text,
"Win/Loss" text,
"Score" text,
"Opposition" text,
"Location" text
) | What is the location when the opposition is mid canterbury? | SELECT "Location" FROM table_29085 WHERE "Opposition" = 'Mid Canterbury' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | Which patients have the bupr75 drug code? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "BUPR75" | mimicsql_data |
CREATE TABLE table_name_52 (
opponent VARCHAR,
date VARCHAR
) | Which Opponent has a Date of november 24, 1991? | SELECT opponent FROM table_name_52 WHERE date = "november 24, 1991" | sql_create_context |
CREATE TABLE table_name_92 (
length INTEGER,
taper VARCHAR,
large_end VARCHAR
) | Which Length has a Taper of #15, and a Large end larger than 1.875? | SELECT MAX(length) FROM table_name_92 WHERE taper = "#15" AND large_end > 1.875 | sql_create_context |
CREATE TABLE invoices (
billing_state VARCHAR,
total INTEGER
) | List the number of invoices and the invoice total from California. | SELECT billing_state, COUNT(*), SUM(total) FROM invoices WHERE billing_state = "CA" | sql_create_context |
CREATE TABLE table_683 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) | Which incumbent was first elected in 1972? | SELECT "Incumbent" FROM table_683 WHERE "First elected" = '1972' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | what is the number of patients with procedure icd9 code 3897 and drug route buccal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "3897" AND prescriptions.route = "BUCCAL" | mimicsql_data |
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 lab (
labid numbe... | have patient 028-30487 been to the er since 2103? | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '028-30487' AND patient.hospitaladmitsource = 'emergency department' AND STRFTIME('%y', patient.unitadmittime) >= '2103' | eicu |
CREATE TABLE table_4067 (
"Category" text,
"Player" text,
"Team" text,
"Games played" real,
"Totals" text,
"Average" text
) | What is the team when player is listed as Ronjay Buenafe? | SELECT "Team" FROM table_4067 WHERE "Player" = 'Ronjay Buenafe' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TAB... | tell me the name of the drug that patient 013-9305 was prescribed for within the same day after having been diagnosed with hypokalemia - moderate ( 2.8 - 3.5 meq/dl)? | SELECT t2.drugname FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-9305') AND diagnosis.diagnosi... | eicu |
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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by weekday. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | nvbench |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate... | High-rep users with only 2 posts. | SELECT 'site://users/' + CAST(u.Id AS TEXT) + '|' + CAST(u.DisplayName AS TEXT) AS "user", u.Reputation, COUNT(p.Id) FROM Users AS u, Posts AS p WHERE u.Reputation > 10000 AND u.Id = p.OwnerUserId AND (p.PostTypeId = 1 OR p.PostTypeId = 2) GROUP BY u.Id, u.DisplayName, u.Reputation HAVING COUNT(p.Id) = 2 ORDER BY u.Rep... | sede |
CREATE TABLE table_24281 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | What is the pick # for player wes lysack? | SELECT "Pick #" FROM table_24281 WHERE "Player" = 'Wes Lysack' | wikisql |
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE... | Show all origins and the number of flights from each origin. Show bar chart. | SELECT origin, COUNT(*) FROM flight GROUP BY origin | nvbench |
CREATE TABLE table_name_75 (
independent_socialist_ticket VARCHAR,
liberal_ticket VARCHAR
) | Who was the Independent Socialist candidate who ran against the Liberal candidate Edward Goodell? | SELECT independent_socialist_ticket FROM table_name_75 WHERE liberal_ticket = "edward goodell" | sql_create_context |
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,... | give me the saturday morning flights from CHICAGO to ST. PAUL on CO that have meals | SELECT DISTINCT flight_id FROM flight WHERE (((((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 26 AND DATE_DAYalias0.month_number = 7 AND DATE_DAYalias0.year = 1991)) AND ... | atis |
CREATE TABLE table_568 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | what's the tries against with tries for being 47 | SELECT "Tries against" FROM table_568 WHERE "Tries for" = '47' | wikisql |
CREATE TABLE table_name_57 (
average VARCHAR,
matches VARCHAR,
best_bowling VARCHAR,
team VARCHAR,
wickets VARCHAR
) | What is the total average for the England team when the wickets are less than 18, the best bowling is 4/138, and there are less than 3 matches? | SELECT COUNT(average) FROM table_name_57 WHERE team = "england" AND wickets < 18 AND best_bowling = "4/138" AND matches < 3 | sql_create_context |
CREATE TABLE table_59217 (
"Physical property" text,
"Helium" text,
"Neon" text,
"Argon" text,
"Krypton" text,
"Xenon" text
) | Which Neon has a Argon of 189.6? | SELECT "Neon" FROM table_59217 WHERE "Argon" = '−189.6' | wikisql |
CREATE TABLE table_25869 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | When j.r. smith (26) has the highest amount of points what is the score? | SELECT "Score" FROM table_25869 WHERE "High points" = 'J.R. Smith (26)' | wikisql |
CREATE TABLE table_70561 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic? | SELECT "Playoffs" FROM table_70561 WHERE "Open Cup" = 'did not qualify' AND "Regular Season" = '3rd, south atlantic' | wikisql |
CREATE TABLE table_17805 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | How many were won with the points against was 450? | SELECT COUNT("Won") FROM table_17805 WHERE "Points against" = '450' | wikisql |
CREATE TABLE table_4553 (
"Round" real,
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning car" text
) | Which circuit did Guy Edwards win? | SELECT "Circuit" FROM table_4553 WHERE "Winning driver" = 'guy edwards' | wikisql |
CREATE TABLE table_24835 (
"Episode number" real,
"Title" text,
"Original airing on Channel 4" text,
"Time of airing on Channel 4" text,
"Original airing on E4" text,
"Time of airing on E4" text,
"Position in Channel 4s ratings a" text,
"Position in E4s ratings b" text,
"Total viewer... | What is the title of the original airing on e4 May 2, 2010? | SELECT "Title" FROM table_24835 WHERE "Original airing on E4" = 'May 2, 2010' | wikisql |
CREATE TABLE table_55210 (
"Average population" text,
"Live births" real,
"Deaths" real,
"Natural change" real,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
) | What is the largest crude birth rate when natural change is 215 at a rate greater than 7.2? | SELECT MAX("Crude birth rate (per 1000)") FROM table_55210 WHERE "Natural change" = '215' AND "Natural change (per 1000)" > '7.2' | 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,
... | 医院3947713中,编号为30230164的这个病人的就诊科室名称包含肾内科的所有门诊就诊记录的流水号 | SELECT txmzjzjlb.JZLSH 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 = '30230164' AND hz_info.YLJGDM = '3947713' AND txmzjzjlb.JZKSMC LIKE '%肾内科%' UNION SELECT ftxmzjzjlb.JZLSH FROM hz_info JOIN ftxmzjzjlb ON hz_info.YLJ... | css |
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
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... | 凤雨筠这位患者之前会有哪些异常反应 | SELECT * 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.JZLSH_MZJZJLB AND jybgb.YLJG... | css |
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... | give me the number of patients whose diagnoses short title is chr syst/diastl hrt fail and lab test category is hematology? | 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 = "Chr syst/diastl hrt fail" AND lab."CATEGORY" = "Hematology" | 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,
... | 患者54076263049是哪天来的门诊就诊? | SELECT JZKSRQ FROM mzjzjlb WHERE JZLSH = '54076263049' | css |
CREATE TABLE table_48136 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | what is the icao when the country is norway? | SELECT "ICAO" FROM table_48136 WHERE "Country" = 'norway' | wikisql |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 名叫严承安的患者在医院5983147号入院诊断出的疾病名称含有神经衰弱的医疗就诊记录的编号都啥样? | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '严承安' AND t_kc21.MED_SER_ORG_NO = '5983147' AND t_kc21.IN_DIAG_DIS_NM LIKE '%神经衰弱%' | css |
CREATE TABLE table_3268 (
"Episode Number" text,
"Episode" text,
"Original Airdate" text,
"Rating" text,
"Share" text,
"Rating/Share (18\u201349)" text,
"Viewers (millions)" text,
"Weekly Rank" real
) | What number episode was Week 4, Part 2? | SELECT "Episode Number" FROM table_3268 WHERE "Episode" = 'Week 4, Part 2' | 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... | Report the number of newborn patients admitted before 2158. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.admityear < "2158" | mimicsql_data |
CREATE TABLE table_name_59 (
byes VARCHAR,
wins VARCHAR
) | What is the total number of byes when the wins were 9? | SELECT COUNT(byes) FROM table_name_59 WHERE wins = 9 | sql_create_context |
CREATE TABLE table_name_40 (
season INTEGER,
score VARCHAR,
venue VARCHAR
) | Which season was there a game with the score of 1:3 played at the venue of national stadium, maldives? | SELECT SUM(season) FROM table_name_40 WHERE score = "1:3" AND venue = "national stadium, maldives" | sql_create_context |
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... | give the number of patients with newborn admission type and procedure title insert endotracheal tube. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "NEWBORN" AND procedures.short_title = "Insert endotracheal tube" | mimicsql_data |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
... | First 10 uses of a tag. | SELECT PostId AS "post_link", UserId AS "user_link", CreationDate, RevisionGUID AS "revision_link" FROM PostHistory WHERE PostHistoryTypeId IN (3, 6, 9) AND Text LIKE '%<##tagName##>%' ORDER BY CreationDate LIMIT 10 | sede |
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.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZ... | css |
CREATE TABLE table_1257 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
) | Name the school/club team when season is 2009-2011 | SELECT "School/Club Team" FROM table_1257 WHERE "Season" = '2009-2011' | wikisql |
CREATE TABLE ftxmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZD... | 在患者卫光临的诊疗记录里,从04年6月8日到21年1月17日这期间,为其检测指标224990的医务人员有哪几位,报一下工号及姓名 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZ... | css |
CREATE TABLE table_name_11 (
total_matches INTEGER,
points_won VARCHAR,
year VARCHAR
) | Can you tell me the lowest Total natches that has the Points won of 3, and the Year of 1994? | SELECT MIN(total_matches) FROM table_name_11 WHERE points_won = 3 AND year = "1994" | sql_create_context |
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... | 编码为94379213的患者的检验报告单对应的检验结果指标均异常有哪些?列出检验报告单号分别是什么? | 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.RYBH = '94379213' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FROM jyjgzbb WH... | css |
CREATE TABLE table_name_67 (
silver INTEGER,
total VARCHAR,
gold VARCHAR,
bronze VARCHAR
) | What team had less than 291 total points whole having 76 bronze and over 21 gold? | SELECT SUM(silver) FROM table_name_67 WHERE gold > 21 AND bronze = 76 AND total < 291 | sql_create_context |
CREATE TABLE table_204_793 (
id number,
"call-sign" text,
"location" text,
"rf" number,
"psip" number,
"programming" text
) | how many stations played in canton ? | SELECT COUNT(*) FROM table_204_793 WHERE "location" = 'canton' | squall |
CREATE TABLE table_name_48 (
date VARCHAR,
home VARCHAR
) | When did the Houston Rockets play Home? | SELECT date FROM table_name_48 WHERE home = "houston rockets" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.