NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
In what year did Tom Sneva win a race? | CREATE TABLE table_19090 (
"Season" real,
"Race Name" text,
"Winning Driver" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Team" text
) | SELECT "Season" FROM table_19090 WHERE "Winning Driver" = 'Tom Sneva' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
2394,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
448,
3302,
5570,
121,
1499,
6,
96,
518,
10503,
10546,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15,
9,
739,
121,
21680,
953,
834,
11776,
2394,
549,
17444,
427,
96,
518,
10503,
10546,
121,
3274,
3,
31,
3696,
51,
180,
15482,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many public is there for the couple that got eliminated? | CREATE TABLE table_73944 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
) | SELECT MAX("Public") FROM table_73944 WHERE "Result" = 'Eliminated' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3288,
3628,
41,
96,
22557,
121,
490,
6,
96,
3881,
413,
109,
121,
1499,
6,
96,
683,
13164,
7,
121,
490,
6,
96,
30931,
121,
490,
6,
96,
3696,
1947,
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,
4800,
4,
599,
121,
30931,
8512,
21680,
953,
834,
940,
3288,
3628,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
427,
4941,
77,
920,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the having things for privacy, intimate spaces of togetherness | CREATE TABLE table_name_99 (having__things_ VARCHAR, interacting__settings_ VARCHAR) | SELECT having__things_ FROM table_name_99 WHERE interacting__settings_ = "privacy, intimate spaces of togetherness" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
18261,
53,
834,
834,
8052,
7,
834,
584,
4280,
28027,
6,
3,
23396,
834,
834,
19966,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
578,
834,
834,
8052,
7,
834,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
3,
23396,
834,
834,
19966,
7,
834,
3274,
96,
2246,
8938,
63,
6,
11050,
4856,
13,
544,
655,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the total number of area for 775927 population | CREATE TABLE table_17979 (
"Member countries" text,
"Population" real,
"Area (km\u00b2)" real,
"GDP (billion US$)" text,
"GDP per capita (US$)" real
) | SELECT COUNT("Area (km\u00b2)") FROM table_17979 WHERE "Population" = '775927' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
4440,
41,
96,
329,
18247,
1440,
121,
1499,
6,
96,
27773,
7830,
121,
490,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
517,
7410,
41,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
8512,
21680,
953,
834,
26593,
4440,
549,
17444,
427,
96,
27773,
7830,
121,
3274,
3,
31,
4013,
3390,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which colle/junior/club team did Michel Boudreau play for? | CREATE TABLE table_19541 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "College/junior/club team" FROM table_19541 WHERE "Player" = 'Michel Boudreau' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
4853,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9939,
7883,
87,
6959,
23,
127,
87,
13442,
372,
121,
21680,
953,
834,
22464,
4853,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
30123,
272,
20180,
402,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which languages are offered in the coverage area of klang petaling jaya shah alam? | CREATE TABLE table_1837570_1 (
language VARCHAR,
coverage_area VARCHAR
) | SELECT language FROM table_1837570_1 WHERE coverage_area = "Klang Petaling Jaya Shah Alam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
22954,
2518,
834,
536,
41,
1612,
584,
4280,
28027,
6,
2591,
834,
498,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8024,
33,
1860,
16,
8,
2591,
616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1612,
21680,
953,
834,
2606,
22954,
2518,
834,
536,
549,
17444,
427,
2591,
834,
498,
3274,
96,
439,
4612,
5520,
9,
697,
9373,
9,
19669,
901,
265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score in round 7? | CREATE TABLE table_29086 (
"Round #" text,
"Home Team" text,
"Win/Loss" text,
"Score" text,
"Opposition" text,
"Location" text
) | SELECT "Score" FROM table_29086 WHERE "Round #" = 'Round 7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
3840,
41,
96,
448,
32,
1106,
1713,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
18455,
87,
434,
32,
7,
7,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
667,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23838,
3840,
549,
17444,
427,
96,
448,
32,
1106,
1713,
121,
3274,
3,
31,
448,
32,
1106,
489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player was drafted in Round 5? | CREATE TABLE table_name_30 (
player VARCHAR,
round VARCHAR
) | SELECT player FROM table_name_30 WHERE round = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
1959,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
47,
3,
23505,
16,
9609,
305,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1751,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was Emma Bunton's score for the performance with a total score of 22? | CREATE TABLE table_28352386_1 (
emma_bunton VARCHAR,
total VARCHAR
) | SELECT emma_bunton FROM table_28352386_1 WHERE total = "22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2469,
2773,
3840,
834,
536,
41,
3,
15,
635,
9,
834,
3007,
6992,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
15325,
4708... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
15,
635,
9,
834,
3007,
6992,
21680,
953,
834,
2577,
2469,
2773,
3840,
834,
536,
549,
17444,
427,
792,
3274,
96,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the opponent at the game attended by 62,019 before week 17? | CREATE TABLE table_name_22 (opponent VARCHAR, week VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_22 WHERE week < 17 AND attendance = "62,019" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
32,
102,
9977,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
44,
8,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
471,
3,
2,
1003,
3430,
11364,
3274,
96,
4056,
6,
632,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Given a line chart about the maximum price of wines for each year. | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No... | SELECT Year, MAX(Price) FROM wine GROUP BY Year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
9426,
651,
3,
3463,
4,
382,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5570,
3,
3463,
4,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2929,
6,
4800,
4,
599,
345,
4920,
61,
21680,
2013,
350,
4630,
6880,
272,
476,
2929,
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 power of 1.9 diesel? | CREATE TABLE table_name_66 (
power VARCHAR,
name VARCHAR
) | SELECT power FROM table_name_66 WHERE name = "1.9 diesel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
579,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
579,
13,
3,
22493,
12292,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
579,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
564,
3274,
96,
22493,
12292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What 2nd Member has a 1st Party of conservative, and a 1st Member of william edward dowdeswell? | CREATE TABLE table_60551 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
) | SELECT "2nd Member" FROM table_60551 WHERE "1st Party" = 'conservative' AND "1st Member" = 'william edward dowdeswell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
3769,
536,
41,
96,
427,
12252,
121,
1499,
6,
96,
536,
7,
17,
8541,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
357,
727,
8541,
121,
1499,
6,
96,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
727,
8541,
121,
21680,
953,
834,
3328,
3769,
536,
549,
17444,
427,
96,
536,
7,
17,
3450,
121,
3274,
3,
31,
1018,
3473,
1528,
31,
3430,
96,
536,
7,
17,
8541,
121,
3274,
3,
31,
8894,
23,
265,
3,
15,
26,... |
Show all director names who have a movie in both year 1999 and 2000. | CREATE TABLE movie (director VARCHAR, YEAR VARCHAR) | SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1974,
41,
25982,
584,
4280,
28027,
6,
30431,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
66,
2090,
3056,
113,
43,
3,
9,
1974,
16,
321,
215,
5247,
11,
2766,
5,
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,
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,
2090,
21680,
1974,
549,
17444,
427,
30431,
3274,
2766,
3,
21342,
5249,
14196,
3,
23143,
14196,
2090,
21680,
1974,
549,
17444,
427,
30431,
3274,
5247,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many male patients were born before the year 2073? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.dob_year < "2073" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
26,
32,
115,
834,
1201,
3,
2,
96,
1755,
4552,
1... |
How many Dentists in ' Los Angeles ' have a rating above 4 ? | CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE category (
id int,
business_id varchar,
category_name varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varchar
)
CRE... | SELECT COUNT(DISTINCT (business.name)) FROM business, category WHERE business.city = 'Los Angeles' AND business.rating > 4 AND category.business_id = business.business_id AND category.category_name = 'Dentists' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
41,
3,
76,
23,
26,
16,
17,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
564,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3295,
41,
3,
23,
26,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
41,
16394,
5,
4350,
61,
61,
21680,
268,
6,
3295,
549,
17444,
427,
268,
5,
6726,
3274,
3,
31,
434,
32,
7,
4975,
31,
3430,
268,
5,
52,
1014,
2490,
314,
3430,
3295,
5,
16394,
8... |
For days had a minimum dew point smaller than any day in zip code 94107, show the total number of such days using a bar chart, and I want to sort X-axis from high to low order. | CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
e... | SELECT date, COUNT(date) FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107) GROUP BY date ORDER BY date DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,
26,
3,
21342,
17966,
6,
564,
3,
3463,
4,
382,
6,
50,
17,
13046,
13098,
4666,
6,
307,
13046,
13098,
4666,
6,
12908,
834,
13362,
3,
21342,
17966,
6,
690,
3,
3463,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
6,
2847,
17161,
599,
5522,
61,
21680,
1969,
549,
17444,
427,
3519,
834,
221,
210,
834,
2700,
834,
89,
3,
2,
41,
23143,
14196,
3,
17684,
599,
1109,
834,
221,
210,
834,
2700,
834,
89,
61,
21680,
1969,
549,
1744... |
What is Region, when Date is 2004? | CREATE TABLE table_name_61 (
region VARCHAR,
date VARCHAR
) | SELECT region FROM table_name_61 WHERE date = 2004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
1719,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6163,
6,
116,
7678,
19,
4406,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1719,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
833,
3274,
4406,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
VIE is the IATA for which city? | CREATE TABLE table_name_80 (
airport VARCHAR,
iata VARCHAR
) | SELECT airport FROM table_name_80 WHERE iata = "vie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
3761,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
584,
5091,
19,
8,
27,
19282,
21,
84,
690,
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,
3761,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3,
17221,
3274,
96,
5914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners? | CREATE TABLE table_name_77 (score VARCHAR, runner_up VARCHAR, winners VARCHAR) | SELECT score FROM table_name_77 WHERE runner_up = "utc" AND winners = "saint-gaudens bears" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
7,
9022,
584,
4280,
28027,
6,
3,
10806,
834,
413,
584,
4280,
28027,
6,
8969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
3,
10806,
834,
413,
3274,
96,
76,
17,
75,
121,
3430,
8969,
3274,
96,
7,
9,
77,
17,
18,
20038,
537,
7,
4595,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
which countries won the least amount of medals ? | CREATE TABLE table_204_232 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_232 WHERE "total" = (SELECT MIN("total") FROM table_204_232) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
23188,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
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,
29,
257,
121,
21680,
953,
834,
26363,
834,
23188,
549,
17444,
427,
96,
235,
1947,
121,
3274,
41,
23143,
14196,
3,
17684,
599,
121,
235,
1947,
8512,
21680,
953,
834,
26363,
834,
23188,
61,
1,
-100,
-100,
-100,
-1... |
What is Place, when Player is 'Arnold Palmer'? | CREATE TABLE table_name_88 (
place VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_88 WHERE player = "arnold palmer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3399,
6,
116,
12387,
19,
3,
31,
188,
52,
29,
1490,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1959,
3274,
96,
291,
29,
1490,
8466,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the most rank for 2 gold | CREATE TABLE table_22355_68 (
rank INTEGER,
gold VARCHAR
) | SELECT MIN(rank) FROM table_22355_68 WHERE gold = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2773,
3769,
834,
3651,
41,
11003,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
11003,
21,
204,
2045,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
6254,
61,
21680,
953,
834,
357,
2773,
3769,
834,
3651,
549,
17444,
427,
2045,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the number of games for each away team and group by home team in a stacked bar chart The x-axis is away team, could you display from low to high by the Y? | CREATE TABLE stadium (
id int,
name text,
Home_Games int,
Average_Attendance real,
Total_Attendance real,
Capacity_Percentage real
)
CREATE TABLE injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
CREATE TABLE game (
... | SELECT Away_team, COUNT(Away_team) FROM game GROUP BY Home_team, Away_team ORDER BY COUNT(Away_team) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
1210,
834,
23055,
7,
16,
17,
6,
23836,
834,
188,
17,
324,
26,
663,
490,
6,
9273,
834,
188,
17,
324,
26,
663,
490,
6,
4000,
9,
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,
71,
1343,
834,
11650,
6,
2847,
17161,
599,
188,
1343,
834,
11650,
61,
21680,
467,
350,
4630,
6880,
272,
476,
1210,
834,
11650,
6,
71,
1343,
834,
11650,
4674,
11300,
272,
476,
2847,
17161,
599,
188,
1343,
834,
11650,
... |
What is the maximum number of assists for players named Anastasia Kostaki? | CREATE TABLE table_24913533_4 (
assists INTEGER,
player VARCHAR
) | SELECT MAX(assists) FROM table_24913533_4 WHERE player = "Anastasia Kostaki" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4729,
2469,
4201,
834,
591,
41,
13041,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
381,
13,
13041,
21,
1508,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6500,
7,
17,
7,
61,
21680,
953,
834,
2266,
4729,
2469,
4201,
834,
591,
549,
17444,
427,
1959,
3274,
96,
188,
29,
9,
7,
17,
15974,
1793,
2427,
2168,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the losing team on June 16? | CREATE TABLE table_11444 (
"Date" text,
"Winning Team" text,
"Losing Team" text,
"Score" text,
"Venue" text
) | SELECT "Losing Team" FROM table_11444 WHERE "Date" = 'june 16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
3628,
41,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2271,
121,
1499,
6,
96,
434,
32,
7,
53,
2271,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
553,
35,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
53,
2271,
121,
21680,
953,
834,
18959,
3628,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6959,
15,
898,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the name and distance for aircraft with id 12? | CREATE TABLE Aircraft (
name VARCHAR,
distance VARCHAR,
aid VARCHAR
) | SELECT name, distance FROM Aircraft WHERE aid = 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1761,
6696,
41,
564,
584,
4280,
28027,
6,
2357,
584,
4280,
28027,
6,
3052,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
11,
2357,
21,
6442,
28,
3,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
6,
2357,
21680,
1761,
6696,
549,
17444,
427,
3052,
3274,
586,
1,
-100,
-100,
-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 the number of times a boston red sox player has had two grand slams in one game ? | CREATE TABLE table_203_549 (
id number,
"player" text,
"team" text,
"date" text,
"opponent" text,
"venue" text
) | SELECT COUNT(*) FROM table_203_549 WHERE "team" = 'boston red sox' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
3647,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
15098,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
755,
3647,
549,
17444,
427,
96,
11650,
121,
3274,
3,
31,
115,
32,
4411,
1131,
78,
226,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What movie did Bela Bose co-star in? | CREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR) | SELECT movie_album FROM table_2528382_5 WHERE co_stars = "Bela Bose" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2577,
3747,
357,
834,
755,
41,
7168,
23,
15,
834,
23703,
584,
4280,
28027,
6,
576,
834,
3624,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1974,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1974,
834,
23703,
21680,
953,
834,
1828,
2577,
3747,
357,
834,
755,
549,
17444,
427,
576,
834,
3624,
7,
3274,
96,
2703,
521,
1491,
7,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Date, when Attendance is less than 521? | CREATE TABLE table_name_43 (
date VARCHAR,
attendance INTEGER
) | SELECT date FROM table_name_43 WHERE attendance < 521 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
833,
584,
4280,
28027,
6,
11364,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7678,
6,
116,
22497,
663,
19,
705,
145,
305,
2658,
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,
833,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
11364,
3,
2,
305,
2658,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who are the candidates in the Tennessee 3 district election? | CREATE TABLE table_1341453_44 (
candidates VARCHAR,
district VARCHAR
) | SELECT candidates FROM table_1341453_44 WHERE district = "Tennessee 3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2534,
4867,
834,
3628,
41,
4341,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
8,
4341,
16,
8,
12976,
220,
3939,
4356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4341,
21680,
953,
834,
23747,
2534,
4867,
834,
3628,
549,
17444,
427,
3939,
3274,
96,
382,
35,
655,
15,
15,
220,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the charge against the defendant who was arrested after 1955 ? | CREATE TABLE table_204_479 (
id number,
"defendant" text,
"arrested" text,
"charge" text,
"result" text,
"sentence" text
) | SELECT "charge" FROM table_204_479 WHERE "arrested" > 1955 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
4440,
41,
3,
23,
26,
381,
6,
96,
221,
89,
989,
288,
121,
1499,
6,
96,
291,
60,
6265,
121,
1499,
6,
96,
7993,
121,
1499,
6,
96,
60,
7,
83,
17,
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,
7993,
121,
21680,
953,
834,
26363,
834,
591,
4440,
549,
17444,
427,
96,
291,
60,
6265,
121,
2490,
23652,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the freestyle leg for the Netherlands? | CREATE TABLE table_name_69 (freestyle_leg VARCHAR, country VARCHAR) | SELECT freestyle_leg FROM table_name_69 WHERE country = "netherlands" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
2113,
4084,
834,
5772,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
339,
4084,
4553,
21,
8,
12023,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
339,
4084,
834,
5772,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
684,
3274,
96,
29,
16764,
6347,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the name and budget of departments whose budgets are more than the average budget Visualize by bar chart, and display names in descending order. | CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred... | SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) ORDER BY dept_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
554,
60,
1824,
41,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
554,
60,
1824,
834,
23,
26,
3,
4331,
4059,
28007,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
11749... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20,
102,
17,
834,
4350,
6,
1487,
21680,
3066,
549,
17444,
427,
1487,
2490,
41,
23143,
14196,
71,
17217,
599,
11073,
2782,
61,
21680,
3066,
61,
4674,
11300,
272,
476,
20,
102,
17,
834,
4350,
309,
25067,
1,
-100,
-100... |
Who wrote the episode that had 6.05 million U.s. viewers? | CREATE TABLE table_30246 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (million)" text
) | SELECT "Written by" FROM table_30246 WHERE "U.S. viewers (million)" = '6.05' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
357,
4448,
41,
96,
4168,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,
10270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24965,
324,
57,
121,
21680,
953,
834,
1458,
357,
4448,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
17030,
61,
121,
3274,
3,
31,
22642,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total rank for the athlete that had a race time of 7:34.24? | CREATE TABLE table_name_56 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_56 WHERE time = "7:34.24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
6254,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
11003,
21,
8,
17893,
24,
141,
3,
9,
1964,
97,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6254,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
97,
3274,
96,
940,
10,
3710,
5,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many contestants are 1.80 mtr. in height? | CREATE TABLE table_27946889_2 (contestant VARCHAR, height__mtr_ VARCHAR) | SELECT COUNT(contestant) FROM table_27946889_2 WHERE height__mtr_ = "1.80" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4240,
3651,
3914,
834,
357,
41,
1018,
4377,
288,
584,
4280,
28027,
6,
3902,
834,
834,
51,
17,
52,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1018,
4377,
288,
61,
21680,
953,
834,
2555,
4240,
3651,
3914,
834,
357,
549,
17444,
427,
3902,
834,
834,
51,
17,
52,
834,
3274,
96,
5411,
2079,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest goal difference that the club with 33-5 points and less than 12 wins? | CREATE TABLE table_name_52 (goal_difference INTEGER, points VARCHAR, wins VARCHAR) | SELECT MAX(goal_difference) FROM table_name_52 WHERE points = "33-5" AND wins < 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
839,
138,
834,
26,
99,
11788,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
839,
138,
834,
26,
99,
11788,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
979,
3274,
96,
4201,
18,
17395,
3430,
9204,
3,
2,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who drafted the player from Michigan after 2010? | CREATE TABLE table_name_44 (drafting_team VARCHAR, graduated VARCHAR, college_prior VARCHAR) | SELECT drafting_team FROM table_name_44 WHERE graduated > 2010 AND college_prior = "michigan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
26797,
834,
11650,
584,
4280,
28027,
6,
9461,
584,
4280,
28027,
6,
1900,
834,
2246,
127,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
26797,
834,
11650,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
9461,
2490,
2735,
3430,
1900,
834,
2246,
127,
3274,
96,
51,
362,
12588,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What language is the moviein that is on UMP movies network through Sky service? | CREATE TABLE table_name_87 (
language VARCHAR,
network VARCHAR,
genre VARCHAR,
service VARCHAR
) | SELECT language FROM table_name_87 WHERE genre = "movies" AND service = "sky" AND network = "ump movies" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
1612,
584,
4280,
28027,
6,
1229,
584,
4280,
28027,
6,
5349,
584,
4280,
28027,
6,
313,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1612,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
5349,
3274,
96,
7168,
725,
121,
3430,
313,
3274,
96,
5352,
121,
3430,
1229,
3274,
96,
440,
102,
4876,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of acres at Sai Tso Wan, opening before 1978? | CREATE TABLE table_name_29 (
acres VARCHAR,
landfill VARCHAR,
opened VARCHAR
) | SELECT COUNT(acres) FROM table_name_29 WHERE landfill = "sai tso wan" AND opened < 1978 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
9704,
584,
4280,
28027,
6,
24929,
584,
4280,
28027,
6,
2946,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
9704,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
10610,
7,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
24929,
3274,
96,
7,
9,
23,
3,
17,
7,
32,
3,
3877,
121,
3430,
2946,
3,
2,
14834,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which tournament had a 2010 finish of 4R? | CREATE TABLE table_68293 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
) | SELECT "Tournament" FROM table_68293 WHERE "2010" = '4r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
357,
4271,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1211,
20205,
17,
121,
21680,
953,
834,
3651,
357,
4271,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
591,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What date was the match against carlisle united? | CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_65 WHERE away_team = "carlisle united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
1588,
581,
443,
40,
159,
109,
18279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
40,
159,
109,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the Ryuji Hijikata for TAKA Michinoku of Hayashi (28:05) | CREATE TABLE table_51597 (
"Block A" text,
"Kaz Hayashi" text,
"Ryuji Hijikata" text,
"TAKA Michinoku" text,
"\"brother\" YASSHI" text
) | SELECT "Ryuji Hijikata" FROM table_51597 WHERE "TAKA Michinoku" = 'hayashi (28:05)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1808,
4327,
41,
96,
279,
4029,
71,
121,
1499,
6,
96,
439,
9,
172,
8567,
17155,
121,
1499,
6,
96,
448,
63,
76,
354,
23,
454,
17279,
8682,
9,
121,
1499,
6,
96,
3221,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
63,
76,
354,
23,
454,
17279,
8682,
9,
121,
21680,
953,
834,
755,
1808,
4327,
549,
17444,
427,
96,
3221,
12048,
18463,
77,
18512,
121,
3274,
3,
31,
12687,
17155,
41,
2577,
10,
3076,
61,
31,
1,
-100,
-100,
... |
For episode number 7, what was the numbers of original air dates? | CREATE TABLE table_19266557_1 (original_air_date VARCHAR, _number VARCHAR) | SELECT COUNT(original_air_date) FROM table_19266557_1 WHERE _number = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2688,
4122,
3436,
834,
536,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
5640,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
21878,
834,
2256,
834,
5522,
61,
21680,
953,
834,
2294,
2688,
4122,
3436,
834,
536,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Municipality of tampere involves which party? | CREATE TABLE table_5759 (
"Candidate" text,
"Party" text,
"Votes" text,
"Quotient" text,
"Municipality" text
) | SELECT "Party" FROM table_5759 WHERE "Municipality" = 'tampere' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3390,
41,
96,
14050,
12416,
342,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
553,
32,
1422,
121,
1499,
6,
96,
5991,
32,
15058,
121,
1499,
6,
96,
329,
202,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
3436,
3390,
549,
17444,
427,
96,
329,
202,
23,
3389,
10355,
121,
3274,
3,
31,
17,
4624,
49,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What year was the building with a top 3 rank and a height of 274 (84) ft (m) completed? | CREATE TABLE table_35517 (
"Rank" real,
"Name" text,
"Height ft (m)" text,
"Floors (Stories)" real,
"Year Completed" real
) | SELECT MAX("Year Completed") FROM table_35517 WHERE "Rank" < '3' AND "Height ft (m)" = '274 (84)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
755,
2517,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
3,
89,
17,
41,
51,
61,
121,
1499,
6,
96,
11251,
127,
7,
41,
134,
235,
2593,
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,
4800,
4,
599,
121,
476,
2741,
9480,
26,
8512,
21680,
953,
834,
2469,
755,
2517,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
3845,
2632,
3,
89,
17,
41,
51,
61,
121,
3274,
3,
31,
2555,
591,
... |
Which Tournament has a 1984 of 1r? | CREATE TABLE table_name_26 (
tournament VARCHAR
) | SELECT tournament FROM table_name_26 WHERE 1984 = "1r" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
20502,
65,
3,
9,
13480,
13,
209,
52,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
13480,
3274,
96,
536,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest position of the Bangor City team? | CREATE TABLE table_17366952_1 (
position INTEGER,
team VARCHAR
) | SELECT MAX(position) FROM table_17366952_1 WHERE team = "Bangor City" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3420,
3951,
5373,
834,
536,
41,
1102,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1102,
13,
8,
19330,
127,
896,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
4718,
61,
21680,
953,
834,
2517,
3420,
3951,
5373,
834,
536,
549,
17444,
427,
372,
3274,
96,
279,
1468,
127,
896,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the school when the team is new york yankees? | CREATE TABLE table_name_1 (
school VARCHAR,
team VARCHAR
) | SELECT school FROM table_name_1 WHERE team = "new york yankees" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
496,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
496,
116,
8,
372,
19,
126,
25453,
3,
63,
5979,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
496,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
372,
3274,
96,
5534,
25453,
3,
63,
5979,
15,
15,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Field has a Discovery of na, and an Operator(s) of woc, and a Geological Trend of western | CREATE TABLE table_name_15 (field VARCHAR, geological_trend VARCHAR, discovery VARCHAR, operator_s_ VARCHAR) | SELECT field FROM table_name_15 WHERE discovery = "na" AND operator_s_ = "woc" AND geological_trend = "western" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
1846,
584,
4280,
28027,
6,
873,
4478,
834,
22517,
584,
4280,
28027,
6,
9087,
584,
4280,
28027,
6,
7221,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
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,
1057,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
9087,
3274,
96,
29,
9,
121,
3430,
7221,
834,
7,
834,
3274,
96,
210,
32,
75,
121,
3430,
873,
4478,
834,
22517,
3274,
96,
24411,
121,
1,
-100,
-100,
-100,
-10... |
Top 10 countries with the most hall of fame players | CREATE TABLE hall_of_fame (
player_id text,
yearid number,
votedby text,
ballots text,
needed text,
votes text,
inducted text,
category text,
needed_note text
)
CREATE TABLE player_award_vote (
award_id text,
year number,
league_id text,
player_id text,
points_wo... | SELECT T1.birth_country FROM player AS T1 JOIN hall_of_fame AS T2 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y" GROUP BY T1.birth_country ORDER BY COUNT(*) DESC LIMIT 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6358,
834,
858,
834,
89,
265,
15,
41,
1959,
834,
23,
26,
1499,
6,
215,
23,
26,
381,
6,
3,
11060,
969,
1499,
6,
16524,
7,
1499,
6,
906,
1499,
6,
11839,
1499,
6,
16,
21336,
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,
332,
5411,
20663,
834,
17529,
21680,
1959,
6157,
332,
536,
3,
15355,
3162,
6358,
834,
858,
834,
89,
265,
15,
6157,
332,
357,
9191,
332,
5411,
20846,
834,
23,
26,
3274,
332,
4416,
20846,
834,
23,
26,
549,
17444,
427,... |
Which loss has an Opponent of @ angels, and a Date of august 1? | CREATE TABLE table_name_47 (loss VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT loss FROM table_name_47 WHERE opponent = "@ angels" AND date = "august 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
2298,
7,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1453,
65,
46,
4495,
9977,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1453,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
15264,
3274,
96,
1741,
11831,
7,
121,
3430,
833,
3274,
96,
402,
17198,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the class when the verb meaning is to nourish, to grow? | CREATE TABLE table_name_47 (class VARCHAR, verb_meaning VARCHAR) | SELECT class FROM table_name_47 WHERE verb_meaning = "to nourish, to grow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
4057,
584,
4280,
28027,
6,
7375,
834,
27639,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
853,
116,
8,
7375,
2530,
19,
12,
25196,
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,
4177,
549,
17444,
427,
7375,
834,
27639,
3274,
96,
235,
25196,
6,
12,
1604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the normal with que of 24 | CREATE TABLE table_70945 (
"Date enacted" text,
"Normal total" text,
"\u00a726 total" text,
"Ont." text,
"Que." text,
"N.S." text,
"N.B." text
) | SELECT "Normal total" FROM table_70945 WHERE "Que." = '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
1298,
2128,
41,
96,
308,
342,
3,
35,
9925,
121,
1499,
6,
96,
19383,
138,
792,
121,
1499,
6,
96,
2,
76,
1206,
9,
940,
2688,
792,
121,
1499,
6,
96,
7638,
17,
535,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19383,
138,
792,
121,
21680,
953,
834,
2518,
1298,
2128,
549,
17444,
427,
96,
5991,
15,
535,
3274,
3,
31,
2266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
I want the director for heroes of the wild | CREATE TABLE table_name_29 (director VARCHAR, serial_title VARCHAR) | SELECT director FROM table_name_29 WHERE serial_title = "heroes of the wild" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
25982,
584,
4280,
28027,
6,
10501,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
2090,
21,
17736,
13,
8,
3645,
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,
2090,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
10501,
834,
21869,
3274,
96,
760,
32,
15,
7,
13,
8,
3645,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the No. 2 of the person with a No. 5 of Ethan and NO. 7 of Jackson? | CREATE TABLE table_name_98 (no_2 VARCHAR, no_4 VARCHAR, no_7 VARCHAR) | SELECT no_2 FROM table_name_98 WHERE no_4 = "ethan" AND no_7 = "jackson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
29,
32,
834,
357,
584,
4280,
28027,
6,
150,
834,
591,
584,
4280,
28027,
6,
150,
834,
940,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
150,
834,
357,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
150,
834,
591,
3274,
96,
15,
6736,
121,
3430,
150,
834,
940,
3274,
96,
9325,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Specify the maximum age of patients that had a discharge location of dead/expired but a death status of unspecified. | 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 MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.discharge_location = "DEAD/EXPIRED" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
632,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
308,
19552,
87,
427,
4,
4111,
... |
how many patients with hypoglycemia were there in 2103? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age te... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'hypoglycemia' AND STRFTIME('%y', diagnosis.diagnosistime) = '2103') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
10061,
15129,
21545,
23,
26,
21680,
8209,
549,
... |
What award was Trent Tesoro nominated for in 2007? | CREATE TABLE table_name_2 (
award VARCHAR,
result VARCHAR,
year VARCHAR
) | SELECT award FROM table_name_2 WHERE result = "nominated" AND year = 2007 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
2760,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2760,
47,
24116,
2255,
7,
127,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2760,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
741,
3274,
96,
3114,
77,
920,
121,
3430,
215,
3274,
4101,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the republican candidate in the race with incumbent thelma drake? | CREATE TABLE table_17503169_1 (republican VARCHAR, incumbent VARCHAR) | SELECT republican FROM table_17503169_1 WHERE incumbent = "Thelma Drake" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1752,
3341,
3951,
834,
536,
41,
60,
15727,
152,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
20237,
152,
4775,
16,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20237,
152,
21680,
953,
834,
2517,
1752,
3341,
3951,
834,
536,
549,
17444,
427,
28406,
3274,
96,
382,
17757,
9,
24823,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest First Elected, when Results is "Re-elected", and when Incumbent is "Lincoln Davis"? | CREATE TABLE table_name_38 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_name_38 WHERE results = "re-elected" AND incumbent = "lincoln davis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
14672,
834,
19971,
3,
21342,
17966,
6,
772,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1485,
1289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
772,
3274,
96,
60,
18,
19971,
121,
3430,
28406,
3274,
96,
40,
77,
3297,
29,
836,
3466,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
vernon cassel and reginald shaffer was sentenced how many years ? | CREATE TABLE table_204_479 (
id number,
"defendant" text,
"arrested" text,
"charge" text,
"result" text,
"sentence" text
) | SELECT "sentence" FROM table_204_479 WHERE "defendant" IN ('vernon cassel', 'reginald shaffer') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
4440,
41,
3,
23,
26,
381,
6,
96,
221,
89,
989,
288,
121,
1499,
6,
96,
291,
60,
6265,
121,
1499,
6,
96,
7993,
121,
1499,
6,
96,
60,
7,
83,
17,
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,
5277,
1433,
121,
21680,
953,
834,
26363,
834,
591,
4440,
549,
17444,
427,
96,
221,
89,
989,
288,
121,
3388,
41,
31,
624,
29,
106,
212,
9816,
31,
6,
3,
31,
60,
19604,
40,
26,
6660,
9,
7010,
31,
61,
1,
-100,... |
What is the total number of poles for arden international? | CREATE TABLE table_10420426_1 (poles VARCHAR, team VARCHAR) | SELECT COUNT(poles) FROM table_10420426_1 WHERE team = "Arden International" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
26363,
2688,
834,
536,
41,
14332,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
11148,
7,
21,
3,
986,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
14332,
7,
61,
21680,
953,
834,
15442,
26363,
2688,
834,
536,
549,
17444,
427,
372,
3274,
96,
188,
52,
537,
1331,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is GTO Winning Team Mike Keyser's RND number? | CREATE TABLE table_13657749_2 (
rnd VARCHAR,
gto_winning_team VARCHAR
) | SELECT rnd FROM table_13657749_2 WHERE gto_winning_team = "Mike Keyser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
10402,
4013,
3647,
834,
357,
41,
3,
52,
727,
584,
4280,
28027,
6,
3,
122,
235,
834,
8163,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
52,
727,
21680,
953,
834,
536,
10402,
4013,
3647,
834,
357,
549,
17444,
427,
3,
122,
235,
834,
8163,
834,
11650,
3274,
96,
329,
5208,
4420,
7,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What district first elected a Democratic incumbent in 1998? | CREATE TABLE table_1805191_50 (
district VARCHAR,
party VARCHAR,
first_elected VARCHAR
) | SELECT district FROM table_1805191_50 WHERE party = "Democratic" AND first_elected = 1998 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
5553,
4729,
834,
1752,
41,
3939,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3939,
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,
3939,
21680,
953,
834,
20829,
5553,
4729,
834,
1752,
549,
17444,
427,
1088,
3274,
96,
19679,
447,
121,
3430,
166,
834,
19971,
3274,
6260,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the most place for goals scored more than 28 and played less than 18 | CREATE TABLE table_name_23 (place INTEGER, goals_scored VARCHAR, played VARCHAR) | SELECT MAX(place) FROM table_name_23 WHERE goals_scored > 28 AND played < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
4687,
3,
21342,
17966,
6,
1766,
834,
3523,
1271,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
286,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4687,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1766,
834,
3523,
1271,
2490,
2059,
3430,
1944,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
At what venue did the away team score 15.16 (106)? | CREATE TABLE table_54921 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_54921 WHERE "Away team score" = '15.16 (106)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3647,
2658,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
755,
3647,
2658,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
1808,
5,
2938,
11704,
10938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the average number of yards Michael Henig had in a year when he had more than 12 starts/ | CREATE TABLE table_name_46 (yards INTEGER, starts INTEGER) | SELECT AVG(yards) FROM table_name_46 WHERE starts > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
6636,
7,
3,
21342,
17966,
6,
3511,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
381,
13,
6460,
2457,
216,
7315,
141,
16,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6636,
7,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
3511,
2490,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many provinces have a density of 165.81? | CREATE TABLE table_254234_1 (iso_ VARCHAR, density² VARCHAR) | SELECT COUNT(iso_) AS № FROM table_254234_1 WHERE density² = "165.81" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4165,
3710,
834,
536,
41,
159,
32,
834,
584,
4280,
28027,
6,
11048,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7985,
7,
43,
3,
9,
11048,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
159,
32,
834,
61,
6157,
465,
21680,
953,
834,
1828,
4165,
3710,
834,
536,
549,
17444,
427,
11048,
357,
3274,
96,
22823,
5,
4959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the method of intake of aspirin 300 mg re supp? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'aspirin 300 mg re supp' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
15438,
25424,
6227,
7757,
5,
20300,
20466,
29,
21680,
7757,
549,
17444,
427,
7757,
5,
26,
13534,
4350,
3274,
3,
31,
9,
7,
2388,
77,
3147,
5453,
3,
60,
2629,
1572,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the venue that has 34-18 as the score? | CREATE TABLE table_21350934_2 (venue VARCHAR, score VARCHAR) | SELECT venue FROM table_21350934_2 WHERE score = "34-18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2469,
4198,
3710,
834,
357,
41,
15098,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
24,
65,
6154,
6996,
38,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
2658,
2469,
4198,
3710,
834,
357,
549,
17444,
427,
2604,
3274,
96,
3710,
6996,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the home of the match with a 0:2 result on 21.10.07? | CREATE TABLE table_49431 (
"Date" text,
"Time" text,
"Home" text,
"Geust" text,
"Result" text
) | SELECT "Home" FROM table_49431 WHERE "Result" = '0:2' AND "Date" = '21.10.07' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
591,
3341,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
517,
15,
302,
17,
121,
1499,
6,
96,
20119,
121,
1499,
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,
96,
19040,
121,
21680,
953,
834,
3647,
591,
3341,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
632,
10,
357,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
2658,
5,
10415,
4560,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
College of san diego state, and a Pick # smaller than 30 is what lowest overall? | CREATE TABLE table_name_32 (overall INTEGER, college VARCHAR, pick__number VARCHAR) | SELECT MIN(overall) FROM table_name_32 WHERE college = "san diego state" AND pick__number < 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1890,
1748,
3,
21342,
17966,
6,
1900,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1888,
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,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1900,
3274,
96,
7,
152,
67,
839,
538,
121,
3430,
1432,
834,
834,
5525,
1152,
3,
2,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the league for 1996 | CREATE TABLE table_57709 (
"Year" text,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT "League" FROM table_57709 WHERE "Year" = '1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
2518,
1298,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2796,
9,
5398,
121,
21680,
953,
834,
3436,
2518,
1298,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
John W. Heselton was first elected in what year? | CREATE TABLE table_1342013_20 (
first_elected INTEGER,
incumbent VARCHAR
) | SELECT MAX(first_elected) FROM table_1342013_20 WHERE incumbent = "John W. Heselton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
11138,
834,
1755,
41,
166,
834,
19971,
3,
21342,
17966,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1079,
549,
5,
216,
7,
15,
7377,
47,
166,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
11138,
834,
1755,
549,
17444,
427,
28406,
3274,
96,
18300,
549,
5,
216,
7,
15,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What team has jordan 193 chassis after 1990? | CREATE TABLE table_name_61 (
team VARCHAR,
year VARCHAR,
chassis VARCHAR
) | SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
372,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
65,
3,
12775,
3768,
957,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
215,
2490,
5541,
3430,
22836,
3274,
96,
12775,
3768,
957,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which nation had 3 bronze? | CREATE TABLE table_13842 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Nation" FROM table_13842 WHERE "Bronze" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
4165,
41,
96,
22557,
121,
1499,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
567,
257,
121,
21680,
953,
834,
22744,
4165,
549,
17444,
427,
96,
22780,
29,
776,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the 1 credit with a Hand of Theoretical Return? | CREATE TABLE table_35139 (
"Hand" text,
"1 credit" text,
"2 credits" text,
"3 credits" text,
"4 credits" text,
"5 credits" text
) | SELECT "1 credit" FROM table_35139 WHERE "Hand" = 'theoretical return' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
24090,
41,
96,
566,
232,
121,
1499,
6,
96,
536,
998,
121,
1499,
6,
96,
357,
11893,
121,
1499,
6,
96,
519,
11893,
121,
1499,
6,
96,
591,
11893,
121,
1499,
6,
96,
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,
536,
998,
121,
21680,
953,
834,
2469,
24090,
549,
17444,
427,
96,
566,
232,
121,
3274,
3,
31,
532,
127,
7578,
138,
1205,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of patients whose discharge location is snf and lab test name is alkaline phosphatase? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "SNF" AND lab.label = "Alkaline Phosphatase" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many datas were recorded on January 15-16 if August 21-22 is 155? | CREATE TABLE table_27450 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
) | SELECT COUNT("January 15-16") FROM table_27450 WHERE "August 21-22" = '155' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
10593,
41,
96,
683,
444,
335,
9169,
121,
1499,
6,
96,
25019,
2307,
18,
3166,
121,
1499,
6,
96,
30404,
627,
10892,
121,
1499,
6,
96,
28635,
220,
121,
1499,
6,
96,
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,
2847,
17161,
599,
121,
30404,
627,
10892,
8512,
21680,
953,
834,
2555,
10593,
549,
17444,
427,
96,
26579,
1401,
16149,
121,
3274,
3,
31,
20896,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Thomas de Gendt performed on what stage as aggressive rider? | CREATE TABLE table_31097 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Mountains Classification" text,
"Sprint Classification" text,
"Young Rider Classification" text,
"Team Classification" text,
"Aggressive Rider" text
) | SELECT MAX("Stage") FROM table_31097 WHERE "Aggressive Rider" = 'Thomas De Gendt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19947,
4327,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
4501,
2420,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
4501,
2420,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
134,
6505,
8512,
21680,
953,
834,
19947,
4327,
549,
17444,
427,
96,
188,
122,
10292,
757,
25218,
121,
3274,
3,
31,
8991,
32,
2754,
374,
5945,
26,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year. | CREATE TABLE Movie (
mID VARCHAR,
year VARCHAR
)
CREATE TABLE Rating (
mID VARCHAR,
stars VARCHAR
) | SELECT DISTINCT year FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars >= 4 ORDER BY T1.year | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
51,
4309,
584,
4280,
28027,
6,
4811,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
215,
21680,
10743,
6157,
332,
536,
3,
15355,
3162,
21662,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
549,
17444,
427,
332,
4416,
3624,
7,
2490,
2423,
314,
4674,
11300,... |
What is the sum of Round(s), when Method is "Submission (Banana Split)"? | CREATE TABLE table_name_79 (round INTEGER, method VARCHAR) | SELECT SUM(round) FROM table_name_79 WHERE method = "submission (banana split)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
7775,
3,
21342,
17966,
6,
1573,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
9609,
599,
7,
201,
116,
7717,
19,
96,
25252,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1573,
3274,
96,
7304,
5451,
41,
3478,
152,
9,
5679,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926? | CREATE TABLE table_name_9 (
pujehun INTEGER,
tonkolili VARCHAR,
kenema VARCHAR,
kambia VARCHAR
) | SELECT MAX(pujehun) FROM table_name_9 WHERE kenema > 559 AND kambia = "45,653" AND tonkolili > 113 OFFSET 926 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
4353,
1924,
107,
202,
3,
21342,
17966,
6,
12,
29,
11292,
173,
23,
584,
4280,
28027,
6,
3,
1050,
9660,
9,
584,
4280,
28027,
6,
6511,
15500,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
4987,
1924,
107,
202,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
3,
1050,
9660,
9,
2490,
305,
3390,
3430,
6511,
15500,
3274,
96,
2128,
6,
4122,
519,
121,
3430,
12,
29,
11292,
173,
23,
249... |
How many episodes have been directed by David Duchovny? | CREATE TABLE table_13336122_3 (
title VARCHAR,
directed_by VARCHAR
) | SELECT COUNT(title) FROM table_13336122_3 WHERE directed_by = "David Duchovny" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
3420,
20889,
834,
519,
41,
2233,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13562,
43,
118,
6640,
57,
1955,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
21869,
61,
21680,
953,
834,
22974,
3420,
20889,
834,
519,
549,
17444,
427,
6640,
834,
969,
3274,
96,
308,
9,
6961,
970,
3995,
208,
29,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score of the game where the venue was cairns convention centre? | CREATE TABLE table_name_54 (score VARCHAR, venue VARCHAR) | SELECT score FROM table_name_54 WHERE venue = "cairns convention centre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
7,
9022,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
213,
8,
5669,
47,
3,
75,
2256,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
5669,
3274,
96,
75,
2256,
29,
7,
8346,
2050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What league has a value of 0 29 (152) for Europe? | CREATE TABLE table_name_43 (league VARCHAR, europe VARCHAR) | SELECT league FROM table_name_43 WHERE europe = "0 29 (152)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
29512,
584,
4280,
28027,
6,
3,
28188,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5533,
65,
3,
9,
701,
13,
3,
632,
2838,
17251,
7318,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5533,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
3,
28188,
3274,
96,
632,
2838,
17251,
7318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the year for reportaje a la muerte | CREATE TABLE table_20963074_1 (year__ceremony_ VARCHAR, original_title VARCHAR) | SELECT year__ceremony_ FROM table_20963074_1 WHERE original_title = "Reportaje a la muerte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4314,
1458,
4581,
834,
536,
41,
1201,
834,
834,
2110,
15,
21208,
834,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
834,
834,
2110,
15,
21208,
834,
21680,
953,
834,
1755,
4314,
1458,
4581,
834,
536,
549,
17444,
427,
926,
834,
21869,
3274,
96,
1649,
1493,
9,
1924,
3,
9,
50,
4035,
49,
17,
15,
121,
1,
-100,
-100,
-100,
-100,
... |
How many captains when the shirt sponsor is toshiba? | CREATE TABLE table_27631756_2 (
captain VARCHAR,
shirt_sponsor VARCHAR
) | SELECT COUNT(captain) FROM table_27631756_2 WHERE shirt_sponsor = "Toshiba" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3891,
2517,
4834,
834,
357,
41,
14268,
584,
4280,
28027,
6,
8677,
834,
7,
5041,
7,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14268,
7,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4010,
17,
9,
77,
61,
21680,
953,
834,
2555,
3891,
2517,
4834,
834,
357,
549,
17444,
427,
8677,
834,
7,
5041,
7,
127,
3274,
96,
3696,
5605,
115,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
find out the number of urgent hospital admission patients who had neutrophil lab test done. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.label = "Neutrophils" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What position was Jafus White who was picked after round 1? | CREATE TABLE table_35425 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_35425 WHERE "Round" > '1' AND "Player" = 'jafus white' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
591,
1828,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
2469,
591,
1828,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
536,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
1191,
89,
302,
872,
31,
1,
-100,
-100,
-100,
-... |
how many patients have had cpap/peep therapy - 5-10 cm h2o two or more times? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TAB... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'cpap/peep therapy - 5-10 cm h2o') GROUP BY patient.uniquepid) AS t1 WHERE t1.c1 >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
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,
2847,
17161,
599,
15438,
25424,
6227,
3,
17,
5411,
202,
1495,
12417,
61,
21680,
41,
23143,
14196,
1868,
5,
202,
1495,
12417,
6,
2847,
17161,
599,
1935,
61,
6157,
3,
75,
536,
21680,
1868,
549,
17444,
427,
1868,
5,
10... |
What were the results for the district oklahoma 5? | CREATE TABLE table_18126 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
) | SELECT "Results" FROM table_18126 WHERE "District" = 'Oklahoma 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
21976,
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,
7,
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,
7,
121,
21680,
953,
834,
2606,
21976,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
667,
8142,
10207,
9,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of television channels when one of the radio stations is onda madrid? | CREATE TABLE table_23143607_1 (television_channels VARCHAR, radio_stations VARCHAR) | SELECT COUNT(television_channels) FROM table_23143607_1 WHERE radio_stations = "Onda Madrid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2534,
3420,
4560,
834,
536,
41,
1931,
6610,
834,
19778,
7,
584,
4280,
28027,
6,
2252,
834,
6682,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
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,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1931,
6610,
834,
19778,
7,
61,
21680,
953,
834,
2773,
2534,
3420,
4560,
834,
536,
549,
17444,
427,
2252,
834,
6682,
7,
3274,
96,
7638,
26,
9,
12033,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Whose WSOP earnings were $36,372? | CREATE TABLE table_23696862_6 (name VARCHAR, wsop_earnings VARCHAR) | SELECT name FROM table_23696862_6 WHERE wsop_earnings = "$36,372" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3951,
3651,
4056,
834,
948,
41,
4350,
584,
4280,
28027,
6,
3,
210,
7,
32,
102,
834,
2741,
29,
53,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
2773,
3951,
3651,
4056,
834,
948,
549,
17444,
427,
3,
210,
7,
32,
102,
834,
2741,
29,
53,
7,
3274,
96,
3229,
3420,
6,
4118,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the names of all modern rooms with a base price below $160 and two beds. | CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults number,
kids number
)
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
basepric... | SELECT roomname FROM rooms WHERE baseprice < 160 AND beds = 2 AND decor = 'modern' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17653,
41,
1081,
381,
6,
562,
1499,
6,
691,
77,
1499,
6,
15912,
1499,
6,
1080,
381,
6,
336,
4350,
1499,
6,
166,
4350,
1499,
6,
3513,
381,
6,
1082,
381,
3,
61,
3,
32102,
32103,
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,
562,
4350,
21680,
2801,
549,
17444,
427,
1247,
102,
4920,
3,
2,
11321,
3430,
8326,
3274,
204,
3430,
4469,
3274,
3,
31,
18306,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a bar chart to show how many dates with a max temperature greater than or equal to 80 for each day. | CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE station (
id INTEG... | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f >= 80 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
3,
21342,
17966,
6,
8659,
3,
21342,
17966,
6,
456,
834,
5522,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
4350,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
23,
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,
833,
6,
2847,
17161,
599,
5522,
61,
21680,
1969,
549,
17444,
427,
9858,
834,
21010,
15,
834,
89,
2490,
2423,
2775,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT WAS THE NUMBER OF THE ONLY FORWARD-CENTER TO MAKE THE ROSTER? | CREATE TABLE table_15621965_18 (no INTEGER, position VARCHAR) | SELECT MIN(no) FROM table_15621965_18 WHERE position = "Forward-Center" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4056,
2294,
4122,
834,
2606,
41,
29,
32,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
7896,
134,
1853,
445,
6122,
12920,
3347,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
29,
32,
61,
21680,
953,
834,
1808,
4056,
2294,
4122,
834,
2606,
549,
17444,
427,
1102,
3274,
96,
3809,
2239,
18,
24382,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many items were recorded marseille (32 draw) was a 2 seed? | CREATE TABLE table_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR) | SELECT COUNT(marseille__32_draw_) FROM table_20711545_1 WHERE seed = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
15660,
2128,
834,
536,
41,
1635,
7,
15955,
834,
834,
2668,
834,
19489,
834,
584,
4280,
28027,
6,
6677,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1635,
7,
15955,
834,
834,
2668,
834,
19489,
834,
61,
21680,
953,
834,
26426,
15660,
2128,
834,
536,
549,
17444,
427,
6677,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.