NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the obverse of the archery coin? | CREATE TABLE table_name_45 (
obverse VARCHAR,
reverse VARCHAR
) | SELECT obverse FROM table_name_45 WHERE reverse = "archery" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
3,
32,
115,
7583,
584,
4280,
28027,
6,
7211,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
32,
115,
7583,
13,
8,
11508,
4203... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
32,
115,
7583,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
7211,
3274,
96,
7064,
4203,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the highest Year, when Finish is '51', and when Start is less than 64? | CREATE TABLE table_name_29 (
year INTEGER,
finish VARCHAR,
start VARCHAR
) | SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
215,
3,
21342,
17966,
6,
1992,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
2929,
6,
116,
17578,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
1992,
3274,
11696,
3430,
456,
3,
2,
6687,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what character did dave ward play | CREATE TABLE table_name_36 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__english_1997___saban_ VARCHAR) | SELECT voice_actor__english_1998___pioneer_ FROM table_name_36 WHERE voice_actor__english_1997___saban_ = "dave ward" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
23235,
834,
9,
5317,
834,
834,
4606,
40,
1273,
834,
2294,
3916,
834,
834,
834,
12364,
15,
49,
834,
584,
4280,
28027,
6,
2249,
834,
9,
5317,
834,
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,
2249,
834,
9,
5317,
834,
834,
4606,
40,
1273,
834,
2294,
3916,
834,
834,
834,
12364,
15,
49,
834,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
2249,
834,
9,
5317,
834,
834,
4606,
40,
1273,
834,
2294,
4327,
8... |
What is the average crowd for Carlton? | CREATE TABLE table_name_59 (crowd INTEGER, away_team VARCHAR) | SELECT AVG(crowd) FROM table_name_59 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
75,
3623,
26,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
4374,
21,
3,
30339,
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,
71,
17217,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest of balmoor/ | CREATE TABLE table_11206787_5 (
highest VARCHAR,
stadium VARCHAR
) | SELECT highest FROM table_11206787_5 WHERE stadium = "Balmoor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1755,
3708,
4225,
834,
755,
41,
2030,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
13,
6561,
21477,
87,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2030,
21680,
953,
834,
2596,
1755,
3708,
4225,
834,
755,
549,
17444,
427,
14939,
3274,
96,
279,
138,
21477,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Location with a Date that is december 10, 1963? | CREATE TABLE table_75747 (
"Date" text,
"Opponent" text,
"Location" text,
"Result" text,
"Overall" text
) | SELECT "Location" FROM table_75747 WHERE "Date" = 'december 10, 1963' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
940,
4177,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23847,
1748,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
3072,
940,
4177,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
10372,
20613,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the name of the townships with 32.222 land | CREATE TABLE table_1912 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | SELECT "Township" FROM table_1912 WHERE "Land ( sqmi )" = '32.222' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2122,
41,
96,
382,
9197,
2009,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
27773,
5,
26118,
121,
490,
6,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
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,
382,
9197,
2009,
121,
21680,
953,
834,
2294,
2122,
549,
17444,
427,
96,
434,
232,
41,
11820,
51,
23,
3,
61,
121,
3274,
3,
31,
2668,
5,
26144,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What party represents the district with john g. jackson? | CREATE TABLE table_3625 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_3625 WHERE "Incumbent" = 'John G. Jackson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
1828,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
121,
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,
13725,
63,
121,
21680,
953,
834,
3420,
1828,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
18300,
350,
5,
7714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the name for henley manchester | CREATE TABLE table_22977424_8 (
name VARCHAR,
promoted_to_league VARCHAR
) | SELECT name FROM table_22977424_8 WHERE promoted_to_league = "Henley Manchester" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4327,
4581,
2266,
834,
927,
41,
564,
584,
4280,
28027,
6,
14742,
834,
235,
834,
29512,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
564,
21,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
2884,
4327,
4581,
2266,
834,
927,
549,
17444,
427,
14742,
834,
235,
834,
29512,
3274,
96,
566,
35,
1306,
9145,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which record has an attendance larger than 28,459? | CREATE TABLE table_name_43 (
record VARCHAR,
attendance INTEGER
) | SELECT record FROM table_name_43 WHERE attendance > 28 OFFSET 459 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1368,
584,
4280,
28027,
6,
11364,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1368,
65,
46,
11364,
2186,
145,
13719,
591,
3390,
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,
1368,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
11364,
2490,
2059,
3,
15316,
20788,
314,
3390,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the population of the year featuring an 87.5% German population? | CREATE TABLE table_name_51 (
population VARCHAR,
germans VARCHAR
) | SELECT population FROM table_name_51 WHERE germans = "87.5%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
2074,
584,
4280,
28027,
6,
13692,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2074,
13,
8,
215,
4767,
46,
3,
4225,
5,
2712... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2074,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
13692,
7,
3274,
96,
4225,
5,
2712,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who did pregame analysis in 2002? | CREATE TABLE table_21833 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Colour commentator(s)" text,
"Sideline reporters" text,
"Pregame host" text,
"Pregame analysts" text
) | SELECT "Pregame analysts" FROM table_21833 WHERE "Year" = '2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
4201,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
9939,
1211,
1670,
1016,
599,
7,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10572,
7261,
15639,
121,
21680,
953,
834,
357,
2606,
4201,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
24898,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Laps have a Driver of satrio hermanto? | CREATE TABLE table_38196 (
"Team" text,
"Driver" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT SUM("Laps") FROM table_38196 WHERE "Driver" = 'satrio hermanto' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
26937,
41,
96,
18699,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
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,
180,
6122,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
3747,
26937,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
7,
9,
1788,
32,
160,
348,
235,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What day in January was the game greater than 49 and had @ Montreal Canadiens as opponents? | CREATE TABLE table_name_70 (january INTEGER, opponent VARCHAR, game VARCHAR) | SELECT SUM(january) FROM table_name_70 WHERE opponent = "@ montreal canadiens" AND game > 49 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
7066,
76,
1208,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
239,
16,
1762,
47,
8,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7066,
76,
1208,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
15264,
3274,
96,
1741,
15826,
138,
27114,
7,
121,
3430,
467,
2490,
9526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was Pablo And jar the opponent? | CREATE TABLE table_name_38 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_38 WHERE opponent = "pablo andújar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
30017,
275,
3,
5670,
8,
15264,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
15264,
3274,
96,
102,
9,
4672,
11,
2,
5670,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many total gold medals did India receive? | CREATE TABLE table_name_10 (
gold VARCHAR,
nation VARCHAR
) | SELECT gold FROM table_name_10 WHERE nation = "india" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
2045,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
2045,
9365,
7,
410,
1547,
911,
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,
2045,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2982,
3274,
96,
8482,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Draw a pie chart for how many registed students do each course have? List course name and the number of their registered students? | CREATE TABLE Courses (
course_id VARCHAR(100),
course_name VARCHAR(120),
course_description VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Students (
student_id INTEGER,
student_details VARCHAR(255)
)
CREATE TABLE Student_Course_Registrations (
student_id INTEGER,
course_id INTEGER,
registration_date DATETIME
)
CREATE TABLE People (
person_id INTEGER,
first_name VARCHAR(255),
middle_name VARCHAR(255),
last_name VARCHAR(255),
cell_mobile_number VARCHAR(40),
email_address VARCHAR(40),
login_name VARCHAR(40),
password VARCHAR(40)
)
CREATE TABLE Student_Course_Attendance (
student_id INTEGER,
course_id INTEGER,
date_of_attendance DATETIME
)
CREATE TABLE Addresses (
address_id INTEGER,
line_1 VARCHAR(80),
line_2 VARCHAR(80),
city VARCHAR(50),
zip_postcode CHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50)
)
CREATE TABLE Candidates (
candidate_id INTEGER,
candidate_details VARCHAR(255)
)
CREATE TABLE People_Addresses (
person_address_id INTEGER,
person_id INTEGER,
address_id INTEGER,
date_from DATETIME,
date_to DATETIME
)
CREATE TABLE Candidate_Assessments (
candidate_id INTEGER,
qualification CHAR(15),
assessment_date DATETIME,
asessment_outcome_code CHAR(15)
) | SELECT course_name, COUNT(*) FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id JOIN Courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
584,
4280,
28027,
599,
2915,
201,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
503,
834,
221,
11830,
584,
4280,
28027,
599,
25502,
201,
119,
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,
503,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
4375,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
3881,
3589,
15,
834,
18752,
1628,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
26,
3274,
332,
4416,
8637... |
Who won the 17 staged event in 1987? | CREATE TABLE table_name_83 (winner VARCHAR, stages VARCHAR, year VARCHAR) | SELECT winner FROM table_name_83 WHERE stages = "17" AND year = "1987" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
3757,
687,
584,
4280,
28027,
6,
6518,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
8,
1003,
1726,
26,
605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4668,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
6518,
3274,
96,
2517,
121,
3430,
215,
3274,
96,
2294,
4225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the score of the game wehre the deportes savio were the home team? | CREATE TABLE table_name_78 (score VARCHAR, home VARCHAR) | SELECT score FROM table_name_78 WHERE home = "deportes savio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
7,
9022,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
3,
15966,
15,
8,
20,
1493,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
234,
3274,
96,
221,
1493,
15,
7,
3,
7,
2960,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many matches were played by the team that has 473 points for? | CREATE TABLE table_name_31 (played VARCHAR, points_for VARCHAR) | SELECT played FROM table_name_31 WHERE points_for = "473" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
4895,
15,
26,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6407,
130,
1944,
57,
8,
372,
24,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1944,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
979,
834,
1161,
3274,
96,
4177,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the record in the competition in which the home team was the Mavericks? | CREATE TABLE table_name_11 (record VARCHAR, home VARCHAR) | SELECT record FROM table_name_11 WHERE home = "mavericks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
60,
7621,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
16,
8,
2259,
16,
84,
8,
234,
372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
234,
3274,
96,
51,
9,
162,
5206,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of the attendance where the score was 1:1? | CREATE TABLE table_name_41 (attendance INTEGER, score VARCHAR) | SELECT SUM(attendance) FROM table_name_41 WHERE score = "1:1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
15116,
663,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
11364,
213,
8,
2604,
47,
19520,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
2604,
3274,
96,
536,
10,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country is Richard Vanquelef from? | CREATE TABLE table_26947 (
"Name" text,
"Position" text,
"Period" text,
"Appearances\u00b9" real,
"Goals\u00b9" real,
"Nationality\u00b2" text
) | SELECT "Nationality\u00b2" FROM table_26947 WHERE "Name" = 'Richard Vanquelef' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3951,
4177,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
9648,
2741,
663,
7,
2,
76,
1206,
115,
1298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
2,
76,
1206,
115,
357,
121,
21680,
953,
834,
357,
3951,
4177,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
448,
362,
986,
4480,
4479,
15,
89,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which vessel area was called for on november 30, 1970 | CREATE TABLE table_4184 (
"#" text,
"Project" text,
"Shipyard" text,
"Laid down" text,
"Launched" text,
"Commissioned" text,
"Status" text
) | SELECT "Shipyard" FROM table_4184 WHERE "Commissioned" = 'November 30, 1970' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
4608,
41,
96,
4663,
121,
1499,
6,
96,
3174,
11827,
121,
1499,
6,
96,
134,
10462,
6636,
121,
1499,
6,
96,
434,
6146,
323,
121,
1499,
6,
96,
3612,
202,
4513,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
10462,
6636,
121,
21680,
953,
834,
4853,
4608,
549,
17444,
427,
96,
5890,
5451,
15,
26,
121,
3274,
3,
31,
28635,
11558,
7434,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients with black/african american ethnicity are diagnosed with pericardiocentesis? | CREATE TABLE diagnoses (
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 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 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND procedures.short_title = "Pericardiocentesis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many purses were there for the mar 16? | CREATE TABLE table_11622771_1 (purse__ VARCHAR, date VARCHAR) | SELECT COUNT(purse__) AS $__ FROM table_11622771_1 WHERE date = "Mar 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
357,
2555,
4450,
834,
536,
41,
3791,
7,
15,
834,
834,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
20717,
7,
130,
132,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3791,
7,
15,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
20159,
357,
2555,
4450,
834,
536,
549,
17444,
427,
833,
3274,
96,
7286,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Friday June 3 practice time of the rider who did 20' 50.45 108.623mph on Thursday, June 2? | CREATE TABLE table_31005 (
"Rank" real,
"Rider" text,
"Mon 30 May" text,
"Tues 31 May" text,
"Wed 1 June" text,
"Thurs 2 June" text,
"Fri 3 June" text
) | SELECT "Fri 3 June" FROM table_31005 WHERE "Thurs 2 June" = '20'' 50.45 108.623mph' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19947,
3076,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
9168,
604,
932,
121,
1499,
6,
96,
382,
76,
15,
7,
2664,
932,
121,
1499,
6,
96,
1326,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
52,
23,
220,
1515,
121,
21680,
953,
834,
19947,
3076,
549,
17444,
427,
96,
8991,
3589,
204,
1515,
121,
3274,
3,
31,
1755,
31,
31,
943,
5,
2128,
3,
16169,
5,
4056,
519,
7656,
31,
1,
-100,
-100,
-100,
-10... |
What is the average No Units, when the Name is Fung Shing Court, and when the No Blocks is fewer than 3? | CREATE TABLE table_name_99 (
no_units INTEGER,
name VARCHAR,
no_blocks VARCHAR
) | SELECT AVG(no_units) FROM table_name_99 WHERE name = "fung shing court" AND no_blocks < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
150,
834,
15129,
7,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
150,
834,
10734,
7,
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,
71,
17217,
599,
29,
32,
834,
15129,
7,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
564,
3274,
96,
9940,
3,
9525,
1614,
121,
3430,
150,
834,
10734,
7,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the average of manager_id over the hire_date bin hire_date by time by a bar chart, and could you list in asc by the y-axis? | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
How many wins did the team with 5 podiums have? | CREATE TABLE table_name_15 (wins VARCHAR, podiums VARCHAR) | SELECT wins FROM table_name_15 WHERE podiums = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
3757,
7,
584,
4280,
28027,
6,
22828,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
9204,
410,
8,
372,
28,
305,
22828,
7,
43,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9204,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
22828,
7,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show party names and the number of events for each party. Visualize by pie chart. | CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
) | SELECT Party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.Party_ID = T2.Party_ID GROUP BY T1.Party_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16,
17,
6,
3271,
1499,
6,
304,
1825,
834,
19632,
1499,
6,
14298,
834,
19632,
1499,
6,
6163,
834,
4309,
16,
17,
6,
3450,
834,
4350,
1499,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3450,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1088,
834,
15,
2169,
7,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
834,
4309,
3274,
332,
4416,
13725,
63,
834,
4309,
350,... |
Mortlake club has more than 924 against, less than 14 losses, and how many total draws? | CREATE TABLE table_name_66 (
draws VARCHAR,
losses VARCHAR,
against VARCHAR,
club VARCHAR
) | SELECT COUNT(draws) FROM table_name_66 WHERE against > 924 AND club = "mortlake" AND losses < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
14924,
584,
4280,
28027,
6,
8467,
584,
4280,
28027,
6,
581,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
19729,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
581,
2490,
668,
2266,
3430,
1886,
3274,
96,
2528,
17,
16948,
121,
3430,
8467,
3,
2,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the episodes which had 1.22 million U.S. viewers? | CREATE TABLE table_73544 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
) | SELECT "Title" FROM table_73544 WHERE "U.S. viewers (in millions)" = '1.22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2469,
3628,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
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,
382,
155,
109,
121,
21680,
953,
834,
940,
2469,
3628,
549,
17444,
427,
96,
1265,
5,
134,
5,
13569,
41,
77,
4040,
61,
121,
3274,
3,
31,
10917,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the person whose country is West Indies. | CREATE TABLE table_name_53 (
name VARCHAR,
country VARCHAR
) | SELECT name FROM table_name_53 WHERE country = "west indies" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
564,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
568,
3,
2544,
684,
19,
1244,
86,
7719,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
684,
3274,
96,
12425,
16,
7719,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
where value world rank is 12, what is the quantity world rank? | CREATE TABLE table_21109892_1 (
quantity_world_rank VARCHAR,
value_world_rank VARCHAR
) | SELECT quantity_world_rank FROM table_21109892_1 WHERE value_world_rank = "12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
17304,
3914,
357,
834,
536,
41,
8708,
834,
7276,
834,
6254,
584,
4280,
28027,
6,
701,
834,
7276,
834,
6254,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
213,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8708,
834,
7276,
834,
6254,
21680,
953,
834,
2658,
17304,
3914,
357,
834,
536,
549,
17444,
427,
701,
834,
7276,
834,
6254,
3274,
96,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In 1939, what was the finish? | CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR) | SELECT finish FROM table_name_89 WHERE year = "1939" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
25535,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
957,
3288,
6,
125,
47,
8,
1992,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1992,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
215,
3274,
96,
2294,
3288,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the HDD capacity for # FDD larger than 0 when FDD capacity is 710kb | CREATE TABLE table_11562 (
"HP Model" text,
"Command Set" text,
"# FDD" real,
"FDD Type" text,
"Sides" text,
"FDD Capacity (each)" text,
"# HDD" real,
"HDD Capacity" text
) | SELECT "HDD Capacity" FROM table_11562 WHERE "# FDD" > '0' AND "FDD Capacity (each)" = '710kb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
4056,
41,
96,
13201,
5154,
121,
1499,
6,
96,
10205,
232,
2821,
121,
1499,
6,
96,
4663,
377,
11253,
121,
490,
6,
96,
371,
11253,
6632,
121,
1499,
6,
96,
134,
9361,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11083,
308,
4000,
9,
6726,
121,
21680,
953,
834,
15660,
4056,
549,
17444,
427,
96,
4663,
377,
11253,
121,
2490,
3,
31,
632,
31,
3430,
96,
371,
11253,
4000,
9,
6726,
41,
15,
1836,
61,
121,
3274,
3,
31,
940,
1... |
What is the earliest day that had a game against the Boston Bruins? | CREATE TABLE table_name_90 (february INTEGER, opponent VARCHAR) | SELECT MIN(february) FROM table_name_90 WHERE opponent = "boston bruins" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
89,
15,
9052,
1208,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
239,
24,
141,
3,
9,
467,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
89,
15,
9052,
1208,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
15264,
3274,
96,
115,
32,
4411,
3,
115,
23162,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which PFF NMCC has a AFC PC of dnq? | CREATE TABLE table_name_50 (pff_nmcc VARCHAR, afc_pc VARCHAR) | SELECT pff_nmcc FROM table_name_50 WHERE afc_pc = "dnq" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
102,
89,
89,
834,
29,
51,
75,
75,
584,
4280,
28027,
6,
3,
9,
89,
75,
834,
102,
75,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
89,
89,
834,
29,
51,
75,
75,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
3,
9,
89,
75,
834,
102,
75,
3274,
96,
26,
29,
1824,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which country has the banglavision Network? | CREATE TABLE table_name_85 (origin_of_programming VARCHAR, network VARCHAR) | SELECT origin_of_programming FROM table_name_85 WHERE network = "banglavision" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
32,
3380,
77,
834,
858,
834,
7050,
53,
584,
4280,
28027,
6,
1229,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
65,
8,
4514,
7002,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5233,
834,
858,
834,
7050,
53,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1229,
3274,
96,
3478,
7002,
6610,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of top-25s for the major that has 11 top-10s? | CREATE TABLE table_name_95 (top_25 VARCHAR, top_10 VARCHAR) | SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
2916,
834,
1828,
584,
4280,
28027,
6,
420,
834,
1714,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
420,
14855,
7,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
420,
834,
1714,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of the week for the Denver Broncos? | CREATE TABLE table_name_60 (week INTEGER, opponent VARCHAR) | SELECT SUM(week) FROM table_name_60 WHERE opponent = "denver broncos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
8041,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
8,
471,
21,
8,
12154,
4027,
29,
509,
7,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
15264,
3274,
96,
537,
624,
3,
13711,
509,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients whose ethnicity is black/haitian and item id is 51108? | 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
)
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND lab.itemid = "51108" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What are the ids and names of the web accelerators that are compatible with two or more browsers? | CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, Name VARCHAR) | SELECT T1.id, T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
30202,
834,
25383,
834,
14853,
7,
49,
41,
6004,
15,
1171,
1016,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
765,
834,
26693,
834,
6004,
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,
332,
5411,
23,
26,
6,
332,
5411,
23954,
21680,
765,
834,
26693,
834,
6004,
15,
1171,
1016,
6157,
332,
536,
3,
15355,
3162,
30202,
834,
25383,
834,
14853,
7,
49,
6157,
332,
357,
9191,
332,
4416,
6004,
15,
1171,
1016,... |
Count the number of regions. | CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions_usd number,
number_deaths number
)
CREATE TABLE region (
region_id number,
region_code text,
region_name text
) | SELECT COUNT(*) FROM region | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4161,
834,
18145,
41,
1719,
834,
23,
26,
381,
6,
5536,
834,
23,
26,
381,
6,
381,
834,
6726,
834,
9,
27488,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5536,
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,
2847,
17161,
599,
1935,
61,
21680,
1719,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For the game played at the Boston Garden with a score of 118-110, what is the opposing team's record? | CREATE TABLE table_45850 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Record" FROM table_45850 WHERE "Location" = 'boston garden' AND "Score" = '118-110' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
17246,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
1649,
7621,
121,
21680,
953,
834,
2128,
17246,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
115,
32,
4411,
2004,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
20056,
18,
19277,
31,
1,
-100,
-100,
-1... |
When did Geelong play as the away team? | CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_31 WHERE away_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
961,
15,
2961,
577,
38,
8,
550,
372,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
550,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the date of the Outback Steakhouse Pro-Am Tournament? | CREATE TABLE table_name_94 (
date VARCHAR,
tournament VARCHAR
) | SELECT date FROM table_name_94 WHERE tournament = "outback steakhouse pro-am" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
833,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
3387,
1549,
3557,
1639,
1840,
749,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
5892,
3274,
96,
670,
1549,
17718,
1840,
813,
18,
265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Rank has a Bronze of 3? | CREATE TABLE table_name_94 (rank VARCHAR, bronze VARCHAR) | SELECT rank FROM table_name_94 WHERE bronze = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
6254,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
22557,
65,
3,
9,
20841,
13,
220,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
13467,
3274,
220,
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... |
What was the score for the loss of McDowell (12-7)? | CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR) | SELECT score FROM table_name_39 WHERE loss = "mcdowell (12-7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
7,
9022,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
1453,
13,
3038,
4135,
2091,
16465,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
1453,
3274,
96,
51,
75,
26,
32,
2091,
16465,
18,
12703,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest attendance for the game that was before week 6 on October 22, 1967? | CREATE TABLE table_name_74 (
attendance INTEGER,
date VARCHAR,
week VARCHAR
) | SELECT MAX(attendance) FROM table_name_74 WHERE date = "october 22, 1967" AND week < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
11364,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
11364,
21,
8,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
12889,
18148,
121,
3430,
471,
3,
2,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide me the number of inpatient hospital admitted patients who have lab test item id 51222. | 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 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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND lab.itemid = "51222" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Show the locations that have at least two performances. | CREATE TABLE performance (LOCATION VARCHAR) | SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
821,
41,
5017,
254,
8015,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
3248,
24,
43,
44,
709,
192,
7357,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
301,
5618,
8015,
21680,
821,
350,
4630,
6880,
272,
476,
301,
5618,
8015,
454,
6968,
2365,
2847,
17161,
599,
1935,
61,
2490,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which builder is associated with ikazuchi 'thunder'? | CREATE TABLE table_33843 (
"Kanji" text,
"Name (Translation)" text,
"Builder" text,
"Laid down" text,
"Launched" text,
"Completed" text
) | SELECT "Builder" FROM table_33843 WHERE "Name (Translation)" = 'ikazuchi "thunder' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3747,
4906,
41,
96,
439,
9,
21391,
121,
1499,
6,
96,
23954,
41,
18474,
6105,
61,
121,
1499,
6,
96,
24752,
49,
121,
1499,
6,
96,
434,
6146,
323,
121,
1499,
6,
96,
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,
24752,
49,
121,
21680,
953,
834,
519,
3747,
4906,
549,
17444,
427,
96,
23954,
41,
18474,
6105,
61,
121,
3274,
3,
31,
5561,
1000,
1436,
96,
189,
7248,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which City has 600kw 500kw ERP (Analog/ Digital)? | CREATE TABLE table_name_41 (city VARCHAR, erp__analog__digital_ VARCHAR) | SELECT city FROM table_name_41 WHERE erp__analog__digital_ = "600kw 500kw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
6726,
584,
4280,
28027,
6,
3,
49,
102,
834,
834,
152,
9,
2152,
834,
834,
9206,
138,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
896... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
3,
49,
102,
834,
834,
152,
9,
2152,
834,
834,
9206,
138,
834,
3274,
96,
6007,
157,
210,
2899,
157,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which name had the circuit Monza? | CREATE TABLE table_12345 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
) | SELECT "Name" FROM table_12345 WHERE "Circuit" = 'monza' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14574,
2128,
41,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
518,
10503,
6774,
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,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
14574,
2128,
549,
17444,
427,
96,
254,
23,
52,
21560,
121,
3274,
3,
31,
2157,
1629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who was hired before 2002-06-21, find hire_date and the amount of hire_date bin hire_date by weekday, and visualize them by a bar chart, I want to list in asc by the total number. | 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY COUNT(HIRE_DATE) | [
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,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
2847,
17161,... |
Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49? | CREATE TABLE table_20476 (
"Headphone Model" text,
"Headphone Class" text,
"Driver-matched dB" text,
"Construction" text,
"Earpads" text,
"Termination" text,
"US MSRP" text
) | SELECT "Headphone Model" FROM table_20476 WHERE "Driver-matched dB" = '0.1' AND "US MSRP" = '$49' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
3959,
41,
96,
3845,
9,
26,
6399,
5154,
121,
1499,
6,
96,
3845,
9,
26,
6399,
4501,
121,
1499,
6,
96,
20982,
52,
18,
10304,
3,
26,
279,
121,
1499,
6,
96,
4302,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
9,
26,
6399,
5154,
121,
21680,
953,
834,
26363,
3959,
549,
17444,
427,
96,
20982,
52,
18,
10304,
3,
26,
279,
121,
3274,
3,
31,
16029,
31,
3430,
96,
3063,
5266,
6294,
121,
3274,
3,
31,
3229,
3647,
31,
1... |
When massachusetts 6th is the district what is the reason for vacancy? | CREATE TABLE table_26656 (
"District" text,
"Vacator" text,
"Reason for Vacancy" text,
"Successor" text,
"Date of successors taking office" text
) | SELECT "Reason for Vacancy" FROM table_26656 WHERE "District" = 'Massachusetts 6th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
4834,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
25203,
1016,
121,
1499,
6,
96,
1649,
9,
739,
21,
3,
25203,
6833,
121,
1499,
6,
96,
134,
17431,
24901,
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,
1649,
9,
739,
21,
3,
25203,
6833,
121,
21680,
953,
834,
357,
3539,
4834,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
27189,
1836,
1074,
17,
17,
7,
431,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
How many bronzes are there for the total nation with 112 silver and a total of 72? | CREATE TABLE table_name_39 (
bronze INTEGER,
silver VARCHAR,
nation VARCHAR
) | SELECT AVG(bronze) FROM table_name_39 WHERE "total" > 72 AND nation = "total" AND silver < 112 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
13467,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13467,
7,
33,
132,
21,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
96,
235,
1947,
121,
2490,
9455,
3430,
2982,
3274,
96,
235,
1947,
121,
3430,
4294,
3,
2,
850,
357,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the original NFL team of the College of Oregon DT Player? | CREATE TABLE table_name_51 (
original_nfl_team VARCHAR,
college VARCHAR,
pos VARCHAR
) | SELECT original_nfl_team FROM table_name_51 WHERE college = "oregon" AND pos = "dt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
926,
834,
29,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
6,
3,
2748,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
29,
89,
40,
834,
11650,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1900,
3274,
96,
127,
15,
5307,
121,
3430,
3,
2748,
3274,
96,
26,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the time for Jean Luc Razakarivony with less than 3 heat and more than 2 lanes? | CREATE TABLE table_name_44 (time VARCHAR, name VARCHAR, heat VARCHAR, lane VARCHAR) | SELECT time FROM table_name_44 WHERE heat < 3 AND lane > 2 AND name = "jean luc razakarivony" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
715,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
1678,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
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,
1,
1,
1... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1678,
3,
2,
220,
3430,
3,
8102,
2490,
204,
3430,
564,
3274,
96,
26459,
3,
11525,
3,
7275,
5667,
5927,
106,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score of the game at the Chicago Stadium? | CREATE TABLE table_name_67 (score VARCHAR, location_attendance VARCHAR) | SELECT score FROM table_name_67 WHERE location_attendance = "chicago stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
7,
9022,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
44,
8,
3715,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
1436,
658,
839,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which position was in 2009? | CREATE TABLE table_name_82 (
position VARCHAR,
year VARCHAR
) | SELECT position FROM table_name_82 WHERE year = 2009 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
1102,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1102,
47,
16,
2464,
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,
1102,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
215,
3274,
2464,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir? | CREATE TABLE table_name_6 (
furtenbacher VARCHAR,
ben_tahir VARCHAR,
liscumb VARCHAR,
lawrance VARCHAR
) | SELECT furtenbacher FROM table_name_6 WHERE liscumb = "6" AND lawrance = "10" AND ben_tahir = "24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
4223,
324,
6425,
49,
584,
4280,
28027,
6,
36,
29,
834,
17,
9,
9288,
584,
4280,
28027,
6,
3,
40,
159,
75,
5937,
584,
4280,
28027,
6,
973,
5219,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4223,
324,
6425,
49,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3,
40,
159,
75,
5937,
3274,
96,
948,
121,
3430,
973,
5219,
3274,
96,
1714,
121,
3430,
36,
29,
834,
17,
9,
9288,
3274,
96,
2266,
121,
1,
-100... |
Where did the wrestler, super parka, with the title with a reign of 2? | CREATE TABLE table_75665 (
"Wrestler" text,
"Reign" text,
"Days held" text,
"Location" text,
"Event" text
) | SELECT "Location" FROM table_75665 WHERE "Wrestler" = 'super parka' AND "Reign" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
3539,
755,
41,
96,
518,
6216,
1171,
121,
1499,
6,
96,
1649,
3191,
121,
1499,
6,
96,
16803,
7,
1213,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
427,
216... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
3072,
3539,
755,
549,
17444,
427,
96,
518,
6216,
1171,
121,
3274,
3,
31,
21771,
2447,
9,
31,
3430,
96,
1649,
3191,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100... |
What's the sum of the attendance for the calgary home team? | CREATE TABLE table_name_23 (attendance INTEGER, home VARCHAR) | SELECT SUM(attendance) FROM table_name_23 WHERE home = "calgary" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
15116,
663,
3,
21342,
17966,
6,
234,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
4505,
13,
8,
11364,
21,
8,
3,
1489,
1478,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
234,
3274,
96,
1489,
1478,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the genre of the game from 2006? | CREATE TABLE table_name_72 (genre VARCHAR, year VARCHAR) | SELECT genre FROM table_name_72 WHERE year = "2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
729,
60,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5349,
13,
8,
467,
45,
3581,
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,
5349,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
215,
3274,
96,
21196,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0? | CREATE TABLE table_32959 (
"Institution" text,
"Government" real,
"Aided" real,
"Unaided" real,
"Total" real
) | SELECT "Institution" FROM table_32959 WHERE "Total" < '13' AND "Government" = '1' AND "Aided" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3166,
3390,
41,
96,
1570,
17448,
121,
1499,
6,
96,
27304,
297,
121,
490,
6,
96,
188,
1599,
26,
121,
490,
6,
96,
5110,
5385,
26,
121,
490,
6,
96,
3696,
1947,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
17448,
121,
21680,
953,
834,
519,
3166,
3390,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
2368,
31,
3430,
96,
27304,
297,
121,
3274,
3,
31,
536,
31,
3430,
96,
188,
1599,
26,
121,
3274,
3,
31,
... |
Compare the frequency of each type of bed by a bar chart. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
) | SELECT bedType, COUNT(bedType) FROM Rooms WHERE decor = "traditional" GROUP BY bedType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1953,
25160,
6,
2847,
17161,
599,
4143,
25160,
61,
21680,
4181,
7,
549,
17444,
427,
4469,
3274,
96,
26374,
121,
350,
4630,
6880,
272,
476,
1953,
25160,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest rank where the distance is 52.73? | CREATE TABLE table_26454128_9 (
rank INTEGER,
distance__metres_ VARCHAR
) | SELECT MAX(rank) FROM table_26454128_9 WHERE distance__metres_ = "52.73" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2128,
4853,
2577,
834,
1298,
41,
11003,
3,
21342,
17966,
6,
2357,
834,
834,
22404,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
2688,
2128,
4853,
2577,
834,
1298,
549,
17444,
427,
2357,
834,
834,
22404,
7,
834,
3274,
96,
5373,
5,
4552,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What city is located in Oklahoma? | CREATE TABLE table_name_67 (
city VARCHAR,
state VARCHAR
) | SELECT city FROM table_name_67 WHERE state = "oklahoma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
690,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
690,
19,
1069,
16,
12157,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
538,
3274,
96,
32,
8142,
10207,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What scores happened on February 9? | CREATE TABLE table_23486853_7 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_23486853_7 WHERE date = "February 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3707,
3651,
4867,
834,
940,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7586,
2817,
30,
2083,
668,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2773,
3707,
3651,
4867,
834,
940,
549,
17444,
427,
833,
3274,
96,
31122,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent for the game played with 54,136 people in attendance? | CREATE TABLE table_name_38 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_38 WHERE attendance = "54,136" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
21,
8,
467,
1944,
28,
10630,
6,
23459,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
11364,
3274,
96,
5062,
6,
23459,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the maximum number of blocks where rebounds equal 35? | CREATE TABLE table_19722664_5 (
blocks INTEGER,
rebounds VARCHAR
) | SELECT MAX(blocks) FROM table_19722664_5 WHERE rebounds = 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
5865,
2688,
4389,
834,
755,
41,
6438,
3,
21342,
17966,
6,
3,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
381,
13,
6438,
213,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10734,
7,
61,
21680,
953,
834,
2294,
5865,
2688,
4389,
834,
755,
549,
17444,
427,
3,
23768,
3274,
3097,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Opponent has an Attendance of bye? | CREATE TABLE table_name_76 (
opponent VARCHAR,
attendance VARCHAR
) | SELECT opponent FROM table_name_76 WHERE attendance = "bye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4495,
9977,
65,
46,
22497,
663,
13,
57,
15,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
11364,
3274,
96,
969,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Papers that use the WebKB dataset | CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
) | SELECT DISTINCT paper.paperid FROM dataset, paper, paperdataset WHERE dataset.datasetname = 'WebKB' AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
41,
2291,
23,
26,
16,
17,
6,
2291,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
1846,
41,
1057,
23,
26,
16,
17,
6,
1040,
23,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
5,
19587,
23,
26,
21680,
17953,
6,
1040,
6,
1040,
6757,
2244,
549,
17444,
427,
17953,
5,
6757,
2244,
4350,
3274,
3,
31,
15805,
17827,
31,
3430,
1040,
6757,
2244,
5,
6757,
2244,
23,
26,
... |
What is the census division for the name Stratford? | CREATE TABLE table_24234 (
"Name" text,
"Municipal status" text,
"Census division" text,
"Population (2011)" real,
"Population (2006)" real,
"Change (%)" text,
"Area (km\u00b2)" text,
"Population density" text
) | SELECT "Census division" FROM table_24234 WHERE "Name" = 'Stratford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
357,
3710,
41,
96,
23954,
121,
1499,
6,
96,
329,
202,
1294,
6459,
2637,
121,
1499,
6,
96,
254,
35,
7,
302,
4889,
121,
1499,
6,
96,
27773,
7830,
25163,
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,
96,
254,
35,
7,
302,
4889,
121,
21680,
953,
834,
2266,
357,
3710,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
19928,
2590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
At what venue was the game played where the away team was South Melbourne | CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_49 WHERE away_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
5669,
47,
8,
467,
1944,
213,
8,
550,
372,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3647,
549,
17444,
427,
550,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the procedure long title and for how many days did subject id 76446 stay in the hospital? | 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 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT demographic.days_stay, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "76446" | [
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,
14798,
5,
1135,
7,
834,
21545,
6,
4293,
5,
2961,
834,
21869,
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,
427,
14798,
5,... |
Who had the high assist total on january 8? | CREATE TABLE table_27734286_7 (high_assists VARCHAR, date VARCHAR) | SELECT high_assists FROM table_27734286_7 WHERE date = "January 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4552,
4165,
3840,
834,
940,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
2094,
792... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2555,
4552,
4165,
3840,
834,
940,
549,
17444,
427,
833,
3274,
96,
30404,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
On what date was there an International Friendly competition? | CREATE TABLE table_5277 (
"Date" text,
"Result" text,
"Score" text,
"Brazil scorers" text,
"Competition" text
) | SELECT "Date" FROM table_5277 WHERE "Competition" = 'international friendly' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
4013,
41,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
279,
7275,
173,
14056,
277,
121,
1499,
6,
96,
5890,
4995,
4749,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
5373,
4013,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
27817,
2609,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most points for South Ossetia? | CREATE TABLE table_6848 (
"Rank" real,
"Country" text,
"Claimant" text,
"Highest point" text,
"Height" text
) | SELECT "Highest point" FROM table_6848 WHERE "Country" = 'south ossetia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3707,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
254,
521,
603,
288,
121,
1499,
6,
96,
21417,
222,
500,
121,
1499,
6,
96,
3845,
2632,
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,
21417,
222,
500,
121,
21680,
953,
834,
3651,
3707,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
7,
670,
107,
3,
13526,
17,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What time does Dustin Byfuglien have in 1st period? | CREATE TABLE table_65208 (
"Period" text,
"Team" text,
"Player" text,
"Penalty" text,
"Time" text
) | SELECT "Time" FROM table_65208 WHERE "Period" = '1st' AND "Player" = 'dustin byfuglien' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
23946,
41,
96,
12988,
23,
32,
26,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
35,
2920,
63,
121,
1499,
6,
96,
13368,
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,
13368,
121,
21680,
953,
834,
4122,
23946,
549,
17444,
427,
96,
12988,
23,
32,
26,
121,
3274,
3,
31,
536,
7,
17,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
8655,
17,
77,
57,
14165,
10487,
31,
1,
-100,
-100,
... |
How many years did barclay nordica arrows bmw enter with a bmw str-4 t/c engine with less than 1 point? | CREATE TABLE table_name_98 (
year INTEGER,
points VARCHAR,
engine VARCHAR,
entrant VARCHAR
) | SELECT SUM(year) FROM table_name_98 WHERE engine = "bmw str-4 t/c" AND entrant = "barclay nordica arrows bmw" AND points < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
215,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
1948,
3274,
96,
29471,
5765,
4278,
3,
17,
87,
75,
121,
3430,
3,
295,
3569,
3274,
96,
1047,
4651,
63,
9532,
2617,
3,
6770,
7,
3,
29471,
... |
Name the number of processors for october 2006 - january 2010 | CREATE TABLE table_27765443_2 (no_of_processors VARCHAR, period_of_operation VARCHAR) | SELECT no_of_processors FROM table_27765443_2 WHERE period_of_operation = "October 2006 - January 2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3959,
5062,
4906,
834,
357,
41,
29,
32,
834,
858,
834,
15056,
127,
7,
584,
4280,
28027,
6,
1059,
834,
858,
834,
22280,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
150,
834,
858,
834,
15056,
127,
7,
21680,
953,
834,
2555,
3959,
5062,
4906,
834,
357,
549,
17444,
427,
1059,
834,
858,
834,
22280,
3274,
96,
28680,
3581,
3,
18,
1762,
2735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the amount of oil terminal in 2004? | CREATE TABLE table_name_51 (
product VARCHAR
) | SELECT 2004 FROM table_name_51 WHERE product = "oil terminal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
556,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
866,
13,
1043,
7213,
16,
4406,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4406,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
556,
3274,
96,
32,
173,
7213,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was launched and laid down in February 1819? | CREATE TABLE table_40494 (
"Name" text,
"Built by HM Dockyard" text,
"Ordered" text,
"Laid down" text,
"Launched" text
) | SELECT "Launched" FROM table_40494 WHERE "Laid down" = 'february 1819' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25285,
4240,
41,
96,
23954,
121,
1499,
6,
96,
7793,
173,
17,
57,
3,
20611,
22314,
6636,
121,
1499,
6,
96,
7395,
26,
3737,
121,
1499,
6,
96,
434,
6146,
323,
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,
3612,
202,
4513,
121,
21680,
953,
834,
25285,
4240,
549,
17444,
427,
96,
434,
6146,
323,
121,
3274,
3,
31,
89,
15,
9052,
1208,
507,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Election, when 2nd Party is 'Conservative', and when First Member is 'Edmund Antrobus'? | CREATE TABLE table_60191 (
"Election" text,
"First member" text,
"1st Party" text,
"Second member" text,
"2nd Party" text
) | SELECT "Election" FROM table_60191 WHERE "2nd Party" = 'conservative' AND "First member" = 'edmund antrobus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
2294,
536,
41,
96,
427,
12252,
121,
1499,
6,
96,
25171,
1144,
121,
1499,
6,
96,
536,
7,
17,
3450,
121,
1499,
6,
96,
134,
15,
1018,
26,
1144,
121,
1499,
6,
96,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
12252,
121,
21680,
953,
834,
3328,
2294,
536,
549,
17444,
427,
96,
357,
727,
3450,
121,
3274,
3,
31,
1018,
3473,
1528,
31,
3430,
96,
25171,
1144,
121,
3274,
3,
31,
15,
26,
51,
1106,
3,
288,
5840,
302,
3... |
Name the Place of seve ballesteros? | CREATE TABLE table_name_35 (
place VARCHAR,
player VARCHAR
) | SELECT place FROM table_name_35 WHERE player = "seve ballesteros" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
286,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3399,
13,
142,
162,
1996,
2613,
1859,
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,
286,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
1959,
3274,
96,
7,
15,
162,
1996,
2613,
1859,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Score has a Visitor of atlanta? | CREATE TABLE table_name_72 (score VARCHAR, visitor VARCHAR) | SELECT score FROM table_name_72 WHERE visitor = "atlanta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
7,
9022,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
4957,
127,
13,
44,
6761,
9,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
7019,
3274,
96,
144,
6761,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When playing at the Kardinia Park; what was the home teams score? | CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_39 WHERE venue = "kardinia park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
1556,
44,
8,
4556,
2644,
23,
9,
1061,
117,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
5669,
3274,
96,
4031,
2644,
23,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the time/retired for riccardo patrese | CREATE TABLE table_name_70 (time_retired VARCHAR, driver VARCHAR) | SELECT time_retired FROM table_name_70 WHERE driver = "riccardo patrese" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
97,
87,
10682,
1271,
21,
3,
2234,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
2535,
3274,
96,
2234,
6043,
32,
6234,
60,
7,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the ACL qualification when the minor ladder position is 5th and the finals qualifications were DNQ? | CREATE TABLE table_13697 (
"Season" text,
"Teams" real,
"Minor Ladder Position" text,
"Finals Qualification" text,
"Final Ladder Position" text,
"ACL Qualification" text,
"ACL Placing" text
) | SELECT "ACL Qualification" FROM table_13697 WHERE "Finals Qualification" = 'dnq' AND "Minor Ladder Position" = '5th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
4327,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18699,
7,
121,
490,
6,
96,
12858,
127,
325,
26,
588,
14258,
121,
1499,
6,
96,
371,
10270,
7,
31270,
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,
188,
8440,
31270,
121,
21680,
953,
834,
23459,
4327,
549,
17444,
427,
96,
371,
10270,
7,
31270,
121,
3274,
3,
31,
26,
29,
1824,
31,
3430,
96,
12858,
127,
325,
26,
588,
14258,
121,
3274,
3,
31,
755,
189,
31,
... |
What was the score for the game in which Al-Qadsia was Team 2? | CREATE TABLE table_77075 (
"Season" real,
"Team 1" text,
"Score" text,
"Team 2" text,
"Venue" text
) | SELECT "Score" FROM table_77075 WHERE "Team 2" = 'al-qadsia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26920,
3072,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18699,
209,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
553,
35,
76,
15,
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,
134,
9022,
121,
21680,
953,
834,
26920,
3072,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
138,
18,
1824,
9,
26,
7,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the country for hideki noda category:articles with hcards | CREATE TABLE table_22756 (
"Name" text,
"Country" text,
"Seasons" text,
"Championship Titles" text,
"Race entries (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points" text
) | SELECT "Country" FROM table_22756 WHERE "Name" = 'Hideki Noda Category:Articles with hCards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2555,
4834,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
15,
9,
6577,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
11029,
7,
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,
10628,
651,
121,
21680,
953,
834,
357,
2555,
4834,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
566,
1599,
2168,
465,
26,
9,
17459,
10,
7754,
447,
965,
28,
3,
107,
6936,
26,
7,
31,
1,
-100,
-100,
-100,
-100... |
Return a bar chart about the distribution of meter_200 and the amount of meter_200 , and group by attribute meter_200, and list by the bar in descending. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
) | SELECT meter_200, COUNT(meter_200) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
1499,
6,
27813,
935,
834,
4309,
16,
17,
6,
8042,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4401,
834,
3632,
6,
2847,
17161,
599,
4401,
834,
3632,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
3,
4401,
834,
3632,
4674,
11300,
272,
476,
3,
4401,
834,
3632,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
Who lost at schaefer stadium when the Winner was new england patriots, and a Date of october 18? | CREATE TABLE table_36643 (
"Year" real,
"Date" text,
"Winner" text,
"Result" text,
"Loser" text,
"Location" text
) | SELECT "Loser" FROM table_36643 WHERE "Location" = 'schaefer stadium' AND "Winner" = 'new england patriots' AND "Date" = 'october 18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
4389,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
434,
32,
7,
49,
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,
434,
32,
7,
49,
121,
21680,
953,
834,
3420,
4389,
519,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
860,
9,
15,
1010,
14939,
31,
3430,
96,
18455,
687,
121,
3274,
3,
31,
5534,
3,
4606,
40,
232,
... |
what is the number of patients whose procedure short title is closed bronchial biopsy? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Closed bronchial biopsy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
For those employees who did not have any job in the past, give me the trend about commission_pct over hire_date , display in desc by the X-axis. | 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)
)
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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,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)
) | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309,
21680... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.