NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
WHAT DATE HAD 6 RANK? | CREATE TABLE table_60981 (
"Date" text,
"Opponent#" text,
"Rank #" text,
"Site" text,
"Result" text,
"Attendance" text
) | SELECT "Date" FROM table_60981 WHERE "Rank #" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3916,
536,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
4663,
121,
1499,
6,
96,
22557,
1713,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
20119,
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,
308,
342,
121,
21680,
953,
834,
3328,
3916,
536,
549,
17444,
427,
96,
22557,
1713,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Nickname has Founded of 1954? | CREATE TABLE table_name_66 (nickname VARCHAR, founded VARCHAR) | SELECT nickname FROM table_name_66 WHERE founded = 1954 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
11191,
4350,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7486,
4350,
65,
3,
20100,
13,
24970,
58,
1,
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,
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,
24649,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
5710,
3274,
24970,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the Lowest Attendance with a Game site of Riverfront Stadium? | CREATE TABLE table_39101 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
) | SELECT MIN("Attendance") FROM table_39101 WHERE "Game site" = 'riverfront stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
19621,
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,
23055,
353,
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,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3288,
19621,
549,
17444,
427,
96,
23055,
353,
121,
3274,
3,
31,
5927,
49,
6849,
14939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the profits for market value of 11.8 | CREATE TABLE table_19112_3 (
profits__billion_$_ VARCHAR,
market_value__billion_$_ VARCHAR
) | SELECT profits__billion_$_ FROM table_19112_3 WHERE market_value__billion_$_ = "11.8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2596,
357,
834,
519,
41,
9613,
834,
834,
115,
14916,
834,
3229,
834,
584,
4280,
28027,
6,
512,
834,
12097,
834,
834,
115,
14916,
834,
3229,
834,
584,
4280,
28027,
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,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9613,
834,
834,
115,
14916,
834,
3229,
834,
21680,
953,
834,
2294,
2596,
357,
834,
519,
549,
17444,
427,
512,
834,
12097,
834,
834,
115,
14916,
834,
3229,
834,
3274,
96,
10032,
927,
121,
1,
-100,
-100,
-100,
-100,
-... |
Which Courtside reporter has a Channel of fsn new england in 2006-07? | CREATE TABLE table_name_43 (
courtside_reporter VARCHAR,
channel VARCHAR,
year VARCHAR
) | SELECT courtside_reporter FROM table_name_43 WHERE channel = "fsn new england" AND year = "2006-07" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1614,
1583,
834,
60,
1493,
49,
584,
4280,
28027,
6,
4245,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2243,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1614,
1583,
834,
60,
1493,
49,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
4245,
3274,
96,
89,
7,
29,
126,
3,
4606,
40,
232,
121,
3430,
215,
3274,
96,
21196,
18,
4560,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
how many players hit more than 600 runs in their career ? | CREATE TABLE table_203_611 (
id number,
"player" text,
"hr" number,
"date reached 500 hr" text,
"team" text,
"seasons played" text
) | SELECT COUNT("player") FROM table_203_611 WHERE "hr" > 600 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4241,
536,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
107,
52,
121,
381,
6,
96,
5522,
3495,
2899,
3,
107,
52,
121,
1499,
6,
96,
11650,
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,
2847,
17161,
599,
121,
20846,
8512,
21680,
953,
834,
23330,
834,
4241,
536,
549,
17444,
427,
96,
107,
52,
121,
2490,
7366,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Tell me the sum of draws for position less than 15 with played more than 38 | CREATE TABLE table_53940 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT SUM("Draws") FROM table_53940 WHERE "Position" < '15' AND "Played" > '38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3288,
2445,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
1499,
6,
96,
18455,
7,
121,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
308,
10936,
7,
8512,
21680,
953,
834,
755,
3288,
2445,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
1808,
31,
3430,
96,
15800,
15,
26,
121,
2490,
3,
31,
3747,
31,
1,
-100,
-100... |
what is the horse that ranked 69? | CREATE TABLE table_name_5 (horse VARCHAR, rank VARCHAR) | SELECT horse FROM table_name_5 WHERE rank = "69" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
107,
127,
7,
15,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
4952,
24,
3,
8232,
3,
3951,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4952,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
11003,
3274,
96,
3951,
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 position in 2006? | CREATE TABLE table_name_66 (pos VARCHAR, year VARCHAR) | SELECT pos FROM table_name_66 WHERE year = 2006 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
2748,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1102,
16,
3581,
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,
2748,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
215,
3274,
3581,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is death status and date of death of subject id 3369? | 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,... | SELECT demographic.expire_flag, demographic.dod FROM demographic WHERE demographic.subject_id = "3369" | [
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,
14798,
5,
994,
2388,
15,
834,
89,
5430,
6,
14798,
5,
26,
32,
26,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4201,
3951,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What away team plays at Victoria Park? | CREATE TABLE table_name_60 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_60 WHERE venue = "victoria park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
550,
372,
4805,
44,
7488,
1061,
58,
1,
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,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest draw that has 5 losses and byes greater than 0? | CREATE TABLE table_name_62 (
draws INTEGER,
losses VARCHAR,
byes VARCHAR
) | SELECT MIN(draws) FROM table_name_62 WHERE losses = 5 AND byes > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
14924,
3,
21342,
17966,
6,
8467,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
3314,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
8467,
3274,
305,
3430,
57,
15,
7,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each position, what is the minimum time students spent practicing Plot them as bar chart, and list x-axis in descending order. | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
) | SELECT pPos, MIN(T2.HS) FROM Tryout AS T1 JOIN Player AS T2 ON T1.pID = T2.pID GROUP BY pPos ORDER BY pPos DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
345,
32,
7,
6,
3,
17684,
599,
382,
4416,
4950,
61,
21680,
5263,
670,
6157,
332,
536,
3,
15355,
3162,
12387,
6157,
332,
357,
9191,
332,
5411,
102,
4309,
3274,
332,
4416,
102,
4309,
350,
4630,
6880,
272,
476... |
Which team has an overall playoff of (0-0), a home record of (0-1) and played the Green Bay Blizzard team? | CREATE TABLE table_14558 (
"Opponent" text,
"OVERALL" text,
"HOME" text,
"AWAY" text,
"PLYFF" text
) | SELECT "OVERALL" FROM table_14558 WHERE "PLYFF" = '(0-0)' AND "HOME" = '(0-1)' AND "Opponent" = 'green bay blizzard' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
3449,
41,
96,
667,
102,
9977,
121,
1499,
6,
96,
23288,
12126,
121,
1499,
6,
96,
6299,
4369,
121,
1499,
6,
96,
188,
17150,
121,
1499,
6,
96,
345,
5121,
9089,
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,
1... | [
3,
23143,
14196,
96,
23288,
12126,
121,
21680,
953,
834,
20987,
3449,
549,
17444,
427,
96,
345,
5121,
9089,
121,
3274,
3,
31,
599,
18629,
61,
31,
3430,
96,
6299,
4369,
121,
3274,
3,
31,
599,
9498,
6982,
31,
3430,
96,
667,
102,
997... |
What is the maximum number of wins in the season with 22 starts? | CREATE TABLE table_1637041_6 (
wins INTEGER,
starts VARCHAR
) | SELECT MAX(wins) FROM table_1637041_6 WHERE starts = 22 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
22520,
4853,
834,
948,
41,
9204,
3,
21342,
17966,
6,
3511,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
381,
13,
9204,
16,
8,
774,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
2938,
22520,
4853,
834,
948,
549,
17444,
427,
3511,
3274,
1630,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was Andrew Neill's rank? | CREATE TABLE table_9873 (
"Rank" real,
"Rider" text,
"Team" text,
"Time" text,
"Speed" text
) | SELECT SUM("Rank") FROM table_9873 WHERE "Rider" = 'andrew neill' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3916,
4552,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
28328,
121,
1499,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
121,
22557,
8512,
21680,
953,
834,
3916,
4552,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
232,
60,
210,
3,
29,
15,
1092,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the try bonus and tries for 30 | CREATE TABLE table_15467476_2 (try_bonus VARCHAR, tries_for VARCHAR) | SELECT try_bonus FROM table_15467476_2 WHERE tries_for = "30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4448,
4581,
3959,
834,
357,
41,
8224,
834,
5407,
302,
584,
4280,
28027,
6,
3,
9000,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
653,
4023,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
653,
834,
5407,
302,
21680,
953,
834,
1808,
4448,
4581,
3959,
834,
357,
549,
17444,
427,
3,
9000,
834,
1161,
3274,
96,
1458,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who is the athlete when react is 0.164? | CREATE TABLE table_name_46 (
athlete VARCHAR,
react VARCHAR
) | SELECT athlete FROM table_name_46 WHERE react = 0.164 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
17893,
584,
4280,
28027,
6,
8922,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
19,
8,
17893,
116,
8922,
19,
4097,
26987,
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,
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,
17893,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
8922,
3274,
4097,
26987,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of crowd(s) when richmond is the away squad? | CREATE TABLE table_name_44 (
crowd INTEGER,
away_team VARCHAR
) | SELECT SUM(crowd) FROM table_name_44 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
4374,
599,
7,
61,
116,
2354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose death status is 1 and diagnoses icd9 code is 53550? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "53550" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... |
In how many teams is Waqar Younis the head coach? | CREATE TABLE table_19905183_1 (
team VARCHAR,
head_coach VARCHAR
) | SELECT COUNT(team) FROM table_19905183_1 WHERE head_coach = "Waqar Younis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
3076,
24361,
834,
536,
41,
372,
584,
4280,
28027,
6,
819,
834,
509,
1836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
149,
186,
2323,
19,
3129,
1824,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11650,
61,
21680,
953,
834,
19479,
3076,
24361,
834,
536,
549,
17444,
427,
819,
834,
509,
1836,
3274,
96,
518,
9,
1824,
291,
148,
29,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Round 1 of 70, and a Money ($) larger than 500,000 has the highest year? | CREATE TABLE table_name_72 (
year INTEGER,
round_1 VARCHAR,
money__$_ VARCHAR
) | SELECT MAX(year) FROM table_name_72 WHERE round_1 = "70" AND money__$_ > 500 OFFSET 000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
215,
3,
21342,
17966,
6,
1751,
834,
536,
584,
4280,
28027,
6,
540,
834,
834,
3229,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
9609,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
1751,
834,
536,
3274,
96,
2518,
121,
3430,
540,
834,
834,
3229,
834,
2490,
2899,
3,
15316,
20788,
6078,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the sum of Avg/G for Dan Dierking when the Loss is 0 and the Gain is more than 34? | CREATE TABLE table_name_95 (avg_g INTEGER, gain VARCHAR, loss VARCHAR, name VARCHAR) | SELECT SUM(avg_g) FROM table_name_95 WHERE loss = 0 AND name = "dan dierking" AND gain > 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
9,
208,
122,
834,
122,
3,
21342,
17966,
6,
2485,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9,
208,
122,
834,
122,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1453,
3274,
3,
632,
3430,
564,
3274,
96,
3768,
67,
52,
1765,
121,
3430,
2485,
2490,
6154,
1,
-100,
-100,
-100,
-100,
-1... |
How many characteristics does the product named "laurel" have? | CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) | SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "laurel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
28027,
5173,
5946,
13582,
21202,
41,
31886,
3040,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
15892,
834,
23,
26,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
494,
6157,
3,
17,
536,
3,
15355,
3162,
556,
834,
31886,
3040,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
15892,
834,
23,
26,
3274,
3,
17,
4416,
15892,
834,
23,
26,
3,
15355,
3162,... |
Name the score for january 26 | CREATE TABLE table_21247 (
"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_21247 WHERE "Date" = 'January 26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24837,
4177,
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,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24837,
4177,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
30404,
2208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the un region for 3314000 population | CREATE TABLE table_16278349_1 (un_region VARCHAR, population VARCHAR) | SELECT un_region FROM table_16278349_1 WHERE population = 3314000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2555,
4591,
3647,
834,
536,
41,
202,
834,
18145,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
73,
1719,
21,
5400,
2534,
2313... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
73,
834,
18145,
21680,
953,
834,
2938,
2555,
4591,
3647,
834,
536,
549,
17444,
427,
2074,
3274,
5400,
2534,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart about the distribution of password and author_id . | CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABL... | SELECT password, author_id FROM Course_Authors_and_Tutors ORDER BY personal_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
41,
3816,
834,
23,
26,
3,
21342,
17966,
6,
1236,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
23,
26,
3,
21342,
17966,
6,
833,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4735,
6,
2291,
834,
23,
26,
21680,
8670,
834,
23602,
127,
7,
834,
232,
834,
28676,
7,
4674,
11300,
272,
476,
525,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the amount of silver when gold is 2 and the rank is more than 1? | CREATE TABLE table_56679 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Silver") FROM table_56679 WHERE "Gold" = '2' AND "Rank" > '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3539,
4440,
41,
96,
22557,
121,
490,
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,
71,
17217,
599,
121,
134,
173,
624,
8512,
21680,
953,
834,
755,
3539,
4440,
549,
17444,
427,
96,
23576,
121,
3274,
3,
31,
357,
31,
3430,
96,
22557,
121,
2490,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which race has a position of 3rd and a speed of 123.628? | CREATE TABLE table_name_90 (
race VARCHAR,
position VARCHAR,
speed VARCHAR
) | SELECT race FROM table_name_90 WHERE position = "3rd" AND speed = "123.628" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1964,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1964,
65,
3,
9,
1102,
13,
220... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
1102,
3274,
96,
519,
52,
26,
121,
3430,
1634,
3274,
96,
2122,
23074,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total of apps for Keith Treacy? | CREATE TABLE table_name_37 (apps INTEGER, name VARCHAR) | SELECT SUM(apps) FROM table_name_37 WHERE name = "keith treacy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
3096,
7,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
4050,
21,
17017,
4691,
4710,
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,
3096,
7,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
564,
3274,
96,
5754,
107,
23968,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List all payment methods and number of payments using each payment methods by a bar chart, rank by the payment_method_code from low to high. | CREATE TABLE Staff (
staff_id INTEGER,
staff_address_id INTEGER,
nickname VARCHAR(80),
first_name VARCHAR(80),
middle_name VARCHAR(80),
last_name VARCHAR(80),
date_of_birth DATETIME,
date_joined_staff DATETIME,
date_left_staff DATETIME
)
CREATE TABLE Lessons (
lesson_id INTEGER,... | SELECT payment_method_code, COUNT(*) FROM Customer_Payments GROUP BY payment_method_code ORDER BY payment_method_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10071,
41,
871,
834,
23,
26,
3,
21342,
17966,
6,
871,
834,
9,
26,
12039,
834,
23,
26,
3,
21342,
17966,
6,
24649,
584,
4280,
28027,
599,
2079,
201,
166,
834,
4350,
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,
1942,
834,
23152,
834,
4978,
6,
2847,
17161,
599,
1935,
61,
21680,
7327,
834,
19702,
4128,
350,
4630,
6880,
272,
476,
1942,
834,
23152,
834,
4978,
4674,
11300,
272,
476,
1942,
834,
23152,
834,
4978,
1,
-100,
-100,
-10... |
What is the 1993 value of the 1996 atp masters series? | CREATE TABLE table_46233 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
) | SELECT "1993" FROM table_46233 WHERE "1996" = 'atp masters series' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
20879,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
2294,
2394,
121,
1499,
6,
96,
2294,
4729,
121,
1499,
6,
96,
19479,
357,
121,
1499,
6,
96,
2294,
4271,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4271,
121,
21680,
953,
834,
4448,
20879,
549,
17444,
427,
96,
2294,
4314,
121,
3274,
3,
31,
144,
102,
2325,
7,
939,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number of patients whose year of birth is less than 2138 and procedure icd9 code is 17? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2138" AND procedures.icd9_code = "17" | [
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,
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,... |
When Netherlands is the country what is the report? | CREATE TABLE table_21191496_1 (report VARCHAR, country VARCHAR) | SELECT report FROM table_21191496_1 WHERE country = "Netherlands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2294,
2534,
4314,
834,
536,
41,
60,
1493,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
12023,
19,
8,
684,
125,
19,
8,
934,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
2658,
2294,
2534,
4314,
834,
536,
549,
17444,
427,
684,
3274,
96,
9688,
760,
6347,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was his position when he garnered 38 points? | CREATE TABLE table_25557880_1 (
position VARCHAR,
points VARCHAR
) | SELECT position FROM table_25557880_1 WHERE points = "38" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3769,
3940,
2079,
834,
536,
41,
1102,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
112,
1102,
116,
3,
88,
22639,
1271,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
1828,
3769,
3940,
2079,
834,
536,
549,
17444,
427,
979,
3274,
96,
3747,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many assists per game in the tournament 2010 fiba world championship? | CREATE TABLE table_73586 (
"Tournament" text,
"Games played" real,
"Points per game" text,
"Rebounds per game" text,
"Assists per game" text
) | SELECT "Assists per game" FROM table_73586 WHERE "Tournament" = '2010 FIBA World Championship' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2469,
3840,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
23055,
7,
1944,
121,
490,
6,
96,
22512,
7,
399,
467,
121,
1499,
6,
96,
1649,
6115,
7,
399,
467,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
7,
343,
7,
399,
467,
121,
21680,
953,
834,
940,
2469,
3840,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
14926,
3,
4936,
4882,
1150,
7666,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What region is William R. Johnson Coliseum in? | CREATE TABLE table_name_30 (
region VARCHAR,
venue VARCHAR
) | SELECT region FROM table_name_30 WHERE venue = "william r. johnson coliseum" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
1719,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1719,
19,
4599,
391,
5,
5891,
3043,
159,
15,
440,
16,
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... | [
3,
23143,
14196,
1719,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
5669,
3274,
96,
8894,
23,
265,
3,
52,
5,
3,
27341,
739,
3,
9044,
7,
15,
440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many communes when the arrondissement is cosne-cours-sur-loire? | CREATE TABLE table_1175233_1 (communes INTEGER, arrondissement VARCHAR) | SELECT MIN(communes) FROM table_1175233_1 WHERE arrondissement = "Cosne-Cours-sur-Loire" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3072,
20879,
834,
536,
41,
18782,
15,
7,
3,
21342,
17966,
6,
3,
31758,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9026,
7,
116,
8,
3,
31758,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
18782,
15,
7,
61,
21680,
953,
834,
2596,
3072,
20879,
834,
536,
549,
17444,
427,
3,
31758,
3274,
96,
3881,
7,
29,
15,
18,
3881,
3589,
18,
3042,
18,
434,
6534,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many people were in the crowd on the day the home team scored 7.10 (52)? | CREATE TABLE table_52965 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_52965 WHERE "Home team score" = '7.10 (52)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3166,
4122,
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,
254,
3623,
26,
121,
21680,
953,
834,
755,
3166,
4122,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
25059,
632,
9209,
7318,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Compare the total number of different product names, and I want to sort bars in ascending order. | CREATE TABLE Events (
Event_ID INTEGER,
Address_ID INTEGER,
Channel_ID INTEGER,
Event_Type_Code CHAR(15),
Finance_ID INTEGER,
Location_ID INTEGER
)
CREATE TABLE Channels (
Channel_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Parties_in_Events (
Party_ID INTEGER,
Event_... | SELECT Product_Name, COUNT(Product_Name) FROM Products GROUP BY Product_Name ORDER BY Product_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11137,
41,
8042,
834,
4309,
3,
21342,
17966,
6,
13246,
834,
4309,
3,
21342,
17966,
6,
9916,
834,
4309,
3,
21342,
17966,
6,
8042,
834,
25160,
834,
22737,
3,
28027,
599,
1808,
201,
7679,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6246,
834,
23954,
6,
2847,
17161,
599,
3174,
7472,
834,
23954,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
6246,
834,
23954,
4674,
11300,
272,
476,
6246,
834,
23954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the area in acres (ha) for the park bald eagle state park? | CREATE TABLE table_name_20 (area_in_acres__ha_ VARCHAR, park_name VARCHAR) | SELECT area_in_acres__ha_ FROM table_name_20 WHERE park_name = "bald eagle state park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
498,
834,
77,
834,
10610,
7,
834,
834,
1024,
834,
584,
4280,
28027,
6,
2447,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
0,
0... | [
3,
23143,
14196,
616,
834,
77,
834,
10610,
7,
834,
834,
1024,
834,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
2447,
834,
4350,
3274,
96,
8267,
3,
15,
9,
3537,
538,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the result for district pennsylvania 6? | CREATE TABLE table_28856 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_28856 WHERE "District" = 'Pennsylvania 6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4060,
4834,
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,
1499,
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,
96,
20119,
121,
21680,
953,
834,
357,
4060,
4834,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
345,
35,
29,
7,
63,
40,
16658,
9,
431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many draft pick positions did Matt Bradley have? | CREATE TABLE table_2840500_4 (
position VARCHAR,
player VARCHAR
) | SELECT COUNT(position) FROM table_2840500_4 WHERE player = "Matt Bradley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2445,
2560,
834,
591,
41,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6488,
1432,
4655,
410,
5199,
23097,
43,
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,
2847,
17161,
599,
4718,
61,
21680,
953,
834,
2577,
2445,
2560,
834,
591,
549,
17444,
427,
1959,
3274,
96,
329,
144,
17,
23097,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest game when the score is 102-104? | CREATE TABLE table_name_53 (
game INTEGER,
score VARCHAR
) | SELECT MIN(game) FROM table_name_53 WHERE score = "102-104" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
467,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
467,
116,
8,
2604,
19,
3,
14388,
18,
15442,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
2604,
3274,
96,
14388,
4536,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the percussionist for The Coral? | CREATE TABLE table_28715942_6 (
vocal_percussionist VARCHAR,
original_artist VARCHAR
) | SELECT vocal_percussionist FROM table_28715942_6 WHERE original_artist = "The Coral" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4450,
3390,
4165,
834,
948,
41,
6721,
834,
19984,
343,
584,
4280,
28027,
6,
926,
834,
1408,
343,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6721,
834,
19984,
343,
21680,
953,
834,
2577,
4450,
3390,
4165,
834,
948,
549,
17444,
427,
926,
834,
1408,
343,
3274,
96,
634,
24891,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose admission type is elective and procedure long title is automatic implantable cardioverter/defibrillator (aicd) check? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.long_title = "Automatic implantable cardioverter/defibrillator (AICD) check" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
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,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 week had an attendance of 14,381? | CREATE TABLE table_name_25 (
week INTEGER,
attendance VARCHAR
) | SELECT AVG(week) FROM table_name_25 WHERE attendance = "14,381" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
471,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
471,
141,
46,
11364,
13,
11363,
3747,
536,
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,
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,
8041,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
11364,
3274,
96,
2534,
6,
3747,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which rowers represented portugal and had notes of r? | CREATE TABLE table_name_14 (rowers VARCHAR, notes VARCHAR, country VARCHAR) | SELECT rowers FROM table_name_14 WHERE notes = "r" AND country = "portugal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
3623,
277,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7358,
277,
7283,
2147,
12204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
7358,
277,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
3358,
3274,
96,
52,
121,
3430,
684,
3274,
96,
1493,
12204,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who has papers at NIPS ? | CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE cite (
citi... | SELECT DISTINCT writes.authorid FROM paper, venue, writes WHERE venue.venueid = paper.venueid AND venue.venuename = 'NIPS' AND writes.paperid = paper.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
41,
1040,
23,
26,
16,
17,
6,
2233,
3,
4331,
4059,
6,
5669,
23,
26,
16,
17,
6,
215,
16,
17,
6,
3,
5525,
17994,
16,
17,
6,
3,
5525,
11675,
969,
16,
17,
6,
6378,
23,
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,
3,
15438,
25424,
6227,
11858,
5,
17415,
23,
26,
21680,
1040,
6,
5669,
6,
11858,
549,
17444,
427,
5669,
5,
15098,
23,
26,
3274,
1040,
5,
15098,
23,
26,
3430,
5669,
5,
15098,
4350,
3274,
3,
31,
567,
21563,
31,
3430,... |
Find the student ID and personal name of the student with at least two enrollments, and sort in descending by the y axis. | CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id IN... | SELECT T2.personal_name, T1.student_id FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.student_id DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4375,
41,
1236,
834,
23,
26,
3,
21342,
17966,
6,
833,
834,
858,
834,
5200,
257,
309,
6048,
382,
15382,
6,
833,
834,
858,
834,
521,
4377,
834,
2152,
106,
309,
6048,
382,
15382,
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,
1... | [
3,
23143,
14196,
332,
4416,
17108,
834,
4350,
6,
332,
5411,
8637,
295,
834,
23,
26,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
536,
3,
15355,
3162,
4375,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
... |
What is the height of the player born on June 24, 1964, with a weight over 84 kg? | CREATE TABLE table_name_21 (
height__cm_ INTEGER,
weight__kg_ VARCHAR,
birthdate VARCHAR
) | SELECT AVG(height__cm_) FROM table_name_21 WHERE weight__kg_ > 84 AND birthdate = "june 24, 1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
3902,
834,
834,
75,
51,
834,
3,
21342,
17966,
6,
1293,
834,
834,
8711,
834,
584,
4280,
28027,
6,
3879,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
88,
2632,
834,
834,
75,
51,
834,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
1293,
834,
834,
8711,
834,
2490,
3,
4608,
3430,
3879,
5522,
3274,
96,
6959,
15,
14320,
18969,
121,
1,
-100,
-... |
How many items are listed under caps when burnley is the club team? | CREATE TABLE table_30448 (
"Player" text,
"Cap(s)" real,
"Goal(s)" real,
"International Debut" text,
"Club(s)" text
) | SELECT COUNT("Cap(s)") FROM table_30448 WHERE "Club(s)" = 'Burnley' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23702,
3707,
41,
96,
15800,
49,
121,
1499,
6,
96,
19566,
599,
7,
61,
121,
490,
6,
96,
6221,
138,
599,
7,
61,
121,
490,
6,
96,
27490,
374,
2780,
121,
1499,
6,
96,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19566,
599,
7,
61,
8512,
21680,
953,
834,
23702,
3707,
549,
17444,
427,
96,
254,
11158,
599,
7,
61,
121,
3274,
3,
31,
279,
450,
29,
1306,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the earliest year with a category of Top 10 Selling Mandarin Albums of the Year? | CREATE TABLE table_name_53 (
year INTEGER,
category VARCHAR
) | SELECT MIN(year) FROM table_name_53 WHERE category = "top 10 selling mandarin albums of the year" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
215,
3,
21342,
17966,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
28,
3,
9,
3295,
13,
2224,
335,
2526... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
3295,
3274,
96,
2916,
335,
3014,
388,
3439,
77,
14234,
13,
8,
215,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370? | CREATE TABLE table_name_42 (level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR) | SELECT AVG(level) FROM table_name_42 WHERE example_name = "lower snake" AND number_of_hus__approximate_ < 370 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
4563,
3,
21342,
17966,
6,
677,
834,
4350,
584,
4280,
28027,
6,
381,
834,
858,
834,
11823,
834,
834,
12497,
226,
23,
5058,
834,
584,
4280,
28027,
61,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
4563,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
677,
834,
4350,
3274,
96,
3216,
49,
17599,
121,
3430,
381,
834,
858,
834,
11823,
834,
834,
12497,
226,
23,
5058,
834,
3,
2,
3,
22520,
1,... |
which is the new pageant from spain? | CREATE TABLE table_19230 (
"Country/Territory" text,
"Former pageant" text,
"Last competed" real,
"New pageant" text,
"Franchise since" real
) | SELECT "New pageant" FROM table_19230 WHERE "Country/Territory" = 'Spain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
13427,
41,
96,
10628,
651,
87,
382,
21301,
10972,
121,
1499,
6,
96,
3809,
935,
543,
288,
121,
1499,
6,
96,
3612,
7,
17,
5978,
26,
121,
490,
6,
96,
6861,
543,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6861,
543,
288,
121,
21680,
953,
834,
2294,
13427,
549,
17444,
427,
96,
10628,
651,
87,
382,
21301,
10972,
121,
3274,
3,
31,
134,
13585,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What about the average amounts of payments by each method code? You can give me a bar chart, and could you rank in ascending by the the average of amount payment please? | CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Co... | SELECT Payment_Method_Code, AVG(Amount_Payment) FROM Payments GROUP BY Payment_Method_Code ORDER BY AVG(Amount_Payment) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
31044,
7,
41,
31044,
834,
4309,
3,
21342,
17966,
6,
7781,
603,
834,
4309,
3,
21342,
17966,
6,
7678,
834,
254,
521,
603,
834,
329,
9,
221,
309,
6048,
6,
7678,
834,
254,
521,
603,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12248,
834,
23351,
107,
32,
26,
834,
22737,
6,
71,
17217,
599,
188,
11231,
834,
19702,
297,
61,
21680,
12248,
7,
350,
4630,
6880,
272,
476,
12248,
834,
23351,
107,
32,
26,
834,
22737,
4674,
11300,
272,
476,
71,
1721... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of founder and the sum of revenue , and group by attribute founder, and show Y-axis in asc 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 Founder, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY SUM(Revenue) | [
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,
3,
19145,
6,
180,
6122,
599,
1649,
15098,
61,
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,
3,
... |
What is the gold number when the total is less than 8, silver less than 1 and the rank is more than 7? | CREATE TABLE table_name_40 (gold VARCHAR, rank VARCHAR, total VARCHAR, silver VARCHAR) | SELECT COUNT(gold) FROM table_name_40 WHERE total < 8 AND silver < 1 AND rank > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
14910,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
2847,
17161,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
792,
3,
2,
505,
3430,
4294,
3,
2,
209,
3430,
11003,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number? | CREATE TABLE table_name_52 (frequency__mhz_ VARCHAR, type VARCHAR, call_letters VARCHAR) | SELECT COUNT(frequency__mhz_) FROM table_name_52 WHERE type = "primary" AND call_letters = "ktbb-fm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
30989,
834,
834,
51,
107,
172,
834,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
6,
580,
834,
16024,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
2847,
17161,
599,
30989,
834,
834,
51,
107,
172,
834,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
686,
3274,
96,
8234,
1208,
121,
3430,
580,
834,
16024,
7,
3274,
96,
157,
17,
115,
115,
18,
89,
51,
121,
... |
Frequency MHz of 93.7 has what class? | CREATE TABLE table_name_4 (
class VARCHAR,
frequency_mhz VARCHAR
) | SELECT class FROM table_name_4 WHERE frequency_mhz = 93.7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
853,
584,
4280,
28027,
6,
7321,
834,
51,
107,
172,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5532,
835,
11298,
3,
20210,
13,
668,
25168,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
7321,
834,
51,
107,
172,
3274,
668,
25168,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many districts was Robert Livingston incumbent in? | CREATE TABLE table_1341472_20 (district VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_1341472_20 WHERE incumbent = "Robert Livingston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
24719,
357,
834,
1755,
41,
26,
23,
20066,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14126,
47,
2715,
5753,
4411,
28406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
26,
23,
20066,
61,
21680,
953,
834,
23747,
24719,
357,
834,
1755,
549,
17444,
427,
28406,
3274,
96,
24372,
49,
17,
5753,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Round has a Position of lb, and a Pick smaller than 25? | CREATE TABLE table_name_3 (
round VARCHAR,
position VARCHAR,
pick VARCHAR
) | SELECT COUNT(round) FROM table_name_3 WHERE position = "lb" AND pick < 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
1751,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9609,
65,
3,
9,
14258,
13,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1102,
3274,
96,
40,
115,
121,
3430,
1432,
3,
2,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the draw having the result of 10%? | CREATE TABLE table_13972 (
"Draw" real,
"Artist" text,
"Song" text,
"Result" text,
"Place" real
) | SELECT AVG("Draw") FROM table_13972 WHERE "Result" = '10%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
5865,
41,
96,
308,
10936,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
345,
11706,
121,
490,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
71,
17217,
599,
121,
308,
10936,
8512,
21680,
953,
834,
24090,
5865,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
1714,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the score when the heat played at charlotte arena? | CREATE TABLE table_13762472_7 (score VARCHAR, location_attendance VARCHAR) | SELECT score FROM table_13762472_7 WHERE location_attendance = "Charlotte Arena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3959,
2266,
5865,
834,
940,
41,
7,
9022,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
8,
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,
2604,
21680,
953,
834,
2368,
3959,
2266,
5865,
834,
940,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
18947,
21538,
14904,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the lowest 2011 for sunway lagoon water park and 2012 is less than 1,200,000? | CREATE TABLE table_46890 (
"Rank" real,
"Water park" text,
"Location" text,
"2011" real,
"2012" real
) | SELECT MIN("2011") FROM table_46890 WHERE "Water park" = 'sunway lagoon' AND "2012" < '1,200,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
2394,
41,
96,
22557,
121,
490,
6,
96,
28632,
2447,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
13907,
121,
490,
6,
96,
12172,
121,
490,
3,
61,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
13907,
8512,
21680,
953,
834,
591,
3651,
2394,
549,
17444,
427,
96,
28632,
2447,
121,
3274,
3,
31,
7,
202,
1343,
31572,
31,
3430,
96,
12172,
121,
3,
2,
3,
31,
4347,
22779,
31,
1,
-100,
-100,
... |
Name the character for sophie arthuys | CREATE TABLE table_14960574_6 (character VARCHAR, french_voice_actor VARCHAR) | SELECT character FROM table_14960574_6 WHERE french_voice_actor = "Sophie Arthuys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4314,
3076,
4581,
834,
948,
41,
31886,
584,
4280,
28027,
6,
20609,
834,
23235,
834,
9,
5317,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1848,
21,
78,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1848,
21680,
953,
834,
2534,
4314,
3076,
4581,
834,
948,
549,
17444,
427,
20609,
834,
23235,
834,
9,
5317,
3274,
96,
5231,
11692,
15,
1261,
107,
76,
63,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients on main type of drug prescription who had whole blood calculated bicarbonate lab test done. | CREATE TABLE procedures (
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "MAIN" AND lab.label = "Calculated Bicarbonate, Whole Blood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
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,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
What team was the away team with a score of 9.11 (65)? | CREATE TABLE table_33351 (
"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_33351 WHERE "Away team score" = '9.11 (65)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23360,
5553,
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,
121,
21680,
953,
834,
23360,
5553,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
8797,
2596,
11372,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What candidate has a result of being re-elected in the Texas 7 District? | CREATE TABLE table_1342218_43 (
candidates VARCHAR,
result VARCHAR,
district VARCHAR
) | SELECT candidates FROM table_1342218_43 WHERE result = "Re-elected" AND district = "Texas 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2884,
2606,
834,
4906,
41,
4341,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4775,
65,
3,
9,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4341,
21680,
953,
834,
23747,
2884,
2606,
834,
4906,
549,
17444,
427,
741,
3274,
96,
1649,
18,
19971,
121,
3430,
3939,
3274,
96,
13598,
9,
7,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the name , and group by attribute name. | 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 | [
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... |
What is the earliest round where collingswood lost by 36 points? | CREATE TABLE table_30908 (
"Round" real,
"Date" text,
"Opponent" text,
"Home/Away" text,
"Score (Collingwoods score is in bold)" text,
"Result (includes margin)" text,
"Venue" text,
"Position on Ladder" text
) | SELECT MIN("Round") FROM table_30908 WHERE "Result (includes margin)" = 'Lost by 36 points' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
2394,
927,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
19040,
87,
188,
1343,
121,
1499,
6,
96,
134,
9022... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
1106,
8512,
21680,
953,
834,
1458,
2394,
927,
549,
17444,
427,
96,
20119,
41,
77,
21418,
7,
6346,
61,
121,
3274,
3,
31,
434,
3481,
57,
4475,
979,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
which playoffs took place during 2011? | CREATE TABLE table_74854 (
"Year" text,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT "Playoffs" FROM table_74854 WHERE "Year" = '2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4433,
591,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
5,
7960,
121,
1499,
6,
96,
15800,
1647,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
1647,
7,
121,
21680,
953,
834,
4581,
4433,
591,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
13907,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the turnout percentage in the place that had 44.6% vote for brown? | CREATE TABLE table_2996 (
"Municipality" text,
"Coakley votes" real,
"Coakley %" text,
"Brown votes" real,
"Brown %" text,
"Kennedy votes" real,
"Kennedy %" text,
"Total vote" real,
"Turnout %" text
) | SELECT "Turnout %" FROM table_2996 WHERE "Brown %" = '44.6%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4314,
41,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
3881,
1639,
1306,
11839,
121,
490,
6,
96,
3881,
1639,
1306,
3,
1454,
121,
1499,
6,
96,
279,
3623,
29,
118... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
450,
29,
670,
3,
1454,
121,
21680,
953,
834,
3166,
4314,
549,
17444,
427,
96,
279,
3623,
29,
3,
1454,
121,
3274,
3,
31,
3628,
5,
6370,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance at the game on December 11, 1966? | CREATE TABLE table_5716 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_5716 WHERE "Date" = 'december 11, 1966' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
2938,
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,
188,
17,
324,
26,
663,
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,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
3436,
2938,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
9694,
20658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the Event of sudesh peiris? | CREATE TABLE table_name_93 (
event VARCHAR,
name VARCHAR
) | SELECT event FROM table_name_93 WHERE name = "sudesh peiris" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
605,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
8042,
13,
8411,
15,
7,
107,
158,
24804,
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,
605,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
564,
3274,
96,
7,
76,
1395,
107,
158,
24804,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Kit Manufacturer supports team Everton? | CREATE TABLE table_80119 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
) | SELECT "Kit manufacturer" FROM table_80119 WHERE "Team" = 'everton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
19993,
41,
96,
18699,
121,
1499,
6,
96,
27272,
121,
1499,
6,
96,
19566,
17,
9,
77,
121,
1499,
6,
96,
439,
155,
4818,
121,
1499,
6,
96,
16671,
9037,
121,
1499,
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
439,
155,
4818,
121,
21680,
953,
834,
2079,
19993,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
15,
3027,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the finish of Australia? | CREATE TABLE table_name_52 (
finish VARCHAR,
country VARCHAR
) | SELECT finish FROM table_name_52 WHERE country = "australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
1992,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1992,
13,
2051,
58,
1,
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,
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,
1992,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
684,
3274,
96,
2064,
8792,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the primary conference with a IHSAA Football Class of A, at South Decatur school? | CREATE TABLE table_63744 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Football Class" text,
"Primary Conference" text,
"County" text
) | SELECT "Primary Conference" FROM table_63744 WHERE "IHSAA Football Class" = 'a' AND "School" = 'south decatur' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4581,
591,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7855,
51,
1208,
4379,
121,
21680,
953,
834,
3891,
4581,
591,
549,
17444,
427,
96,
196,
4950,
5498,
10929,
4501,
121,
3274,
3,
31,
9,
31,
3430,
96,
29364,
121,
3274,
3,
31,
7,
670,
107,
6057,
450,
31,
1,
-100... |
what's the naturalisation by marriage with regbeingtration of a minor child being 114 | CREATE TABLE table_11214212_1 (naturalisation_by_marriage VARCHAR, registration_of_a_minor_child VARCHAR) | SELECT naturalisation_by_marriage FROM table_11214212_1 WHERE registration_of_a_minor_child = 114 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
27357,
24837,
834,
536,
41,
14884,
2121,
834,
969,
834,
51,
10269,
545,
584,
4280,
28027,
6,
3816,
834,
858,
834,
9,
834,
1109,
127,
834,
11495,
584,
4280,
28027,
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,
793,
2121,
834,
969,
834,
51,
10269,
545,
21680,
953,
834,
2596,
27357,
24837,
834,
536,
549,
17444,
427,
3816,
834,
858,
834,
9,
834,
1109,
127,
834,
11495,
3274,
3,
18959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Points have Goals against of 32, and Played larger than 38? | CREATE TABLE table_name_30 (
points INTEGER,
goals_against VARCHAR,
played VARCHAR
) | SELECT MAX(points) FROM table_name_30 WHERE goals_against = 32 AND played > 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
979,
3,
21342,
17966,
6,
1766,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4564,
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,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1766,
834,
9,
16720,
7,
17,
3274,
3538,
3430,
1944,
2490,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What team did the Hornets play in game 4? | CREATE TABLE table_27723228_3 (team VARCHAR, game VARCHAR) | SELECT team FROM table_27723228_3 WHERE game = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
5865,
2668,
2577,
834,
519,
41,
11650,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
410,
8,
6766,
1582,
7,
577,
16,
467,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2555,
5865,
2668,
2577,
834,
519,
549,
17444,
427,
467,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who directed with original air date being november18,1995 | CREATE TABLE table_14637853_3 (
directed_by VARCHAR,
original_air_date VARCHAR
) | SELECT directed_by FROM table_14637853_3 WHERE original_air_date = "November18,1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3891,
3940,
4867,
834,
519,
41,
6640,
834,
969,
584,
4280,
28027,
6,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
6640,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
834,
969,
21680,
953,
834,
2534,
3891,
3940,
4867,
834,
519,
549,
17444,
427,
926,
834,
2256,
834,
5522,
3274,
96,
28635,
2606,
6,
19479,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many picks does Auburn have? | CREATE TABLE table_45458 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT COUNT("Pick") FROM table_45458 WHERE "School/Club Team" = 'auburn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
2128,
927,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
3142,
8512,
21680,
953,
834,
2128,
2128,
927,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
402,
7223,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many districts did charles goodell serve in ? | CREATE TABLE table_204_145 (
id number,
"representative" text,
"state" text,
"district(s)" text,
"served" text,
"party" text,
"date of birth" text,
"date of death" text,
"age" text
) | SELECT "district(s)" FROM table_204_145 WHERE "representative" = 'charles goodell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20987,
41,
3,
23,
26,
381,
6,
96,
60,
12640,
1528,
121,
1499,
6,
96,
5540,
121,
1499,
6,
96,
26,
23,
20066,
599,
7,
61,
121,
1499,
6,
96,
3473,
15,
26,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26,
23,
20066,
599,
7,
61,
121,
21680,
953,
834,
26363,
834,
20987,
549,
17444,
427,
96,
60,
12640,
1528,
121,
3274,
3,
31,
4059,
965,
207,
3820,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was Johnnie Parsons rank when he completed over 200 laps? | CREATE TABLE table_name_67 (rank VARCHAR, laps INTEGER) | SELECT rank FROM table_name_67 WHERE laps > 200 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
6254,
584,
4280,
28027,
6,
14941,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
1079,
29,
23,
15,
2180,
6577,
11003,
116,
3,
88,
2012... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
14941,
7,
2490,
2382,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the number of start dates of all the apartment bookings for each weekday with a bar chart, show in descending by the total number please. | CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
buil... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id ORDER BY COUNT(booking_start_date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
22360,
41,
3886,
834,
23,
26,
3,
21342,
17966,
6,
7285,
834,
4978,
3,
28027,
14296,
6,
3886,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
3886,
834,
5064,
834,
4350,
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,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
... |
What position does the player from the Toronto Argonauts play? | CREATE TABLE table_name_99 (
position VARCHAR,
cfl_team VARCHAR
) | SELECT position FROM table_name_99 WHERE cfl_team = "toronto argonauts" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
1102,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
405,
8,
1959,
45,
8,
7030,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
235,
4438,
32,
1584,
839,
15785,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List the power output for Phoenix. | CREATE TABLE table_73761 (
"Branding" text,
"Callsign" text,
"Channel" text,
"Power (kW)" text,
"Coverage" text
) | SELECT "Power (kW)" FROM table_73761 WHERE "Coverage" = 'Phoenix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27931,
4241,
41,
96,
18304,
727,
53,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
3541,
4515,
40,
121,
1499,
6,
96,
23553,
41,
21729,
61,
121,
1499,
6,
96,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23553,
41,
21729,
61,
121,
21680,
953,
834,
27931,
4241,
549,
17444,
427,
96,
254,
1890,
545,
121,
3274,
3,
31,
345,
107,
32,
35,
2407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the Hopperstad Stavkyrkje built? | CREATE TABLE table_name_83 (
year_built VARCHAR,
church_name VARCHAR
) | SELECT year_built FROM table_name_83 WHERE church_name = "hopperstad stavkyrkje" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
215,
834,
16152,
584,
4280,
28027,
6,
2078,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
1546,
8153,
2427,
26,
472,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
16152,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
2078,
834,
4350,
3274,
96,
19484,
2427,
26,
3342,
208,
3781,
52,
157,
1924,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
A bar chart showing the number of publication dates of books, and list from high to low by the Publication_Date. | CREATE TABLE book (
Book_ID int,
Title text,
Issues real,
Writer text
)
CREATE TABLE publication (
Publication_ID int,
Book_ID int,
Publisher text,
Publication_Date text,
Price real
) | SELECT Publication_Date, COUNT(Publication_Date) FROM publication GROUP BY Publication_Date ORDER BY Publication_Date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
484,
41,
3086,
834,
4309,
16,
17,
6,
11029,
1499,
6,
13235,
7,
490,
6,
8733,
52,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
2575,
257,
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,
1... | [
3,
23143,
14196,
2575,
257,
834,
308,
342,
6,
2847,
17161,
599,
30931,
257,
834,
308,
342,
61,
21680,
5707,
350,
4630,
6880,
272,
476,
2575,
257,
834,
308,
342,
4674,
11300,
272,
476,
2575,
257,
834,
308,
342,
309,
25067,
1,
-100,
... |
What is the Median family income when the Median household income is $38,137? | CREATE TABLE table_name_8 (median_family_income VARCHAR, median_household_income VARCHAR) | SELECT median_family_income FROM table_name_8 WHERE median_household_income = "$38,137" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
8172,
29,
834,
15474,
834,
15759,
584,
4280,
28027,
6,
15572,
834,
1840,
6134,
834,
15759,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15572,
834,
15474,
834,
15759,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
15572,
834,
1840,
6134,
834,
15759,
3274,
96,
3229,
3747,
6,
24636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date for eastern creek raceway | CREATE TABLE table_3067 (
"Round" real,
"Date" text,
"Country" text,
"Circuit" text,
"Sprint Winner" text,
"Main Winner" text,
"Report" text
) | SELECT "Date" FROM table_3067 WHERE "Circuit" = 'Eastern Creek Raceway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3708,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
134,
7260,
18125,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1458,
3708,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
427,
9,
13072,
7682,
10949,
1343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What cover has a published date of May 27, 2009 (hc) May 20, 2009 (tpb)? | CREATE TABLE table_43045 (
"Volume" text,
"Series" text,
"Title" text,
"Cover" text,
"Published" text,
"ISBN" text
) | SELECT "Cover" FROM table_43045 WHERE "Published" = 'may 27, 2009 (hc) may 20, 2009 (tpb)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25449,
2128,
41,
96,
22803,
440,
15,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
254,
1890,
121,
1499,
6,
96,
31009,
15,
26,
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,
96,
254,
1890,
121,
21680,
953,
834,
25449,
2128,
549,
17444,
427,
96,
31009,
15,
26,
121,
3274,
3,
31,
13726,
14141,
2464,
41,
107,
75,
61,
164,
16047,
2464,
41,
17,
102,
115,
61,
31,
1,
-100,
-100,
-100,
-100,
... |
What are the ids of stations that have latitude above 37.4 and never had bike availability below 7? | CREATE TABLE status (
station_id number,
bikes_available number,
docks_available number,
time text
)
CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id nu... | SELECT id FROM station WHERE lat > 37.4 EXCEPT SELECT station_id FROM status GROUP BY station_id HAVING MIN(bikes_available) < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
2478,
834,
23,
26,
381,
6,
13490,
834,
28843,
381,
6,
12908,
7,
834,
28843,
381,
6,
97,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
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,
3,
23,
26,
21680,
2478,
549,
17444,
427,
50,
17,
2490,
6862,
5,
591,
262,
4,
30416,
3,
23143,
14196,
2478,
834,
23,
26,
21680,
2637,
350,
4630,
6880,
272,
476,
2478,
834,
23,
26,
454,
6968,
2365,
3,
17684,
599,
... |
What are December 10's high points? | CREATE TABLE table_27712451_6 (high_points VARCHAR, date VARCHAR) | SELECT high_points FROM table_27712451_6 WHERE date = "December 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4450,
2266,
5553,
834,
948,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
1882,
335,
31,
7,
306,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
2700,
7,
21680,
953,
834,
2555,
4450,
2266,
5553,
834,
948,
549,
17444,
427,
833,
3274,
96,
29835,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the least money ($) when the country is united states and the player is kirk triplett? | CREATE TABLE table_name_45 (
money___ INTEGER,
country VARCHAR,
player VARCHAR
) | SELECT MIN(money___) AS $__ FROM table_name_45 WHERE country = "united states" AND player = "kirk triplett" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
540,
834,
834,
834,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
709,
540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
157,
12546,
12063,
17,
17,
121,
1,
-... |
What is the sum of all gold medals for Algeria when total medals is less than 3? | CREATE TABLE table_name_98 (gold INTEGER, nation VARCHAR, total VARCHAR) | SELECT SUM(gold) FROM table_name_98 WHERE nation = "algeria" AND total < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
14910,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
66,
2045,
9365,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
2982,
3274,
96,
138,
122,
4476,
121,
3430,
792,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of each fate? Give me the result in a bar graph, display x-axis in descending order. | CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
) | SELECT Fate, COUNT(Fate) FROM mission GROUP BY Fate ORDER BY Fate DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
868,
485,
1499,
6,
8475,
9761,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11762,
15,
6,
2847,
17161,
599,
371,
342,
61,
21680,
2253,
350,
4630,
6880,
272,
476,
11762,
15,
4674,
11300,
272,
476,
11762,
15,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the status of the election featuring incumbent margaret kaiser? | CREATE TABLE table_26416704_2 (status VARCHAR, incumbent VARCHAR) | SELECT status FROM table_26416704_2 WHERE incumbent = "Margaret Kaiser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
27650,
6348,
834,
357,
41,
8547,
302,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2637,
13,
8,
4356,
4767,
28406,
3157... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
2637,
21680,
953,
834,
26755,
27650,
6348,
834,
357,
549,
17444,
427,
28406,
3274,
96,
7286,
1478,
15,
17,
20993,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How often is the table tennis competition held? | CREATE TABLE table_68124 (
"Sport" text,
"Competition name" text,
"Competing entities" text,
"Age groups" text,
"Held every" text
) | SELECT "Held every" FROM table_68124 WHERE "Sport" = 'table tennis' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
22504,
41,
96,
17682,
121,
1499,
6,
96,
5890,
4995,
4749,
564,
121,
1499,
6,
96,
5890,
4995,
53,
12311,
121,
1499,
6,
96,
188,
397,
1637,
121,
1499,
6,
96,
566,
880... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
566,
8804,
334,
121,
21680,
953,
834,
3651,
22504,
549,
17444,
427,
96,
17682,
121,
3274,
3,
31,
3869,
9999,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.