NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about manager_id over the email by a bar chart, I want to list in asc by the Y-axis. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) | SELECT EMAIL, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
20211,
3502,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966,
... |
When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%? | CREATE TABLE table_1341718_14 (
first_elected INTEGER,
party VARCHAR,
candidates VARCHAR
) | SELECT MIN(first_elected) FROM table_1341718_14 WHERE party = "Republican" AND candidates = "Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
2534,
41,
166,
834,
19971,
3,
21342,
17966,
6,
1088,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
2517,
2606,
834,
2534,
549,
17444,
427,
1088,
3274,
96,
1649,
15727,
152,
121,
3430,
4341,
3274,
96,
24372,
49,
17,
454,
5,
9411,
41,
448,
61,
3,
3539,
... |
What is the name of the department in the Building Mergenthaler? | CREATE TABLE enrolled_in (
stuid number,
cid text,
grade text
)
CREATE TABLE gradeconversion (
lettergrade text,
gradepoint number
)
CREATE TABLE course (
cid text,
cname text,
credits number,
instructor number,
days text,
hours text,
dno number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE department (
dno number,
division text,
dname text,
room text,
building text,
dphone number
)
CREATE TABLE member_of (
facid number,
dno number,
appt_type text
)
CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
) | SELECT dname FROM department WHERE building = "Mergenthaler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
15097,
834,
77,
41,
21341,
23,
26,
381,
6,
3,
10812,
1499,
6,
2769,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2769,
1018,
8674,
41,
2068,
6801,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
26,
4350,
21680,
3066,
549,
17444,
427,
740,
3274,
96,
329,
49,
729,
13958,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the team and the location of school each player belongs to? | CREATE TABLE player (
player_id number,
player text,
team text,
age number,
position text,
school_id number
)
CREATE TABLE school_performance (
school_id number,
school_year text,
class_a text,
class_aa text
)
CREATE TABLE school_details (
school_id number,
nickname text,
colors text,
league text,
class text,
division text
)
CREATE TABLE school (
school_id number,
school text,
location text,
enrollment number,
founded number,
denomination text,
boys_or_girls text,
day_or_boarding text,
year_entered_competition number,
school_colors text
) | SELECT T1.team, T2.location FROM player AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
1959,
834,
23,
26,
381,
6,
1959,
1499,
6,
372,
1499,
6,
1246,
381,
6,
1102,
1499,
6,
496,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
11650,
6,
332,
4416,
14836,
21680,
1959,
6157,
332,
536,
3,
15355,
3162,
496,
6157,
332,
357,
9191,
332,
5411,
6646,
834,
23,
26,
3274,
332,
4416,
6646,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest Pick, when Draft is less than 1991, and when Player is 'Tom Sasso Category:Articles with hCards'? | CREATE TABLE table_12155 (
"Draft" real,
"Round" text,
"Pick" real,
"Player" text,
"Nationality" text
) | SELECT MIN("Pick") FROM table_12155 WHERE "Draft" < '1991' AND "Player" = 'tom sasso category:articles with hcards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
20896,
41,
96,
308,
10913,
121,
490,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
345,
3142,
8512,
21680,
953,
834,
2122,
20896,
549,
17444,
427,
96,
308,
10913,
121,
3,
2,
3,
31,
2294,
4729,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
235,
51,
3,
7,
9,
7,
7,
32,
3295,
... |
Who was the opponent at the game with a score of 42-28 after week 4? | CREATE TABLE table_66582 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Score" text,
"Record" text
) | SELECT "Opponent" FROM table_66582 WHERE "Week" > '4' AND "Score" = '42-28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
3449,
357,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
3539,
3449,
357,
549,
17444,
427,
96,
518,
10266,
121,
2490,
3,
31,
591,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
4165,
18,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of stores in each city Plot them as bar chart, and I want to order in asc by the Y. | CREATE TABLE store_district (
Store_ID int,
District_ID int
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size real,
Number_of_product_category real,
Ranking int
)
CREATE TABLE product (
product_id int,
product text,
dimensions text,
dpi real,
pages_per_minute_color real,
max_page_size text,
interface text
)
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
) | SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1078,
834,
26,
23,
20066,
41,
4493,
834,
4309,
16,
17,
6,
3570,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1078,
41,
4493,
834,
4309,
16,
17,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
15,
26,
834,
254,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
1078,
6157,
3,
17,
536,
3,
15355,
3162,
1078,
834,
26,
23,
20066,
6157,
3,
17,
357,
9191,
3,
17,
5411,
28719,
834,
4309,
3274,
3,
17,
441... |
what is the attendance when the home team is chester city? | CREATE TABLE table_name_51 (attendance VARCHAR, home_team VARCHAR) | SELECT attendance FROM table_name_51 WHERE home_team = "chester city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
15116,
663,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
11364,
116,
8,
234,
372,
19,
3,
1326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
234,
834,
11650,
3274,
96,
13263,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the number of stores in each city. Plot them as bar chart. | CREATE TABLE store_district (
Store_ID int,
District_ID int
)
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE product (
product_id int,
product text,
dimensions text,
dpi real,
pages_per_minute_color real,
max_page_size text,
interface text
)
CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size real,
Number_of_product_category real,
Ranking int
) | SELECT Headquartered_City, COUNT(*) FROM store AS t1 JOIN store_district AS t2 ON t1.Store_ID = t2.Store_ID JOIN district AS t3 ON t2.District_ID = t3.District_ID GROUP BY t3.Headquartered_City | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1078,
834,
26,
23,
20066,
41,
4493,
834,
4309,
16,
17,
6,
3570,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1078,
834,
15892,
41,
4493,
834,
4309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
15,
26,
834,
254,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
1078,
6157,
3,
17,
536,
3,
15355,
3162,
1078,
834,
26,
23,
20066,
6157,
3,
17,
357,
9191,
3,
17,
5411,
28719,
834,
4309,
3274,
3,
17,
441... |
how many patients whose admission year is less than 2121 and diagnoses long title is personal history of transient ischemic attack (tia), and cerebral infarction without residual deficits? | 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 (
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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 text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2121" AND diagnoses.long_title = "Personal history of transient ischemic attack (TIA), and cerebral infarction without residual deficits" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the average grid for competitors who had more than 22 laps and time/retired of +17.276? | CREATE TABLE table_78507 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Grid") FROM table_78507 WHERE "Time/Retired" = '+17.276' AND "Laps" > '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
1752,
940,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
13313,
26,
8512,
21680,
953,
834,
3940,
1752,
940,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
18446,
25791,
3959,
31,
3430,
96,
3612,
102,
7,
121,
2490,
3,
31,
2884,
31... |
Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998? | CREATE TABLE table_name_48 (runners_up VARCHAR, winners VARCHAR, date VARCHAR) | SELECT runners_up FROM table_name_48 WHERE winners = "cork city f.c." AND date = "10/05/1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
10806,
7,
834,
413,
584,
4280,
28027,
6,
8969,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
16448,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16448,
834,
413,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
8969,
3274,
96,
5715,
157,
690,
3,
89,
5,
75,
535,
3430,
833,
3274,
96,
1714,
31911,
2294,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the 2nd place team when the location was Tulsa, OK before 1956? | CREATE TABLE table_name_93 (
host_location VARCHAR,
year VARCHAR
) | SELECT 2 AS nd_place_team FROM table_name_93 WHERE host_location = "tulsa, ok" AND year < 1956 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
2290,
834,
14836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
204,
727,
286,
372,
116,
8,
1128,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
4687,
834,
11650,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
2290,
834,
14836,
3274,
96,
2520,
7,
9,
6,
3,
1825,
121,
3430,
215,
3,
2,
22951,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Adam Keefe's nationality? | CREATE TABLE table_name_42 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_42 WHERE player = "adam keefe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
16557,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7124,
2566,
15,
89,
15,
31,
7,
1157,
485,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
1959,
3274,
96,
9,
7812,
3,
1050,
15,
89,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the type of the school whose students are nicknamed Chargers? | CREATE TABLE table_23158 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real,
"Left" real,
"Current Conference" text
) | SELECT "Type" FROM table_23158 WHERE "Nickname" = 'Chargers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
26556,
41,
96,
1570,
17448,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25160,
121,
21680,
953,
834,
2773,
26556,
549,
17444,
427,
96,
567,
3142,
4350,
121,
3274,
3,
31,
18947,
1304,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who won the French Open in 1999? | CREATE TABLE table_23296 (
"#" real,
"Player" text,
"Age" real,
"Australian Open" real,
"French Open" real,
"Wimbledon" real,
"US Open" real
) | SELECT "Player" FROM table_23296 WHERE "French Open" = '1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
4314,
41,
96,
4663,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
31971,
29,
2384,
121,
490,
6,
96,
371,
60,
5457,
2384,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
23188,
4314,
549,
17444,
427,
96,
371,
60,
5457,
2384,
121,
3274,
3,
31,
2294,
3264,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the vacator for took seat being january 29, 1813 | CREATE TABLE table_15572443_1 (vacator VARCHAR, took_seat VARCHAR) | SELECT vacator FROM table_15572443_1 WHERE took_seat = "January 29, 1813" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3436,
2266,
4906,
834,
536,
41,
8938,
1016,
584,
4280,
28027,
6,
808,
834,
7,
1544,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
8938,
1016,
21,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
8938,
1016,
21680,
953,
834,
1808,
3436,
2266,
4906,
834,
536,
549,
17444,
427,
808,
834,
7,
1544,
3274,
96,
30404,
14405,
507,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the lead envoy of the congratulation mission in 1718 with the Ryūkyūan King shō kei? | CREATE TABLE table_name_10 (lead_envoy VARCHAR, year VARCHAR, ryūkyūan_king VARCHAR, mission_type VARCHAR) | SELECT lead_envoy FROM table_name_10 WHERE ryūkyūan_king = "shō kei" AND mission_type = "congratulation" AND year = 1718 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
109,
9,
26,
834,
35,
9845,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3,
651,
2,
3781,
2,
152,
834,
1765,
584,
4280,
28027,
6,
2253,
834,
6137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
991,
834,
35,
9845,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
3,
651,
2,
3781,
2,
152,
834,
1765,
3274,
96,
7,
107,
2,
3,
1050,
23,
121,
3430,
2253,
834,
6137,
3274,
96,
24615,
23,
106,
121,
3430,
215,
... |
When did Ismail Qemali Bej's term start? | CREATE TABLE table_47525 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
) | SELECT "Term start" FROM table_47525 WHERE "Name" = 'ismail qemali bej' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3072,
1828,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
18,
8639,
26,
121,
1499,
6,
96,
11679,
456,
121,
1499,
6,
96,
11679,
414,
121,
1499,
6,
96,
8931,
155,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11679,
456,
121,
21680,
953,
834,
591,
3072,
1828,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
159,
1963,
3,
1824,
15,
1982,
23,
36,
354,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose admission year is less than 2158 and procedure long title is spinal tap? | 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
)
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2158" AND procedures.long_title = "Spinal tap" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type. | CREATE TABLE university (
affiliation VARCHAR,
Enrollment INTEGER,
founded INTEGER
) | SELECT SUM(Enrollment), affiliation FROM university WHERE founded > 1850 GROUP BY affiliation | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
24405,
584,
4280,
28027,
6,
695,
4046,
297,
3,
21342,
17966,
6,
5710,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
792,
381,
13,
481,
3,
15097,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8532,
4046,
297,
201,
24405,
21680,
3819,
549,
17444,
427,
5710,
2490,
507,
1752,
350,
4630,
6880,
272,
476,
24405,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many clubs have a tries against count of 41? | CREATE TABLE table_12886178_5 (try_bonus VARCHAR, tries_against VARCHAR) | SELECT COUNT(try_bonus) FROM table_12886178_5 WHERE tries_against = "41" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4060,
4241,
3940,
834,
755,
41,
8224,
834,
5407,
302,
584,
4280,
28027,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8224,
834,
5407,
302,
61,
21680,
953,
834,
2122,
4060,
4241,
3940,
834,
755,
549,
17444,
427,
3,
9000,
834,
9,
16720,
7,
17,
3274,
96,
4853,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose marital status is married and admission year is less than 2119? | 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 (
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2119" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
13845,
25858,
308,
121,
3430,
14798,
5,
20466,
17,
1201,
3,
... |
Who directed the episode with 899000 viewers? | CREATE TABLE table_27547668_3 (
directed_by VARCHAR,
viewers VARCHAR
) | SELECT directed_by FROM table_27547668_3 WHERE viewers = 899000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
5062,
3959,
3651,
834,
519,
41,
6640,
834,
969,
584,
4280,
28027,
6,
13569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
6640,
8,
5640,
28,
505,
3264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
2555,
5062,
3959,
3651,
834,
519,
549,
17444,
427,
13569,
3274,
505,
3264,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the smallest number? | CREATE TABLE table_18424435_5 (_number INTEGER) | SELECT MIN(_number) FROM table_18424435_5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4165,
3628,
2469,
834,
755,
41,
834,
5525,
1152,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
381,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
834,
5525,
1152,
61,
21680,
953,
834,
2606,
4165,
3628,
2469,
834,
755,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the semi-final television commentator status in 1962 with an unknown spokesperson? | CREATE TABLE table_name_54 (semi_final_television_commentator VARCHAR, spokesperson VARCHAR, year_s_ VARCHAR) | SELECT semi_final_television_commentator FROM table_name_54 WHERE spokesperson = "unknown" AND year_s_ = 1962 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
7,
15,
51,
23,
834,
12406,
834,
1931,
6610,
834,
287,
297,
1016,
584,
4280,
28027,
6,
23909,
584,
4280,
28027,
6,
215,
834,
7,
834,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4772,
834,
12406,
834,
1931,
6610,
834,
287,
297,
1016,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
23909,
3274,
96,
202,
5661,
121,
3430,
215,
834,
7,
834,
3274,
20236,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the foochow for pingnan county | CREATE TABLE table_23564 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Foochow" text,
"Area" real,
"Population" real,
"Density" real
) | SELECT "Foochow" FROM table_23564 WHERE "English Name" = 'Pingnan County' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
4389,
41,
96,
26749,
5570,
121,
1499,
6,
96,
134,
10296,
3676,
121,
1499,
6,
96,
9402,
10569,
138,
121,
1499,
6,
96,
345,
77,
63,
77,
121,
1499,
6,
96,
371,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
32,
6322,
2381,
121,
21680,
953,
834,
25174,
4389,
549,
17444,
427,
96,
26749,
5570,
121,
3274,
3,
31,
345,
53,
29,
152,
1334,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Engine has a Finish of 21? | CREATE TABLE table_name_68 (engine VARCHAR, finish VARCHAR) | SELECT engine FROM table_name_68 WHERE finish = "21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
20165,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
10612,
65,
3,
9,
17578,
13,
1401,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1992,
3274,
96,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What day has a record of 25 30 13 and less than 63 points? | CREATE TABLE table_36298 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT AVG("March") FROM table_36298 WHERE "Record" = '25–30–13' AND "Points" < '63' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
357,
3916,
41,
96,
23055,
121,
490,
6,
96,
25019,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
25019,
8512,
21680,
953,
834,
3420,
357,
3916,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1828,
104,
1458,
104,
2368,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
3891,
31,
1,
-100,
-10... |
How many no outs are there for an average of 43.70? | CREATE TABLE table_20367820_16 (
not_out VARCHAR,
average VARCHAR
) | SELECT not_out FROM table_20367820_16 WHERE average = "43.70" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3420,
3940,
1755,
834,
2938,
41,
59,
834,
670,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
150,
91,
7,
33,
132,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
59,
834,
670,
21680,
953,
834,
1755,
3420,
3940,
1755,
834,
2938,
549,
17444,
427,
1348,
3274,
96,
4906,
5,
2518,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which 2010 has a 2006 of w? | CREATE TABLE table_name_51 (
Id VARCHAR
) | SELECT 2010 FROM table_name_51 WHERE 2006 = "w" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2735,
65,
3,
9,
3581,
13,
3,
210,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2735,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3581,
3274,
96,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of a game that had the odds of q rook? | CREATE TABLE table_4963 (
"Date" real,
"Opponent" text,
"Result" text,
"Odds" text,
"Location" text,
"Score" text
) | SELECT AVG("Date") FROM table_4963 WHERE "Odds" = 'q rook' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3891,
41,
96,
308,
342,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
667,
26,
26,
7,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
308,
342,
8512,
21680,
953,
834,
3647,
3891,
549,
17444,
427,
96,
667,
26,
26,
7,
121,
3274,
3,
31,
1824,
3,
52,
32,
1825,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of silver medals when there are more than 1 gold, and more than 6 bronze? | CREATE TABLE table_66614 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Silver") FROM table_66614 WHERE "Gold" > '1' AND "Bronze" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3539,
2534,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
948,
3539,
2534,
549,
17444,
427,
96,
23576,
121,
2490,
3,
31,
536,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-... |
What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends. | CREATE TABLE table_name_88 (
blank_ends VARCHAR,
stolen_ends VARCHAR,
ends_won VARCHAR,
ends_lost VARCHAR
) | SELECT blank_ends FROM table_name_88 WHERE ends_won < 39 AND ends_lost > 35 AND stolen_ends = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
11460,
834,
989,
7,
584,
4280,
28027,
6,
14244,
834,
989,
7,
584,
4280,
28027,
6,
5542,
834,
210,
106,
584,
4280,
28027,
6,
5542,
834,
2298,
17,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11460,
834,
989,
7,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
5542,
834,
210,
106,
3,
2,
6352,
3430,
5542,
834,
2298,
17,
2490,
3097,
3430,
14244,
834,
989,
7,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many people attended the match on 1/11? | CREATE TABLE table_10449 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Attendance" FROM table_10449 WHERE "Date" = '1/11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
3647,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
15442,
3647,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
536,
20223,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What field is an opponent of cannons and resulted with w 16-11? | CREATE TABLE table_name_88 (field VARCHAR, opponent VARCHAR, result VARCHAR) | SELECT field FROM table_name_88 WHERE opponent = "cannons" AND result = "w 16-11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1846,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1057,
19,
46,
15264,
13,
54,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1057,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
15264,
3274,
96,
75,
17805,
7,
121,
3430,
741,
3274,
96,
210,
898,
9169,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the part 3 entry that has a part 4 entry of giboran? | CREATE TABLE table_name_31 (
part_3 VARCHAR,
part_4 VARCHAR
) | SELECT part_3 FROM table_name_31 WHERE part_4 = "giboran" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
294,
834,
519,
584,
4280,
28027,
6,
294,
834,
591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
294,
220,
1764,
24,
65,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
294,
834,
519,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
294,
834,
591,
3274,
96,
122,
23,
6693,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the episode where the season number is 13? | CREATE TABLE table_23114705_3 (
title VARCHAR,
no_in_season VARCHAR
) | SELECT title FROM table_23114705_3 WHERE no_in_season = 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2596,
4177,
3076,
834,
519,
41,
2233,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2773,
2596,
4177,
3076,
834,
519,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many times did scheider appear in the golden gloves event ? | CREATE TABLE table_200_31 (
id number,
"result" text,
"record" text,
"opponent" text,
"method" text,
"date" text,
"round" number,
"time" text,
"event" text,
"location" text,
"notes" text
) | SELECT COUNT(*) FROM table_200_31 WHERE "event" = 'golden gloves' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
834,
3341,
41,
3,
23,
26,
381,
6,
96,
60,
7,
83,
17,
121,
1499,
6,
96,
60,
7621,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
23152,
121,
1499,
6,
96,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
3632,
834,
3341,
549,
17444,
427,
96,
15,
2169,
121,
3274,
3,
31,
14910,
35,
16802,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which home team had a visitor of Ottawa Senators with a score of 1 5? | CREATE TABLE table_78166 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Home" FROM table_78166 WHERE "Visitor" = 'ottawa senators' AND "Score" = '1–5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
26811,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3940,
26811,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
32,
17,
17,
7396,
20596,
7,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
536,
104,
755,
31,
1,
-100,
-100,
... |
What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R? | CREATE TABLE table_name_17 (tournament VARCHAR) | SELECT 2008 FROM table_name_17 WHERE 2011 = "1r" AND 2010 = "2r" AND tournament = "us open" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2628,
13,
8,
837,
2384,
116,
2735,
47,
204,
448,
11,
2722,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2628,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
2722,
3274,
96,
536,
52,
121,
3430,
2735,
3274,
96,
357,
52,
121,
3430,
5892,
3274,
96,
302,
539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon? | CREATE TABLE table_40728 (
"Station" text,
"Local authority [a ]" text,
"Servedby" text,
"Station users 2004\u201305" real,
"Station users 2005\u201306" real
) | SELECT "Servedby" FROM table_40728 WHERE "Local authority [a ]" = 'thurrock' AND "Station" = 'ockendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
940,
2577,
41,
96,
134,
6821,
121,
1499,
6,
96,
434,
32,
1489,
5015,
784,
9,
3,
908,
121,
1499,
6,
96,
28060,
969,
121,
1499,
6,
96,
134,
6821,
1105,
4406,
2,
76,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
28060,
969,
121,
21680,
953,
834,
2445,
940,
2577,
549,
17444,
427,
96,
434,
32,
1489,
5015,
784,
9,
3,
908,
121,
3274,
3,
31,
189,
450,
6133,
31,
3430,
96,
134,
6821,
121,
3274,
3,
31,
3961,
35,
2029,
31,
... |
What are the ids of all moviest hat have not been reviewed by Britanny Harris? | CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
) | SELECT mid FROM rating EXCEPT SELECT T1.mid FROM rating AS T1 JOIN reviewer AS T2 ON T1.rid = T2.rid WHERE T2.name = "Brittany Harris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
2076,
381,
6,
2233,
1499,
6,
215,
381,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1132,
49,
41,
5413,
381,
6,
564,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2076,
21680,
5773,
262,
4,
30416,
3,
23143,
14196,
332,
5411,
6983,
21680,
5773,
6157,
332,
536,
3,
15355,
3162,
1132,
49,
6157,
332,
357,
9191,
332,
5411,
4055,
3274,
332,
4416,
4055,
549,
17444,
427,
332,
4416,
4350... |
What chassis has a year of 1951? | CREATE TABLE table_name_7 (chassis VARCHAR, year VARCHAR) | SELECT chassis FROM table_name_7 WHERE year = 1951 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
524,
6500,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
22836,
65,
3,
9,
215,
13,
25684,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
215,
3274,
25684,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose admission location is phys referral/normal deli and admission year is less than 2179? | 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 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 (
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.admityear < "2179" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
... |
what is admission type and admission location of subject id 2560? | 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,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear 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 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 demographic.admission_type, demographic.admission_location FROM demographic WHERE demographic.subject_id = "2560" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
14798,
5,
9,
26,
5451,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the 1861 had 1991 in 1881 and a year of year? | CREATE TABLE table_name_82 (Id VARCHAR) | SELECT 1861 FROM table_name_82 WHERE "year" = "year" AND 1881 = "1991" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
507,
4241,
141,
9957,
16,
507,
4959,
11,
3,
9,
215,
13,
215,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
507,
4241,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
96,
1201,
121,
3274,
96,
1201,
121,
3430,
507,
4959,
3274,
96,
2294,
4729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, what is the relationship between salary and department_id ? | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
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(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT SALARY, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
4090,
24721,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
1796... |
what is the days of hospital stay and admission time of subject id 14755? | 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
)
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 (
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 text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT demographic.days_stay, demographic.admittime FROM demographic WHERE demographic.subject_id = "14755" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1135,
7,
834,
21545,
6,
14798,
5,
20466,
17,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
24719,
3769,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter? | CREATE TABLE table_name_86 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR) | SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
12521,
189,
834,
19973,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
511,
834,
19973,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4509,
834,
19973,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
11003,
2490,
220,
3430,
511,
834,
19973,
3274,
96,
27341,
739,
3,
184,
3,
27341,
739,
3,
25463,
6,
5553,
9125,
1298,
121,
1,
-100,
-100,
-100,
-10... |
how many candidates with district being california 7 | CREATE TABLE table_72431 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("Candidates") FROM table_72431 WHERE "District" = 'California 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2266,
3341,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
14050,
12416,
6203,
8512,
21680,
953,
834,
940,
2266,
3341,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
14318,
99,
127,
29,
23,
9,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the outcome on March 20, 1994? | CREATE TABLE table_60755 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Outcome" FROM table_60755 WHERE "Date" = 'march 20, 1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3072,
755,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15767,
287,
15,
121,
21680,
953,
834,
3328,
3072,
755,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
51,
7064,
16047,
7520,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total number of byes for teams with against of 2139 and more than 0 draws? | CREATE TABLE table_name_70 (
byes VARCHAR,
against VARCHAR,
draws VARCHAR
) | SELECT COUNT(byes) FROM table_name_70 WHERE against = 2139 AND draws > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
57,
15,
7,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
969,
15,
7,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
581,
3274,
1401,
3288,
3430,
14924,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many ansi codes are there for longitude 46.415037? | CREATE TABLE table_22485 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | SELECT COUNT("ANSI code") FROM table_22485 WHERE "Latitude" = '46.415037' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
4433,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
16897,
196,
1081,
8512,
21680,
953,
834,
24622,
4433,
549,
17444,
427,
96,
3612,
6592,
121,
3274,
3,
31,
591,
27869,
12278,
4118,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the nationality of Bob Essensa? | CREATE TABLE table_29018 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "Nationality" FROM table_29018 WHERE "Player" = 'Bob Essensa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
2606,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
23838,
2606,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
279,
32,
115,
11722,
7,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the sum of code , and group by attribute name, and I want to order Name from low to high order. | 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
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
How many people attended games with st kilda as the home side? | CREATE TABLE table_name_57 (
crowd INTEGER,
home_team VARCHAR
) | SELECT SUM(crowd) FROM table_name_57 WHERE home_team = "st kilda" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
4374,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
1031,
28,
3,
7,
17,
3,
157,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
17,
3,
157,
173,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was japan's score? | CREATE TABLE table_5732 (
"Year" real,
"Venue" text,
"Champion" text,
"Country" text,
"Score" text
) | SELECT "Score" FROM table_5732 WHERE "Country" = 'japan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
2668,
41,
96,
476,
2741,
121,
490,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3436,
2668,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
1191,
2837,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the team's record at the game attended by 30,452? | CREATE TABLE table_66968 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Record" FROM table_66968 WHERE "Attendance" = '30,452' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3951,
3651,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
948,
3951,
3651,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
1458,
6,
2128,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Venue against the Bracknell Bees? | CREATE TABLE table_7906 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text,
"Competition" text,
"Man of the Match" text
) | SELECT "Venue" FROM table_7906 WHERE "Opponent" = 'bracknell bees' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
5176,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
4440,
5176,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
115,
16729,
10361,
36,
15,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Seats 2005 has a Percentage in/de-crease of 50.0%, and a Governorate of dhi qar governorate, and a In/de-creased by larger than 6? | CREATE TABLE table_name_14 (seats_2005 INTEGER, in_de_creased_by VARCHAR, percentage_in_de_crease VARCHAR, governorate VARCHAR) | SELECT SUM(seats_2005) FROM table_name_14 WHERE percentage_in_de_crease = "50.0%" AND governorate = "dhi qar governorate" AND in_de_creased_by > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
7,
1544,
7,
834,
22594,
3,
21342,
17966,
6,
16,
834,
221,
834,
24706,
26,
834,
969,
584,
4280,
28027,
6,
5294,
834,
77,
834,
221,
834,
24706,
584,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
7,
1544,
7,
834,
22594,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
5294,
834,
77,
834,
221,
834,
24706,
3274,
96,
1752,
5,
6932,
121,
3430,
13062,
342,
3274,
96,
26,
107,
23,
3,
1824,
... |
What are the average start(s) when he had $1,663,868? | CREATE TABLE table_1637041_2 (avg_start VARCHAR, winnings VARCHAR) | SELECT avg_start FROM table_1637041_2 WHERE winnings = "$1,663,868" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
22520,
4853,
834,
357,
41,
9,
208,
122,
834,
10208,
584,
4280,
28027,
6,
3447,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1348,
456,
599,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
208,
122,
834,
10208,
21680,
953,
834,
2938,
22520,
4853,
834,
357,
549,
17444,
427,
3447,
7,
3274,
96,
3229,
4347,
3539,
6355,
927,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What country is charley hoffman from? | CREATE TABLE table_28498999_4 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_28498999_4 WHERE player = "Charley Hoffman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3647,
3914,
3264,
834,
591,
41,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
19,
3,
4059,
1306,
3,
11950,
348,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
2577,
3647,
3914,
3264,
834,
591,
549,
17444,
427,
1959,
3274,
96,
18947,
1306,
27014,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the sum of pop for shizuoka | CREATE TABLE table_name_13 (
pop_¹ INTEGER,
prefecture VARCHAR
) | SELECT SUM(pop_¹) FROM table_name_13 WHERE prefecture = "shizuoka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
2783,
834,
536,
3,
21342,
17966,
6,
554,
4075,
1462,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
2783,
21,
3,
5605,
1000... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
9791,
834,
6982,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
554,
4075,
1462,
3274,
96,
5605,
1000,
1825,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the sum of the attendance on November 16? | CREATE TABLE table_name_63 (
attendance INTEGER,
date VARCHAR
) | SELECT SUM(attendance) FROM table_name_63 WHERE date = "november 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
11364,
30,
1671,
898,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens? | CREATE TABLE table_43525 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | SELECT "Date" FROM table_43525 WHERE "Location" = 'scotiabank place' AND "Points" < '20' AND "Game" > '16' AND "Opponent" = 'montreal canadiens' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2469,
1828,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
2469,
1828,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
7,
4310,
23,
9,
4739,
286,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
1755,
31,
3430,
96,
23055,
1... |
What is the car number for driver H lio Castroneves | CREATE TABLE table_21570 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) | SELECT MIN("Car No.") FROM table_21570 WHERE "Driver" = 'Hélio Castroneves' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
28363,
41,
96,
371,
77,
5,
13995,
121,
490,
6,
96,
6936,
465,
535,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
6936,
465,
5,
8512,
21680,
953,
834,
2658,
28363,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
566,
154,
40,
23,
32,
28728,
15482,
15,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all storms with at least 1 death, compare the number of deaths by dates active with a bar graph, show y axis in descending order. | CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
) | SELECT Dates_active, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Number_Deaths DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
6163,
834,
23,
26,
16,
17,
6,
16133,
834,
4309,
16,
17,
6,
7720,
834,
6726,
834,
9,
27488,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
7,
834,
6645,
6,
7720,
834,
2962,
9,
189,
7,
21680,
5536,
549,
17444,
427,
7720,
834,
2962,
9,
189,
7,
2490,
2423,
209,
4674,
11300,
272,
476,
7720,
834,
2962,
9,
189,
7,
309,
25067,
1,
-100,
-100,
-100,
-... |
What was the attendance on April 7? | CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_75 WHERE date = "april 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
15116,
663,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
30,
1186,
489,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When the home team scored 8.8 (56), what team were they playing? | CREATE TABLE table_56908 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_56908 WHERE "Home team score" = '8.8 (56)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
2394,
927,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
121,
21680,
953,
834,
4834,
2394,
927,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
927,
5,
927,
9209,
10938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, give me the comparison about the sum of department_id over the hire_date bin hire_date by weekday by a bar chart, sort sum department id in ascending order. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
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(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(DEPARTMENT_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
180,
6122,
... |
What is the capacity of the team in tucson, USA? | CREATE TABLE table_name_95 (
capacity VARCHAR,
country VARCHAR,
city VARCHAR
) | SELECT capacity FROM table_name_95 WHERE country = "usa" AND city = "tucson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
2614,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2614,
13,
8,
372,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2614,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
684,
3274,
96,
302,
9,
121,
3430,
690,
3274,
96,
17,
76,
75,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which year is the book title the ordinary? | CREATE TABLE table_20193855_2 (year VARCHAR, book_title VARCHAR) | SELECT year FROM table_20193855_2 WHERE book_title = "The Ordinary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8584,
3747,
3769,
834,
357,
41,
1201,
584,
4280,
28027,
6,
484,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
19,
8,
484,
2233,
8,
9495,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
8584,
3747,
3769,
834,
357,
549,
17444,
427,
484,
834,
21869,
3274,
96,
634,
21983,
1208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Show the id of each employee and the number of document destruction authorised by that employee. | CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR) | SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destruction_Authorised_by_Employee_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
834,
235,
834,
346,
834,
221,
6626,
10093,
41,
2962,
7,
26853,
834,
23602,
127,
3375,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2973,
26853,
834,
23602,
127,
3375,
834,
969,
834,
427,
51,
7379,
63,
15,
15,
834,
4309,
6,
2847,
17161,
599,
1935,
61,
21680,
11167,
7,
834,
235,
834,
346,
834,
221,
6626,
10093,
350,
4630,
6880,
272,
476,
2973,
... |
What is the 1938 that has N/A for 1948? | CREATE TABLE table_40815 (
"1935" text,
"1936" text,
"1937" text,
"1938" text,
"1939" text,
"1940" text,
"1941" text,
"1943" text,
"1945" text,
"1946" text,
"1947" text,
"1948" text,
"1949" text,
"1950" text,
"1951" text,
"1952" text,
"1953" text
) | SELECT "1938" FROM table_40815 WHERE "1948" = 'n/a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
927,
1808,
41,
96,
2294,
2469,
121,
1499,
6,
96,
2294,
3420,
121,
1499,
6,
96,
2294,
4118,
121,
1499,
6,
96,
2294,
3747,
121,
1499,
6,
96,
2294,
3288,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2294,
3747,
121,
21680,
953,
834,
2445,
927,
1808,
549,
17444,
427,
96,
2294,
3707,
121,
3274,
3,
31,
29,
87,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What circuit did Innes Ireland win at for the I lombank trophy? | CREATE TABLE table_name_35 (
circuit VARCHAR,
winning_driver VARCHAR,
race_name VARCHAR
) | SELECT circuit FROM table_name_35 WHERE winning_driver = "innes ireland" AND race_name = "i lombank trophy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
4558,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4558,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4558,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
14029,
7,
3,
2060,
40,
232,
121,
3430,
1964,
834,
4350,
3274,
96,
23,
3,
17551,
5979,
23921,
121,
1,
-100,
-100,
-100,
-100,
... |
What was the score of the away team when Richmond played? | CREATE TABLE table_53604 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_53604 WHERE "Away team" = 'richmond' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
3328,
591,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
4867,
3328,
591,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
3723,
6764,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which player had a score of 72-69=141? | CREATE TABLE table_name_75 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_75 WHERE score = 72 - 69 = 141 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
20846,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
141,
3,
9,
2604,
13,
9455,
18,
3951,
2423,
26059,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
2604,
3274,
9455,
3,
18,
3,
3951,
3274,
3,
26059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date was Bury the home team? | CREATE TABLE table_44397 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Date" FROM table_44397 WHERE "Away team" = 'bury' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
519,
4327,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
3628,
519,
4327,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
7165,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the attributes when the type is "DOMNodeRemoved"? | CREATE TABLE table_1507852_1 (attribute VARCHAR, type VARCHAR) | SELECT attribute FROM table_1507852_1 WHERE type = "DOMNodeRemoved" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
3940,
5373,
834,
536,
41,
144,
5135,
17,
15,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
12978,
116,
8,
686,
19,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15816,
21680,
953,
834,
12278,
3940,
5373,
834,
536,
549,
17444,
427,
686,
3274,
96,
27415,
4168,
221,
1649,
7168,
15,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many laps did Ricardo Zonta drive with a grid less than 14? | CREATE TABLE table_name_15 (
laps INTEGER,
grid VARCHAR,
driver VARCHAR
) | SELECT SUM(laps) FROM table_name_15 WHERE grid < 14 AND driver = "ricardo zonta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
14941,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
410,
2403,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
8634,
3,
2,
968,
3430,
2535,
3274,
96,
2234,
986,
32,
3,
8892,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which district has the incumbent Wilbur Mills and a re-elected result? | CREATE TABLE table_1342218_5 (district VARCHAR, result VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342218_5 WHERE result = "Re-elected" AND incumbent = "Wilbur Mills" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2884,
2606,
834,
755,
41,
26,
23,
20066,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3939,
65,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
2884,
2606,
834,
755,
549,
17444,
427,
741,
3274,
96,
1649,
18,
19971,
121,
3430,
28406,
3274,
96,
518,
173,
5808,
4185,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What venue is Hawthorn the home team at? | CREATE TABLE table_55104 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_55104 WHERE "Home team" = 'hawthorn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
15442,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
3769,
15442,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
1024,
210,
17,
6293,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent with the record of 4-0-0? | CREATE TABLE table_8299 (
"Game" real,
"October" text,
"Opponent" text,
"Score" text,
"Decision" text,
"Record" text
) | SELECT "Opponent" FROM table_8299 WHERE "Record" = '4-0-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4613,
3264,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
6,
96,
1649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
4613,
3264,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
591,
18,
18629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many sitting Representatives are there in the New York 10 polling area? | CREATE TABLE table_1342256_32 (incumbent VARCHAR, district VARCHAR) | SELECT COUNT(incumbent) FROM table_1342256_32 WHERE district = "New York 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
19337,
834,
2668,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3823,
13517,
7,
33,
132,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
77,
75,
5937,
295,
61,
21680,
953,
834,
2368,
4165,
19337,
834,
2668,
549,
17444,
427,
3939,
3274,
96,
6861,
1060,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the overall record in the game won by D. Klein (2-0)? | CREATE TABLE table_27862483_3 (
overall_record VARCHAR,
win VARCHAR
) | SELECT overall_record FROM table_27862483_3 WHERE win = "D. Klein (2-0)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3840,
2266,
4591,
834,
519,
41,
1879,
834,
60,
7621,
584,
4280,
28027,
6,
1369,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1879,
1368,
16,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1879,
834,
60,
7621,
21680,
953,
834,
2555,
3840,
2266,
4591,
834,
519,
549,
17444,
427,
1369,
3274,
96,
308,
5,
7349,
41,
19423,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the score when the game took place on January 18? | CREATE TABLE table_1669 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_1669 WHERE "Date" = 'January 18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3951,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
2938,
3951,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
30404,
507,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the bronze medal count of the team that finished with 47 total medals? | CREATE TABLE table_name_86 (
bronze INTEGER,
total VARCHAR
) | SELECT AVG(bronze) FROM table_name_86 WHERE total = 47 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
13467,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
13467,
9365,
3476,
13,
8,
372,
24,
2369,
28,
10635,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
792,
3274,
10635,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the scored figure when the result is 40-22? | CREATE TABLE table_45739 (
"Date" text,
"Venue" text,
"Opponent" text,
"Result" text,
"Tournament" text,
"Scored" real
) | SELECT SUM("Scored") FROM table_45739 WHERE "Result" = '40-22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3436,
3288,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
382,
1211,
20205,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
134,
9022,
26,
8512,
21680,
953,
834,
591,
3436,
3288,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
2445,
16149,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number patients with medicare insurance whose procedure icd9 code is 9755. | 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 text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicare" AND procedures.icd9_code = "9755" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the highest grid value for riders with manufacturer of Aprilia and time of +1.660? | CREATE TABLE table_name_22 (grid INTEGER, manufacturer VARCHAR, time_retired VARCHAR) | SELECT MAX(grid) FROM table_name_22 WHERE manufacturer = "aprilia" AND time_retired = "+1.660" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
3496,
26,
3,
21342,
17966,
6,
4818,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
4818,
3274,
96,
9,
102,
52,
13565,
121,
3430,
97,
834,
10682,
1271,
3274,
96,
18446,
5,
27720,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What date was the game held in Towson? | CREATE TABLE table_name_76 (
date VARCHAR,
city VARCHAR
) | SELECT date FROM table_name_76 WHERE city = "towson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
833,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
467,
1213,
16,
304,
210,
739,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
690,
3274,
96,
17,
2381,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the average year for 4 rank | CREATE TABLE table_name_33 (
year INTEGER,
rank VARCHAR
) | SELECT AVG(year) FROM table_name_33 WHERE rank = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
215,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
215,
21,
314,
11003,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
11003,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many losses for the coach that coached 19 games? | CREATE TABLE table_14594528_6 (losses VARCHAR, games VARCHAR) | SELECT losses FROM table_14594528_6 WHERE games = 19 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3390,
2128,
2577,
834,
948,
41,
2298,
2260,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8467,
21,
8,
3763,
24,
3,
30940,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8467,
21680,
953,
834,
2534,
3390,
2128,
2577,
834,
948,
549,
17444,
427,
1031,
3274,
957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the injured that has skierlik as the location? | CREATE TABLE table_name_9 (injured VARCHAR, location VARCHAR) | SELECT injured FROM table_name_9 WHERE location = "skierlik" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
77,
2047,
1271,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7532,
24,
65,
5210,
49,
8654,
38,
8,
1128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7532,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1128,
3274,
96,
4009,
49,
8654,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many points did the Giants get when attendance was 78,673? | CREATE TABLE table_43087 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Giants' points" text,
"Opponents' Points" text,
"Record" text,
"TV Time" text,
"Attendance" text
) | SELECT "Giants' points" FROM table_43087 WHERE "Attendance" = '78,673' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
4225,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
517,
23,
2366,
31,
979,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
517,
23,
2366,
31,
979,
121,
21680,
953,
834,
25449,
4225,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
3940,
6,
3708,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest CPC blend Kazakhstan number when Barrow Island Australia is smaller than 12? | CREATE TABLE table_name_48 (cpc_blend_kazakhstan INTEGER, barrow_island_australia INTEGER) | SELECT MAX(cpc_blend_kazakhstan) FROM table_name_48 WHERE barrow_island_australia < 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
75,
102,
75,
834,
2296,
727,
834,
1258,
172,
18965,
5627,
3,
21342,
17966,
6,
1207,
3623,
834,
159,
40,
232,
834,
2064,
8792,
23,
9,
3,
21342,
17966,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
75,
102,
75,
834,
2296,
727,
834,
1258,
172,
18965,
5627,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1207,
3623,
834,
159,
40,
232,
834,
2064,
8792,
23,
9,
3,
2,
586,
1,
-100,
-100,
-10... |
What's the name of the train that goes to Bhubaneswar? | CREATE TABLE table_26102 (
"Service" real,
"Train number" real,
"Train name" text,
"Source" text,
"Departure" text,
"Destination" text,
"Arrival" text
) | SELECT "Train name" FROM table_26102 WHERE "Destination" = 'Bhubaneswar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
14388,
41,
96,
15260,
121,
490,
6,
96,
9402,
77,
381,
121,
490,
6,
96,
9402,
77,
564,
121,
1499,
6,
96,
23799,
121,
1499,
6,
96,
2962,
2274,
1462,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9402,
77,
564,
121,
21680,
953,
834,
2688,
14388,
549,
17444,
427,
96,
308,
222,
77,
257,
121,
3274,
3,
31,
279,
16420,
9,
1496,
2910,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904? | CREATE TABLE table_name_87 (name VARCHAR, rank VARCHAR, begin_date VARCHAR) | SELECT name FROM table_name_87 WHERE rank = "lieutenant colonel" AND begin_date = "1904-02-22 22 february 1904" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
4350,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
1731,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
564,
65,
3,
9,
3,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
11003,
3274,
96,
1896,
76,
324,
288,
6718,
15,
40,
121,
3430,
1731,
834,
5522,
3274,
96,
11776,
26814,
357,
16149,
1630,
29976,
76,
1208,
3,
11776,
20364,
1,
-... |
What was the score when Collingwood was playing away? | CREATE TABLE table_56510 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_56510 WHERE "Away team" = 'collingwood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
25926,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
4834,
25926,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
3297,
697,
2037,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.