NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How much total time was in lane 4? | CREATE TABLE table_name_66 (
time VARCHAR,
lane VARCHAR
) | SELECT COUNT(time) FROM table_name_66 WHERE lane = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
97,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
792,
97,
47,
16,
3,
8102,
314,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
715,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
3,
8102,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what's the brooklyn with queens value of 16.8% | CREATE TABLE table_16451 (
"1932 (before recount)" text,
"party" text,
"Manhattan" text,
"The Bronx" text,
"Brooklyn" text,
"Queens" text,
"Richmond [Staten Is.]" text,
"Total" real,
"%" text
) | SELECT "Brooklyn" FROM table_16451 WHERE "Queens" = '16.8%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26987,
5553,
41,
96,
2294,
2668,
41,
26116,
27866,
61,
121,
1499,
6,
96,
8071,
121,
1499,
6,
96,
7296,
547,
17,
152,
121,
1499,
6,
96,
634,
4027,
29,
226,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22780,
1825,
120,
29,
121,
21680,
953,
834,
26987,
5553,
549,
17444,
427,
96,
5991,
15,
35,
7,
121,
3274,
3,
31,
2938,
5,
5953,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the least europa league | CREATE TABLE table (
europa_league INTEGER
) | SELECT MIN(europa_league) FROM table | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
41,
3,
27949,
834,
29512,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
3,
27949,
5533,
1,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
27949,
834,
29512,
61,
21680,
953,
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,
-100,
-100,
-100... |
What is the highest amount of money a play from Scotland United States has? | CREATE TABLE table_name_99 (money___ INTEGER, country VARCHAR) | SELECT MAX(money___) AS $__ FROM table_name_99 WHERE country = "scotland united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
28442,
834,
834,
834,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
866,
13,
540,
3,
9,
577,
45,
82... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
684,
3274,
96,
7,
4310,
40,
232,
18279,
2315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the try bonus of points against at 430 | CREATE TABLE table_72329 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Try bonus" FROM table_72329 WHERE "Points against" = '430' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2773,
3166,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
651,
4023,
121,
21680,
953,
834,
940,
2773,
3166,
549,
17444,
427,
96,
22512,
7,
581,
121,
3274,
3,
31,
25449,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What team has over 1 tournament title, 0 in the regular season, and 2 total? | CREATE TABLE table_51930 (
"Team" text,
"Seasons" text,
"Regular season" text,
"Tournament" real,
"Total" real
) | SELECT "Team" FROM table_51930 WHERE "Tournament" > '1' AND "Regular season" = '0' AND "Total" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2294,
1458,
41,
96,
18699,
121,
1499,
6,
96,
134,
15,
9,
6577,
121,
1499,
6,
96,
17748,
4885,
774,
121,
1499,
6,
96,
382,
1211,
20205,
17,
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,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
755,
2294,
1458,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
2490,
3,
31,
536,
31,
3430,
96,
17748,
4885,
774,
121,
3274,
3,
31,
632,
31,
3430,
96,
3696,
1947,
121,
3274,
3,
... |
When 62 is the number in series who is the writer? | CREATE TABLE table_3816 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) | SELECT "Written by" FROM table_3816 WHERE "No. in series" = '62' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2938,
41,
96,
4168,
5,
16,
939,
121,
1499,
6,
96,
4168,
5,
16,
774,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
2496... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3747,
2938,
549,
17444,
427,
96,
4168,
5,
16,
939,
121,
3274,
3,
31,
4056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What winner has royal st george's golf club as the venue, and 1969 as the year? | CREATE TABLE table_60916 (
"Year" text,
"Venue" text,
"Winner" text,
"Runner-up" text,
"Score" text
) | SELECT "Winner" FROM table_60916 WHERE "Venue" = 'royal st george''s golf club' AND "Year" = '1969' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
4198,
2938,
41,
96,
476,
2741,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
9022,
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,
18455,
687,
121,
21680,
953,
834,
948,
4198,
2938,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
8170,
138,
3,
7,
17,
873,
1677,
15,
31,
31,
7,
4319,
1886,
31,
3430,
96,
476,
2741,
121,
3274,
3,
... |
What is the Score of the of the Tournament against Tim Gullikson with Outcome of runner-up? | CREATE TABLE table_name_68 (score VARCHAR, outcome VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_68 WHERE outcome = "runner-up" AND opponent = "tim gullikson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
7,
9022,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
13,
8,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
15264,
3274,
96,
2998,
3,
6106,
8654,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which leagues entered an extra preliminary round? | CREATE TABLE table_23449363_1 (leagues_entering_at_this_round VARCHAR, round VARCHAR) | SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE round = "Extra Preliminary round" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3628,
4271,
3891,
834,
536,
41,
29512,
7,
834,
4617,
1007,
834,
144,
834,
8048,
834,
7775,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5533,
7,
834,
4617,
1007,
834,
144,
834,
8048,
834,
7775,
21680,
953,
834,
2773,
3628,
4271,
3891,
834,
536,
549,
17444,
427,
1751,
3274,
96,
5420,
1313,
1266,
4941,
77,
1208,
1751,
121,
1,
-100,
-100,
-100,
-100,
-... |
what is average age of patients whose age is greater than or equal to 44 and admission year is greater than or equal to 2197? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.age >= "44" AND demographic.admityear >= "2197" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
545,
2490,
2423,
96,
3628,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
2658,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
How many times did episode 1.8 air? | CREATE TABLE table_72608 (
"Episode #" text,
"Country" text,
"City" text,
"Martial Art/Style" text,
"Masters" text,
"Original Airdate" text
) | SELECT COUNT("Original Airdate") FROM table_72608 WHERE "Episode #" = '1.8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2688,
4018,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
7286,
10646,
1261,
87,
30719,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
667,
3380,
10270,
1761,
5522,
8512,
21680,
953,
834,
940,
2688,
4018,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
1713,
121,
3274,
3,
31,
16253,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the laps for suzuki and time/retired of +1:02.804 | CREATE TABLE table_70604 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Laps" FROM table_70604 WHERE "Manufacturer" = 'suzuki' AND "Time/Retired" = '+1:02.804' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
3328,
591,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3612,
102,
7,
121,
21680,
953,
834,
2518,
3328,
591,
549,
17444,
427,
96,
7296,
76,
8717,
450,
49,
121,
3274,
3,
31,
7,
76,
1000,
2168,
31,
3430,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
18446,
10,
... |
what is the race when the jockey is frankie dettori, the margin is more than 3 and the course is yarmouth? | CREATE TABLE table_name_48 (
race VARCHAR,
course VARCHAR,
jockey VARCHAR,
margin VARCHAR
) | SELECT race FROM table_name_48 WHERE jockey = "frankie dettori" AND margin > 3 AND course = "yarmouth" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
1964,
584,
4280,
28027,
6,
503,
584,
4280,
28027,
6,
8624,
4397,
584,
4280,
28027,
6,
6346,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
8624,
4397,
3274,
96,
6296,
11390,
20,
17,
3600,
121,
3430,
6346,
2490,
220,
3430,
503,
3274,
96,
63,
291,
11975,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date had a loser of New York Giants and a result of 23-17? | CREATE TABLE table_name_77 (date VARCHAR, loser VARCHAR, result VARCHAR) | SELECT date FROM table_name_77 WHERE loser = "new york giants" AND result = "23-17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
5522,
584,
4280,
28027,
6,
2615,
52,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
141,
3,
9,
2615,
52,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
2615,
52,
3274,
96,
5534,
25453,
6079,
7,
121,
3430,
741,
3274,
96,
2773,
10794,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the status for the monarch Mingyinyo? | CREATE TABLE table_26460435_7 (status VARCHAR, monarch VARCHAR) | SELECT status FROM table_26460435_7 WHERE monarch = "Mingyinyo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
25991,
591,
2469,
834,
940,
41,
8547,
302,
584,
4280,
28027,
6,
28397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2637,
21,
8,
28397,
283,
53,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
2688,
25991,
591,
2469,
834,
940,
549,
17444,
427,
28397,
3274,
96,
329,
53,
63,
77,
63,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the lowest total when the rank is less than 2 and bronze is more than 0? | CREATE TABLE table_56676 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Total") FROM table_56676 WHERE "Rank" < '2' AND "Bronze" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3539,
3959,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
755,
3539,
3959,
549,
17444,
427,
96,
22557,
121,
3,
2,
3,
31,
357,
31,
3430,
96,
22780,
29,
776,
121,
2490,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100... |
Which Drawn has a Position smaller than 8, and a Played smaller than 14? | CREATE TABLE table_63795 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT MAX("Drawn") FROM table_63795 WHERE "Position" < '8' AND "Played" < '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
940,
3301,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
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,
4800,
4,
599,
121,
308,
10936,
29,
8512,
21680,
953,
834,
3891,
940,
3301,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3,
2,
3,
31,
927,
31,
3430,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
2534,
31,
1,
-100,
-100... |
When was the Lakeside race where Paul Morris won? | CREATE TABLE table_49566 (
"Race" real,
"Race Title" text,
"Circuit" text,
"City / State" text,
"Date" text,
"Winner" text,
"Team" text
) | SELECT "Date" FROM table_49566 WHERE "Race Title" = 'lakeside' AND "Winner" = 'paul morris' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3301,
3539,
41,
96,
448,
3302,
121,
490,
6,
96,
448,
3302,
11029,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
254,
485,
3,
87,
1015,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
3301,
3539,
549,
17444,
427,
96,
448,
3302,
11029,
121,
3274,
3,
31,
16948,
1583,
31,
3430,
96,
18455,
687,
121,
3274,
3,
31,
102,
9,
83,
8030,
52,
159,
31,
1,
-100,
-100... |
What is the total number that has a height of 2.06? | CREATE TABLE table_12962773_13 (no VARCHAR, height VARCHAR) | SELECT COUNT(no) FROM table_12962773_13 WHERE height = "2.06" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
2555,
4552,
834,
2368,
41,
29,
32,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
24,
65,
3,
9,
3902,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
29,
32,
61,
21680,
953,
834,
2122,
4314,
2555,
4552,
834,
2368,
549,
17444,
427,
3902,
3274,
96,
4416,
5176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the different affiliations, and how many schools with each have an enrollment size of above 20000? | CREATE TABLE basketball_match (
team_id number,
school_id number,
team_name text,
acc_regular_season text,
acc_percent text,
acc_home text,
acc_road text,
all_games text,
all_games_percent number,
all_home text,
all_road text,
all_neutral text
)
CREATE TABLE university (... | SELECT COUNT(*), affiliation FROM university WHERE enrollment > 20000 GROUP BY affiliation | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
372,
834,
23,
26,
381,
6,
496,
834,
23,
26,
381,
6,
372,
834,
4350,
1499,
6,
3,
6004,
834,
60,
122,
4885,
834,
9476,
1499,
6,
3,
6004,
834,
883,
3728,
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,
1935,
201,
24405,
21680,
3819,
549,
17444,
427,
17938,
2490,
460,
2313,
350,
4630,
6880,
272,
476,
24405,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What racing team/s had the 92nd position? | CREATE TABLE table_2190919_1 (
team_s_ VARCHAR,
position VARCHAR
) | SELECT team_s_ FROM table_2190919_1 WHERE position = "92nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
4198,
2294,
834,
536,
41,
372,
834,
7,
834,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
8191,
372,
87,
7,
141,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
7,
834,
21680,
953,
834,
357,
2294,
4198,
2294,
834,
536,
549,
17444,
427,
1102,
3274,
96,
4508,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the opponent in a game higher than 76 on April 6? | CREATE TABLE table_8258 (
"Game" real,
"April" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Opponent" FROM table_8258 WHERE "Game" > '76' AND "April" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4613,
3449,
41,
96,
23055,
121,
490,
6,
96,
23323,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
4613,
3449,
549,
17444,
427,
96,
23055,
121,
2490,
3,
31,
3959,
31,
3430,
96,
23323,
121,
3274,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many faculty members do we have for each rank and gender? Plot them as bar chart, I want to sort y axis in asc order. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARC... | SELECT Rank, COUNT(*) FROM Faculty GROUP BY Sex, Rank ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
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,
3,
22557,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
350,
4630,
6880,
272,
476,
679,
226,
6,
3,
22557,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Total that has a number of Nation and a Gold smaller than 16? | CREATE TABLE table_name_96 (
total INTEGER,
nation VARCHAR,
gold VARCHAR
) | SELECT MIN(total) FROM table_name_96 WHERE nation = total AND gold < 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
792,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9273,
24,
65,
3,
9,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2982,
3274,
792,
3430,
2045,
3,
2,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
has patient 006-171217 until 2104 been tested for the -bands? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-171217')) AND lab.labname = '-bands' AND STRFTIME('%y', lab.labresulttime) <= '2104' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
Name the military expenditures for 2011 for romania | CREATE TABLE table_17971449_2 (military_expenditures__2011 VARCHAR, _us$_millions_ VARCHAR, country VARCHAR) | SELECT military_expenditures__2011, _us$_millions_ FROM table_17971449_2 WHERE country = "Romania" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4327,
2534,
3647,
834,
357,
41,
5952,
17,
1208,
834,
994,
3208,
26,
23,
10471,
834,
834,
13907,
584,
4280,
28027,
6,
3,
834,
302,
3229,
834,
17030,
7,
834,
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,
2716,
834,
994,
3208,
26,
23,
10471,
834,
834,
13907,
6,
3,
834,
302,
3229,
834,
17030,
7,
834,
21680,
953,
834,
2517,
4327,
2534,
3647,
834,
357,
549,
17444,
427,
684,
3274,
96,
25139,
23,
9,
121,
1,
-100,
-100,
... |
How many mystic arte have hisui (jadeite) hearts 1 as the character? | CREATE TABLE table_28178595_2 (mystic_arte VARCHAR, character VARCHAR) | SELECT COUNT(mystic_arte) FROM table_28178595_2 WHERE character = "Hisui (Jadeite) Hearts 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2517,
4433,
3301,
834,
357,
41,
2258,
7,
1225,
834,
1408,
15,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
82,
7,
1225,
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,
2258,
7,
1225,
834,
1408,
15,
61,
21680,
953,
834,
2577,
2517,
4433,
3301,
834,
357,
549,
17444,
427,
1848,
3274,
96,
12146,
7,
76,
23,
41,
683,
9,
221,
155,
15,
61,
6219,
7,
209,
121,
1,
-100,... |
In which season did Jimmy Eriksson win the championship for Team Lotus? | CREATE TABLE table_name_40 (season VARCHAR, team VARCHAR, champion VARCHAR) | SELECT season FROM table_name_40 WHERE team = "lotus" AND champion = "jimmy eriksson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
9476,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
6336,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
774,
410,
16754,
21173,
7,
739,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
372,
3274,
96,
3171,
302,
121,
3430,
6336,
3274,
96,
354,
603,
2258,
3,
15,
9629,
7,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are goals scored when postition is 17 and tied is 5? | CREATE TABLE table_28848697_4 (goals_scored VARCHAR, position VARCHAR, tied VARCHAR) | SELECT goals_scored FROM table_28848697_4 WHERE position = 17 AND tied = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4608,
3840,
4327,
834,
591,
41,
839,
5405,
834,
3523,
1271,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
10422,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1766,
834,
3523,
1271,
21680,
953,
834,
2577,
4608,
3840,
4327,
834,
591,
549,
17444,
427,
1102,
3274,
1003,
3430,
10422,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is every 5-year peek with a when Anatoly Karpov, 2820 is 15-year peak? | CREATE TABLE table_21321 (
"Rank" real,
"1-year peak" text,
"5-year peak" text,
"10-year peak" text,
"15-year peak" text,
"20-year peak" text
) | SELECT "5-year peak" FROM table_21321 WHERE "15-year peak" = 'Anatoly Karpov, 2820' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2368,
2658,
41,
96,
22557,
121,
490,
6,
96,
536,
18,
1201,
6734,
121,
1499,
6,
96,
755,
18,
1201,
6734,
121,
1499,
6,
96,
1714,
18,
1201,
6734,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
755,
18,
1201,
6734,
121,
21680,
953,
834,
357,
2368,
2658,
549,
17444,
427,
96,
1808,
18,
1201,
6734,
121,
3274,
3,
31,
188,
29,
9,
235,
120,
4556,
26981,
6,
2059,
1755,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the winning score when there were 9 strokes advantage? | CREATE TABLE table_name_82 (
winning_score VARCHAR,
margin_of_victory VARCHAR
) | SELECT winning_score FROM table_name_82 WHERE margin_of_victory = "9 strokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
3447,
834,
7,
9022,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3447,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
7,
9022,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
1298,
9529,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which League has a Total smaller than 16, a Player of ken mckenna and a League Cup larger than 0? | CREATE TABLE table_40665 (
"Player" text,
"Club" text,
"League" real,
"FA Cup" real,
"FA Trophy" real,
"League Cup" real,
"Total" real
) | SELECT MAX("League") FROM table_40665 WHERE "Total" < '16' AND "Player" = 'ken mckenna' AND "League Cup" > '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3539,
755,
41,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
4795,
3802,
121,
490,
6,
96,
4795,
26912,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2796,
9,
5398,
8512,
21680,
953,
834,
2445,
3539,
755,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
2938,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
2217,
3,
51,
4695,
29,
9,
31,
3430,... |
Who had the fastest lap in the Monaco Grand Prix? | CREATE TABLE table_name_98 (fastest_lap VARCHAR, race VARCHAR) | SELECT fastest_lap FROM table_name_98 WHERE race = "monaco grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
11584,
222,
834,
8478,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
10391,
14941,
16,
8,
25258,
2698,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10391,
834,
8478,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1964,
3274,
96,
2157,
9,
509,
1907,
3407,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
calculate the number of female patients treated with base drug | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.drug_type = "BASE" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
calculate the maximum age of male patients who were admitted for 29 days. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.days_stay = "29" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
3166,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the smallest rank of noriko inada? | CREATE TABLE table_name_76 (
rank INTEGER,
name VARCHAR
) | SELECT MIN(rank) FROM table_name_76 WHERE name = "noriko inada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
11003,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
17924,
11003,
13,
3701,
12027,
16,
9,
26,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
834,
3959,
549,
17444,
427,
564,
3274,
96,
29,
127,
12027,
16,
9,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest laps with a 142.744 qual? | CREATE TABLE table_name_34 (laps INTEGER, qual VARCHAR) | SELECT MIN(laps) FROM table_name_34 WHERE qual = "142.744" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
8478,
7,
3,
21342,
17966,
6,
3,
11433,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
14941,
7,
28,
3,
9,
968,
21280,
3628,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
3,
11433,
3274,
96,
24978,
5,
4581,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where is the show aired in New Zealand? | CREATE TABLE table_14523485_9 (
channel VARCHAR,
country VARCHAR
) | SELECT channel FROM table_14523485_9 WHERE country = "New Zealand" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
357,
3710,
4433,
834,
1298,
41,
4245,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
504,
3,
2378,
26,
16,
368,
5725,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4245,
21680,
953,
834,
20987,
357,
3710,
4433,
834,
1298,
549,
17444,
427,
684,
3274,
96,
6861,
5725,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What village has an area of 27.19 km2? | CREATE TABLE table_2588674_1 (
village VARCHAR,
area_km² VARCHAR
) | SELECT village FROM table_2588674_1 WHERE area_km² = "27.19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4060,
3708,
591,
834,
536,
41,
3309,
584,
4280,
28027,
6,
616,
834,
5848,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3309,
65,
46,
616,
13,
230... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3309,
21680,
953,
834,
1828,
4060,
3708,
591,
834,
536,
549,
17444,
427,
616,
834,
5848,
357,
3274,
96,
2555,
5,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the original air date for prod code 201 | CREATE TABLE table_2322716_2 (
original_air_dates VARCHAR,
prod_code VARCHAR
) | SELECT original_air_dates FROM table_2322716_2 WHERE prod_code = 201 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
2555,
2938,
834,
357,
41,
926,
834,
2256,
834,
5522,
7,
584,
4280,
28027,
6,
813,
26,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
7,
21680,
953,
834,
23188,
2555,
2938,
834,
357,
549,
17444,
427,
813,
26,
834,
4978,
3274,
3,
22772,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What position has a pick less than 25 for the university of california? | CREATE TABLE table_37580 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
) | SELECT "Position" FROM table_37580 WHERE "Pick" < '25' AND "School" = 'university of california' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22954,
2079,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
22954,
2079,
549,
17444,
427,
96,
345,
3142,
121,
3,
2,
3,
31,
1828,
31,
3430,
96,
29364,
121,
3274,
3,
31,
7846,
485,
13,
3,
15534,
1161,
29,
23,
9,
31,
1,
-100,
... |
What entrant has a year earlier than 1960 and a veritas straight-6 engine? | CREATE TABLE table_15421 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Entrant" FROM table_15421 WHERE "Year" < '1960' AND "Engine" = 'veritas straight-6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27308,
2658,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16924,
3569,
121,
21680,
953,
834,
27308,
2658,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
3328,
31,
3430,
96,
31477,
121,
3274,
3,
31,
162,
10694,
7,
2541,
5783,
31,
1,
-100,
-100,
-100,
-100,
... |
is there any microbiological result for the sputum, expectorated of patient 031-16123 when they visited the hospital last time? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9cod... | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-16123' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospital... | [
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,
1935,
61,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
what is the number of patients whose primary disease is liver transplant and procedure icd9 code is 4575? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "LIVER TRANSPLANT" AND procedures.icd9_code = "4575" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What are the total number of picks for a guard with fewer than 6 rounds? | CREATE TABLE table_name_66 (pick__number VARCHAR, position VARCHAR, round VARCHAR) | SELECT COUNT(pick__number) FROM table_name_66 WHERE position = "guard" AND round < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1102,
3274,
96,
11010,
121,
3430,
1751,
3,
2,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Date of 23 september 1961, and a Pilot of b.v. zemskov had what record description? | CREATE TABLE table_name_38 (record_description VARCHAR, date VARCHAR, pilot VARCHAR) | SELECT record_description FROM table_name_38 WHERE date = "23 september 1961" AND pilot = "b.v. zemskov" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
60,
7621,
834,
221,
11830,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
4487,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
7678,
13,
1902,
1602... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
834,
221,
11830,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
833,
3274,
96,
2773,
16022,
18247,
21018,
121,
3430,
4487,
3274,
96,
115,
5,
208,
5,
3,
776,
51,
7,
9789,
121,
1,
-100,
-100,
-100,
-100,
-... |
How many weeks was K.Maro at #1? | CREATE TABLE table_3760 (
"Artist" text,
"Country" text,
"Number-one single(s)" text,
"Year" real,
"Weeks at #1" real,
"Straight to #1 ?" text
) | SELECT MAX("Weeks at #1") FROM table_3760 WHERE "Artist" = 'K.Maro' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
3328,
41,
96,
7754,
343,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
567,
5937,
49,
18,
782,
712,
599,
7,
61,
121,
1499,
6,
96,
476,
2741,
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,
1326,
16789,
44,
7172,
8512,
21680,
953,
834,
4118,
3328,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
439,
5,
7286,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the security forces for 2009 | CREATE TABLE table_57139 (
"Year" text,
"Security Forces" text,
"Insurgents" text,
"Civilians" text,
"Total:" text
) | SELECT "Security Forces" FROM table_57139 WHERE "Year" = '2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
24090,
41,
96,
476,
2741,
121,
1499,
6,
96,
134,
15,
3663,
485,
5205,
7,
121,
1499,
6,
96,
1570,
3042,
5560,
7,
121,
1499,
6,
96,
254,
11687,
9928,
7,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
3663,
485,
5205,
7,
121,
21680,
953,
834,
3436,
24090,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
16660,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
when was the next coach appointed after niger tornadoes fired their coach? | CREATE TABLE table_30339 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
) | SELECT "Date of appointment" FROM table_30339 WHERE "Manner of departure" = 'fired' AND "Team" = 'Niger Tornadoes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23335,
3288,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1570,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
4141,
121,
21680,
953,
834,
23335,
3288,
549,
17444,
427,
96,
7296,
687,
13,
12028,
121,
3274,
3,
31,
6608,
26,
31,
3430,
96,
18699,
121,
3274,
3,
31,
567,
4424,
3794,
25065,
15,
7,
31,
1,
-100... |
What was the outcome of the August 20, 2007 match? | CREATE TABLE table_name_29 (outcome VARCHAR, date VARCHAR) | SELECT outcome FROM table_name_29 WHERE date = "august 20, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
670,
287,
15,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6138,
13,
8,
1660,
16047,
4101,
1588,
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,
6138,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
833,
3274,
96,
402,
17198,
16047,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the carrier is idc, what are the frequencies? | CREATE TABLE table_19246_1 (frequency VARCHAR, carrier VARCHAR) | SELECT frequency FROM table_19246_1 WHERE carrier = "IDC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
4448,
834,
536,
41,
30989,
584,
4280,
28027,
6,
9568,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
9568,
19,
3,
23,
26,
75,
6,
125,
33,
8,
23446,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7321,
21680,
953,
834,
19978,
4448,
834,
536,
549,
17444,
427,
9568,
3274,
96,
4309,
254,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many editions did Club Q-base concept have ? | CREATE TABLE table_29788320_2 (number_of_editions VARCHAR, concept VARCHAR) | SELECT COUNT(number_of_editions) FROM table_29788320_2 WHERE concept = "Club Q-BASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
21441,
4591,
1755,
834,
357,
41,
5525,
1152,
834,
858,
834,
15,
10569,
7,
584,
4280,
28027,
6,
2077,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4182,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
5525,
1152,
834,
858,
834,
15,
10569,
7,
61,
21680,
953,
834,
357,
21441,
4591,
1755,
834,
357,
549,
17444,
427,
2077,
3274,
96,
254,
11158,
1593,
18,
279,
17892,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Who was the away team when Lincoln City was the home team? | CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_19 WHERE home_team = "lincoln city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
372,
116,
9884,
896,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
234,
834,
11650,
3274,
96,
40,
77,
3297,
29,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest amount of wins when there are less than 5 points, the class is 500cc, the team is norton, and the year is more recent than 1955? | CREATE TABLE table_name_1 (
wins INTEGER,
year VARCHAR,
team VARCHAR,
points VARCHAR,
class VARCHAR
) | SELECT MAX(wins) FROM table_name_1 WHERE points < 5 AND class = "500cc" AND team = "norton" AND year > 1955 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
9204,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
979,
3,
2,
305,
3430,
853,
3274,
96,
2560,
75,
75,
121,
3430,
372,
3274,
96,
29,
32,
17330,
121,
3430,
215,
2490,
23652,
1,
-100,
-100... |
What is the average overall rank of all players drafted from Duke after round 9? | CREATE TABLE table_name_49 (overall INTEGER, school_club_team VARCHAR, round VARCHAR) | SELECT AVG(overall) FROM table_name_49 WHERE school_club_team = "duke" AND round > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
1890,
1748,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
1259,
1050,
121,
3430,
1751,
2490,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Oberliga S dwest has an Oberliga Bayern of fc schweinfurt 05? | CREATE TABLE table_name_82 (
oberliga_südwest VARCHAR,
oberliga_bayern VARCHAR
) | SELECT oberliga_südwest FROM table_name_82 WHERE oberliga_bayern = "fc schweinfurt 05" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
18299,
17140,
834,
7,
1272,
26,
12425,
584,
4280,
28027,
6,
18299,
17140,
834,
11119,
49,
29,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18299,
17140,
834,
7,
1272,
26,
12425,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
18299,
17140,
834,
11119,
49,
29,
3274,
96,
89,
75,
3,
5472,
2455,
9827,
17,
3,
3076,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Find the name and email for the users who have more than one follower. | CREATE TABLE user_profiles (
name VARCHAR,
email VARCHAR,
uid VARCHAR
)
CREATE TABLE follows (
f1 VARCHAR
) | SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1139,
834,
18816,
7,
41,
564,
584,
4280,
28027,
6,
791,
584,
4280,
28027,
6,
3,
76,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6963,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4350,
6,
332,
5411,
15,
1963,
21680,
1139,
834,
18816,
7,
6157,
332,
536,
3,
15355,
3162,
6963,
6157,
332,
357,
9191,
332,
5411,
76,
23,
26,
3274,
332,
4416,
89,
536,
350,
4630,
6880,
272,
476,
332,
441... |
which country had the most roller coasters over 80 feet in height in 2008 ? | CREATE TABLE table_201_2 (
id number,
"name" text,
"height\nm (ft)" text,
"completed" number,
"country" text,
"location" text,
"coordinates" text,
"remarks" text
) | SELECT "country" FROM table_201_2 WHERE "height\nm (ft)" > 80 AND "completed" = 2008 GROUP BY "country" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22772,
834,
357,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
88,
2632,
2,
29,
51,
41,
89,
17,
61,
121,
1499,
6,
96,
25288,
26,
121,
381,
6,
96,
17529,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17529,
121,
21680,
953,
834,
22772,
834,
357,
549,
17444,
427,
96,
88,
2632,
2,
29,
51,
41,
89,
17,
61,
121,
2490,
2775,
3430,
96,
25288,
26,
121,
3274,
2628,
350,
4630,
6880,
272,
476,
96,
17529,
121,
4674,
... |
What race happened at Iowa Speedway? | CREATE TABLE table_45157 (
"Date" text,
"Race" text,
"Track" text,
"Winner" text,
"Reports" text
) | SELECT "Race" FROM table_45157 WHERE "Track" = 'iowa speedway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
27452,
41,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
382,
16729,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
1649,
1493,
7,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
448,
3302,
121,
21680,
953,
834,
2128,
27452,
549,
17444,
427,
96,
382,
16729,
121,
3274,
3,
31,
23,
2381,
9,
1634,
1343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest Preliminary score of a contestant that has an Evening Gown score of 8.472? | CREATE TABLE table_name_94 (
preliminaries INTEGER,
evening_gown VARCHAR
) | SELECT MIN(preliminaries) FROM table_name_94 WHERE evening_gown = 8.472 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
554,
4941,
77,
5414,
3,
21342,
17966,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1266,
4941,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2026,
4941,
77,
5414,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
2272,
834,
122,
9197,
3274,
4848,
4177,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many year was the venue in stockholm, sweden used? | CREATE TABLE table_name_65 (year VARCHAR, venue VARCHAR) | SELECT COUNT(year) FROM table_name_65 WHERE venue = "stockholm, sweden" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1201,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
215,
47,
8,
5669,
16,
1519,
2831,
51,
6,
3,
7,
1123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
5669,
3274,
96,
7149,
2831,
51,
6,
3,
7,
1123,
537,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Visualize a bar chart for what is the name of each aircraft and how many flights does each one complete?, and rank in asc by the bar. | CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREATE TABLE flight (
flno number(4,0),
origin var... | SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3490,
41,
3,
15,
23,
26,
381,
599,
1298,
6,
632,
201,
564,
3,
4331,
4059,
357,
599,
1458,
201,
9090,
381,
599,
1714,
6,
7318,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
564,
6,
2847,
17161,
599,
1935,
61,
21680,
3777,
6157,
332,
536,
3,
15355,
3162,
6442,
6157,
332,
357,
9191,
332,
5411,
6146,
3274,
332,
4416,
6146,
350,
4630,
6880,
272,
476,
332,
5411,
6146,
4674,
11300,
272,
476,
... |
Which Original Italian production has a First US National Tour of joanna glushak? | CREATE TABLE table_name_4 (
original_italian_production VARCHAR,
first_us_national_tour VARCHAR
) | SELECT original_italian_production FROM table_name_4 WHERE first_us_national_tour = "joanna glushak" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
926,
834,
155,
9,
9928,
834,
20762,
584,
4280,
28027,
6,
166,
834,
302,
834,
16557,
834,
17,
1211,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
155,
9,
9928,
834,
20762,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
166,
834,
302,
834,
16557,
834,
17,
1211,
3274,
96,
1927,
10878,
3,
13492,
7,
15416,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many reg GP for nathan barrett in a round less than 8? | CREATE TABLE table_77745 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
) | SELECT COUNT("Reg GP") FROM table_77745 WHERE "Player" = 'nathan barrett' AND "Rd #" < '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26225,
2128,
41,
96,
448,
26,
1713,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
41,
2796,
9,
5398,
61,
121,
1499,
6,
96,
1774... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17748,
3,
8049,
8512,
21680,
953,
834,
26225,
2128,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
29,
9,
6736,
18595,
17,
17,
31,
3430,
96,
448,
26,
1713,
121,
3,
2,
3,
31,
927,
31,
... |
Can you tell me the Date that has the Team of golden state? | CREATE TABLE table_name_21 (
date VARCHAR,
team VARCHAR
) | SELECT date FROM table_name_21 WHERE team = "golden state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
833,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
7678,
24,
65,
8,
2271,
13,
7069,
538,
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,
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,
2658,
549,
17444,
427,
372,
3274,
96,
14910,
35,
538,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the total number of Qual Laps higher than 93 with a Rank of 32 with Grid less than 32 | CREATE TABLE table_name_16 (
qual VARCHAR,
grid VARCHAR,
laps VARCHAR,
rank VARCHAR
) | SELECT COUNT(qual) FROM table_name_16 WHERE laps > 93 AND rank = 32 AND grid < 32 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
3,
11433,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
11433,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
14941,
7,
2490,
3,
4271,
3430,
11003,
3274,
3538,
3430,
8634,
3,
2,
3538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me a line chart of how the number of creation change over the creation, display X-axis in asc order. | CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num... | SELECT Creation, COUNT(Creation) FROM department ORDER BY Creation | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
758,
41,
3066,
834,
4309,
16,
17,
6,
819,
834,
4309,
16,
17,
6,
7234,
834,
2708,
53,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
819,
41,
819,
834,
4309,
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,
24589,
6,
2847,
17161,
599,
254,
60,
257,
61,
21680,
3066,
4674,
11300,
272,
476,
24589,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of wines, sorted in alphabetical order? | CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,... | SELECT DISTINCT name FROM wine ORDER BY name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
150,
381,
6,
8319,
257,
1499,
6,
5435,
1499,
6,
538,
1499,
6,
616,
1499,
6,
19,
8644,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
2013,
4674,
11300,
272,
476,
564,
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,
-10... |
Which Socket has a Frequency of 2200mhz, and a Release date on june 4, 2008? | CREATE TABLE table_7403 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Multi 1" text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Order part number" text
) | SELECT "Socket" FROM table_7403 WHERE "Frequency" = '2200mhz' AND "Release date" = 'june 4, 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4928,
41,
96,
24663,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
357,
11800,
121,
1499,
6,
96,
31922,
209,
121,
1499,
6,
96,
22803,
6505,
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,
5231,
8849,
17,
121,
21680,
953,
834,
4581,
4928,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
357,
3632,
51,
107,
172,
31,
3430,
96,
1649,
40,
14608,
833,
121,
3274,
3,
31,
6959,
15,
6464,
26... |
What number of wickets were there when the average was 22.66? | CREATE TABLE table_16570286_4 (
wickets INTEGER,
average VARCHAR
) | SELECT MAX(wickets) FROM table_16570286_4 WHERE average = "22.66" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
2518,
357,
3840,
834,
591,
41,
29719,
7,
3,
21342,
17966,
6,
1348,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
381,
13,
29719,
7,
130,
132,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
5981,
15,
17,
7,
61,
21680,
953,
834,
22823,
2518,
357,
3840,
834,
591,
549,
17444,
427,
1348,
3274,
96,
2884,
5,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which year has a fleet number of 603? | CREATE TABLE table_name_22 (
year VARCHAR,
fleet_number VARCHAR
) | SELECT year FROM table_name_22 WHERE fleet_number = "603" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
215,
584,
4280,
28027,
6,
9111,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
65,
3,
9,
9111,
381,
13,
1640,
519,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
9111,
834,
5525,
1152,
3274,
96,
3328,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the name of the venue where the away team scored 17.12 (114)? | CREATE TABLE table_10305 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_10305 WHERE "Away team score" = '17.12 (114)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17864,
3076,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
17864,
3076,
549,
17444,
427,
96,
188,
1343,
372,
2604,
121,
3274,
3,
31,
2517,
5,
2122,
41,
18959,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"? | CREATE TABLE table_name_10 (party VARCHAR, district VARCHAR, results VARCHAR, first_elected VARCHAR) | SELECT party FROM table_name_10 WHERE results = "re-elected" AND first_elected > 1990 AND district = "minnesota 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
8071,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
6,
772,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
772,
3274,
96,
60,
18,
19971,
121,
3430,
166,
834,
19971,
2490,
5541,
3430,
3939,
3274,
96,
1109,
1496,
32,
17,
9,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
... |
What's the birthplace of the third (2009) generation member from the lespros entertainment agency? | CREATE TABLE table_name_81 (
birthplace VARCHAR,
agency VARCHAR,
generation VARCHAR
) | SELECT birthplace FROM table_name_81 WHERE agency = "lespros entertainment" AND generation = "third (2009)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
3879,
4687,
584,
4280,
28027,
6,
3193,
584,
4280,
28027,
6,
3381,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3879,
4687,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3879,
4687,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
3193,
3274,
96,
965,
1409,
7,
4527,
121,
3430,
3381,
3274,
96,
14965,
3,
25812,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the score 67-71-70=208? | CREATE TABLE table_name_26 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_26 WHERE score = 67 - 71 - 70 = 208 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
4687,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
2604,
3,
3708,
18,
4450,
18,
2518,
2423,
23946,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
2604,
3274,
3,
3708,
3,
18,
3,
4450,
3,
18,
2861,
3274,
3,
23946,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of appearances for yugoslavia | CREATE TABLE table_24565004_20 (
appearances¹ VARCHAR,
nationality² VARCHAR
) | SELECT COUNT(appearances¹) FROM table_24565004_20 WHERE nationality² = "Yugoslavia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4834,
2560,
591,
834,
1755,
41,
3179,
7,
536,
584,
4280,
28027,
6,
1157,
485,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
3179,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3096,
2741,
663,
7,
6982,
21680,
953,
834,
2266,
4834,
2560,
591,
834,
1755,
549,
17444,
427,
1157,
485,
357,
3274,
96,
476,
76,
839,
17457,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average first round for Utah Jazz team, with a weight smaller than 229? | CREATE TABLE table_name_29 (
first_round INTEGER,
weight VARCHAR,
team VARCHAR
) | SELECT AVG(first_round) FROM table_name_29 WHERE weight < 229 AND team = "utah jazz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
166,
834,
7775,
3,
21342,
17966,
6,
1293,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
166,
1751... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
14672,
834,
7775,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1293,
3,
2,
204,
3166,
3430,
372,
3274,
96,
76,
17,
9,
107,
9948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the sinhalese for manthai west | CREATE TABLE table_24574438_1 (
sinhalese INTEGER,
ds_division VARCHAR
) | SELECT MAX(sinhalese) FROM table_24574438_1 WHERE ds_division = "Manthai West" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3436,
3628,
3747,
834,
536,
41,
3731,
107,
4529,
15,
3,
21342,
17966,
6,
3,
26,
7,
834,
26,
23,
6610,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7,
77,
107,
4529,
15,
61,
21680,
953,
834,
2266,
3436,
3628,
3747,
834,
536,
549,
17444,
427,
3,
26,
7,
834,
26,
23,
6610,
3274,
96,
7296,
189,
9,
23,
1244,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Which Adelaide has Sydney yes, Melbourne yes, and Perth no? | CREATE TABLE table_name_31 (
adelaide VARCHAR,
perth VARCHAR,
sydney VARCHAR,
melbourne VARCHAR
) | SELECT adelaide FROM table_name_31 WHERE sydney = "yes" AND melbourne = "yes" AND perth = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3,
15311,
5385,
584,
4280,
28027,
6,
399,
189,
584,
4280,
28027,
6,
3,
7,
63,
26,
3186,
584,
4280,
28027,
6,
3,
2341,
26255,
584,
4280,
28027,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
15311,
5385,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
3,
7,
63,
26,
3186,
3274,
96,
10070,
121,
3430,
3,
2341,
26255,
3274,
96,
10070,
121,
3430,
399,
189,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
... |
What are the region names affected by the storm with a number of deaths of least 10? | CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, number_deaths VARCHAR) | SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1719,
41,
18145,
834,
4350,
584,
4280,
28027,
6,
1719,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
18145,
834,
23,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
18145,
834,
4350,
21680,
4161,
834,
18145,
6157,
332,
536,
3,
15355,
3162,
1719,
6157,
332,
357,
9191,
332,
5411,
18145,
834,
23,
26,
3274,
332,
4416,
18145,
834,
23,
26,
3,
15355,
3162,
5536,
6157,
332,
... |
what year built is at the top ? | CREATE TABLE table_204_338 (
id number,
"location" text,
"coordinates" text,
"type" text,
"built" text,
"details" text
) | SELECT "built" FROM table_204_338 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
3747,
41,
3,
23,
26,
381,
6,
96,
14836,
121,
1499,
6,
96,
509,
21122,
7,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
16152,
121,
1499,
6,
96,
221,
5756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16152,
121,
21680,
953,
834,
26363,
834,
519,
3747,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the highest number of laps for rider Shuhei Aoyama in a grid higher than 24? | CREATE TABLE table_name_37 (laps INTEGER, rider VARCHAR, grid VARCHAR) | SELECT MAX(laps) FROM table_name_37 WHERE rider = "shuhei aoyama" AND grid > 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
8478,
7,
3,
21342,
17966,
6,
2564,
52,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
381,
13,
14941... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
2564,
52,
3274,
96,
14279,
88,
23,
3,
9,
32,
22990,
121,
3430,
8634,
2490,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the location attendance for austin daye , tracy mcgrady , tayshaun prince (20) | CREATE TABLE table_29932 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_29932 WHERE "High points" = 'Austin Daye , Tracy McGrady , Tayshaun Prince (20)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3264,
2668,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
257,
22497,
663,
121,
21680,
953,
834,
357,
3264,
2668,
549,
17444,
427,
96,
21417,
979,
121,
3274,
3,
31,
14934,
17,
77,
1430,
15,
3,
6,
29464,
13528,
5672,
63,
3,
6,
2067,
63,
7,
1024,
202,
... |
What Reserved for (SC / ST /None) with a Name of goverdhan? | CREATE TABLE table_13085 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
) | SELECT "Reserved for ( SC / ST /None)" FROM table_13085 WHERE "Name" = 'goverdhan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
4433,
41,
96,
4302,
2248,
17,
76,
4392,
381,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
1649,
3473,
15,
26,
21,
41,
6508,
3,
87,
5097,
3,
87,
567,
782,
61,
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,
1649,
3473,
15,
26,
21,
41,
6508,
3,
87,
5097,
3,
87,
567,
782,
61,
121,
21680,
953,
834,
21448,
4433,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
122,
1890,
26,
2618,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many athletes were named federico muller? | CREATE TABLE table_29521180_35 (
quarterfinals VARCHAR,
athlete VARCHAR
) | SELECT COUNT(quarterfinals) FROM table_29521180_35 WHERE athlete = "Federico Muller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3301,
2658,
20829,
834,
2469,
41,
2893,
12406,
7,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9227,
130,
2650,
3,
16812... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
19973,
12406,
7,
61,
21680,
953,
834,
357,
3301,
2658,
20829,
834,
2469,
549,
17444,
427,
17893,
3274,
96,
371,
15,
588,
5807,
21376,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the final game result that was played on December 2? | CREATE TABLE table_49594 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Result" FROM table_49594 WHERE "Date" = 'december 2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
3390,
591,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3647,
3390,
591,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
204,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Return the completion date for all the tests that have 'Fail' result, and count them by a bar chart, and could you list by the total number from low to high please? | CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Course_Authors_and_... | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" ORDER BY COUNT(date_of_completion) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
3,
21342,
17966,
6,
2291,
834,
23,
26,
3,
21342,
17966,
6,
1426,
834,
23,
26,
3,
21342,
17966,
6,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
858,
834,
7699,
109,
1575,
6,
2847,
17161,
599,
5522,
834,
858,
834,
7699,
109,
1575,
61,
21680,
6341,
834,
3881,
3589,
15,
834,
8532,
3491,
297,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
382,
222,
7,
8... |
Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency? | CREATE TABLE table_name_76 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, condition VARCHAR) | SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = "prolonged" AND condition = "factor v deficiency" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
1893,
10646,
834,
8514,
6310,
23918,
77,
834,
715,
584,
4280,
28027,
6,
813,
8514,
51,
4517,
834,
715,
584,
4280,
28027,
6,
1706,
584,
4280,
28027,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11807,
834,
8514,
6310,
23918,
77,
834,
715,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
813,
8514,
51,
4517,
834,
715,
3274,
96,
1409,
23629,
121,
3430,
1706,
3274,
96,
17899,
3,
208,
20,
4638,
23,
4392,
121... |
What is the gender of the teacher with last name 'Medhurst'? | CREATE TABLE TEACHERS (
gender VARCHAR,
last_name VARCHAR
) | SELECT gender FROM TEACHERS WHERE last_name = "Medhurst" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
332,
29027,
9984,
41,
7285,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7285,
13,
8,
3145,
28,
336,
564,
3,
31,
20123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7285,
21680,
332,
29027,
9984,
549,
17444,
427,
336,
834,
4350,
3274,
96,
20123,
23765,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What Super G has a Career of 1980 1996? | CREATE TABLE table_78831 (
"Country" text,
"Career" text,
"Victories" real,
"Super G" text,
"Giant Slalom" text,
"Slalom" text,
"Combined" text,
"Parallel" text
) | SELECT "Super G" FROM table_78831 WHERE "Career" = '1980–1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4591,
536,
41,
96,
10628,
651,
121,
1499,
6,
96,
6936,
15,
49,
121,
1499,
6,
96,
553,
23,
5317,
725,
121,
490,
6,
96,
23290,
350,
121,
1499,
6,
96,
517,
23,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23290,
350,
121,
21680,
953,
834,
3940,
4591,
536,
549,
17444,
427,
96,
6936,
15,
49,
121,
3274,
3,
31,
2294,
2079,
104,
2294,
4314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is on a 8:30 when at 9:00 it is one tree hill (reruns)? | CREATE TABLE table_53929 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | SELECT "8:30" FROM table_53929 WHERE "9:00" = 'one tree hill (reruns)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3288,
3166,
41,
96,
15692,
121,
1499,
6,
96,
927,
10,
1458,
121,
1499,
6,
96,
1298,
10,
1206,
121,
1499,
6,
96,
21150,
121,
1499,
6,
96,
536,
25713,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
927,
10,
1458,
121,
21680,
953,
834,
755,
3288,
3166,
549,
17444,
427,
96,
1298,
10,
1206,
121,
3274,
3,
31,
782,
2195,
9956,
41,
60,
4312,
7,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
the first name on the settlement column is ? | CREATE TABLE table_204_563 (
id number,
"abbreviation" text,
"settlement" text,
"district" text,
"official name" text,
"division" text,
"cup" number,
"other information" text
) | SELECT "settlement" FROM table_204_563 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4834,
519,
41,
3,
23,
26,
381,
6,
96,
12982,
60,
2099,
257,
121,
1499,
6,
96,
2244,
17,
3335,
121,
1499,
6,
96,
26,
23,
20066,
121,
1499,
6,
96,
20884,
564,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2244,
17,
3335,
121,
21680,
953,
834,
26363,
834,
4834,
519,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the location when the year is less than 1998 and the international captain is david graham? | CREATE TABLE table_name_21 (location VARCHAR, year VARCHAR, international_captain VARCHAR) | SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = "david graham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
14836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1038,
834,
4010,
17,
9,
77,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
215,
3,
2,
6260,
3430,
1038,
834,
4010,
17,
9,
77,
3274,
96,
26,
9,
6961,
3,
3484,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the home team at the game when the Thrashers had a record of 18 18 1? | CREATE TABLE table_58337 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Home" FROM table_58337 WHERE "Record" = '18–18–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
519,
4118,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3449,
519,
4118,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2606,
104,
2606,
104,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show each author and the number of workshops they submitted to. | CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR); CREATE TABLE acceptance (workshop_id VARCHAR, Submission_ID VARCHAR) | SELECT T2.Author, COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8121,
41,
23602,
127,
584,
4280,
28027,
6,
29779,
834,
4309,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11122,
41,
1981,
6921,
834,
23,
26,
584,
4280,
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,
332,
4416,
23602,
127,
6,
2847,
17161,
599,
15438,
25424,
6227,
332,
5411,
1981,
6921,
834,
23,
26,
61,
21680,
11122,
6157,
332,
536,
3,
15355,
3162,
8121,
6157,
332,
357,
9191,
332,
5411,
25252,
5451,
834,
4309,
3274... |
Name the total number of affiliation for enrollment being 14898 | CREATE TABLE table_16383772_1 (
affiliation VARCHAR,
enrollment VARCHAR
) | SELECT COUNT(affiliation) FROM table_16383772_1 WHERE enrollment = 14898 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
4118,
5865,
834,
536,
41,
24405,
584,
4280,
28027,
6,
17938,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
24405,
21,
17938,
271,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
4127,
173,
23,
257,
61,
21680,
953,
834,
2938,
3747,
4118,
5865,
834,
536,
549,
17444,
427,
17938,
3274,
3,
24748,
3916,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average longitude of stations that never had bike availability more than 10? | CREATE TABLE status (
station_id number,
bikes_available number,
docks_available number,
time text
)
CREATE TABLE station (
id number,
name text,
lat number,
long number,
dock_count number,
city text,
installation_date text
)
CREATE TABLE weather (
date text,
max_te... | SELECT AVG(long) FROM station WHERE NOT id IN (SELECT station_id FROM status GROUP BY station_id HAVING MAX(bikes_available) > 10) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2637,
41,
2478,
834,
23,
26,
381,
6,
13490,
834,
28843,
381,
6,
12908,
7,
834,
28843,
381,
6,
97,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
3,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
2961,
61,
21680,
2478,
549,
17444,
427,
4486,
3,
23,
26,
3388,
41,
23143,
14196,
2478,
834,
23,
26,
21680,
2637,
350,
4630,
6880,
272,
476,
2478,
834,
23,
26,
454,
6968,
2365,
4800,
4,
599,
15214,
... |
what is the total number of locations that used a clay surface ? | CREATE TABLE table_204_562 (
id number,
"no." number,
"date" text,
"location" text,
"surface" text,
"opponent in final" text,
"score" text
) | SELECT COUNT("location") FROM table_204_562 WHERE "surface" = 'clay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4834,
357,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
26899,
121,
1499,
6,
96,
32,
102,
9977,
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,
121,
14836,
8512,
21680,
953,
834,
26363,
834,
4834,
357,
549,
17444,
427,
96,
26899,
121,
3274,
3,
31,
4651,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the ids and names of festivals that have at least two nominations for artworks by a bar chart, and show by the y-axis from low to high. | CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
Name text
)
CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
Result text
) | SELECT T3.Festival_Name, T1.Festival_ID FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID ORDER BY T1.Festival_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3994,
834,
221,
5756,
41,
3397,
834,
4309,
16,
17,
6,
3397,
834,
23954,
1499,
6,
6651,
834,
23954,
1499,
6,
10450,
1499,
6,
2929,
16,
17,
6,
1174,
51,
834,
858,
834,
188,
5291,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5787,
371,
24742,
834,
23954,
6,
332,
5411,
371,
24742,
834,
4309,
21680,
13588,
6157,
332,
536,
3,
15355,
3162,
7924,
6157,
332,
357,
9191,
332,
5411,
7754,
1981,
834,
4309,
3274,
332,
4416,
7754,
1981,
834,
430... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.