NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which week had the highest attendance with 58,701? | CREATE TABLE table_name_77 (
week INTEGER,
attendance VARCHAR
) | SELECT MAX(week) FROM table_name_77 WHERE attendance = "58,701" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
471,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
471,
141,
8,
2030,
11364,
28,
3,
3449,
6,
2518,
536,
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,
4800,
4,
599,
8041,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
11364,
3274,
96,
3449,
6,
2518,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many losses had a total of 17 and more than 10 wins? | CREATE TABLE table_name_94 (
losses VARCHAR,
total VARCHAR,
wins VARCHAR
) | SELECT COUNT(losses) FROM table_name_94 WHERE total = 17 AND wins > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
8467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8467,
141,
3,
9,
792,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2298,
2260,
61,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
792,
3274,
1003,
3430,
9204,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the first names of all students in Smith Hall? | CREATE TABLE lives_in (
stuid number,
dormid number,
room_number number
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
)
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
ge... | SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1342,
834,
77,
41,
21341,
23,
26,
381,
6,
103,
52,
6983,
381,
6,
562,
834,
5525,
1152,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
103,
52,
51,
834,
9,
904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
89,
4350,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
1342,
834,
77,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7,
17,
76,
23,
26,
3,
15355,
3162,
103,
52,
51,
6157,
332,
... |
who has the highest rank ? | CREATE TABLE table_204_169 (
id number,
"athlete" text,
"event" text,
"race 1\ntime" text,
"race 2\ntime" text,
"total\ntime" text,
"total\nrank" number
) | SELECT "athlete" FROM table_204_169 ORDER BY "total\nrank" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
27096,
41,
3,
23,
26,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
15,
2169,
121,
1499,
6,
96,
12614,
209,
2,
29,
715,
121,
1499,
6,
96,
12614,
204,
2,
29,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26170,
15,
121,
21680,
953,
834,
26363,
834,
27096,
4674,
11300,
272,
476,
96,
235,
1947,
2,
29,
6254,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Games Started are there for Hugh White ? | CREATE TABLE table_14342210_13 (
games_started VARCHAR,
player VARCHAR
) | SELECT games_started FROM table_14342210_13 WHERE player = "Hugh White" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
15239,
834,
2368,
41,
1031,
834,
3624,
1054,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5880,
2042,
1054,
33,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1031,
834,
3624,
1054,
21680,
953,
834,
25133,
4165,
15239,
834,
2368,
549,
17444,
427,
1959,
3274,
96,
566,
14439,
1945,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many rounds were fought with opponent Kevin Roddy? | CREATE TABLE table_name_54 (
round VARCHAR,
opponent VARCHAR
) | SELECT COUNT(round) FROM table_name_54 WHERE opponent = "kevin roddy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
1751,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
130,
3,
13973,
28,
15264,
8595,
2158,
8155,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
15264,
3274,
96,
1050,
2494,
6102,
26,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Qual 2, when Best is 1:27.642? | CREATE TABLE table_name_27 (
qual_2 VARCHAR,
best VARCHAR
) | SELECT qual_2 FROM table_name_27 WHERE best = "1:27.642" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
3,
11433,
834,
357,
584,
4280,
28027,
6,
200,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2415,
138,
3547,
116,
1648,
19,
209,
10,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
11433,
834,
357,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
200,
3274,
96,
536,
10,
2555,
5,
4389,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the sarasota samantha sharpe | CREATE TABLE table_17085724_1 (sarasota VARCHAR, indianapolis_concerts VARCHAR) | SELECT sarasota FROM table_17085724_1 WHERE indianapolis_concerts = "Samantha Sharpe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4018,
3436,
2266,
834,
536,
41,
7,
2551,
7,
32,
17,
9,
584,
4280,
28027,
6,
16,
8603,
9,
15621,
834,
11620,
52,
17,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
7,
2551,
7,
32,
17,
9,
21680,
953,
834,
2517,
4018,
3436,
2266,
834,
536,
549,
17444,
427,
16,
8603,
9,
15621,
834,
11620,
52,
17,
7,
3274,
96,
134,
9,
348,
189,
9,
22130,
15,
121,
1,
-100,
-100,
-100,
-100... |
What is Class, when Part 2 is "blétu"? | CREATE TABLE table_name_15 (class VARCHAR, part_3 VARCHAR) | SELECT class FROM table_name_15 WHERE part_3 = "blétu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
4057,
584,
4280,
28027,
6,
294,
834,
519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
4501,
6,
116,
2733,
204,
19,
96,
21027,
17,
76,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
294,
834,
519,
3274,
96,
21027,
17,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which year has the Co-singer solo and a Film name of bhagya debata? | CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR) | SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
1201,
3,
21342,
17966,
6,
576,
834,
7,
9963,
584,
4280,
28027,
6,
814,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
215,
65,
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,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
576,
834,
7,
9963,
3274,
96,
4099,
32,
121,
3430,
814,
834,
4350,
3274,
96,
115,
1024,
122,
63,
9,
20,
3697,
9,
121,
1,
-100,
-100,
-10... |
Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure? | CREATE TABLE table_358 (
"Launch Vehicle" text,
"Launch date" text,
"Mission" text,
"Institutional authority" text,
"Launch site" text,
"Results" text
) | SELECT "Launch site" FROM table_358 WHERE "Mission" = 'Test Mission: war heads and Missile payload' AND "Results" = 'Partial Failure' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3449,
41,
96,
3612,
202,
524,
15095,
121,
1499,
6,
96,
3612,
202,
524,
833,
121,
1499,
6,
96,
329,
159,
1938,
121,
1499,
6,
96,
9496,
6318,
5015,
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,
3612,
202,
524,
353,
121,
21680,
953,
834,
519,
3449,
549,
17444,
427,
96,
329,
159,
1938,
121,
3274,
3,
31,
382,
222,
8960,
10,
615,
7701,
11,
5964,
699,
726,
7134,
31,
3430,
96,
20119,
7,
121,
3274,
3,
31,... |
What was the score of the game played when the team was 16-17? | CREATE TABLE table_17104539_12 (score VARCHAR, record VARCHAR) | SELECT score FROM table_17104539_12 WHERE record = "16-17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
1714,
2128,
3288,
834,
2122,
41,
7,
9022,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
467,
1944,
116,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
2517,
1714,
2128,
3288,
834,
2122,
549,
17444,
427,
1368,
3274,
96,
2938,
10794,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the player for pick of 145 | CREATE TABLE table_4356 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text
) | SELECT "Player" FROM table_4356 WHERE "Pick" = '145' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4834,
41,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
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,
0,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4906,
4834,
549,
17444,
427,
96,
345,
3142,
121,
3274,
3,
31,
20987,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of the show with director Paul Annett? | CREATE TABLE table_28148 (
"Total #" real,
"Series #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original airdate" text
) | SELECT "Title" FROM table_28148 WHERE "Director" = 'Paul Annett' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
24748,
41,
96,
3696,
1947,
1713,
121,
490,
6,
96,
12106,
7,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2577,
24748,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
23183,
389,
10544,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which territory has a channel of 144 and a broadcaster of Astro? | CREATE TABLE table_name_23 (territory VARCHAR, channel VARCHAR, broadcaster VARCHAR) | SELECT territory FROM table_name_23 WHERE channel = 144 AND broadcaster = "astro" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
17,
21301,
10972,
584,
4280,
28027,
6,
4245,
584,
4280,
28027,
6,
6878,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9964,
65,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9964,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
4245,
3274,
3,
20885,
3430,
6878,
49,
3274,
96,
9,
6626,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Position has a Round of 4, and a School/Club Team of concordia? | CREATE TABLE table_name_34 (position VARCHAR, round VARCHAR, school_club_team VARCHAR) | SELECT position FROM table_name_34 WHERE round = 4 AND school_club_team = "concordia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
4718,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1751,
3274,
314,
3430,
496,
834,
13442,
834,
11650,
3274,
96,
1018,
7621,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the minimum snatch score? | CREATE TABLE body_builder (
snatch INTEGER
) | SELECT MIN(snatch) FROM body_builder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
643,
834,
16422,
49,
41,
3,
7,
29,
14547,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
3,
7,
29,
14547,
2604,
58,
1,
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,
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,
3,
17684,
599,
7,
29,
14547,
61,
21680,
643,
834,
16422,
49,
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,
-10... |
What is the booking end dates of the apartments with type code 'Duplex'? Bin the year into weekday interval with a bar chart, and sort by the Y in asc. | CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name... | SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" ORDER BY COUNT(booking_start_date) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
13355,
53,
7,
41,
3,
6789,
834,
2567,
53,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3886,
834,
23,
26,
3,
21342,
17966,
6,
5038,
834,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5038,
834,
989,
834,
5522,
6,
2847,
17161,
599,
2567,
53,
834,
989,
834,
5522,
61,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
327... |
how many of the universities were located in california ? | CREATE TABLE table_203_721 (
id number,
"school" text,
"location" text,
"control" text,
"type" text,
"enrollment" number,
"founded" number
) | SELECT COUNT("school") FROM table_203_721 WHERE "location" = 'california' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
2658,
41,
3,
23,
26,
381,
6,
96,
6646,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
15247,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
35,
4046,
297,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
6646,
8512,
21680,
953,
834,
23330,
834,
940,
2658,
549,
17444,
427,
96,
14836,
121,
3274,
3,
31,
15534,
1161,
29,
23,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
WHAT IS THE SCORE WITH A TIE NUMBER OF 13? | CREATE TABLE table_name_86 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_86 WHERE tie_no = "13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
7,
9022,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
6508,
20888,
11951,
71,
332,
509... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who won in the men singles group in the year when Yoshie Takada won in the women singles? | CREATE TABLE table_28138035_13 (
mens_singles VARCHAR,
womens_singles VARCHAR
) | SELECT mens_singles FROM table_28138035_13 WHERE womens_singles = "Yoshie Takada" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2368,
2079,
2469,
834,
2368,
41,
1076,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
887,
7,
834,
7,
53,
965,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
264... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1076,
7,
834,
7,
53,
965,
21680,
953,
834,
2577,
2368,
2079,
2469,
834,
2368,
549,
17444,
427,
887,
7,
834,
7,
53,
965,
3274,
96,
476,
32,
5605,
15,
18973,
9,
26,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the maximum number in the season wher the us viewers is 2.59? | CREATE TABLE table_20726262_4 (
no_in_season INTEGER,
usviewers__million_ VARCHAR
) | SELECT MAX(no_in_season) FROM table_20726262_4 WHERE usviewers__million_ = "2.59" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26426,
2688,
2688,
357,
834,
591,
41,
150,
834,
77,
834,
9476,
3,
21342,
17966,
6,
178,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
26426,
2688,
2688,
357,
834,
591,
549,
17444,
427,
178,
4576,
277,
834,
834,
17030,
834,
3274,
96,
4416,
3390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Which Type has a Builder of avonside engine company, and a Number of 9? | CREATE TABLE table_39907 (
"Number" real,
"Builder" text,
"Type" text,
"Date" text,
"Works number" text
) | SELECT "Type" FROM table_39907 WHERE "Builder" = 'avonside engine company' AND "Number" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3264,
4560,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
24752,
49,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
12492,
7,
381,
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,
25160,
121,
21680,
953,
834,
519,
3264,
4560,
549,
17444,
427,
96,
24752,
49,
121,
3274,
3,
31,
4123,
1599,
1948,
349,
31,
3430,
96,
567,
5937,
49,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the frequence MHz for ERP W of 55 | CREATE TABLE table_name_80 (frequency_mhz VARCHAR, erp_w VARCHAR) | SELECT frequency_mhz FROM table_name_80 WHERE erp_w = 55 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
30989,
834,
51,
107,
172,
584,
4280,
28027,
6,
3,
49,
102,
834,
210,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2515,
15,
835,
3772,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7321,
834,
51,
107,
172,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3,
49,
102,
834,
210,
3274,
6897,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the L2 cache of the microprocessor with model number pentium dual-core t3400? | CREATE TABLE table_56644 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
) | SELECT "L2 cache" FROM table_56644 WHERE "Model number" = 'pentium dual-core t3400' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3539,
3628,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
434,
357,
11800,
121,
1499,
6,
96,
329,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
11800,
121,
21680,
953,
834,
755,
3539,
3628,
549,
17444,
427,
96,
24663,
381,
121,
3274,
3,
31,
102,
295,
2552,
7013,
18,
9022,
3,
17,
519,
5548,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which crystal structures has a Tc(K) of 110 and the number of Cu-O planes in the unit cell is 3? | CREATE TABLE table_name_67 (crystal_structure VARCHAR, no_of_cu_o_planes_in_unit_cell VARCHAR, t_c__k_ VARCHAR) | SELECT crystal_structure FROM table_name_67 WHERE no_of_cu_o_planes_in_unit_cell = 3 AND t_c__k_ = 110 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
75,
651,
8407,
834,
16180,
584,
4280,
28027,
6,
150,
834,
858,
834,
1071,
834,
32,
834,
3767,
15,
7,
834,
77,
834,
15129,
834,
8725,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6884,
834,
16180,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
150,
834,
858,
834,
1071,
834,
32,
834,
3767,
15,
7,
834,
77,
834,
15129,
834,
8725,
3274,
220,
3430,
3,
17,
834,
75,
834,
834,
157,
834,
3274,
... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the amount of hire_date bin hire_date by time in a bar chart, display in ascending 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 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(2... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) | [
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,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
... |
which administrative area has the least square mileage and lowest population ? | CREATE TABLE table_204_332 (
id number,
"administrative\narea" text,
"area\nkm2" number,
"area\nsq mi" number,
"population" number,
"administrative\ncentre" text
) | SELECT "administrative\narea" FROM table_204_332 ORDER BY "area\nsq mi" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
519,
2668,
41,
3,
23,
26,
381,
6,
96,
9571,
1528,
2,
29,
498,
121,
1499,
6,
96,
498,
2,
29,
5848,
357,
121,
381,
6,
96,
498,
2,
29,
7,
1824,
1337,
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,
9571,
1528,
2,
29,
498,
121,
21680,
953,
834,
26363,
834,
519,
2668,
4674,
11300,
272,
476,
96,
498,
2,
29,
7,
1824,
1337,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which venue was the first to have over 30,000 attendees | CREATE TABLE table_204_881 (
id number,
"round" number,
"date" text,
"score" text,
"opponent" text,
"opponent's score" text,
"result" text,
"venue" text,
"attendance" number,
"best on ground" text,
"team" text
) | SELECT "venue" FROM table_204_881 WHERE "attendance" > 30000 ORDER BY "date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4060,
536,
41,
3,
23,
26,
381,
6,
96,
7775,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
32,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15098,
121,
21680,
953,
834,
26363,
834,
4060,
536,
549,
17444,
427,
96,
15116,
663,
121,
2490,
604,
2313,
4674,
11300,
272,
476,
96,
5522,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Leading Scorer of Ian rush is what lowest # of goals? | CREATE TABLE table_name_45 (goals INTEGER, leading_scorer VARCHAR) | SELECT MIN(goals) FROM table_name_45 WHERE leading_scorer = "ian rush" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
839,
5405,
3,
21342,
17966,
6,
1374,
834,
7,
5715,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
22798,
17763,
52,
13,
15498,
10505,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1374,
834,
7,
5715,
49,
3274,
96,
23,
152,
10505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What did the away team score when playing North Melbourne? | CREATE TABLE table_name_79 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team AS score FROM table_name_79 WHERE home_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
550,
372,
2604,
116,
1556,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
234,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the Radio Edit Version remixed by? | CREATE TABLE table_name_70 (remixed_by VARCHAR, version VARCHAR) | SELECT remixed_by FROM table_name_70 WHERE version = "radio edit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
60,
13682,
15,
26,
834,
969,
584,
4280,
28027,
6,
988,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
5061,
11664,
8011,
26063,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
26063,
15,
26,
834,
969,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
988,
3274,
96,
5883,
32,
4777,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the lyricst of 'na jane aise ho gaya kaise'? | CREATE TABLE table_349 (
"Year" real,
"Song name" text,
"Film name" text,
"Co-singer" text,
"Music director" text,
"Lyricist" text,
"Language" text
) | SELECT "Lyricist" FROM table_349 WHERE "Song name" = 'Na Jane Aise Ho Gaya Kaise' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3647,
41,
96,
476,
2741,
121,
490,
6,
96,
134,
2444,
564,
121,
1499,
6,
96,
371,
173,
51,
564,
121,
1499,
6,
96,
3881,
18,
7,
9963,
121,
1499,
6,
96,
29035,
2090,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
63,
2234,
343,
121,
21680,
953,
834,
519,
3647,
549,
17444,
427,
96,
134,
2444,
564,
121,
3274,
3,
31,
567,
9,
8158,
71,
159,
15,
1546,
20338,
9,
480,
8284,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Label, when Date is 1987? | CREATE TABLE table_name_57 (
label VARCHAR,
date VARCHAR
) | SELECT label FROM table_name_57 WHERE date = "1987" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
3783,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
16229,
6,
116,
7678,
19,
12701,
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,
3783,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
833,
3274,
96,
2294,
4225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the incumbent that is a republican and first elected before 1864? | CREATE TABLE table_39222 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
) | SELECT "Incumbent" FROM table_39222 WHERE "Party" = 'republican' AND "First elected" < '1864' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
26144,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1570,
75,
5937,
295,
121,
21680,
953,
834,
3288,
26144,
549,
17444,
427,
96,
13725,
63,
121,
3274,
3,
31,
60,
15727,
152,
31,
3430,
96,
25171,
8160,
121,
3,
2,
3,
31,
2606,
4389,
31,
1,
-100,
-100,
-100,
-10... |
What was the score when the tie number was a replay and the home team was mansfield town? | CREATE TABLE table_65182 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_65182 WHERE "Tie no" = 'replay' AND "Home team" = 'mansfield town' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
2606,
357,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
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,
4122,
2606,
357,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
60,
4895,
31,
3430,
96,
19040,
372,
121,
3274,
3,
31,
348,
7,
1846,
1511,
31,
1,
-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, a bar chart shows the distribution of hire_date and the average of manager_id bin hire_date by time, and order by the Y in asc. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT 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,
1652,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
30085,
834,
567,
17683,
3,
4331,
4059,
599,
1755,
201,
301,
12510,
834,
567,
17683,
3,
4331,
4059,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
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,
... |
what type of institution is ottawa university? | CREATE TABLE table_262527_1 (
type VARCHAR,
institution VARCHAR
) | SELECT type FROM table_262527_1 WHERE institution = "Ottawa University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1828,
2555,
834,
536,
41,
686,
584,
4280,
28027,
6,
6568,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
686,
13,
6568,
19,
3,
32,
17,
17,
7396,
3819,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
686,
21680,
953,
834,
2688,
1828,
2555,
834,
536,
549,
17444,
427,
6568,
3274,
96,
667,
17,
17,
7396,
636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average 10K wins the United States, which had 0 5K wins, have? | CREATE TABLE table_52893 (
"Runner" text,
"Country" text,
"5K Wins" real,
"10K Wins" real,
"Total" real
) | SELECT AVG("10K Wins") FROM table_52893 WHERE "Country" = 'united states' AND "5K Wins" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2577,
4271,
41,
96,
23572,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
755,
439,
4871,
7,
121,
490,
6,
96,
1714,
439,
4871,
7,
121,
490,
6,
96,
3696,
1947,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
1714,
439,
4871,
7,
8512,
21680,
953,
834,
755,
2577,
4271,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
2315,
31,
3430,
96,
755,
439,
4871,
7,
121,
3274,
3,
31,
632,
31... |
What is the average population when deaths are 3 557 and crude death date is less than 11.9? | CREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR) | SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
28951,
834,
9791,
7830,
834,
834,
226,
834,
16824,
834,
3,
21342,
17966,
6,
14319,
584,
4280,
28027,
6,
19058,
834,
221,
9,
189,
834,
2206,
834,
834,
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,
71,
17217,
599,
28951,
834,
9791,
7830,
834,
834,
226,
834,
16824,
834,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
14319,
3274,
96,
519,
305,
3436,
121,
3430,
19058,
834,
221,
9,
189,
834,
2206,
834,
834... |
Who is in November after 1988 when Prinzzess is in October? | CREATE TABLE table_14154 (
"Year" real,
"September" text,
"October" text,
"November" text,
"December" text
) | SELECT "November" FROM table_14154 WHERE "Year" > '1988' AND "October" = 'prinzzess' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
27308,
41,
96,
476,
2741,
121,
490,
6,
96,
27652,
121,
1499,
6,
96,
28680,
121,
1499,
6,
96,
28635,
121,
1499,
6,
96,
29835,
121,
1499,
3,
61,
3,
32102,
32103,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
28635,
121,
21680,
953,
834,
2534,
27308,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
2294,
4060,
31,
3430,
96,
28680,
121,
3274,
3,
31,
23538,
776,
7,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the % indian american for asian population 126965 | CREATE TABLE table_18963843_1 (
_percentage_indian_american VARCHAR,
asian_american_population__2010_ VARCHAR
) | SELECT _percentage_indian_american FROM table_18963843_1 WHERE asian_american_population__2010_ = 126965 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4314,
3747,
4906,
834,
536,
41,
3,
834,
883,
3728,
545,
834,
77,
8603,
834,
23064,
29,
584,
4280,
28027,
6,
3,
9,
10488,
834,
23064,
29,
834,
9791,
7830,
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,
3,
834,
883,
3728,
545,
834,
77,
8603,
834,
23064,
29,
21680,
953,
834,
2606,
4314,
3747,
4906,
834,
536,
549,
17444,
427,
3,
9,
10488,
834,
23064,
29,
834,
9791,
7830,
834,
834,
14926,
834,
3274,
586,
3951,
4122,
... |
Which band plays Self Versus Self - Immersion? | CREATE TABLE table_71927 (
"Album or Song" text,
"Band" text,
"Memebrship" text,
"Role" text,
"Year" real
) | SELECT "Band" FROM table_71927 WHERE "Album or Song" = 'self versus self - immersion' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
2555,
41,
96,
25691,
440,
42,
11263,
121,
1499,
6,
96,
279,
232,
121,
1499,
6,
96,
329,
15,
526,
115,
52,
2009,
121,
1499,
6,
96,
448,
32,
109,
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,
279,
232,
121,
21680,
953,
834,
940,
2294,
2555,
549,
17444,
427,
96,
25691,
440,
42,
11263,
121,
3274,
3,
31,
7703,
3,
8911,
1044,
3,
18,
27704,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many were played when there were 39 tries for? | CREATE TABLE table_21659 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Played" FROM table_21659 WHERE "Tries for" = '39' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
3390,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
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,
15800,
15,
26,
121,
21680,
953,
834,
27184,
3390,
549,
17444,
427,
96,
382,
2593,
21,
121,
3274,
3,
31,
3288,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the free sotware with the latest stable date version of 1.1? | CREATE TABLE table_name_78 (software VARCHAR, cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR) | SELECT software FROM table_name_78 WHERE cost___usd__ = "free" AND latest_stable_date__version_ = "1.1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
25650,
584,
4280,
28027,
6,
583,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
1251,
834,
7,
3869,
834,
5522,
834,
834,
8674,
834,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
889,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
583,
834,
834,
834,
302,
26,
834,
834,
3274,
96,
2113,
121,
3430,
1251,
834,
7,
3869,
834,
5522,
834,
834,
8674,
834,
3274,
96,
11039,
121,
1,
-100,
-100,
-1... |
What county is associated with ansi code 1759686? | CREATE TABLE table_18600760_13 (county VARCHAR, ansi_code VARCHAR) | SELECT county FROM table_18600760_13 WHERE ansi_code = 1759686 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
2368,
41,
13362,
63,
584,
4280,
28027,
6,
46,
7,
23,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5435,
19,
1968,
28,
46,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
24700,
4560,
3328,
834,
2368,
549,
17444,
427,
46,
7,
23,
834,
4978,
3274,
209,
3072,
4314,
3840,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
are there more or less than 24 titles on the chart ? | CREATE TABLE table_204_200 (
id number,
"iso/iec standard" text,
"title" text,
"status" text,
"description" text,
"wg" number
) | SELECT (SELECT COUNT("title") FROM table_204_200) > 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3632,
41,
3,
23,
26,
381,
6,
96,
159,
32,
87,
23,
15,
75,
1068,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
8547,
302,
121,
1499,
6,
96,
221,
11830,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
2847,
17161,
599,
121,
21869,
8512,
21680,
953,
834,
26363,
834,
3632,
61,
2490,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest decile with 1-6 years and area of Maitland? | CREATE TABLE table_name_2 (decile INTEGER, years VARCHAR, area VARCHAR) | SELECT MIN(decile) FROM table_name_2 WHERE years = "1-6" AND area = "maitland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
24223,
109,
3,
21342,
17966,
6,
203,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
7908,
109,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
203,
3274,
96,
27019,
121,
3430,
616,
3274,
96,
6840,
17,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What score did vasil levski national stadium, sofia, which was friendly during competition, earn? | CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR, venue VARCHAR) | SELECT score FROM table_name_96 WHERE competition = "friendly" AND venue = "vasil levski national stadium, sofia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
7,
9022,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
410,
409,
7,
173,
3,
109... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2259,
3274,
96,
4905,
121,
3430,
5669,
3274,
96,
9856,
173,
3,
10912,
4009,
1157,
14939,
6,
78,
89,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
was the the number of canadian players more or less than the number of other players ? | CREATE TABLE table_203_824 (
id number,
"pick #" number,
"player" text,
"position" text,
"nationality" text,
"nhl team" text,
"college/junior/club team" text
) | SELECT (SELECT COUNT("player") FROM table_203_824 WHERE "nationality" = 'canada') > (SELECT COUNT("player") FROM table_203_824 WHERE "nationality" <> 'canada') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
927,
2266,
41,
3,
23,
26,
381,
6,
96,
17967,
1713,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
29,
107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41,
23143,
14196,
2847,
17161,
599,
121,
20846,
8512,
21680,
953,
834,
23330,
834,
927,
2266,
549,
17444,
427,
96,
16557,
485,
121,
3274,
3,
31,
658,
18089,
31,
61,
2490,
41,
23143,
14196,
2847,
17161,
599,
121,
20846... |
What is the highest number of titles won by the J rve club before 2013? | CREATE TABLE table_7656 (
"Club" text,
"2012" text,
"Seasons in Esiliiga" real,
"Current run since" real,
"Titles" real,
"Last title" text
) | SELECT MAX("Titles") FROM table_7656 WHERE "Current run since" < '2013' AND "Club" = 'järve' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4834,
41,
96,
254,
11158,
121,
1499,
6,
96,
12172,
121,
1499,
6,
96,
134,
15,
9,
6577,
16,
262,
10578,
12581,
121,
490,
6,
96,
254,
450,
5320,
661,
437,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
382,
155,
965,
8512,
21680,
953,
834,
3959,
4834,
549,
17444,
427,
96,
254,
450,
5320,
661,
437,
121,
3,
2,
3,
31,
11138,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
354,
3185,
162,
31,
1,
-... |
What tournament has an opponent jung jae-sung lee yong-dae? | CREATE TABLE table_68600 (
"Outcome" text,
"Year" real,
"Tournament" text,
"Partner" text,
"Opponent" text,
"Score" text
) | SELECT "Tournament" FROM table_68600 WHERE "Opponent" = 'jung jae-sung lee yong-dae' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
6007,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
13725,
687,
121,
1499,
6,
96,
667,
102,
9977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
3651,
6007,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
22498,
2662,
15,
18,
7,
425,
90,
15,
3,
63,
2444,
18,
26,
9,
15,
31,
1,
-100,
-100,
-100,
-100... |
What is the average Founded, when Enrollment is 4,000? | CREATE TABLE table_50891 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text
) | SELECT AVG("Founded") FROM table_50891 WHERE "Enrollment" = '4,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
3914,
536,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
188,
89,
8027,
23,
257,
121,
1499,
6,
96,
8532,
4046... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
20100,
8512,
21680,
953,
834,
1752,
3914,
536,
549,
17444,
427,
96,
8532,
4046,
297,
121,
3274,
3,
31,
13161,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the highest rank with a total less than 1? | CREATE TABLE table_10566 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MAX("Rank") FROM table_10566 WHERE "Total" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
3539,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
12869,
3539,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many have a weight over 120 grams ? | CREATE TABLE table_204_878 (
id number,
"model" text,
"release date" text,
"sensor\nres., size" text,
"lens (35 mm equiv.)\nzoom, aperture" text,
"screen\nsize, pixels" text,
"dimensions\nw (mm) \u00d7 h (mm) \u00d7 d (mm)" text,
"weight" text,
"features" text
) | SELECT COUNT(*) FROM table_204_878 WHERE "weight" > 120 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3940,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
21019,
833,
121,
1499,
6,
96,
26052,
2,
29,
60,
7,
5,
6,
812,
121,
1499,
6,
96,
40,
35,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
927,
3940,
549,
17444,
427,
96,
9378,
121,
2490,
5864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the number of counties of all appellations in a bar chart, and I want to list in ascending by the bars. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No... | SELECT County, COUNT(County) FROM appellations GROUP BY County ORDER BY County | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1334,
6,
2847,
17161,
599,
10628,
63,
61,
21680,
8319,
6105,
7,
350,
4630,
6880,
272,
476,
1334,
4674,
11300,
272,
476,
1334,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of headquarter and the amount of headquarter , and group by attribute headquarter, and list in descending by the y axis. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Headquarter, COUNT(Headquarter) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY COUNT(Headquarter) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3642,
19973,
6,
2847,
17161,
599,
3845,
9,
26,
19973,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272... |
How many students are there in total? | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number... | SELECT COUNT(*) FROM student | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1236,
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,
-... |
How many Professors are in building NEB? | CREATE TABLE Faculty (Rank VARCHAR, building VARCHAR) | SELECT COUNT(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16896,
41,
22557,
584,
4280,
28027,
6,
740,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5589,
7,
33,
16,
740,
445,
15658,
58,
1,
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,
2847,
17161,
599,
1935,
61,
21680,
16896,
549,
17444,
427,
3,
22557,
3274,
96,
23057,
24901,
121,
3430,
740,
3274,
96,
4171,
279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the points is 15, what is the fin. pos? | CREATE TABLE table_17330069_1 (fin_pos VARCHAR, points VARCHAR) | SELECT COUNT(fin_pos) FROM table_17330069_1 WHERE points = "15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
519,
5426,
3951,
834,
536,
41,
89,
77,
834,
2748,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
979,
19,
10725,
125,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
89,
77,
834,
2748,
61,
21680,
953,
834,
2517,
519,
5426,
3951,
834,
536,
549,
17444,
427,
979,
3274,
96,
1808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the nationality of all Utah Jazz Players, that played 1987-88? | CREATE TABLE table_54483 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_54483 WHERE "Years for Jazz" = '1987-88' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5062,
3707,
519,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
5062,
3707,
519,
549,
17444,
427,
96,
476,
2741,
7,
21,
12313,
121,
3274,
3,
31,
24151,
25580,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many highest figures for the team with lowest of 16415? | CREATE TABLE table_2472711_31 (
highest VARCHAR,
lowest VARCHAR
) | SELECT COUNT(highest) FROM table_2472711_31 WHERE lowest = 16415 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
2555,
2596,
834,
3341,
41,
2030,
584,
4280,
28027,
6,
7402,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2030,
5638,
21,
8,
372,
28,
7402,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6739,
222,
61,
21680,
953,
834,
357,
4177,
2555,
2596,
834,
3341,
549,
17444,
427,
7402,
3274,
3,
26987,
1808,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the total number of roll for st joseph's school when decile is less than 5 | CREATE TABLE table_name_19 (roll VARCHAR, name VARCHAR, decile VARCHAR) | SELECT COUNT(roll) FROM table_name_19 WHERE name = "st joseph's school" AND decile < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
4046,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
3812,
21,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4046,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
564,
3274,
96,
7,
17,
7406,
15,
102,
107,
31,
7,
496,
121,
3430,
7908,
109,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When harvey laidman is the director what is the season number? | CREATE TABLE table_26804862_1 (
season__number VARCHAR,
directed_by VARCHAR
) | SELECT season__number FROM table_26804862_1 WHERE directed_by = "Harvey Laidman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2079,
3707,
4056,
834,
536,
41,
774,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
3272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
834,
834,
5525,
1152,
21680,
953,
834,
2688,
2079,
3707,
4056,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
15537,
162,
63,
325,
23,
26,
348,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many patients admitted in emergency underwent percutaneous transluminal coronary angioplasty (ptca)? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.long_title = "Percutaneous transluminal coronary angioplasty [PTCA]" | [
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,... |
Plot the number of county by grouped by county as a bar graph, display in descending by the x axis. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No... | SELECT County, COUNT(County) FROM appellations GROUP BY County ORDER BY County DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11457,
7,
41,
4699,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
6088,
3,
3463,
4,
382,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1334,
6,
2847,
17161,
599,
10628,
63,
61,
21680,
8319,
6105,
7,
350,
4630,
6880,
272,
476,
1334,
4674,
11300,
272,
476,
1334,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the result for Lane 3? | CREATE TABLE table_name_12 (
result VARCHAR,
lane VARCHAR
) | SELECT result FROM table_name_12 WHERE lane = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
741,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
21,
11834,
220,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3,
8102,
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,
... |
What was the cougars record during the game where Boston were the visitors? | CREATE TABLE table_name_88 (
record VARCHAR,
visitor VARCHAR
) | SELECT record FROM table_name_88 WHERE visitor = "boston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1368,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
3422,
1478,
7,
1368,
383,
8,
467,
213,
5053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
7019,
3274,
96,
115,
32,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which First elected is the lowest one that has an Incumbent of william stewart? | CREATE TABLE table_name_9 (
first_elected INTEGER,
incumbent VARCHAR
) | SELECT MIN(first_elected) FROM table_name_9 WHERE incumbent = "william stewart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
166,
834,
19971,
3,
21342,
17966,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1485,
8160,
19,
8,
7402,
80,
24,
65,
46,
1542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
14672,
834,
19971,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
28406,
3274,
96,
8894,
23,
265,
21786,
1408,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which level has wale as artist 1? | CREATE TABLE table_23649244_1 (
level VARCHAR,
artist_1 VARCHAR
) | SELECT level FROM table_23649244_1 WHERE artist_1 = "Wale" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4389,
4508,
3628,
834,
536,
41,
593,
584,
4280,
28027,
6,
2377,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
593,
65,
3,
5380,
15,
38,
2377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
593,
21680,
953,
834,
2773,
4389,
4508,
3628,
834,
536,
549,
17444,
427,
2377,
834,
536,
3274,
96,
518,
9,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 2nd verb for chena? | CREATE TABLE table_name_7 (verb VARCHAR) | SELECT 2 AS __f_ FROM table_name_7 WHERE verb = "chena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
11868,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
204,
727,
7375,
21,
3,
1559,
9,
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,
204,
6157,
3,
834,
834,
89,
834,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
7375,
3274,
96,
1559,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which losing team had a score of 24-12? | CREATE TABLE table_11236195_2 (losingteam VARCHAR, score VARCHAR) | SELECT losingteam FROM table_11236195_2 WHERE score = "24-12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
357,
3420,
22464,
834,
357,
41,
2298,
53,
11650,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
5489,
372,
141,
3,
9,
2604,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5489,
11650,
21680,
953,
834,
2596,
357,
3420,
22464,
834,
357,
549,
17444,
427,
2604,
3274,
96,
2266,
5947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the production code of the episode written by Brendan Cowell? | CREATE TABLE table_25390694_2 (production_code VARCHAR, writer VARCHAR) | SELECT production_code FROM table_25390694_2 WHERE writer = "Brendan Cowell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3288,
5176,
4240,
834,
357,
41,
20762,
834,
4978,
584,
4280,
28027,
6,
4346,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
999,
1081,
13,
8,
5640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
999,
834,
4978,
21680,
953,
834,
1828,
3288,
5176,
4240,
834,
357,
549,
17444,
427,
4346,
3274,
96,
279,
1536,
3768,
638,
2091,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest chimore municipalities with 9 pojo municipalities and less than 7 totora municipalities? | CREATE TABLE table_name_76 (
chimoré_municipality INTEGER,
pojo_municipality VARCHAR,
totora_municipality VARCHAR
) | SELECT MAX(chimoré_municipality) FROM table_name_76 WHERE pojo_municipality = 9 AND totora_municipality < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
3,
9737,
127,
154,
834,
11760,
3389,
10355,
3,
21342,
17966,
6,
1977,
1927,
834,
11760,
3389,
10355,
584,
4280,
28027,
6,
12,
17,
127,
9,
834,
11760,
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,
4800,
4,
599,
9737,
127,
154,
834,
11760,
3389,
10355,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1977,
1927,
834,
11760,
3389,
10355,
3274,
668,
3430,
12,
17,
127,
9,
834,
11760,
3389,
10355,
3,
2,
489,... |
what is the pick when the school is jasper hs (jasper, texas)? | CREATE TABLE table_66316 (
"Pick" real,
"Player" text,
"Team" text,
"Position" text,
"School" text
) | SELECT "Pick" FROM table_66316 WHERE "School" = 'jasper hs (jasper, texas)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
25946,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
3142,
121,
21680,
953,
834,
3539,
25946,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
1191,
4339,
3,
107,
7,
41,
1191,
4339,
6,
3,
10354,
9,
7,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose primary disease is chest pain and lab test category is blood gas? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CHEST PAIN" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who was the lead with John Shuster as skip in the season of 2009 10? | CREATE TABLE table_name_83 (
lead VARCHAR,
skip VARCHAR,
season VARCHAR
) | SELECT lead FROM table_name_83 WHERE skip = "john shuster" AND season = "2009–10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
991,
584,
4280,
28027,
6,
11202,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
991,
28,
1079,
14565,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
991,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
11202,
3274,
96,
27341,
3,
14279,
1370,
121,
3430,
774,
3274,
96,
16660,
104,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the score of united center 22,097? | CREATE TABLE table_11960610_10 (
score VARCHAR,
location_attendance VARCHAR
) | SELECT score FROM table_11960610_10 WHERE location_attendance = "United Center 22,097" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
3328,
27097,
834,
1714,
41,
2604,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
18279,
1530... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
19993,
3328,
27097,
834,
1714,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
5110,
23,
1054,
1166,
12889,
632,
4327,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how much does it cost to check for bacteremia - gram postive coccus? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TA... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'bacteremia - gram postive coccus') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
25930,
4844,
159,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
23,
... |
What was the result of week 16? | CREATE TABLE table_name_73 (
result VARCHAR,
week VARCHAR
) | SELECT result FROM table_name_73 WHERE week = 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
741,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
471,
898,
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,
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,
741,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
471,
3274,
898,
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,
... |
Which loss has a Record of 67-51? | CREATE TABLE table_67549 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Loss" FROM table_67549 WHERE "Record" = '67-51' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
755,
3647,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
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,
434,
32,
7,
7,
121,
21680,
953,
834,
3708,
755,
3647,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
3708,
18,
5553,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who constructed the I Italian Republic Grand Prix? | CREATE TABLE table_1140088_6 (
constructor VARCHAR,
race_name VARCHAR
) | SELECT constructor FROM table_1140088_6 WHERE race_name = "I Italian Republic Grand Prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
5548,
4060,
834,
948,
41,
6774,
127,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
8520,
8,
27,
4338,
5750,
2698,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6774,
127,
21680,
953,
834,
2596,
5548,
4060,
834,
948,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
196,
4338,
5750,
2698,
12942,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which player is associated with the date May 10, 1999? | CREATE TABLE table_name_24 (player VARCHAR, date VARCHAR) | SELECT player FROM table_name_24 WHERE date = "may 10, 1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
20846,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
19,
1968,
28,
8,
833,
932,
10372,
5247,
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,
1959,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
833,
3274,
96,
13726,
10372,
5247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the team for toshihiro kaneishi | CREATE TABLE table_name_21 (
team VARCHAR,
driver VARCHAR
) | SELECT team FROM table_name_21 WHERE driver = "toshihiro kaneishi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
372,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
372,
21,
12,
5605,
9288,
32,
3,
3304,
15,
1273,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
2535,
3274,
96,
235,
5605,
9288,
32,
3,
3304,
15,
1273,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where did the team play when the home team score was 12.9 (81)? | CREATE TABLE table_1445 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) | SELECT "Ground" FROM table_1445 WHERE "Home team score" = '12.9 (81)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2128,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
517,
7775,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
7775,
121,
21680,
953,
834,
2534,
2128,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
9368,
1298,
13642,
6982,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the length of the UK remix version? | CREATE TABLE table_35616 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
) | SELECT "Length" FROM table_35616 WHERE "Version" = 'uk remix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
948,
2938,
41,
96,
5000,
1938,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
25691,
440,
121,
1499,
6,
96,
1649,
13682,
15,
26,
57,
121,
1499,
6,
96,
476,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
4606,
189,
121,
21680,
953,
834,
2469,
948,
2938,
549,
17444,
427,
96,
5000,
1938,
121,
3274,
3,
31,
1598,
26063,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the serial number of the model made in 1930? | CREATE TABLE table_63993 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Serial numbers" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text,
"Year(s) retired" text
) | SELECT "Serial numbers" FROM table_63993 WHERE "Year made" = '1930' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3264,
519,
41,
96,
21486,
121,
1499,
6,
96,
518,
88,
15,
40,
8641,
121,
1499,
6,
96,
371,
109,
15,
17,
381,
599,
7,
61,
121,
1499,
6,
96,
7296,
76,
8717,
450,
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,
134,
15,
12042,
2302,
121,
21680,
953,
834,
3891,
3264,
519,
549,
17444,
427,
96,
476,
2741,
263,
121,
3274,
3,
31,
2294,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the number of nationalities for ryan mckie | CREATE TABLE table_2840500_8 (
nationality VARCHAR,
player VARCHAR
) | SELECT COUNT(nationality) FROM table_2840500_8 WHERE player = "Ryan Mckie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2445,
2560,
834,
927,
41,
1157,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
1157,
2197,
21,
3,
651,
152,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16557,
485,
61,
21680,
953,
834,
2577,
2445,
2560,
834,
927,
549,
17444,
427,
1959,
3274,
96,
448,
63,
152,
3038,
11390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lifetime (years) for chemical formula ch 4? | CREATE TABLE table_21350772_2 (
lifetime__years_ VARCHAR,
chemical_formula VARCHAR
) | SELECT lifetime__years_ FROM table_21350772_2 WHERE chemical_formula = "CH 4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
16975,
4013,
357,
834,
357,
41,
6556,
834,
834,
1201,
7,
834,
584,
4280,
28027,
6,
5368,
834,
2032,
83,
9,
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,
6556,
834,
834,
1201,
7,
834,
21680,
953,
834,
2658,
16975,
4013,
357,
834,
357,
549,
17444,
427,
5368,
834,
2032,
83,
9,
3274,
96,
8360,
3,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the most yards for 2 sacks and an average greater than 0? | CREATE TABLE table_name_27 (yards INTEGER, sacks VARCHAR, average VARCHAR) | SELECT MAX(yards) FROM table_name_27 WHERE sacks = 2 AND average > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
6636,
7,
3,
21342,
17966,
6,
3,
15525,
7,
584,
4280,
28027,
6,
1348,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
167,
6460,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6636,
7,
61,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
3,
15525,
7,
3274,
204,
3430,
1348,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the final score for the game on May 1? | CREATE TABLE table_name_72 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_72 WHERE date = "may 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
21,
8,
467,
30,
932,
209,
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,
833,
3274,
96,
13726,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Year, when the Venue is Beijing, PR China? | CREATE TABLE table_name_54 (year INTEGER, venue VARCHAR) | SELECT MAX(year) FROM table_name_54 WHERE venue = "beijing, pr china" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
1201,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
2929,
6,
116,
8,
29940,
19,
14465,
6,
6045,
1473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
5669,
3274,
96,
5358,
354,
53,
6,
4880,
20576,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the number of the purchase details of transactions with amount bigger than 10000?, I want to list by the y-axis in asc. | CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Purchases (
purchase_transaction_id INTEGER,
purchase_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transa... | SELECT purchase_details, COUNT(purchase_details) FROM Purchases AS T1 JOIN Transactions AS T2 ON T1.purchase_transaction_id = T2.transaction_id WHERE T2.amount_of_transaction > 10000 GROUP BY purchase_details ORDER BY COUNT(purchase_details) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14868,
41,
418,
834,
23,
26,
3,
21342,
17966,
6,
12024,
834,
23,
26,
3,
21342,
17966,
6,
418,
834,
221,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1242,
834,
221,
5756,
7,
6,
2847,
17161,
599,
29446,
834,
221,
5756,
7,
61,
21680,
14839,
7,
6157,
332,
536,
3,
15355,
3162,
21469,
7,
6157,
332,
357,
9191,
332,
5411,
29446,
834,
7031,
4787,
834,
23,
26,
3274,
33... |
Which of the Worst dancer(s) has the Lowest score of 14? | CREATE TABLE table_32701 (
"Dance" text,
"Best dancer(s)" text,
"Highest score" real,
"Worst dancer(s)" text,
"Lowest score" real
) | SELECT "Worst dancer(s)" FROM table_32701 WHERE "Lowest score" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
2518,
536,
41,
96,
308,
663,
121,
1499,
6,
96,
17278,
2595,
52,
599,
7,
61,
121,
1499,
6,
96,
21417,
222,
2604,
121,
490,
6,
96,
518,
127,
7,
17,
2595,
52,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
127,
7,
17,
2595,
52,
599,
7,
61,
121,
21680,
953,
834,
2668,
2518,
536,
549,
17444,
427,
96,
434,
32,
12425,
2604,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which jockey had a group of G3? | CREATE TABLE table_name_76 (
jockey VARCHAR,
group VARCHAR
) | SELECT jockey FROM table_name_76 WHERE group = "g3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
8624,
4397,
584,
4280,
28027,
6,
563,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
8624,
4397,
141,
3,
9,
563,
13,
350,
519,
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,
8624,
4397,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
563,
3274,
96,
122,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which driver won the iv j.c.c. jersey road race? | CREATE TABLE table_name_9 (
winning_driver VARCHAR,
race_name VARCHAR
) | SELECT winning_driver FROM table_name_9 WHERE race_name = "iv j.c.c. jersey road race" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2535,
751,
8,
3,
23,
208,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
13739,
52,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
23,
208,
3,
354,
5,
75,
5,
75,
5,
13426,
1373,
1964,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Create a bar chart showing how many hire date across hire date | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 jobs (
JOB_ID varchar(10),
JOB_TI... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the team 2 with turnovo as team 1? | CREATE TABLE table_name_6 (
team_2 VARCHAR,
team_1 VARCHAR
) | SELECT team_2 FROM table_name_6 WHERE team_1 = "turnovo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
372,
834,
357,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
204,
28,
919,
32,
1621,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
357,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
372,
834,
536,
3274,
96,
7535,
32,
1621,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many incumbents represent district California 34? | CREATE TABLE table_1341568_6 (
incumbent VARCHAR,
district VARCHAR
) | SELECT COUNT(incumbent) FROM table_1341568_6 WHERE district = "California 34" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
3651,
834,
948,
41,
28406,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
28406,
7,
4221,
3939,
1826,
6154,
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,
2847,
17161,
599,
77,
75,
5937,
295,
61,
21680,
953,
834,
23747,
1808,
3651,
834,
948,
549,
17444,
427,
3939,
3274,
96,
14318,
99,
127,
29,
23,
9,
6154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7? | CREATE TABLE table_60334 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
) | SELECT MIN("Games played") FROM table_60334 WHERE "Goals conceded" > '25' AND "Goals scored" > '17' AND "Position" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
519,
3710,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
23055,
7,
1944,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
308,
10936,
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,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23055,
7,
1944,
8512,
21680,
953,
834,
3328,
519,
3710,
549,
17444,
427,
96,
6221,
5405,
28325,
26,
121,
2490,
3,
31,
1828,
31,
3430,
96,
6221,
5405,
5799,
121,
2490,
3,
31,
2517,
31,
3430,
96,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.