NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Name the total number of people that went when the record was 16-22 | CREATE TABLE table_name_32 (attendance VARCHAR, record VARCHAR) | SELECT COUNT(attendance) FROM table_name_32 WHERE record = "16-22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
151,
24,
877,
116,
8,
1368,
47,
898,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1368,
3274,
96,
2938,
16149,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Total of australia and a To par smaller than 7? | CREATE TABLE table_79071 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT MIN("Total") FROM table_79071 WHERE "Country" = 'australia' AND "To par" < '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2394,
4450,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
940,
2394,
4450,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
2064,
8792,
23,
9,
31,
3430,
96,
3696,
260,
121,
3,
2,
3,
31,
940,
31,
1,
-100,
-100,
... |
Find the patient who most recently stayed in room 111. | CREATE TABLE stay (patient VARCHAR, room VARCHAR, staystart VARCHAR) | SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1049,
41,
10061,
584,
4280,
28027,
6,
562,
584,
4280,
28027,
6,
1049,
10208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
1868,
113,
167,
1310,
3,
8070,
16,
562,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1868,
21680,
1049,
549,
17444,
427,
562,
3274,
3,
15866,
4674,
11300,
272,
476,
1049,
10208,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which lane did George Bovell swim in? | CREATE TABLE table_67729 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT SUM("Lane") FROM table_67729 WHERE "Name" = 'george bovell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
940,
3166,
41,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
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,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
434,
152,
15,
8512,
21680,
953,
834,
3708,
940,
3166,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
397,
1677,
15,
3005,
162,
195,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the record when the date is January 7? | CREATE TABLE table_27755784_8 (record VARCHAR, date VARCHAR) | SELECT record FROM table_27755784_8 WHERE date = "January 7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3072,
3436,
4608,
834,
927,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
116,
8,
833,
19,
1762,
489,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
2555,
3072,
3436,
4608,
834,
927,
549,
17444,
427,
833,
3274,
96,
30404,
489,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Round has a Year later than 2011? | CREATE TABLE table_61897 (
"Year" real,
"Edition" text,
"Round" text,
"Date" text,
"Location" text,
"Surface" text,
"Against" text,
"Opponent(s)" text,
"Score" text,
"Result" text
) | SELECT "Round" FROM table_61897 WHERE "Year" > '2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2606,
4327,
41,
96,
476,
2741,
121,
490,
6,
96,
427,
10569,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
448,
32,
1106,
121,
21680,
953,
834,
948,
2606,
4327,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
13907,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the team's rcord on february 1? | CREATE TABLE table_27539535_7 (record VARCHAR, february VARCHAR) | SELECT record FROM table_27539535_7 WHERE february = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3301,
2469,
834,
940,
41,
60,
7621,
584,
4280,
28027,
6,
29976,
76,
1208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
372,
31,
7,
3,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2555,
4867,
3301,
2469,
834,
940,
549,
17444,
427,
29976,
76,
1208,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which SR number had a wheel arrangement of 0-6-0t, the year made was more recent than 1874, and the year withdrawn was 1963? | CREATE TABLE table_name_87 (
sr_no VARCHAR,
year_withdrawn VARCHAR,
wheel_arrangement VARCHAR,
year_made VARCHAR
) | SELECT sr_no FROM table_name_87 WHERE wheel_arrangement = "0-6-0t" AND year_made > 1874 AND year_withdrawn = 1963 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
3,
7,
52,
834,
29,
32,
584,
4280,
28027,
6,
215,
834,
28032,
584,
4280,
28027,
6,
5094,
834,
291,
5517,
297,
584,
4280,
28027,
6,
215,
834,
4725,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
7,
52,
834,
29,
32,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
5094,
834,
291,
5517,
297,
3274,
96,
9498,
28625,
17,
121,
3430,
215,
834,
4725,
2490,
507,
4581,
3430,
215,
834,
28032,
3274,
20613,
1,
-1... |
When 21' 10.25 106.930mph is Tuesday August 24th what is Saturday August 29th? | CREATE TABLE table_29191 (
"Rank" real,
"Rider" text,
"Sat 21 Aug" text,
"Mon 23 Aug" text,
"Tues 24 Aug" text,
"Wed 25 Aug" text,
"Thurs 26 Aug" text,
"Fri 27 Aug" text,
"Sat 29 Aug" text
) | SELECT "Sat 29 Aug" FROM table_29191 WHERE "Tues 24 Aug" = '21'' 10.25 106.930mph' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2294,
536,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
134,
144,
1401,
6128,
121,
1499,
6,
96,
9168,
1902,
6128,
121,
1499,
6,
96,
382,
76,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
144,
2838,
6128,
121,
21680,
953,
834,
3166,
2294,
536,
549,
17444,
427,
96,
382,
76,
15,
7,
997,
6128,
121,
3274,
3,
31,
2658,
31,
31,
5477,
1828,
3,
16431,
5,
1298,
1458,
7656,
31,
1,
-100,
-100,
-100... |
Which archbishop vacated the throne on May 17, 1907? | CREATE TABLE table_44490 (
"Archbishop" text,
"Born" text,
"Ordained Priest" text,
"Ordained Bishop" text,
"Appointed Archbishop" text,
"Vacated throne" text,
"Died" text
) | SELECT "Archbishop" FROM table_44490 WHERE "Vacated throne" = 'may 17, 1907' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3628,
2394,
41,
96,
23533,
11514,
10776,
121,
1499,
6,
96,
279,
127,
29,
121,
1499,
6,
96,
7395,
26,
7043,
26,
24582,
121,
1499,
6,
96,
7395,
26,
7043,
26,
16098,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23533,
11514,
10776,
121,
21680,
953,
834,
591,
3628,
2394,
549,
17444,
427,
96,
25203,
920,
3,
8514,
29,
15,
121,
3274,
3,
31,
13726,
12864,
957,
4560,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who are the opponents in Massachusetts5 district? | CREATE TABLE table_18204 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Status" text,
"Opponent" text
) | SELECT "Opponent" FROM table_18204 WHERE "District" = 'Massachusetts5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
26363,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
134,
17,
144,
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,
667,
102,
9977,
121,
21680,
953,
834,
2606,
26363,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
27189,
1836,
1074,
17,
17,
7,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the score for fiji | CREATE TABLE table_name_99 (
score VARCHAR,
country VARCHAR
) | SELECT score FROM table_name_99 WHERE country = "fiji" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
2604,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2604,
21,
3,
89,
17279,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
684,
3274,
96,
89,
17279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which venue had the opposing team Natal? | CREATE TABLE table_50127 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Venue" FROM table_50127 WHERE "Opposing Team" = 'natal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
22367,
41,
96,
667,
102,
2748,
53,
2271,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1752,
22367,
549,
17444,
427,
96,
667,
102,
2748,
53,
2271,
121,
3274,
3,
31,
16978,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest lane for Christine Mailliet ranked less than 39? | CREATE TABLE table_13439 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT MAX("Lane") FROM table_13439 WHERE "Name" = 'christine mailliet' AND "Rank" < '39' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
3288,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
434,
152,
15,
8512,
21680,
953,
834,
23747,
3288,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
15294,
630,
4842,
1896,
17,
31,
3430,
96,
22557,
121,
3,
2,
3,
31,
3288,
31,
1,
-100,
-100,
-100... |
Name the regular judge when host is anja rubik | CREATE TABLE table_1597866_3 (
regular_judge VARCHAR,
host VARCHAR
) | SELECT regular_judge FROM table_1597866_3 WHERE host = "Anja Rubik" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
21441,
3539,
834,
519,
41,
1646,
834,
354,
13164,
584,
4280,
28027,
6,
2290,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1646,
5191,
116,
2290,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1646,
834,
354,
13164,
21680,
953,
834,
1808,
21441,
3539,
834,
519,
549,
17444,
427,
2290,
3274,
96,
188,
29,
1191,
15612,
23,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who was hired before 2002-06-21, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, I want to order in desc by the X-axis please. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATIO... | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
446,
10539,
834,
4309,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
44... |
Which Year has a Quarter-Finalists of £1,000, and Semi-Finalists of £1,500? | CREATE TABLE table_name_16 (year VARCHAR, quarter_finalists VARCHAR, semi_finalists VARCHAR) | SELECT year FROM table_name_16 WHERE quarter_finalists = "£1,000" AND semi_finalists = "£1,500" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1201,
584,
4280,
28027,
6,
2893,
834,
28077,
584,
4280,
28027,
6,
4772,
834,
28077,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
215,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
2893,
834,
28077,
3274,
96,
19853,
19215,
121,
3430,
4772,
834,
28077,
3274,
96,
19853,
4347,
2560,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where are the broadcasting companys with the callsign DWRH located? | CREATE TABLE table_28794440_1 (location VARCHAR, callsign VARCHAR) | SELECT location FROM table_28794440_1 WHERE callsign = "DWRH" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4440,
3628,
2445,
834,
536,
41,
14836,
584,
4280,
28027,
6,
580,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
33,
8,
6878,
53,
349,
7,
28,
8,
580,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
2577,
4440,
3628,
2445,
834,
536,
549,
17444,
427,
580,
6732,
3274,
96,
308,
15472,
566,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the inductioin for 1975 1976? | CREATE TABLE table_57942 (
"Generation" text,
"Years" text,
"Engine" text,
"Power" text,
"Torque" text,
"Induction" text
) | SELECT "Induction" FROM table_57942 WHERE "Years" = '1975–1976' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
4240,
357,
41,
96,
13714,
49,
257,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
23553,
121,
1499,
6,
96,
382,
127,
835,
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,
1570,
8291,
121,
21680,
953,
834,
3436,
4240,
357,
549,
17444,
427,
96,
476,
2741,
7,
121,
3274,
3,
31,
2294,
3072,
104,
2294,
3959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the week for result of l 31-27, and an Attendance smaller than 85,865 | CREATE TABLE table_name_99 (
week INTEGER,
result VARCHAR,
attendance VARCHAR
) | SELECT AVG(week) FROM table_name_99 WHERE result = "l 31-27" AND attendance < 85 OFFSET 865 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
471,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
471,
21,
741,
13,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
741,
3274,
96,
40,
2664,
18,
2555,
121,
3430,
11364,
3,
2,
11989,
3,
15316,
20788,
505,
4122,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In what week was the original singer Whitney Houston. | CREATE TABLE table_26368 (
"Week #" text,
"Theme" text,
"Song Choice" text,
"Original Artist" text,
"Order #" real,
"Result" text
) | SELECT "Week #" FROM table_26368 WHERE "Original Artist" = 'Whitney Houston' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3891,
3651,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
13745,
121,
1499,
6,
96,
667,
3380,
10270,
9152,
121,
1499,
6,
96,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
1713,
121,
21680,
953,
834,
357,
3891,
3651,
549,
17444,
427,
96,
667,
3380,
10270,
9152,
121,
3274,
3,
31,
518,
10536,
3186,
8018,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the July playmate with a December playmate Morgan Fox? | CREATE TABLE table_name_58 (july VARCHAR, december VARCHAR) | SELECT july FROM table_name_58 WHERE december = "morgan fox" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2047,
120,
584,
4280,
28027,
6,
20,
75,
18247,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1718,
577,
5058,
28,
3,
9,
1882,
577,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
2047,
120,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
20,
75,
18247,
3274,
96,
51,
11127,
3,
20400,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many league cups for m patrick maria with 0 total? | CREATE TABLE table_name_96 (
league INTEGER,
player VARCHAR,
total VARCHAR
) | SELECT SUM(league) FROM table_name_96 WHERE player = "m patrick maria" AND total < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
5533,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5533,
12294,
21,
3,
51,
623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
29512,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1959,
3274,
96,
51,
6234,
5206,
2774,
9,
121,
3430,
792,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how much is patient 006-168146 obligated to pay for the hospitalization during the last hospital encounter? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,... | SELECT SUM(cost.cost) FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-168146' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
11290,
5,
11290,
61,
21680,
583,
549,
17444,
427,
583,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
... |
When waikaia is the electorate what is the highest by-election? | CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR) | SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3914,
3914,
3707,
834,
519,
41,
969,
834,
15,
12252,
3,
21342,
17966,
6,
11924,
127,
342,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8036,
5561,
23,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
969,
834,
15,
12252,
61,
21680,
953,
834,
2577,
3914,
3914,
3707,
834,
519,
549,
17444,
427,
11924,
127,
342,
3274,
96,
518,
9,
5561,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Where is channel 83 broadcasted? | CREATE TABLE table_name_86 (
territory VARCHAR,
channel VARCHAR
) | SELECT territory FROM table_name_86 WHERE channel = 83 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
9964,
584,
4280,
28027,
6,
4245,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
4245,
3,
4591,
6878,
15,
26,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9964,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
4245,
3274,
3,
4591,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much average Finish has Starts of 9, and a Top 10 smaller than 0? | CREATE TABLE table_name_78 (avg_finish INTEGER, starts VARCHAR, top_10 VARCHAR) | SELECT SUM(avg_finish) FROM table_name_78 WHERE starts = 9 AND top_10 < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
9,
208,
122,
834,
25535,
3,
21342,
17966,
6,
3511,
584,
4280,
28027,
6,
420,
834,
1714,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
9,
208,
122,
834,
25535,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
3511,
3274,
668,
3430,
420,
834,
1714,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What 2009 has statistics by surface in 2012? | CREATE TABLE table_name_66 (
Id VARCHAR
) | SELECT 2009 FROM table_name_66 WHERE 2012 = "statistics by surface" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2464,
65,
7475,
57,
1774,
16,
1673,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2464,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1673,
3274,
96,
8547,
3040,
7,
57,
1774,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and price , and group by attribute headquarter, and order in asc by the x-axis. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3642,
19... |
What is the height for player number 5? | CREATE TABLE table_12962773_12 (height VARCHAR, no VARCHAR) | SELECT COUNT(height) FROM table_12962773_12 WHERE no = 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
2555,
4552,
834,
2122,
41,
88,
2632,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3902,
21,
1959,
381,
305,
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,
2847,
17161,
599,
88,
2632,
61,
21680,
953,
834,
2122,
4314,
2555,
4552,
834,
2122,
549,
17444,
427,
150,
3274,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Draw a bar chart about the distribution of ACC_Road and Team_ID , and group by attribute ACC_Home, list Y-axis in descending order. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY Team_ID DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
3,
14775,
834,
448,
32,
9,
26,
4674,
11300,
272,
476,
2271,
834,
4309,
309,
25067,
... |
What competition has a score of 1-3? | CREATE TABLE table_name_47 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_47 WHERE score = "1-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2259,
65,
3,
9,
2604,
13,
3,
16737,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
2604,
3274,
96,
16737,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the away team's score when footscray is the away team? | CREATE TABLE table_name_74 (
away_team VARCHAR
) | SELECT away_team AS score FROM table_name_74 WHERE away_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
31,
7,
2604,
116,
2418,
7,
2935,
63,
19,
8,
550,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
550,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Please show the software platforms of devices in descending order of the count. | CREATE TABLE device (Software_Platform VARCHAR) | SELECT Software_Platform FROM device GROUP BY Software_Platform ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1407,
41,
29944,
834,
10146,
2032,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
863,
504,
8,
889,
5357,
13,
1904,
16,
3,
30960,
455,
13,
8,
3476,
5,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4300,
834,
10146,
2032,
21680,
1407,
350,
4630,
6880,
272,
476,
4300,
834,
10146,
2032,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are the last names that are used by customers and staff? | CREATE TABLE customer_payments (
customer_id number,
datetime_payment time,
payment_method_code text,
amount_payment number
)
CREATE TABLE customers (
customer_id number,
customer_address_id number,
customer_status_code text,
date_became_customer time,
date_of_birth time,
first_... | SELECT last_name FROM customers INTERSECT SELECT last_name FROM staff | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
21752,
7,
41,
884,
834,
23,
26,
381,
6,
833,
715,
834,
21752,
97,
6,
1942,
834,
23152,
834,
4978,
1499,
6,
866,
834,
21752,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
834,
4350,
21680,
722,
3,
21342,
5249,
14196,
3,
23143,
14196,
336,
834,
4350,
21680,
871,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Issue Date(s) has an Artist of men at work? | CREATE TABLE table_name_32 (issue_date_s_ VARCHAR, artist VARCHAR) | SELECT issue_date_s_ FROM table_name_32 WHERE artist = "men at work" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
13159,
834,
5522,
834,
7,
834,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13235,
7678,
599,
7,
61,
65,
46,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
962,
834,
5522,
834,
7,
834,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2377,
3274,
96,
904,
44,
161,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
County of 46 laporte is what school? | CREATE TABLE table_name_83 (
school VARCHAR,
county VARCHAR
) | SELECT school FROM table_name_83 WHERE county = "46 laporte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
496,
584,
4280,
28027,
6,
5435,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1334,
13,
9668,
50,
1493,
15,
19,
125,
496,
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,
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,
496,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
5435,
3274,
96,
4448,
50,
1493,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the HAAT of devils lake | CREATE TABLE table_name_94 (haat VARCHAR, city_of_license VARCHAR) | SELECT haat FROM table_name_94 WHERE city_of_license = "devils lake" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
1024,
144,
584,
4280,
28027,
6,
690,
834,
858,
834,
28062,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3,
5478,
5767,
13,
20,
6372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4244,
144,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
690,
834,
858,
834,
28062,
3274,
96,
9776,
1558,
6957,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the player with tries of 02 2 and points of 008 8 | CREATE TABLE table_name_83 (
player VARCHAR,
tries VARCHAR,
points VARCHAR
) | SELECT player FROM table_name_83 WHERE tries = "02 2" AND points = "008 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1959,
584,
4280,
28027,
6,
3,
9000,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1959,
28,
3,
9000,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
3,
9000,
3274,
96,
4305,
204,
121,
3430,
979,
3274,
96,
1206,
927,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest value of Blank Ends when Stolen Ends is 7. | CREATE TABLE table_19831 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." text
) | SELECT MIN("Blank Ends") FROM table_19831 WHERE "Stolen Ends" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
3341,
41,
96,
434,
32,
1489,
15,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
40,
5979,
3720,
7,
8512,
21680,
953,
834,
24151,
3341,
549,
17444,
427,
96,
134,
235,
40,
35,
3720,
7,
121,
3274,
3,
31,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who took the loss in the game that ended with a 54-61 record? | CREATE TABLE table_name_29 (
loss VARCHAR,
record VARCHAR
) | SELECT loss FROM table_name_29 WHERE record = "54-61" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
1453,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
808,
8,
1453,
16,
8,
467,
24,
3492,
28,
3,
9,
10630,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1453,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1368,
3274,
96,
5062,
18,
4241,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date did the epiode that had 1.37 million as the rating originally air? | CREATE TABLE table_27218002_2 (originalairdate VARCHAR, ratings VARCHAR) | SELECT originalairdate FROM table_27218002_2 WHERE ratings = "1.37 Million" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2658,
6192,
357,
834,
357,
41,
21878,
2256,
5522,
584,
4280,
28027,
6,
9712,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
410,
8,
9241,
32,
221,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
2256,
5522,
21680,
953,
834,
2555,
2658,
6192,
357,
834,
357,
549,
17444,
427,
9712,
3274,
96,
13606,
940,
14625,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the successor for james noble died in previous congress | CREATE TABLE table_2630 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
) | SELECT "Successor" FROM table_2630 WHERE "Reason for change" = 'James Noble died in previous Congress' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1458,
41,
96,
134,
4748,
41,
4057,
61,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
483,
121,
1499,
6,
96,
134,
17431,
24901,
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,
134,
17431,
24901,
121,
21680,
953,
834,
2688,
1458,
549,
17444,
427,
96,
1649,
9,
739,
21,
483,
121,
3274,
3,
31,
683,
9,
2687,
24708,
3977,
16,
1767,
4442,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Opponents from the final with a Tournament that is puebla? | CREATE TABLE table_40731 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
) | SELECT "Opponents in the final" FROM table_40731 WHERE "Tournament" = 'puebla' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4552,
536,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
16,
8,
804,
121,
21680,
953,
834,
2445,
4552,
536,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
4987,
15,
4605,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many games did janae stokes play? | CREATE TABLE table_23346303_4 (games_played INTEGER, player VARCHAR) | SELECT MAX(games_played) FROM table_23346303_4 WHERE player = "Janae Stokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
4448,
23335,
834,
591,
41,
7261,
7,
834,
4895,
15,
26,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
410,
3,
7066,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
7,
834,
4895,
15,
26,
61,
21680,
953,
834,
20879,
4448,
23335,
834,
591,
549,
17444,
427,
1959,
3274,
96,
683,
152,
9,
15,
28089,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of first_name and commission_pct , and list by the Y in ascending. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT FIRST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30085,
834,
567,
17683,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
4... |
what is the average points when position is more than 5 and played is less than 10? | CREATE TABLE table_44532 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT AVG("Points") FROM table_44532 WHERE "Position" > '5' AND "Played" < '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
2668,
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,
71,
17217,
599,
121,
22512,
7,
8512,
21680,
953,
834,
591,
2128,
2668,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
755,
31,
3430,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
1714,
31,
1,
-100,
-100,
-100... |
Name the lfop 4/24/09 for opinionway of 4/17/09 of 5% for party of left front | CREATE TABLE table_54870 (
"Party" text,
"Results 2004" text,
"Ifop 11/12/08" text,
"Ifop 1/9/09" text,
"Ipsos 3/14/09" text,
"CSA 4/16/09" text,
"OpinionWay 4/17/09" text,
"Ifop 4/24/09" text,
"Ipsos 5/2/09" text,
"Ifop 5/11/09" text,
"OpinionWay 5/11/09" text
) | SELECT "Ifop 4/24/09" FROM table_54870 WHERE "OpinionWay 4/17/09" = '5%' AND "Party" = 'left front' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3707,
2518,
41,
96,
13725,
63,
121,
1499,
6,
96,
20119,
7,
4406,
121,
1499,
6,
96,
5801,
32,
102,
850,
18009,
87,
4018,
121,
1499,
6,
96,
5801,
32,
102,
3,
12989,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5801,
32,
102,
314,
87,
2266,
87,
4198,
121,
21680,
953,
834,
755,
3707,
2518,
549,
17444,
427,
96,
667,
22441,
518,
9,
63,
314,
87,
2517,
87,
4198,
121,
3274,
3,
31,
2712,
31,
3430,
96,
13725,
63,
121,
3274... |
what is the number of patients whose gender is f and ethnicity is black/african american? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.ethnicity = "BLACK/AFRICAN AMERICAN" | [
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,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
62... |
Name the scott for chloropsis hardwickii | CREATE TABLE table_23507 (
"Year" real,
"Date" text,
"Type" text,
"Species" text,
"Author Species" text,
"Value" text,
"Scott" text,
"Yvert" real,
"Mitchell" real,
"Sta. & Gib." real,
"Order" text,
"Family" text
) | SELECT "Scott" FROM table_23507 WHERE "Species" = 'Chloropsis hardwickii' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
4560,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
7727,
725,
121,
1499,
6,
96,
23602,
127,
3,
7727,
725,
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,
10405,
121,
21680,
953,
834,
25174,
4560,
549,
17444,
427,
96,
7727,
725,
121,
3274,
3,
31,
3541,
322,
9280,
159,
614,
5981,
23,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the least laps for driver gerhard berger with a grid more than 6? | CREATE TABLE table_10669 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MIN("Laps") FROM table_10669 WHERE "Driver" = 'gerhard berger' AND "Grid" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
3951,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3612,
102,
7,
8512,
21680,
953,
834,
16431,
3951,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
1304,
5651,
3,
16170,
31,
3430,
96,
13313,
26,
121,
2490,
3,
31,
948,
31,
1,
-100,
-100,
-1... |
Display a pie chart for how many gymnasts are from each hometown? | CREATE TABLE gymnast (
Gymnast_ID int,
Floor_Exercise_Points real,
Pommel_Horse_Points real,
Rings_Points real,
Vault_Points real,
Parallel_Bars_Points real,
Horizontal_Bar_Points real,
Total_Points real
)
CREATE TABLE people (
People_ID int,
Name text,
Age real,
Height ... | SELECT Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23379,
17,
41,
31560,
17,
834,
4309,
16,
17,
6,
12324,
834,
5420,
15,
21645,
15,
834,
22512,
7,
490,
6,
276,
7649,
40,
834,
566,
127,
7,
15,
834,
22512,
7,
490,
6,
7888,
7,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1210,
3540,
6,
2847,
17161,
599,
1935,
61,
21680,
23379,
17,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
517,
63,
51,
29,
9,
7,
17,
834,
4309,
3274,
332,
4416,
24337,
834,
4309,
350,
4630... |
For those records from the products and each product's manufacturer, show me about the distribution of name and the average of revenue , and group by attribute name in a bar chart, and rank total number in asc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T2.Revenue | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5... |
Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams? | CREATE TABLE table_name_53 (
manufacturer VARCHAR,
rider VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT manufacturer FROM table_name_53 WHERE laps < 28 AND grid < 9 AND rider = "jeremy mcwilliams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
4818,
584,
4280,
28027,
6,
2564,
52,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
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,
4818,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
14941,
7,
3,
2,
2059,
3430,
8634,
3,
2,
668,
3430,
2564,
52,
3274,
96,
12488,
15,
2258,
3,
51,
75,
8894,
23,
265,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What is the nationality of the player Tom Boswell? | CREATE TABLE table_57897 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_57897 WHERE "Player" = 'tom boswell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3914,
940,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
3436,
3914,
940,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
235,
51,
3005,
7,
2091,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which gold Coast has a Melbourne of yes, a Perth of yes, an Auckland of no, and a Sydney of no? | CREATE TABLE table_name_36 (gold_coast VARCHAR, sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR) | SELECT gold_coast FROM table_name_36 WHERE melbourne = "yes" AND perth = "yes" AND auckland = "no" AND sydney = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
14910,
834,
25500,
584,
4280,
28027,
6,
3,
7,
63,
26,
3186,
584,
4280,
28027,
6,
3,
9,
4636,
40,
232,
584,
4280,
28027,
6,
3,
2341,
26255,
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,
2045,
834,
25500,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
3,
2341,
26255,
3274,
96,
10070,
121,
3430,
399,
189,
3274,
96,
10070,
121,
3430,
3,
9,
4636,
40,
232,
3274,
96,
29,
32,
121,
3430,
3,
7,
63,
... |
What was the event for vinny magalhães? | CREATE TABLE table_name_74 (event VARCHAR, opponent VARCHAR) | SELECT event FROM table_name_74 WHERE opponent = "vinny magalhães" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
15,
2169,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
605,
21,
4671,
29,
63,
6396,
138,
107,
2,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
15264,
3274,
96,
2494,
29,
63,
6396,
138,
107,
2,
15,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the highest drawn when played is more than 14? | CREATE TABLE table_name_79 (drawn INTEGER, played INTEGER) | SELECT MAX(drawn) FROM table_name_79 WHERE played > 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
19489,
29,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
6796,
116,
1944,
19,
72,
145,
968,
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,
4800,
4,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1944,
2490,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the result later than week 13? | CREATE TABLE table_78613 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Result" FROM table_78613 WHERE "Week" > '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4241,
519,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3940,
4241,
519,
549,
17444,
427,
96,
518,
10266,
121,
2490,
3,
31,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Date has a Crowd smaller than 4,485? | CREATE TABLE table_name_72 (date VARCHAR, crowd INTEGER) | SELECT date FROM table_name_72 WHERE crowd < 4 OFFSET 485 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
5522,
584,
4280,
28027,
6,
4374,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
15343,
26,
2755,
145,
6464,
591,
4433,
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,
833,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
4374,
3,
2,
314,
3,
15316,
20788,
314,
4433,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which season has a Staffel E of Stahl Riesa? | CREATE TABLE table_name_21 (
season VARCHAR,
staffel_e VARCHAR
) | SELECT season FROM table_name_21 WHERE staffel_e = "stahl riesa" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
774,
584,
4280,
28027,
6,
871,
15,
40,
834,
15,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
774,
65,
3,
9,
10071,
15,
40,
262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
871,
15,
40,
834,
15,
3274,
96,
2427,
107,
40,
3,
2593,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What circuit was the race where Hideki Mutoh had the fastest lap? | CREATE TABLE table_10264179_2 (circuit VARCHAR, fastest_lap VARCHAR) | SELECT circuit FROM table_10264179_2 WHERE fastest_lap = "Hideki Mutoh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14388,
4389,
26593,
834,
357,
41,
15357,
21560,
584,
4280,
28027,
6,
10391,
834,
8478,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
4558,
47,
8,
1964,
213,
2018,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4558,
21680,
953,
834,
14388,
4389,
26593,
834,
357,
549,
17444,
427,
10391,
834,
8478,
3274,
96,
566,
1599,
2168,
16601,
32,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me a pie chart for what are the different nationalities of pilots? Show each nationality and the number of pilots of each nationality. | CREATE TABLE aircraft (
Aircraft_ID int,
Order_Year int,
Manufacturer text,
Model text,
Fleet_Series text,
Powertrain text,
Fuel_Propulsion text
)
CREATE TABLE pilot_record (
Record_ID int,
Pilot_ID int,
Aircraft_ID int,
Date text
)
CREATE TABLE pilot (
Pilot_ID int,
... | SELECT Nationality, COUNT(*) FROM pilot GROUP BY Nationality | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6442,
41,
1761,
6696,
834,
4309,
16,
17,
6,
5197,
834,
476,
2741,
16,
17,
6,
15248,
1499,
6,
5154,
1499,
6,
23705,
834,
12106,
7,
1499,
6,
2621,
9719,
1499,
6,
20942,
834,
3174,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
868,
485,
6,
2847,
17161,
599,
1935,
61,
21680,
4487,
350,
4630,
6880,
272,
476,
868,
485,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who were the champions in 1961 ? | CREATE TABLE table_204_110 (
id number,
"year" number,
"champion" text,
"city" text,
"llws" text,
"record" text
) | SELECT "champion" FROM table_204_110 WHERE "year" = 1961 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
19277,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
17788,
12364,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
195,
210,
7,
121,
1499,
6,
96,
60,
7621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17788,
12364,
121,
21680,
953,
834,
26363,
834,
19277,
549,
17444,
427,
96,
1201,
121,
3274,
21018,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest Jews and others 1? | CREATE TABLE table_28191 (
"Metropolitan ring" text,
"Localities" real,
"Total" real,
"Jews and others 1" real,
"Thereof: Jews" real,
"Arabs" real,
"Population density (per km\u00b2)" text,
"Annual Population growth rate" text
) | SELECT MAX("Jews and others 1") FROM table_28191 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2294,
536,
41,
96,
329,
15252,
21631,
29,
3,
1007,
121,
1499,
6,
96,
434,
32,
1489,
2197,
121,
490,
6,
96,
3696,
1947,
121,
490,
6,
96,
7851,
210,
7,
11,
717,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7851,
210,
7,
11,
717,
209,
8512,
21680,
953,
834,
2577,
2294,
536,
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 number of the descriptions of the categories that products with product descriptions that contain the letter t are in?, and order product_category_description in ascending order. | CREATE TABLE Ref_Characteristic_Types (
characteristic_type_code VARCHAR(15),
characteristic_type_description VARCHAR(80)
)
CREATE TABLE Ref_Colors (
color_code VARCHAR(15),
color_description VARCHAR(80)
)
CREATE TABLE Characteristics (
characteristic_id INTEGER,
characteristic_type_code VARCH... | SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY product_category_description | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
419,
89,
834,
18947,
2708,
49,
3040,
834,
25160,
7,
41,
16115,
834,
6137,
834,
4978,
584,
4280,
28027,
599,
1808,
201,
16115,
834,
6137,
834,
221,
11830,
584,
4280,
28027,
599,
2079,
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,
556,
834,
8367,
839,
651,
834,
221,
11830,
6,
2847,
17161,
599,
15892,
834,
8367,
839,
651,
834,
221,
11830,
61,
21680,
419,
89,
834,
3174,
7472,
834,
18610,
6066,
2593,
6157,
332,
536,
3,
15355,
3162,
7554,
6157,
3... |
Show me a scatter plot for the relationship between average and minimum age of captains in each class, color different classes. | CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | SELECT AVG(age), MIN(age) FROM captain GROUP BY Class | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14268,
41,
12202,
834,
4309,
16,
17,
6,
5570,
1499,
6,
15508,
834,
4309,
16,
17,
6,
1246,
1499,
6,
4501,
1499,
6,
3,
22557,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
545,
201,
3,
17684,
599,
545,
61,
21680,
14268,
350,
4630,
6880,
272,
476,
4501,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose gender is m and ethnicity is hispanic/latino - puerto rican? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274,
96,
7094,
21215,
18830,
... |
Name the ends lost for 67 pa | CREATE TABLE table_15333005_1 (Ends VARCHAR, pa VARCHAR) | SELECT Ends AS lost FROM table_15333005_1 WHERE pa = 67 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27025,
17225,
3076,
834,
536,
41,
8532,
26,
7,
584,
4280,
28027,
6,
2576,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5542,
1513,
21,
3,
3708,
2576,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3720,
7,
6157,
1513,
21680,
953,
834,
27025,
17225,
3076,
834,
536,
549,
17444,
427,
2576,
3274,
3,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many camera lenses have a focal length longer than 15 mm? | CREATE TABLE photos (
id number,
camera_lens_id number,
mountain_id number,
color text,
name text
)
CREATE TABLE mountain (
id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE camera_lens (
id number,
brand text,
name ... | SELECT COUNT(*) FROM camera_lens WHERE focal_length_mm > 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1302,
41,
3,
23,
26,
381,
6,
1861,
834,
40,
35,
7,
834,
23,
26,
381,
6,
4180,
834,
23,
26,
381,
6,
945,
1499,
6,
564,
1499,
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,
2847,
17161,
599,
1935,
61,
21680,
1861,
834,
40,
35,
7,
549,
17444,
427,
15949,
834,
19457,
834,
635,
2490,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Total of the player who won before 1983 with a smaller than 4 To par? | CREATE TABLE table_name_46 (
total VARCHAR,
to_par VARCHAR,
year_won VARCHAR
) | SELECT COUNT(total) FROM table_name_46 WHERE to_par < 4 AND year_won < 1983 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
792,
584,
4280,
28027,
6,
12,
834,
1893,
584,
4280,
28027,
6,
215,
834,
210,
106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
12,
834,
1893,
3,
2,
314,
3430,
215,
834,
210,
106,
3,
2,
15041,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Total with the Event 2004 Athens and Gold less than 20? | CREATE TABLE table_name_21 (
total INTEGER,
event VARCHAR,
gold VARCHAR
) | SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
792,
3,
21342,
17966,
6,
605,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9273,
28,
8,
8042,
4406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
605,
3274,
96,
21653,
44,
3225,
7,
121,
3430,
2045,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the date of birth and gender of the subject name bessie giordano. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT demographic.dob, demographic.gender FROM demographic WHERE demographic.name = "Bessie Giordano" | [
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,
14798,
5,
26,
32,
115,
6,
14798,
5,
122,
3868,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
2703,
7,
2452,
3156,
127,
3768,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players played each position Plot them as bar chart, rank by the names in ascending. | CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
Team int
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_lang... | SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY Position | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
372,
41,
2271,
834,
23,
26,
16,
17,
6,
5570,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
12387,
834,
4309,
16,
17,
6,
12387,
1499,
6,
13825,
834,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14258,
6,
2847,
17161,
599,
1935,
61,
21680,
1588,
834,
9476,
350,
4630,
6880,
272,
476,
14258,
4674,
11300,
272,
476,
14258,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In the game on 11 March 2008 with a visiting team of Bucks, who was the home team? | CREATE TABLE table_name_7 (
home VARCHAR,
visitor VARCHAR,
date VARCHAR
) | SELECT home FROM table_name_7 WHERE visitor = "bucks" AND date = "11 march 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
467,
30,
850,
1332,
2628,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
7019,
3274,
96,
13863,
7,
121,
3430,
833,
3274,
96,
2596,
10556,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
for the rank of 3 for the united states, what is the average lane? | CREATE TABLE table_name_8 (
lane INTEGER,
nationality VARCHAR,
rank VARCHAR
) | SELECT AVG(lane) FROM table_name_8 WHERE nationality = "united states" AND rank = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
3,
8102,
3,
21342,
17966,
6,
1157,
485,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21,
8,
11003,
13,
220,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8102,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
11003,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the game played on May 9, 2012? | CREATE TABLE table_name_35 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_35 WHERE date = "may 9, 2012" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
8,
467,
1944,
30,
932,
9902,
1673,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
833,
3274,
96,
13726,
9902,
1673,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
From which country was Sodje loaned? | CREATE TABLE table_59609 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text
) | SELECT "Country" FROM table_59609 WHERE "Name" = 'sodje' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
948,
4198,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
32,
152,
1949,
121,
1499,
6,
96,
7681,
1054,
121,
1499,
6,
96,
8532,
221,
26,
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,
10628,
651,
121,
21680,
953,
834,
3390,
948,
4198,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
7,
32,
26,
1924,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the result for 13 october 2004 | CREATE TABLE table_58401 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_58401 WHERE "Date" = '13 october 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
20016,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
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,
0... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
3449,
20016,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2368,
3,
32,
75,
235,
1152,
4406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In the games at corio oval, what was the highest crowd? | CREATE TABLE table_name_62 (
crowd INTEGER,
venue VARCHAR
) | SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
4374,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
1031,
44,
4301,
23,
32,
17986,
6,
125,
47,
8,
2030,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
5669,
3274,
96,
5715,
23,
32,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
chronic liver disease ( cirrhosis ) | CREATE TABLE table_train_34 (
"id" int,
"gender" string,
"allergy_to_adhesive" bool,
"contraception" bool,
"use_of_cyclosporin" bool,
"use_of_digoxin" bool,
"liver_disease" bool,
"rhabomyolysis" bool,
"allergy_to_hydrocortisone" bool,
"use_of_statins" bool,
"NOUSE" float
) | SELECT * FROM table_train_34 WHERE liver_disease = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3710,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
11211,
122,
63,
834,
235,
834,
9,
26,
88,
7,
757,
121,
3,
12840,
40,
6,
96,
1018,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1429,
21680,
953,
834,
9719,
834,
3710,
549,
17444,
427,
11501,
834,
26,
159,
14608,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Venue has an Away team of footscray? | CREATE TABLE table_54755 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_54755 WHERE "Away team" = 'footscray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3072,
755,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
5062,
3072,
755,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
6259,
7,
2935,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the maximum wins where the poles are 2? | CREATE TABLE table_2387790_1 (wins INTEGER, poles VARCHAR) | SELECT MAX(wins) FROM table_2387790_1 WHERE poles = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
27697,
2394,
834,
536,
41,
3757,
7,
3,
21342,
17966,
6,
11148,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
33,
8,
2411,
9204,
213,
8,
11148,
7,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
2773,
27697,
2394,
834,
536,
549,
17444,
427,
11148,
7,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
I want to know the proportion of the total number for each color. | CREATE TABLE mountain (
id int,
name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE camera_lens (
id int,
brand text,
name text,
focal_length_mm real,
max_aperture real
)
CREATE TABLE photos (
id int,
camera_lens_id int,
mountain_id ... | SELECT color, COUNT(color) FROM photos GROUP BY color | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
24231,
490,
6,
749,
1109,
1433,
490,
6,
10971,
1499,
6,
6993,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1861,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
6,
2847,
17161,
599,
9910,
61,
21680,
1302,
350,
4630,
6880,
272,
476,
945,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's sawyer hannay's total pick number? | CREATE TABLE table_name_39 (pick__number VARCHAR, player VARCHAR) | SELECT COUNT(pick__number) FROM table_name_39 WHERE player = "sawyer hannay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
17967,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
1509,
7975,
3,
107,
10878,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1959,
3274,
96,
13125,
7975,
3,
107,
10878,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return a bar chart on how many members are in each party? | CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE member (
Member_ID int,
... | SELECT Party_name, COUNT(*) FROM member AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16,
17,
6,
3271,
1499,
6,
304,
1825,
834,
19632,
1499,
6,
14298,
834,
19632,
1499,
6,
6163,
834,
4309,
16,
17,
6,
3450,
834,
4350,
1499,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3450,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1144,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
834,
4309,
3274,
332,
4416,
13725,
63,
834,
4309,
350,
4630,
6880,
272,
... |
what is drug route and drug dose of drug name miconazole 2% cream? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT prescriptions.route, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Miconazole 2% Cream" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7744,
7,
5,
20300,
6,
7744,
7,
5,
26,
13534,
834,
12051,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
329,
23,
1018,
17694,
109,
3,
5406,
14024,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the Opponent when the Cavaliers had a Record of 3-9? | CREATE TABLE table_76465 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Opponent" FROM table_76465 WHERE "Record" = '3-9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
591,
4122,
41,
96,
308,
342,
121,
1499,
6,
96,
566,
87,
188,
87,
567,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3959,
591,
4122,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
519,
7141,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees who did not have any job in the past, a bar chart shows the distribution of hire_date and the average of manager_id bin hire_date by weekday, could you list the average of manager id in asc order? | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,... |
How many bids were there for the .500 win percentage in the Ohio Valley conference? | CREATE TABLE table_name_7 (
_number_of_bids INTEGER,
win__percentage VARCHAR,
conference VARCHAR
) | SELECT SUM(_number_of_bids) FROM table_name_7 WHERE win__percentage = ".500" AND conference = "ohio valley" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
3,
834,
5525,
1152,
834,
858,
834,
9824,
7,
3,
21342,
17966,
6,
1369,
834,
834,
883,
3728,
545,
584,
4280,
28027,
6,
2542,
584,
4280,
28027,
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,
180,
6122,
599,
834,
5525,
1152,
834,
858,
834,
9824,
7,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1369,
834,
834,
883,
3728,
545,
3274,
96,
5,
2560,
121,
3430,
2542,
3274,
96,
32,
107,
23,
32,
10645,
... |
Who is the semi-final second television commentator with graham norton as the final television commentator and scott mills as the spokesperson before 2013? | CREATE TABLE table_name_51 (semi_final_second_television_commentator VARCHAR, year_s_ VARCHAR, final_television_commentator VARCHAR, spokesperson VARCHAR) | SELECT semi_final_second_television_commentator FROM table_name_51 WHERE final_television_commentator = "graham norton" AND spokesperson = "scott mills" AND year_s_ < 2013 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
7,
15,
51,
23,
834,
12406,
834,
12091,
834,
1931,
6610,
834,
287,
297,
1016,
584,
4280,
28027,
6,
215,
834,
7,
834,
584,
4280,
28027,
6,
804,
834,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4772,
834,
12406,
834,
12091,
834,
1931,
6610,
834,
287,
297,
1016,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
804,
834,
1931,
6610,
834,
287,
297,
1016,
3274,
96,
3484,
1483,
150,
17330,
121,
3430,
23909,
327... |
How many types are cardio? | CREATE TABLE table_27512025_1 (
program VARCHAR,
type VARCHAR
) | SELECT COUNT(program) FROM table_27512025_1 WHERE type = "Cardio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
15518,
1828,
834,
536,
41,
478,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1308,
33,
16216,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1409,
5096,
61,
21680,
953,
834,
25988,
15518,
1828,
834,
536,
549,
17444,
427,
686,
3274,
96,
6936,
26,
23,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total rank where the rank is 58? | CREATE TABLE table_15681686_4 (rank__timeslot_ VARCHAR, rank__week_ VARCHAR) | SELECT COUNT(rank__timeslot_) FROM table_15681686_4 WHERE rank__week_ = "58" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
3651,
2938,
3840,
834,
591,
41,
6254,
834,
834,
715,
7,
3171,
834,
584,
4280,
28027,
6,
11003,
834,
834,
8041,
834,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
834,
834,
715,
7,
3171,
834,
61,
21680,
953,
834,
1808,
3651,
2938,
3840,
834,
591,
549,
17444,
427,
11003,
834,
834,
8041,
834,
3274,
96,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the birth date when the weight (kg) is 100 and the world rank is 2? | CREATE TABLE table_name_3 (birth_date VARCHAR, weight__kg_ VARCHAR, world_rank VARCHAR) | SELECT birth_date FROM table_name_3 WHERE weight__kg_ = "100" AND world_rank = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
20663,
834,
5522,
584,
4280,
28027,
6,
1293,
834,
834,
8711,
834,
584,
4280,
28027,
6,
296,
834,
6254,
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,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3879,
834,
5522,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1293,
834,
834,
8711,
834,
3274,
96,
2915,
121,
3430,
296,
834,
6254,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What chapter is located in Normal, Illinois? | CREATE TABLE table_name_65 (
chapter VARCHAR,
location VARCHAR
) | SELECT chapter FROM table_name_65 WHERE location = "normal, illinois" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
5800,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5800,
19,
1069,
16,
16612,
6,
7659,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5800,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1128,
3274,
96,
12110,
6,
3,
1092,
77,
32,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What school is in the Missouri Synod school corporation? | CREATE TABLE table_13814 (
"School" text,
"Mascot" text,
"School Corp." text,
"Size" real,
"IHSAA Class (Football)" text,
"Year Joined" text,
"Other Conferences" text
) | SELECT "School" FROM table_13814 WHERE "School Corp." = 'missouri synod' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
2534,
41,
96,
29364,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
29364,
10052,
535,
1499,
6,
96,
134,
1737,
121,
490,
6,
96,
196,
4950,
5498,
4501,
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,
96,
29364,
121,
21680,
953,
834,
22744,
2534,
549,
17444,
427,
96,
29364,
10052,
535,
3274,
3,
31,
11502,
32,
459,
8953,
32,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the long for the player with 26 carries? | CREATE TABLE table_53198 (
"Player" text,
"Car." real,
"Yards" text,
"Avg." text,
"TD's" real,
"Long" text
) | SELECT "Long" FROM table_53198 WHERE "Car." = '26' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
24151,
41,
96,
15800,
49,
121,
1499,
6,
96,
6936,
535,
490,
6,
96,
476,
986,
7,
121,
1499,
6,
96,
188,
208,
122,
535,
1499,
6,
96,
10494,
31,
7,
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,
96,
434,
2444,
121,
21680,
953,
834,
4867,
24151,
549,
17444,
427,
96,
6936,
535,
3274,
3,
31,
2688,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which province has gmp for an IATA? | CREATE TABLE table_14650 (
"City" text,
"Province/Region" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | SELECT "Province/Region" FROM table_14650 WHERE "IATA" = 'gmp' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
15348,
41,
96,
254,
485,
121,
1499,
6,
96,
3174,
2494,
565,
87,
17748,
23,
106,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
19282,
121,
1499,
6,
96,
15038,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3174,
2494,
565,
87,
17748,
23,
106,
121,
21680,
953,
834,
2534,
15348,
549,
17444,
427,
96,
196,
19282,
121,
3274,
3,
31,
122,
1167,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many touchdowns were scored by William Cole? | CREATE TABLE table_name_88 (
touchdowns VARCHAR,
player VARCHAR
) | SELECT touchdowns FROM table_name_88 WHERE player = "william cole" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
19396,
7,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
19396,
7,
130,
5799,
57,
4599,
16311,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19396,
7,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1959,
3274,
96,
8894,
23,
265,
7632,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How was the native american, Wau-Bau-Ne-Me-Mee, executed? | CREATE TABLE table_name_19 (method VARCHAR, race VARCHAR, name VARCHAR) | SELECT method FROM table_name_19 WHERE race = "native american" AND name = "wau-bau-ne-me-mee" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
23152,
584,
4280,
28027,
6,
1964,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
47,
8,
4262,
10211,
6,
3129,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1964,
3274,
96,
29,
1528,
10211,
121,
3430,
564,
3274,
96,
210,
402,
18,
2635,
18,
29,
15,
18,
526,
18,
526,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.