NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
does grand junction or montrose have more stations ? | CREATE TABLE table_203_657 (
id number,
"call sign" text,
"frequency" text,
"city of license" text,
"licensee" text,
"format" text
) | SELECT "city of license" FROM table_203_657 WHERE "city of license" IN ('grand junction', 'montrose') GROUP BY "city of license" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
948,
3436,
41,
3,
23,
26,
381,
6,
96,
16482,
1320,
121,
1499,
6,
96,
30989,
121,
1499,
6,
96,
6726,
13,
3344,
121,
1499,
6,
96,
28062,
15,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6726,
13,
3344,
121,
21680,
953,
834,
23330,
834,
948,
3436,
549,
17444,
427,
96,
6726,
13,
3344,
121,
3388,
41,
31,
15448,
23704,
31,
6,
3,
31,
4662,
8115,
31,
61,
350,
4630,
6880,
272,
476,
96,
6726,
13,
3... |
In which venue did 0 pens and 1 try occur? | CREATE TABLE table_name_70 (venue VARCHAR, pens VARCHAR, tries VARCHAR) | SELECT venue FROM table_name_70 WHERE pens = "0" AND tries = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
15098,
584,
4280,
28027,
6,
3,
3801,
584,
4280,
28027,
6,
3,
9000,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
84,
5669,
410,
3,
632,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
3,
3801,
3274,
96,
632,
121,
3430,
3,
9000,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the coach with a w-l% greater than 0.516, a first yr before 1925, a yr plyf greater than 2, and a last yr in 1967? | CREATE TABLE table_name_51 (
coach VARCHAR,
last_yr VARCHAR,
yr_plyf VARCHAR,
w_l_percentage VARCHAR,
first_yr VARCHAR
) | SELECT coach FROM table_name_51 WHERE w_l_percentage > 0.516 AND first_yr < 1925 AND yr_plyf > 2 AND last_yr = 1967 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
3763,
584,
4280,
28027,
6,
336,
834,
63,
52,
584,
4280,
28027,
6,
3,
63,
52,
834,
102,
120,
89,
584,
4280,
28027,
6,
3,
210,
834,
40,
834,
883,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3763,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3,
210,
834,
40,
834,
883,
3728,
545,
2490,
3,
12100,
2938,
3430,
166,
834,
63,
52,
3,
2,
28484,
3430,
3,
63,
52,
834,
102,
120,
89,
2490,
204,
3430,
336,... |
Name the Date and an Opponent which has a f Position and Career Games of 123 games? | CREATE TABLE table_name_4 (date_and_opponent VARCHAR, position VARCHAR, career_games VARCHAR) | SELECT date_and_opponent FROM table_name_4 WHERE position = "f" AND career_games = "123 games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
5522,
834,
232,
834,
32,
102,
9977,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1415,
834,
7261,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
834,
232,
834,
32,
102,
9977,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
1102,
3274,
96,
89,
121,
3430,
1415,
834,
7261,
7,
3274,
96,
14574,
1031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the home team with Liverpool as the away? | CREATE TABLE table_name_76 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_76 WHERE away_team = "liverpool" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
234,
372,
28,
15131,
38,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7591,
52,
13194,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which candidates are from the Missouri 3 district? | CREATE TABLE table_712 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_712 WHERE "District" = 'Missouri 3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
357,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
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,
14050,
12416,
6203,
121,
21680,
953,
834,
4450,
357,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
329,
159,
7,
32,
459,
220,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the all games for Maryland? | CREATE TABLE table_16372244_1 (
all_games VARCHAR,
team VARCHAR
) | SELECT all_games FROM table_16372244_1 WHERE team = "Maryland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4118,
2884,
3628,
834,
536,
41,
66,
834,
7261,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
66,
1031,
21,
10271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
66,
834,
7261,
7,
21680,
953,
834,
2938,
4118,
2884,
3628,
834,
536,
549,
17444,
427,
372,
3274,
96,
7286,
28900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What cargo was contained in a ship size of aframax? | CREATE TABLE table_42584 (
"Ship size" text,
"Cargo" text,
"2004" text,
"2005" text,
"2006" text
) | SELECT "Cargo" FROM table_42584 WHERE "Ship size" = 'aframax' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1828,
4608,
41,
96,
134,
10462,
812,
121,
1499,
6,
96,
6936,
839,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
3,
61,
3,
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,
6936,
839,
121,
21680,
953,
834,
591,
1828,
4608,
549,
17444,
427,
96,
134,
10462,
812,
121,
3274,
3,
31,
9,
89,
10819,
226,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what Date was the 2011 LG Cup Competittion? | CREATE TABLE table_name_46 (
date VARCHAR,
competition VARCHAR
) | SELECT date FROM table_name_46 WHERE competition = "2011 lg cup" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
833,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
47,
8,
2722,
13444,
3802,
24797,
155,
1575,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
2259,
3274,
96,
13907,
3,
40,
122,
4119,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the name of project that continues for the longest time. | CREATE TABLE projects (
name VARCHAR,
hours VARCHAR
) | SELECT name FROM projects ORDER BY hours DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
564,
584,
4280,
28027,
6,
716,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
564,
13,
516,
24,
3256,
21,
8,
14783,
97,
5,
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,
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,
564,
21680,
1195,
4674,
11300,
272,
476,
716,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many caps for mike macdonald? | CREATE TABLE table_name_30 (
caps INTEGER,
player VARCHAR
) | SELECT SUM(caps) FROM table_name_30 WHERE player = "mike macdonald" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
16753,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
16753,
21,
3,
20068,
15,
11486,
26,
9533,
26,
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,
180,
6122,
599,
4010,
7,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
1959,
3274,
96,
20068,
15,
11486,
26,
9533,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which rank has a total smaller than 1? | CREATE TABLE table_57010 (
"Rank" real,
"Country" text,
"Continent" text,
"Summer Olympics" text,
"Winter Olympics" text,
"Total" real
) | SELECT AVG("Rank") FROM table_57010 WHERE "Total" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
1714,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
16798,
295,
121,
1499,
6,
96,
134,
440,
935,
17793,
121,
1499,
6,
96,
518,
3870,
17793,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
28363,
1714,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Team of the Fullback Player? | CREATE TABLE table_14028 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Team" FROM table_14028 WHERE "Position" = 'fullback' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
2577,
41,
96,
345,
3142,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
22012,
2577,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
1329,
40,
1549,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What shows for IATA for the City of sapporo? | CREATE TABLE table_name_89 (
iata VARCHAR,
city VARCHAR
) | SELECT iata FROM table_name_89 WHERE city = "sapporo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
3,
17221,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
27,
19282,
21,
8,
896,
13,
3,
7,
3096,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17221,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
690,
3274,
96,
7,
3096,
127,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Years in Orlando has a School/Club Team of seattle? | CREATE TABLE table_name_16 (
years_in_orlando VARCHAR,
school_club_team VARCHAR
) | SELECT years_in_orlando FROM table_name_16 WHERE school_club_team = "seattle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
203,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
13825,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
834,
77,
834,
32,
7721,
32,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
7,
15,
9,
8692,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of apartment bookings for each year and bin booking start date by year interval in a bar chart, and I want to order in desc by the Y-axis. | CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
) | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id ORDER BY COUNT(booking_start_date) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
13355,
53,
7,
41,
3,
6789,
834,
2567,
53,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3886,
834,
23,
26,
3,
21342,
17966,
6,
5038,
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,
5038,
834,
10208,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
10208,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
3,
22360,
6157,
332,
357,
9191,
332,
5411,
15991,
17,
834,
23,
... |
What is the name of the stadium which held the most events? | CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR) | SELECT t1.name FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4350,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
2427,
12925,
834,
23,
26,
584,
4280,
28027,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17,
5411,
4350,
21680,
14939,
6157,
3,
17,
536,
3,
15355,
3162,
605,
6157,
3,
17,
357,
9191,
3,
17,
5411,
23,
26,
3274,
3,
17,
4416,
2427,
12925,
834,
23,
26,
350,
4630,
6880,
272,
476,
3,
17,
4416,
2427,
1... |
On September 25, 1994 what was the final score? | CREATE TABLE table_name_33 (
score_in_the_final VARCHAR,
date VARCHAR
) | SELECT score_in_the_final FROM table_name_33 WHERE date = "september 25, 1994" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
2604,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
1600,
14105,
7520,
125,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
14105,
7520,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average finish that has 24 as the start, with a year after 1987? | CREATE TABLE table_name_89 (
finish INTEGER,
start VARCHAR,
year VARCHAR
) | SELECT AVG(finish) FROM table_name_89 WHERE start = 24 AND year > 1987 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
1992,
3,
21342,
17966,
6,
456,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1992,
24,
65,
997,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25535,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
456,
3274,
997,
3430,
215,
2490,
12701,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Score when Donyell Marshall (26) had the high points? | CREATE TABLE table_name_20 (score VARCHAR, high_points VARCHAR) | SELECT score FROM table_name_20 WHERE high_points = "donyell marshall (26)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
7,
9022,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
116,
1008,
63,
3820,
17410,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
2029,
63,
3820,
8113,
11516,
4743,
10938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000? | CREATE TABLE table_name_60 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) | SELECT city_of_license FROM table_name_60 WHERE frequency_mhz = 102.3 AND erp_w < 1 OFFSET 000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
6726,
834,
858,
834,
28062,
584,
4280,
28027,
6,
7321,
834,
51,
107,
172,
584,
4280,
28027,
6,
3,
49,
102,
834,
210,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
690,
834,
858,
834,
28062,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
7321,
834,
51,
107,
172,
3274,
335,
18561,
3430,
3,
49,
102,
834,
210,
3,
2,
209,
3,
15316,
20788,
6078,
1,
-100,
-100,
-100,
-100,
-10... |
What is the record for june 10? | CREATE TABLE table_name_28 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_28 WHERE date = "june 10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1368,
21,
3,
6959,
15,
335,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
833,
3274,
96,
6959,
15,
335,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average number of years on learners of the drivers over the age of 24 with less than 0 attempts at the licence test? | CREATE TABLE table_74588 (
"Learner driver" text,
"Partner" text,
"Driver's Age" real,
"Years on learners" real,
"Licence test attempts" real,
"Passed Yet" text
) | SELECT AVG("Years on learners") FROM table_74588 WHERE "Driver's Age" > '24' AND "Licence test attempts" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2128,
4060,
41,
96,
2796,
291,
687,
2535,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
20982,
52,
31,
7,
7526,
121,
490,
6,
96,
476,
2741,
7,
30,
15257,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
7,
30,
15257,
8512,
21680,
953,
834,
940,
2128,
4060,
549,
17444,
427,
96,
20982,
52,
31,
7,
7526,
121,
2490,
3,
31,
2266,
31,
3430,
96,
434,
447,
1433,
794,
9048,
121,
3,
2,
3,
... |
Compute the average price of all products with manufacturer code equal to 2. | CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
) | SELECT AVG(price) FROM products WHERE manufacturer = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5360,
41,
1081,
381,
6,
564,
1499,
6,
819,
19973,
1499,
6,
7174,
1499,
6,
3751,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
1081,
381,
6,
564,
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,
71,
17217,
599,
102,
4920,
61,
21680,
494,
549,
17444,
427,
4818,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show school id vs all_games_percent as scatter plot use a different color for each ACC_Regular_Season | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY ACC_Regular_Season | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
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,
1121,
834,
4309,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the actor's name for escho raz o voyne | CREATE TABLE table_31813 (
"Nomination" text,
"Actor's Name" text,
"Film Name" text,
"Director" text,
"Country" text
) | SELECT "Actor's Name" FROM table_31813 WHERE "Film Name" = 'escho raz o voyne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2606,
2368,
41,
96,
4168,
14484,
121,
1499,
6,
96,
188,
5317,
31,
7,
5570,
121,
1499,
6,
96,
371,
173,
51,
5570,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
5317,
31,
7,
5570,
121,
21680,
953,
834,
519,
2606,
2368,
549,
17444,
427,
96,
371,
173,
51,
5570,
121,
3274,
3,
31,
15,
7,
3995,
3,
7275,
3,
32,
3,
9845,
29,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Compare the total salary by each hire date (bin it into the day of week interval) of employees using a bar chart, display from low to high by the y-axis. | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
) | SELECT HIRE_DATE, SUM(SALARY) FROM employees ORDER BY SUM(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
4674,
11300,
272,
476,
180,
6122,
599,
134,
4090,
24721,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the current status of the KDAF ** Station? | CREATE TABLE table_1353096_2 (
current_status VARCHAR,
station VARCHAR
) | SELECT current_status FROM table_1353096_2 WHERE station = "KDAF **" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
26918,
4314,
834,
357,
41,
750,
834,
8547,
302,
584,
4280,
28027,
6,
2478,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
750,
2637,
13,
8,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
834,
8547,
302,
21680,
953,
834,
2368,
26918,
4314,
834,
357,
549,
17444,
427,
2478,
3274,
96,
439,
4296,
371,
14011,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest Wins, when Percent is 0.000, when School is Oklahoma State, and when Appearances is less than 1? | CREATE TABLE table_name_67 (
wins INTEGER,
appearances VARCHAR,
percent VARCHAR,
school VARCHAR
) | SELECT MAX(wins) FROM table_name_67 WHERE percent = "0.000" AND school = "oklahoma state" AND appearances < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
9204,
3,
21342,
17966,
6,
3179,
7,
584,
4280,
28027,
6,
1093,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1093,
3274,
96,
5311,
121,
3430,
496,
3274,
96,
32,
8142,
10207,
9,
538,
121,
3430,
3179,
7,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-1... |
Who played Peter Pan in the 1990 Broadway? | CREATE TABLE table_16038 (
"Character" text,
"1954 Broadway" text,
"1955 broadcast" text,
"1960 broadcast" text,
"1979 Broadway" text,
"1990 Broadway" text,
"1991 Broadway" text,
"1998 Broadway" text,
"1999 Broadway" text
) | SELECT "1990 Broadway" FROM table_16038 WHERE "Character" = 'Peter Pan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
3747,
41,
96,
18947,
2708,
49,
121,
1499,
6,
96,
2294,
5062,
17963,
121,
1499,
6,
96,
2294,
3769,
6878,
121,
1499,
6,
96,
2294,
3328,
6878,
121,
1499,
6,
96,
2294,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2294,
2394,
17963,
121,
21680,
953,
834,
19129,
3747,
549,
17444,
427,
96,
18947,
2708,
49,
121,
3274,
3,
31,
345,
15,
449,
4266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the minimum total with kerry % being 16.71% | CREATE TABLE table_13606924_1 (total INTEGER, kerry__percentage VARCHAR) | SELECT MIN(total) FROM table_13606924_1 WHERE kerry__percentage = "16.71%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3328,
3951,
2266,
834,
536,
41,
235,
1947,
3,
21342,
17966,
6,
3,
2304,
651,
834,
834,
883,
3728,
545,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
2368,
3328,
3951,
2266,
834,
536,
549,
17444,
427,
3,
2304,
651,
834,
834,
883,
3728,
545,
3274,
96,
536,
29045,
4704,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
fasting blood glucose < 100 mg / dl ( 5.6 mmol / l ) | CREATE TABLE table_test_14 (
"id" int,
"bleeding" int,
"intra_aortic_balloon_pump_iabp" bool,
"systolic_blood_pressure_sbp" int,
"haemoglobin" float,
"severe_hypertension" bool,
"platelets" int,
"neutrophil_count" int,
"renal_disease" bool,
"severe_thrombocytopenia" bool,
"fasting_blood_glucose_fbg" float,
"creatinine_clearance_cl" float,
"neutropenia" int,
"estimated_glomerular_filtration_rate_egfr" int,
"cardiogenic_shock" bool,
"platelet_count" float,
"iv_pressors" bool,
"hemodynamic_instability" bool,
"diastolic_blood_pressure_dbp" int,
"cr" int,
"low_density_lipoprotein_ldl_cholesterol" int,
"NOUSE" float
) | SELECT * FROM table_test_14 WHERE fasting_blood_glucose_fbg < 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
2534,
41,
96,
23,
26,
121,
16,
17,
6,
96,
27779,
53,
121,
16,
17,
6,
96,
20322,
9,
834,
9,
127,
1225,
834,
3184,
32,
106,
834,
4987,
1167,
834,
23,
9,
115,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
2534,
549,
17444,
427,
1006,
53,
834,
27798,
834,
13492,
509,
7,
15,
834,
89,
115,
122,
3,
2,
910,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the smallest amount of earnings when the wins are less than 72 and the rank is more than 3? | CREATE TABLE table_name_87 (earnings___ INTEGER, wins VARCHAR, rank VARCHAR) | SELECT MIN(earnings___) AS $__ FROM table_name_87 WHERE wins < 72 AND rank > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
2741,
29,
53,
7,
834,
834,
834,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
2741,
29,
53,
7,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
9204,
3,
2,
9455,
3430,
11003,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the listed for the bridge at Daniel in Sublette county? | CREATE TABLE table_76879 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text
) | SELECT "Listed" FROM table_76879 WHERE "County" = 'sublette' AND "Location" = 'daniel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3651,
4440,
41,
96,
23954,
121,
1499,
6,
96,
7793,
173,
17,
121,
1499,
6,
96,
28886,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
63,
121,
1499,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
28886,
121,
21680,
953,
834,
940,
3651,
4440,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
7304,
15529,
31,
3430,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
26,
2738,
15,
40,
31,
1,
-100,
-100,
-100,
-100,... |
When was the ensemble closed that went on air in June 2003? | CREATE TABLE table_4488 (
"Region" text,
"Operator" text,
"Licence award date" text,
"On air date" text,
"Closure date" text
) | SELECT "Closure date" FROM table_4488 WHERE "On air date" = 'june 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
4060,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
667,
883,
1016,
121,
1499,
6,
96,
434,
447,
1433,
2760,
833,
121,
1499,
6,
96,
7638,
799,
833,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
2298,
1462,
833,
121,
21680,
953,
834,
3628,
4060,
549,
17444,
427,
96,
7638,
799,
833,
121,
3274,
3,
31,
6959,
15,
3888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which apartments have unit status availability of both 0 and 1? Return their apartment numbers. | CREATE TABLE view_unit_status (
apt_id number,
apt_booking_id number,
status_date time,
available_yn others
)
CREATE TABLE apartment_buildings (
building_id number,
building_short_name text,
building_full_name text,
building_description text,
building_address text,
building_manager text,
building_phone text
)
CREATE TABLE apartment_bookings (
apt_booking_id number,
apt_id number,
guest_id number,
booking_status_code text,
booking_start_date time,
booking_end_date time
)
CREATE TABLE guests (
guest_id number,
gender_code text,
guest_first_name text,
guest_last_name text,
date_of_birth time
)
CREATE TABLE apartment_facilities (
apt_id number,
facility_code text
)
CREATE TABLE apartments (
apt_id number,
building_id number,
apt_type_code text,
apt_number text,
bathroom_count number,
bedroom_count number,
room_count text
) | SELECT T1.apt_number FROM apartments AS T1 JOIN view_unit_status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM apartments AS T1 JOIN view_unit_status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
903,
834,
15129,
834,
8547,
302,
41,
3,
6789,
834,
23,
26,
381,
6,
3,
6789,
834,
2567,
53,
834,
23,
26,
381,
6,
2637,
834,
5522,
97,
6,
347,
834,
63,
29,
717,
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,
332,
5411,
6789,
834,
5525,
1152,
21680,
10424,
6157,
332,
536,
3,
15355,
3162,
903,
834,
15129,
834,
8547,
302,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
3274,
332,
4416,
6789,
834,
23,
26,
549,
17444,
42... |
how many teams finished below 3 minutes and 3 seconds ? | CREATE TABLE table_203_160 (
id number,
"rank" number,
"heat" number,
"nation" text,
"competitors" text,
"time" text,
"notes" text
) | SELECT COUNT("nation") FROM table_203_160 WHERE "time" < 3 OR ("time" = 3 AND "time" < 3) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
19129,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
88,
144,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
287,
19427,
127,
7,
121,
1499,
6,
96,
715,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
29,
257,
8512,
21680,
953,
834,
23330,
834,
19129,
549,
17444,
427,
96,
715,
121,
3,
2,
220,
4674,
13308,
715,
121,
3274,
220,
3430,
96,
715,
121,
3,
2,
3,
5268,
1,
-100,
-100,
-100,
-100,
... |
2001 of 2–4 was in which tournament? | CREATE TABLE table_name_2 (tournament VARCHAR) | SELECT tournament FROM table_name_2 WHERE 2001 = "2–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4402,
13,
204,
104,
591,
47,
16,
84,
5892,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
4402,
3274,
96,
357,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where was the match held on July 17, 1999? | CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_43 WHERE date = "july 17, 1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
15098,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
1588,
1213,
30,
1718,
12864,
5247,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
833,
3274,
96,
2047,
120,
12864,
5247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when did patient 027-4309 get discharged from the hospital until 1 year ago for the first time? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) | SELECT patient.hospitaldischargetime FROM patient WHERE patient.uniquepid = '027-4309' AND DATETIME(patient.hospitaldischargetime) <= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaldischargetime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
26,
159,
7993,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2555,
18,
4906,
4198,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
26,
159,
7993,
715,
61,
3... |
List all winning scores from 1982. | CREATE TABLE table_224616_1 (winners_score VARCHAR, year VARCHAR) | SELECT winners_score FROM table_224616_1 WHERE year = 1982 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4448,
2938,
834,
536,
41,
3757,
687,
7,
834,
7,
9022,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
3447,
7586,
45,
14505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8969,
834,
7,
9022,
21680,
953,
834,
2884,
4448,
2938,
834,
536,
549,
17444,
427,
215,
3274,
14505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the HDTV when documentaries are the content? | CREATE TABLE table_name_84 (hdtv VARCHAR, content VARCHAR) | SELECT hdtv FROM table_name_84 WHERE content = "documentaries" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
107,
26,
17,
208,
584,
4280,
28027,
6,
738,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3726,
4562,
116,
1708,
5414,
33,
8,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
26,
17,
208,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
738,
3274,
96,
28244,
5414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of apps of the player with more than 63 goals and an avge of 0.45? | CREATE TABLE table_name_55 (
apps INTEGER,
goals VARCHAR,
avge VARCHAR
) | SELECT MAX(apps) FROM table_name_55 WHERE goals > 63 AND avge = 0.45 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
4050,
3,
21342,
17966,
6,
1766,
584,
4280,
28027,
6,
3,
9,
208,
397,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
3096,
7,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1766,
2490,
3,
3891,
3430,
3,
9,
208,
397,
3274,
4097,
2128,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest possible level? | CREATE TABLE table_21781 (
"Level" real,
"Shuttles" real,
"Cumulative Shuttles" real,
"Speed (km/h)" text,
"Shuttle Time (seconds)" text,
"Total level time (s)" text,
"Distance (m)" real,
"Cumulative Distance (m)" real,
"Cumulative Time (min and seconds)" text
) | SELECT MAX("Level") FROM table_21781 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
4959,
41,
96,
25465,
121,
490,
6,
96,
134,
13985,
17,
965,
121,
490,
6,
96,
15784,
4115,
1528,
28099,
7,
121,
490,
6,
96,
28328,
41,
5848,
87,
107,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
25465,
8512,
21680,
953,
834,
357,
2517,
4959,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
the 1984 paralympics had a total ranking of 5th , in what other year did the ranking fall above 6th ? | CREATE TABLE table_204_374 (
id number,
"event" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number,
"ranking" text
) | SELECT "event" FROM table_204_374 WHERE "event" <> '1984 winter paralympics' AND "ranking" < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
4581,
41,
3,
23,
26,
381,
6,
96,
15,
2169,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
121,
381,
6,
96,
235,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15,
2169,
121,
21680,
953,
834,
26363,
834,
519,
4581,
549,
17444,
427,
96,
15,
2169,
121,
3,
2,
3155,
3,
31,
2294,
4608,
2265,
3856,
120,
51,
6174,
7,
31,
3430,
96,
6254,
53,
121,
3,
2,
431,
1,
-100,
-100... |
Where did Bob Murphy of the United States place? | CREATE TABLE table_name_74 (place VARCHAR, country VARCHAR, player VARCHAR) | SELECT place FROM table_name_74 WHERE country = "united states" AND player = "bob murphy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
4687,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
5762,
16212,
13,
8,
907,
1323,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
17396,
9593,
6941,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Opponent is on 29 september 1997? | CREATE TABLE table_name_70 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_70 WHERE date = "29 september 1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
32,
102,
9977,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
19,
30,
2838,
16022,
18247,
6622,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
833,
3274,
96,
3166,
16022,
18247,
6622,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the score of the 2nd leg when Newell's Old Boys played at home? | CREATE TABLE table_name_19 (
home__2nd_leg_ VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_19 WHERE home__2nd_leg_ = "newell's old boys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
234,
834,
834,
357,
727,
834,
5772,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
204,
727,
4553,
116,
368,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
234,
834,
834,
357,
727,
834,
5772,
834,
3274,
96,
29,
15,
2091,
31,
7,
625,
5234,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the sockets associated with a brand name of Core i3-3xx0m? | CREATE TABLE table_26911 (
"Codename (main article)" text,
"Brand name (list)" text,
"Cores" real,
"L3 Cache" text,
"Socket" text,
"TDP" text,
"I/O Bus" text
) | SELECT "Socket" FROM table_26911 WHERE "Brand name (list)" = 'Core i3-3xx0M' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3951,
2596,
41,
96,
22737,
4350,
41,
7484,
1108,
61,
121,
1499,
6,
96,
18304,
727,
564,
41,
3350,
61,
121,
1499,
6,
96,
254,
14846,
121,
490,
6,
96,
434,
519,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5231,
8849,
17,
121,
21680,
953,
834,
357,
3951,
2596,
549,
17444,
427,
96,
18304,
727,
564,
41,
3350,
61,
121,
3274,
3,
31,
13026,
15,
3,
23,
519,
3486,
19230,
632,
329,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What label does Germany have? | CREATE TABLE table_name_24 (label VARCHAR, region VARCHAR) | SELECT label FROM table_name_24 WHERE region = "germany" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
40,
10333,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3783,
405,
3434,
43,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3783,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1719,
3274,
96,
1304,
348,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose language is span and lab test name is alkaline phosphatase? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.language = "SPAN" AND lab.label = "Alkaline Phosphatase" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the street address for the Prudential Tower building? | CREATE TABLE table_51943 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft (m)" text,
"Floors" real
) | SELECT "Street address" FROM table_51943 WHERE "Name" = 'prudential tower' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2294,
4906,
41,
96,
23954,
121,
1499,
6,
96,
11500,
15,
15,
17,
1115,
121,
1499,
6,
96,
476,
2741,
7,
38,
5065,
222,
121,
1499,
6,
96,
3845,
2632,
3,
89,
17,
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,
11500,
15,
15,
17,
1115,
121,
21680,
953,
834,
755,
2294,
4906,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
12129,
26,
7220,
7293,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which player had a conference of PAC-10 and position of G? | CREATE TABLE table_name_56 (player VARCHAR, conf VARCHAR, pos VARCHAR) | SELECT player FROM table_name_56 WHERE conf = "pac-10" AND pos = "g" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
20846,
584,
4280,
28027,
6,
3,
9707,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
141,
3,
9,
2542,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3,
9707,
3274,
96,
5379,
4536,
121,
3430,
3,
2748,
3274,
96,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the margin of victory on Apr 23, 1967? | CREATE TABLE table_74729 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Margin of victory" FROM table_74729 WHERE "Date" = 'apr 23, 1967' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4177,
3166,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
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,
7286,
122,
77,
13,
6224,
121,
21680,
953,
834,
940,
4177,
3166,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
102,
52,
12992,
18148,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
calculate the number of patients admitted on phys referral/normal deli who remained admitted in hospital for 26 days. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.days_stay = "26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
8023,
476,
134,
4083,
20805,
21415,
87,
24833,
329,
4090,
309,
22590,
121,
3430,
14798,
5,
1135,
7,
... |
Who played the bass for the Against the Grain album after 1982? | CREATE TABLE table_46847 (
"Year" real,
"Album" text,
"Vocals" text,
"Bass" text,
"Drums" text,
"Label" text
) | SELECT "Bass" FROM table_46847 WHERE "Year" > '1982' AND "Album" = 'against the grain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
4177,
41,
96,
476,
2741,
121,
490,
6,
96,
25691,
440,
121,
1499,
6,
96,
553,
32,
1489,
7,
121,
1499,
6,
96,
14885,
7,
121,
1499,
6,
96,
308,
2781,
7,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14885,
7,
121,
21680,
953,
834,
591,
3651,
4177,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4613,
31,
3430,
96,
25691,
440,
121,
3274,
3,
31,
9,
16720,
7,
17,
8,
8273,
31,
1,
-100,
-100,
-100,
... |
What driver went 14 rounds with a 193 Chassis? | CREATE TABLE table_name_55 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR) | SELECT driver FROM table_name_55 WHERE chassis = "193" AND rounds = "14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
13739,
52,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
6,
14419,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2535,
877,
968,
14419,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2535,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
22836,
3274,
96,
2294,
519,
121,
3430,
14419,
3274,
96,
2534,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which date has an A venue with an Opponent of stoke city? | CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
5522,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
46,
71,
5669,
28,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
5669,
3274,
96,
9,
121,
3430,
15264,
3274,
96,
7,
235,
1050,
690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
besides brad bryant , who was the other runner up in the 1982 miller high life qco ? | CREATE TABLE table_203_473 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
) | SELECT "runner(s)-up" FROM table_203_473 WHERE "date" = 1982 AND "runner(s)-up" <> 'brad bryant' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4177,
519,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
121,
1499,
6,
96,
8163,
2604,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10806,
599,
7,
61,
18,
413,
121,
21680,
953,
834,
23330,
834,
4177,
519,
549,
17444,
427,
96,
5522,
121,
3274,
14505,
3430,
96,
10806,
599,
7,
61,
18,
413,
121,
3,
2,
3155,
3,
31,
1939,
26,
6397,
63,
288,
... |
What is the Record of the game with a Result of l 14–16? | CREATE TABLE table_name_82 (record VARCHAR, result VARCHAR) | SELECT record FROM table_name_82 WHERE result = "l 14–16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
60,
7621,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11392,
13,
8,
467,
28,
3,
9,
3,
20119,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
741,
3274,
96,
40,
968,
104,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who played as the away team when they played at Brunswick Street Oval? | CREATE TABLE table_name_73 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_73 WHERE venue = "brunswick street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1944,
38,
8,
550,
372,
116,
79,
1944,
44,
29980,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
5669,
3274,
96,
9052,
29,
7,
5981,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose ethnicity is hispanic or latino and drug name is ambisome? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND prescriptions.drug = "Ambisome" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What was the score for Peter Lonard? | CREATE TABLE table_name_97 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_97 WHERE player = "peter lonard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
2737,
301,
106,
986,
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,
2604,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1959,
3274,
96,
4995,
49,
3,
40,
106,
986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If north melbourne played as the home team, who was the away team they played? | CREATE TABLE table_name_93 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_93 WHERE home_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
3457,
3,
2341,
26255,
1944,
38,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
234,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What shows for Set 5 when the Total was 77 - 65? | CREATE TABLE table_43375 (
"Date" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Set 4" text,
"Set 5" text,
"Total" text
) | SELECT "Set 5" FROM table_43375 WHERE "Total" = '77 - 65' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
22954,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
17175,
220,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17175,
3,
17395,
21680,
953,
834,
4906,
22954,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
4013,
3,
18,
7123,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What position has a pick less than 25 for the university of california? | CREATE TABLE table_name_44 (
position VARCHAR,
pick VARCHAR,
school VARCHAR
) | SELECT position FROM table_name_44 WHERE pick < 25 AND school = "university of california" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
65,
3,
9,
1432,
705,
145,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1432,
3,
2,
944,
3430,
496,
3274,
96,
7846,
485,
13,
3,
15534,
1161,
29,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the Jockey for guadalcanal? | CREATE TABLE table_name_52 (jockey VARCHAR, horse VARCHAR) | SELECT jockey FROM table_name_52 WHERE horse = "guadalcanal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
1927,
75,
4397,
584,
4280,
28027,
6,
4952,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2194,
75,
4397,
21,
3,
1744,
9,
26,
138,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8624,
4397,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
4952,
3274,
96,
1744,
9,
26,
138,
1608,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What position did Marty Gateman play? | CREATE TABLE table_1473672_5 (position VARCHAR, player VARCHAR) | SELECT position FROM table_1473672_5 WHERE player = "Marty Gateman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
3420,
5865,
834,
755,
41,
4718,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
410,
11163,
63,
11118,
348,
577,
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,
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,
1102,
21680,
953,
834,
24719,
3420,
5865,
834,
755,
549,
17444,
427,
1959,
3274,
96,
7286,
17,
63,
11118,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many different constructors had Paul Thiel as a winning driver? | CREATE TABLE table_1140114_5 (constructor VARCHAR, winning_driver VARCHAR) | SELECT COUNT(constructor) FROM table_1140114_5 WHERE winning_driver = "Paul Thiel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2445,
18959,
834,
755,
41,
15982,
5317,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
315,
6774,
127,
7,
141... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15982,
5317,
61,
21680,
953,
834,
2596,
2445,
18959,
834,
755,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
23183,
332,
16219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT PLAYER HAS A PICK SMALLER THAN 110, AND DUKE AS COLLEGE? | CREATE TABLE table_name_97 (
player VARCHAR,
pick VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_97 WHERE pick < 110 AND college = "duke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
1959,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
17501,
476,
3316,
454,
3291,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
1432,
3,
2,
11190,
3430,
1900,
3274,
96,
1259,
1050,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Losing bonus, when the value for Points is 43? | CREATE TABLE table_name_61 (losing_bonus VARCHAR, points VARCHAR) | SELECT losing_bonus FROM table_name_61 WHERE points = "43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
2298,
53,
834,
5407,
302,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3144,
53,
4023,
6,
116,
8,
701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5489,
834,
5407,
302,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
979,
3274,
96,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the total number of races for 15th position | CREATE TABLE table_24466191_1 (races VARCHAR, position VARCHAR) | SELECT COUNT(races) FROM table_24466191_1 WHERE position = "15th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4448,
4241,
4729,
834,
536,
41,
12614,
7,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
10879,
21,
627,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
12614,
7,
61,
21680,
953,
834,
2266,
4448,
4241,
4729,
834,
536,
549,
17444,
427,
1102,
3274,
96,
1808,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Show the number of cards in different card type code in a bar chart. | CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
) | SELECT card_type_code, COUNT(card_type_code) FROM Customers_Cards GROUP BY card_type_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
23,
26,
3,
21342,
17966,
6,
884,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
1755,
201,
884,
834,
5064,
834,
4350,
584,
4280,
28027,
599,
1755,
201,
884,
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,
895,
834,
6137,
834,
4978,
6,
2847,
17161,
599,
6043,
834,
6137,
834,
4978,
61,
21680,
16423,
834,
6936,
26,
7,
350,
4630,
6880,
272,
476,
895,
834,
6137,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the location for 2-1 record | CREATE TABLE table_23192661_3 (
location VARCHAR,
record VARCHAR
) | SELECT location FROM table_23192661_3 WHERE record = "2-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2294,
2688,
4241,
834,
519,
41,
1128,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1128,
21,
3,
17234,
1368,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2773,
2294,
2688,
4241,
834,
519,
549,
17444,
427,
1368,
3274,
96,
17234,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the zip code in which the average mean visibility is lower than 10. | CREATE TABLE weather (zip_code VARCHAR, mean_visibility_miles INTEGER) | SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_visibility_miles) < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1969,
41,
13453,
834,
4978,
584,
4280,
28027,
6,
1243,
834,
3466,
11102,
834,
8770,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
10658,
1081,
16,
84,
8,
1348,
1243,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10658,
834,
4978,
21680,
1969,
350,
4630,
6880,
272,
476,
10658,
834,
4978,
454,
6968,
2365,
71,
17217,
599,
526,
152,
834,
3466,
11102,
834,
8770,
7,
61,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the sum of Pick #, when College is Laurier? | CREATE TABLE table_name_79 (
pick__number INTEGER,
college VARCHAR
) | SELECT SUM(pick__number) FROM table_name_79 WHERE college = "laurier" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8356,
1713,
6,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1900,
3274,
96,
521,
459,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Pos has a Team of circle bar racing, and a Car # smaller than 14? | CREATE TABLE table_name_64 (pos INTEGER, team VARCHAR, car__number VARCHAR) | SELECT MAX(pos) FROM table_name_64 WHERE team = "circle bar racing" AND car__number < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
2748,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
443,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
13995,
65,
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,
4800,
4,
599,
2748,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
372,
3274,
96,
15776,
109,
1207,
8191,
121,
3430,
443,
834,
834,
5525,
1152,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the total number of patients who had icd9 code 4601 | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.icd9_code = "4601" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the total number of picks for the position of OL? | CREATE TABLE table_52041 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT SUM("Pick #") FROM table_52041 WHERE "Position" = 'ol' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25356,
4853,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
345,
3142,
1713,
8512,
21680,
953,
834,
25356,
4853,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
32,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the date of death and discharge time of the patient id 94762? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.dod, demographic.dischtime FROM demographic WHERE demographic.subject_id = "94762" | [
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,
26,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4240,
3959,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who was hired before 2002-06-21, show me about the distribution of job_id and the sum of employee_id , and group by attribute job_id in a bar chart, and I want to order JOB_ID in asc order. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
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... |
How many figures for votes Khuzestan were there when the percentage was 34.50? | CREATE TABLE table_22237 (
"Candidates" text,
"Votes Khuzestan" real,
"% of votes Khuzestan" text,
"Votes Nationally" real,
"% of votes nationally" text
) | SELECT COUNT("Votes Khuzestan") FROM table_22237 WHERE "% of votes Khuzestan" = '34.50' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
4118,
41,
96,
14050,
12416,
6203,
121,
1499,
6,
96,
553,
32,
1422,
13495,
10953,
5627,
121,
490,
6,
96,
1454,
13,
11839,
13495,
10953,
5627,
121,
1499,
6,
96,
553,
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,
2847,
17161,
599,
121,
553,
32,
1422,
13495,
10953,
5627,
8512,
21680,
953,
834,
26144,
4118,
549,
17444,
427,
96,
1454,
13,
11839,
13495,
10953,
5627,
121,
3274,
3,
31,
3710,
5,
1752,
31,
1,
-100,
-100,
-100,
-100,
... |
Name the open cup for usl pdl for did not qualify | CREATE TABLE table_2365150_1 (open_cup VARCHAR, league VARCHAR, playoffs VARCHAR) | SELECT open_cup FROM table_2365150_1 WHERE league = "USL PDL" AND playoffs = "Did not qualify" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
10402,
12278,
834,
536,
41,
8751,
834,
4658,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
15289,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
539,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
539,
834,
4658,
21680,
953,
834,
357,
10402,
12278,
834,
536,
549,
17444,
427,
5533,
3274,
96,
3063,
434,
276,
10013,
121,
3430,
15289,
7,
3274,
96,
308,
23,
26,
59,
9448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
After 1979, where was the European Indoor Championships held? | CREATE TABLE table_name_27 (
venue VARCHAR,
competition VARCHAR,
year VARCHAR
) | SELECT venue FROM table_name_27 WHERE competition = "european indoor championships" AND year > 1979 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
5669,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
621,
15393,
6,
213,
47,
8,
1611,
254... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
2259,
3274,
96,
28188,
152,
5297,
10183,
7,
121,
3430,
215,
2490,
15393,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the game that had a record of 26 13 4 2 and a decision of Joseph? | CREATE TABLE table_name_24 (
score VARCHAR,
decision VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_24 WHERE decision = "joseph" AND record = "26–13–4–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
2604,
584,
4280,
28027,
6,
1357,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
1357,
3274,
96,
1927,
7,
15,
102,
107,
121,
3430,
1368,
3274,
96,
2688,
104,
2368,
104,
591,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the original title of Madame Rosa? | CREATE TABLE table_68612 (
"Year" text,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
) | SELECT "Original title" FROM table_68612 WHERE "English title" = 'madame rosa' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4241,
357,
41,
96,
476,
2741,
121,
1499,
6,
96,
26749,
2233,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
23620,
127,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
667,
3380,
10270,
2233,
121,
21680,
953,
834,
3651,
4241,
357,
549,
17444,
427,
96,
26749,
2233,
121,
3274,
3,
31,
11374,
265,
15,
3,
1859,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many districts does Ed Jones represent? | CREATE TABLE table_1341718_43 (
district VARCHAR,
incumbent VARCHAR
) | SELECT COUNT(district) FROM table_1341718_43 WHERE incumbent = "Ed Jones" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2517,
2606,
834,
4906,
41,
3939,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14126,
405,
4857,
6193,
4221,
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,
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,
26,
23,
20066,
61,
21680,
953,
834,
23747,
2517,
2606,
834,
4906,
549,
17444,
427,
28406,
3274,
96,
427,
26,
6193,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many schools have more than one title ? | CREATE TABLE table_203_502 (
id number,
"team" text,
"titles" number,
"runner-up" number,
"third place" number,
"fourth place" number,
"years participated" number
) | SELECT COUNT("team") FROM table_203_502 WHERE "titles" > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
357,
41,
3,
23,
26,
381,
6,
96,
11650,
121,
1499,
6,
96,
21869,
7,
121,
381,
6,
96,
10806,
18,
413,
121,
381,
6,
96,
14965,
286,
121,
381,
6,
96,
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,
2847,
17161,
599,
121,
11650,
8512,
21680,
953,
834,
23330,
834,
1752,
357,
549,
17444,
427,
96,
21869,
7,
121,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
provide the number of patients who are diagnosed with wegener's granulomatosis and have sc route of drug administration. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Wegener's granulomatosis" AND prescriptions.route = "SC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the average Round for wide receiver r. jay soward and Overall smaller than 29? | CREATE TABLE table_name_16 (
round INTEGER,
overall VARCHAR,
position VARCHAR,
name VARCHAR
) | SELECT AVG(round) FROM table_name_16 WHERE position = "wide receiver" AND name = "r. jay soward" AND overall < 29 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1751,
3,
21342,
17966,
6,
1879,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
564,
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,
1,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1102,
3274,
96,
6728,
11487,
121,
3430,
564,
3274,
96,
52,
5,
2662,
63,
78,
2239,
121,
3430,
1879,
3,
2,
2838,
1,
-100,
-100,
-100,
-100... |
When was the episode with a 999,000 BARB rating first aired in Denmark? | CREATE TABLE table_73979 (
"Episode" real,
"First broadcast Denmark ( DR1 )" text,
"Official TNS Gallup ratings" real,
"First broadcast UK ( BBC Four )" text,
"Official BARB ratings" text
) | SELECT "First broadcast Denmark ( DR1 )" FROM table_73979 WHERE "Official BARB ratings" = '999,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3288,
4440,
41,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
25171,
6878,
18001,
41,
3,
3913,
536,
3,
61,
121,
1499,
6,
96,
667,
89,
22816,
332,
7369,
10987,
413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25171,
6878,
18001,
41,
3,
3913,
536,
3,
61,
121,
21680,
953,
834,
940,
3288,
4440,
549,
17444,
427,
96,
667,
89,
22816,
8145,
12108,
9712,
121,
3274,
3,
31,
3264,
23938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver? | CREATE TABLE table_57543 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Constructor" FROM table_57543 WHERE "Time/Retired" = 'collision' AND "Grid" < '18' AND "Driver" = 'nick heidfeld' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
5062,
519,
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,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
7593,
127,
121,
21680,
953,
834,
3436,
5062,
519,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
75,
20953,
1938,
31,
3430,
96,
13313,
26,
121,
3,
2,
3,
31,
2606,
31,
3430,
96,
2098... |
What is the lowest amount of draws club ud l rida, which has less than 41 goals, has? | CREATE TABLE table_7860 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT MIN("Draws") FROM table_7860 WHERE "Club" = 'ud lérida' AND "Goals for" < '41' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
3328,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
10936,
7,
8512,
21680,
953,
834,
3940,
3328,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
76,
26,
3,
40,
5134,
26,
9,
31,
3430,
96,
6221,
5405,
21,
121,
3,
2,
3,
31,
4853,
31,
... |
Name the week for kingdome | CREATE TABLE table_14520977_1 (
week VARCHAR,
location VARCHAR
) | SELECT week FROM table_14520977_1 WHERE location = "Kingdome" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
357,
4198,
4013,
834,
536,
41,
471,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
471,
21,
14740,
15,
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,
471,
21680,
953,
834,
20987,
357,
4198,
4013,
834,
536,
549,
17444,
427,
1128,
3274,
96,
439,
53,
5012,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
On what date was the ship with a Pennant number of Q144 commissioned? | CREATE TABLE table_39486 (
"Name" text,
"Pennant number" text,
"Ordered" real,
"Builder" text,
"Commissioned" text
) | SELECT "Commissioned" FROM table_39486 WHERE "Pennant number" = 'q144' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
591,
3840,
41,
96,
23954,
121,
1499,
6,
96,
345,
35,
29,
288,
381,
121,
1499,
6,
96,
7395,
26,
3737,
121,
490,
6,
96,
24752,
49,
121,
1499,
6,
96,
5890,
5451,
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,
5890,
5451,
15,
26,
121,
21680,
953,
834,
3288,
591,
3840,
549,
17444,
427,
96,
345,
35,
29,
288,
381,
121,
3274,
3,
31,
1824,
20885,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the To par of Willie MacFarlane from the country of Scotland? | CREATE TABLE table_name_17 (to_par VARCHAR, country VARCHAR, name VARCHAR) | SELECT to_par FROM table_name_17 WHERE country = "scotland" AND name = "willie macfarlane" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
235,
834,
1893,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
13,
2003... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
684,
3274,
96,
7,
4310,
40,
232,
121,
3430,
564,
3274,
96,
8894,
23,
15,
11486,
5544,
8102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the course name of courses sorted by credits. | CREATE TABLE COURSE (CName VARCHAR, Credits VARCHAR) | SELECT CName FROM COURSE ORDER BY Credits | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
205,
9131,
4132,
41,
254,
23954,
584,
4280,
28027,
6,
6529,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
503,
564,
13,
2996,
3,
14504,
57,
11893,
5,
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,
205,
23954,
21680,
205,
9131,
4132,
4674,
11300,
272,
476,
6529,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For teams with 7 wins, what is the number of goals against? | CREATE TABLE table_name_36 (goals_against VARCHAR, wins VARCHAR) | SELECT goals_against FROM table_name_36 WHERE wins = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
839,
5405,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
2323,
28,
489,
9204,
6,
125,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1766,
834,
9,
16720,
7,
17,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
9204,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose diagnoses short title is urinary incontinence nos? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Urinary incontinence NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the result of the last 5 meetings for a team with an L 1 streak? | CREATE TABLE table_name_85 (
last_5_meetings VARCHAR,
current_streak VARCHAR
) | SELECT last_5_meetings FROM table_name_85 WHERE current_streak = "l 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
336,
834,
755,
834,
526,
15,
1222,
7,
584,
4280,
28027,
6,
750,
834,
7,
929,
1639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
336,
834,
755,
834,
526,
15,
1222,
7,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
750,
834,
7,
929,
1639,
3274,
96,
40,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.