NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the airport when the iata is tbj? | CREATE TABLE table_name_77 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_77 WHERE iata = "tbj" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
2256,
1493,
584,
4280,
28027,
6,
3,
17221,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3761,
116,
8,
3,
17221,
19,
3,
17,
115,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3761,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
3,
17221,
3274,
96,
17,
115,
354,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0? | CREATE TABLE table_41155 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MIN("Position") FROM table_41155 WHERE "Played" > '9' AND "Points" < '11' AND "Drawn" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4853,
20896,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
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,
3,
17684,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
4853,
20896,
549,
17444,
427,
96,
15800,
15,
26,
121,
2490,
3,
31,
1298,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
2596,
31,
3430,
96,
308,
10936,
2... |
Which date has time (GMT) of 23:34? | CREATE TABLE table_name_45 (date VARCHAR, time___gmt__ VARCHAR) | SELECT date FROM table_name_45 WHERE time___gmt__ = "23:34" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
5522,
584,
4280,
28027,
6,
97,
834,
834,
834,
122,
51,
17,
834,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
833,
65,
97,
41,
7381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
97,
834,
834,
834,
122,
51,
17,
834,
834,
3274,
96,
2773,
10,
3710,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What score had a record of 17 18 6? | CREATE TABLE table_9868 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
) | SELECT "Score" FROM table_9868 WHERE "Record" = '17–18–6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3916,
3651,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
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,
134,
9022,
121,
21680,
953,
834,
3916,
3651,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2517,
104,
2606,
104,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which rank is Hawthorn? | CREATE TABLE table_name_32 (rank VARCHAR, club_clubs VARCHAR) | SELECT rank FROM table_name_32 WHERE club_clubs = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
6254,
584,
4280,
28027,
6,
1886,
834,
13442,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11003,
19,
1626,
210,
17,
6293,
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,
11003,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
1886,
834,
13442,
7,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When westcott 1935 is in division two how many leagues are in division three? | CREATE TABLE table_24575253_4 (
division_three VARCHAR,
division_two VARCHAR
) | SELECT COUNT(division_three) FROM table_24575253_4 WHERE division_two = "Westcott 1935" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3436,
5373,
4867,
834,
591,
41,
4889,
834,
21182,
584,
4280,
28027,
6,
4889,
834,
8264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
4653,
10405,
27710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
26,
23,
6610,
834,
21182,
61,
21680,
953,
834,
2266,
3436,
5373,
4867,
834,
591,
549,
17444,
427,
4889,
834,
8264,
3274,
96,
19069,
10405,
27710,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Tell me the horse when the faults are 9 and the total is 46.36 | CREATE TABLE table_name_11 (horse VARCHAR, faults VARCHAR, total VARCHAR) | SELECT horse FROM table_name_11 WHERE faults = "9" AND total = 46.36 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
107,
127,
7,
15,
584,
4280,
28027,
6,
7828,
7,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
4952,
116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4952,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
7828,
7,
3274,
96,
1298,
121,
3430,
792,
3274,
9668,
5,
3420,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT HINDI HAS Kannada of shukravara? | CREATE TABLE table_47564 (
"Malayalam" text,
"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02" text,
"English" text,
"Kannada" text,
"Tamil" text,
"Hindi" text
) | SELECT "Hindi" FROM table_47564 WHERE "Kannada" = 'shukravara' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3072,
4389,
41,
96,
329,
22858,
40,
265,
121,
1499,
6,
96,
2,
76,
632,
26,
357,
15,
2,
76,
632,
26,
2668,
2,
76,
632,
26,
357,
89,
2,
76,
632,
26,
519,
15,
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,
566,
8482,
121,
21680,
953,
834,
591,
3072,
4389,
549,
17444,
427,
96,
439,
152,
18089,
121,
3274,
3,
31,
14279,
9669,
4331,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
machine networks for one shot learning | CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
) | SELECT DISTINCT paperid FROM paper WHERE title = 'machine networks for one shot learning' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1040,
6757,
2244,
41,
1040,
23,
26,
16,
17,
6,
17953,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
1040,
23,
26,
16,
17,
6,
2291,
23,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
1040,
23,
26,
21680,
1040,
549,
17444,
427,
2233,
3274,
3,
31,
8276,
630,
5275,
21,
80,
2538,
1036,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Park Tae-Hwan's final time? | CREATE TABLE table_32768 (
"Lane" real,
"Name" text,
"Nationality" text,
"100m" real,
"150m" text,
"Time" text
) | SELECT "Time" FROM table_32768 WHERE "Name" = 'park tae-hwan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2555,
3651,
41,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
2915,
51,
121,
490,
6,
96,
12278,
51,
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,
13368,
121,
21680,
953,
834,
519,
2555,
3651,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
6334,
3,
17,
9,
15,
18,
107,
3877,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Bobby Ryan's nationality? | CREATE TABLE table_name_91 (nationality VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_91 WHERE player = "bobby ryan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
16557,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
21395,
7826,
31,
7,
1157,
485,
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,
1157,
485,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
1959,
3274,
96,
17396,
969,
3,
651,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many people went to the game with the record of 8-10? | CREATE TABLE table_name_44 (
attendance INTEGER,
record VARCHAR
) | SELECT SUM(attendance) FROM table_name_44 WHERE record = "8-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
11364,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
877,
12,
8,
467,
28,
8,
1368,
13,
505,
4536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1368,
3274,
96,
927,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what year was mischa barton 's first film role ? | CREATE TABLE table_200_1 (
id number,
"year" number,
"title" text,
"role" text,
"notes" text
) | SELECT MIN("year") FROM table_200_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
834,
536,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
21869,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
7977,
7,
121,
1499,
3,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
8512,
21680,
953,
834,
3632,
834,
536,
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,
... |
What were the total number of entries in 2001 that had a front row smaller than 13? | CREATE TABLE table_name_55 (entries VARCHAR, season VARCHAR, front_row_starts VARCHAR) | SELECT COUNT(entries) FROM table_name_55 WHERE season = "2001" AND front_row_starts < 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
35,
9000,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
6,
851,
834,
3623,
834,
10208,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
35,
9000,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
774,
3274,
96,
23658,
121,
3430,
851,
834,
3623,
834,
10208,
7,
3,
2,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Pick #18's Role? | CREATE TABLE table_62545 (
"Pick #" real,
"Brand (to)" text,
"Employee (Real name)" text,
"Role" text,
"Brand (from)" text
) | SELECT "Role" FROM table_62545 WHERE "Pick #" = '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1828,
2128,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
18304,
727,
41,
235,
61,
121,
1499,
6,
96,
427,
51,
7379,
63,
15,
15,
41,
1649,
138,
564,
61,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
109,
121,
21680,
953,
834,
948,
1828,
2128,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHich kind of Aprende has a Centennial of 1988? | CREATE TABLE table_name_35 (aprende VARCHAR, centennial VARCHAR) | SELECT aprende FROM table_name_35 WHERE centennial = "1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
9,
2026,
29,
221,
584,
4280,
28027,
6,
3151,
35,
7419,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
15313,
362,
773,
13,
10299,
3406,
65,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9,
2026,
29,
221,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
3151,
35,
7419,
3274,
96,
2294,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the final score in 1986? | CREATE TABLE table_26309085_1 (score_in_final VARCHAR, year VARCHAR) | SELECT score_in_final FROM table_26309085_1 WHERE year = 1986 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
1458,
2394,
4433,
834,
536,
41,
7,
9022,
834,
77,
834,
12406,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
804,
2604,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
834,
77,
834,
12406,
21680,
953,
834,
2688,
1458,
2394,
4433,
834,
536,
549,
17444,
427,
215,
3274,
12698,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those products with a price between 60 and 120, a bar chart shows the distribution of name and code , show bars in asc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Name, Code FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
3636,
21680,
7554,
549,
17444,
427,
5312,
272,
7969,
518,
23394,
1640,
3430,
5864,
4674,
11300,
272,
476,
5570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Date has a Game of 4? | CREATE TABLE table_name_33 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_33 WHERE game = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
5522,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
4435,
13,
314,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
467,
3274,
314,
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,
... |
Name the most events with cuts made more than 6 and top 25 more than 30 | CREATE TABLE table_35858 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT MAX("Events") FROM table_35858 WHERE "Cuts made" > '6' AND "Top-25" > '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3449,
3449,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
427,
2169,
7,
8512,
21680,
953,
834,
519,
3449,
3449,
549,
17444,
427,
96,
15784,
17,
7,
263,
121,
2490,
3,
31,
948,
31,
3430,
96,
22481,
14855,
121,
2490,
3,
31,
1458,
31,
1,
-100,
-100,
-100... |
howl ong was chris watson prime minister ? | CREATE TABLE table_204_812 (
id number,
"#" number,
"prime minister" text,
"date of birth" text,
"start date\nof (first) term" text,
"age at beginning\nof (first) term" text,
"end date\nof (final) term" text,
"total time in\noffice" text,
"date of death" text,
"lifespan" text
) | SELECT "total time in\noffice" FROM table_204_812 WHERE "prime minister" = 'chris watson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4959,
357,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
8234,
15,
6323,
121,
1499,
6,
96,
5522,
13,
3879,
121,
1499,
6,
96,
10208,
833,
2,
29,
858,
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,
235,
1947,
97,
16,
2,
29,
19632,
121,
21680,
953,
834,
26363,
834,
4959,
357,
549,
17444,
427,
96,
8234,
15,
6323,
121,
3274,
3,
31,
524,
52,
159,
8036,
17,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
On what date was the player from Melrose, Massachusetts born? | CREATE TABLE table_41431 (
"Position" text,
"Jersey #" real,
"Name" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthdate" text,
"Birthplace" text,
"1986\u20131987 Team" text
) | SELECT "Birthdate" FROM table_41431 WHERE "Birthplace" = 'melrose, massachusetts' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2534,
3341,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
683,
277,
15,
63,
1713,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
41,
75,
51,
61,
121,
490,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
279,
23,
52,
189,
5522,
121,
21680,
953,
834,
591,
2534,
3341,
549,
17444,
427,
96,
279,
23,
52,
189,
4687,
121,
3274,
3,
31,
2341,
8115,
6,
3294,
1836,
1074,
17,
17,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many entries are shown for winnings for team #07 robby gordon motorsports? | CREATE TABLE table_19844 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT COUNT("Winnings") FROM table_19844 WHERE "Team(s)" = '#07 Robby Gordon Motorsports' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
3628,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
518,
10503,
7,
8512,
21680,
953,
834,
24151,
3628,
549,
17444,
427,
96,
18699,
599,
7,
61,
121,
3274,
3,
31,
4663,
4560,
5376,
969,
14626,
30045,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many government health insurance patients are male? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.insurance = "Government" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
29441,
3274,
96,
27304,
297,
121,
1,
-100,
-100,
... |
Name the date when 33,307 attended | CREATE TABLE table_name_20 (
date VARCHAR,
attendance VARCHAR
) | SELECT date FROM table_name_20 WHERE attendance = "33,307" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
833,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
116,
5400,
6,
1458,
940,
5526,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
11364,
3274,
96,
4201,
6,
1458,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many goals/matches have 153 as the goals with matches greater than 352? | CREATE TABLE table_name_27 (
matches VARCHAR,
goals INTEGER
) | SELECT SUM(goals) / matches FROM table_name_27 WHERE goals = 153 AND matches > 352 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
6407,
584,
4280,
28027,
6,
1766,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1766,
87,
19515,
15,
7,
43,
3,
27025,
38,
8,
1766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
839,
5405,
61,
3,
87,
6407,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1766,
3274,
3,
27025,
3430,
6407,
2490,
3097,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the capacity with team being berwick rangers | CREATE TABLE table_14003108_1 (capacity VARCHAR, team VARCHAR) | SELECT capacity FROM table_14003108_1 WHERE team = "Berwick Rangers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
4928,
16169,
834,
536,
41,
4010,
9,
6726,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
2614,
28,
372,
271,
3,
1152,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2614,
21680,
953,
834,
22012,
4928,
16169,
834,
536,
549,
17444,
427,
372,
3274,
96,
279,
49,
5981,
12612,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
tell me the number of medicare patients who had elective type hospital admission. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.insurance = "Medicare" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
29441,
3274,
96,
15789,
... |
What is the fewest amount of races in any season? | CREATE TABLE table_27670 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Wins" real,
"Points" text,
"Final Placing" text
) | SELECT MIN("Races") FROM table_27670 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3959,
2518,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
448,
9,
2319,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
448,
9,
2319,
8512,
21680,
953,
834,
357,
3959,
2518,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When mixed doubles is didit juang indrianto yayu rahayu what is the most current year? | CREATE TABLE table_14319023_2 (
year INTEGER,
mixed_doubles VARCHAR
) | SELECT MAX(year) FROM table_14319023_2 WHERE mixed_doubles = "Didit Juang Indrianto Yayu Rahayu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
11776,
2773,
834,
357,
41,
215,
3,
21342,
17966,
6,
4838,
834,
25761,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
4838,
1486,
7,
19,
410,
155,
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,
1201,
61,
21680,
953,
834,
25133,
11776,
2773,
834,
357,
549,
17444,
427,
4838,
834,
25761,
7,
3274,
96,
308,
23,
26,
155,
15597,
122,
86,
26,
5288,
235,
4701,
63,
76,
2922,
12687,
76,
121,
1,
-100,
... |
how many result with candidates being richard j. welch (r) unopposed | CREATE TABLE table_1342233_6 (
result VARCHAR,
candidates VARCHAR
) | SELECT COUNT(result) FROM table_1342233_6 WHERE candidates = "Richard J. Welch (R) Unopposed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
20879,
834,
948,
41,
741,
584,
4280,
28027,
6,
4341,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
741,
28,
4341,
271,
2354,
986,
3,
354,
5,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
7,
83,
17,
61,
21680,
953,
834,
2368,
4165,
20879,
834,
948,
549,
17444,
427,
4341,
3274,
96,
448,
362,
986,
446,
5,
101,
40,
524,
41,
448,
61,
597,
28236,
3843,
121,
1,
-100,
-100,
-100,
-... |
Which Tournament has a Semi finalists of monica seles sandrine testud? | CREATE TABLE table_name_76 (
tournament VARCHAR,
semi_finalists VARCHAR
) | SELECT tournament FROM table_name_76 WHERE semi_finalists = "monica seles sandrine testud" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
5892,
584,
4280,
28027,
6,
4772,
834,
28077,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
20502,
65,
3,
9,
22217,
3,
28077,
13,
1911,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
4772,
834,
28077,
3274,
96,
2157,
2617,
142,
965,
3,
7,
232,
9249,
794,
76,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What format is the Catalogue 9362486152 from the region of Australia in? | CREATE TABLE table_name_79 (format VARCHAR, catalogue VARCHAR, region VARCHAR) | SELECT format FROM table_name_79 WHERE catalogue = "9362486152" AND region = "australia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
8995,
584,
4280,
28027,
6,
14978,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1910,
19,
8,
22424,
76,
15,
668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1910,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
14978,
3274,
96,
4271,
4056,
3707,
4241,
5373,
121,
3430,
1719,
3274,
96,
2064,
8792,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the date with winner outcome and opponent of noppawan lertcheewakarn jessica moore | CREATE TABLE table_name_82 (
date VARCHAR,
outcome VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_82 WHERE outcome = "winner" AND opponent = "noppawan lertcheewakarn jessica moore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
833,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
28,
4668,
6138,
11,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
6138,
3274,
96,
3757,
687,
121,
3430,
15264,
3274,
96,
29,
32,
1572,
9,
3877,
3,
1171,
17,
1033,
15,
18603,
291,
29,
528,
7,
7,
2617,
3,
21477,
15,
121,
1,... |
In what city does the tallest building have 35 floors? | CREATE TABLE table_name_32 (city VARCHAR, floors VARCHAR) | SELECT city FROM table_name_32 WHERE floors = 35 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
6726,
584,
4280,
28027,
6,
8242,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
690,
405,
8,
5065,
222,
740,
43,
3097,
8242,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
690,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
8242,
3274,
3097,
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... |
count how many patients admitted in urgent care were given oxacillin. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.drug = "Oxacillin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Name the stations for zone 5 and 1 platform by tramlink | CREATE TABLE table_57558 (
"Stations" text,
"Place" text,
"Managed By" text,
"Platforms" real,
"Zone" real
) | SELECT "Stations" FROM table_57558 WHERE "Managed By" = 'tramlink' AND "Zone" = '5' AND "Platforms" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3072,
3449,
41,
96,
134,
17,
1628,
121,
1499,
6,
96,
345,
11706,
121,
1499,
6,
96,
7296,
11438,
938,
121,
1499,
6,
96,
10146,
2032,
7,
121,
490,
6,
96,
956,
782,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17,
1628,
121,
21680,
953,
834,
755,
3072,
3449,
549,
17444,
427,
96,
7296,
11438,
938,
121,
3274,
3,
31,
17,
2375,
4907,
31,
3430,
96,
956,
782,
121,
3274,
3,
31,
755,
31,
3430,
96,
10146,
2032,
7,
121... |
If the rebounds are at 87, what are the amount of steals? | CREATE TABLE table_25342713_5 (
steals VARCHAR,
rebounds VARCHAR
) | SELECT steals FROM table_25342713_5 WHERE rebounds = 87 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3710,
2555,
2368,
834,
755,
41,
11332,
7,
584,
4280,
28027,
6,
3,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
3,
23768,
33,
44,
3,
4225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11332,
7,
21680,
953,
834,
1828,
3710,
2555,
2368,
834,
755,
549,
17444,
427,
3,
23768,
3274,
3,
4225,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was segment A when segment B was snowboards? | CREATE TABLE table_19892 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment A" FROM table_19892 WHERE "Segment B" = 'Snowboards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
4508,
41,
96,
12106,
7,
10395,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
9688,
89,
17591,
121,
1499,
6,
96,
134,
15,
122,
297,
71,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
122,
297,
71,
121,
21680,
953,
834,
24151,
4508,
549,
17444,
427,
96,
134,
15,
122,
297,
272,
121,
3274,
3,
31,
134,
7651,
1976,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which range includes Mount Fukushima, and is ranked 38? | CREATE TABLE table_63739 (
"Rank" real,
"Name" text,
"Altitude (meters)" real,
"Range" text,
"Parent Range" text
) | SELECT "Range" FROM table_63739 WHERE "Name" = 'mount fukushima' AND "Rank" = '38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
940,
3288,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
188,
40,
6592,
41,
4401,
7,
61,
121,
490,
6,
96,
448,
3280,
121,
1499,
6,
96,
13212,
295,
1097... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
3280,
121,
21680,
953,
834,
3891,
940,
3288,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
11231,
7683,
2729,
7,
10813,
9,
31,
3430,
96,
22557,
121,
3274,
3,
31,
3747,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
what game was in chicago | CREATE TABLE table_name_40 (
record VARCHAR,
home VARCHAR
) | SELECT record FROM table_name_40 WHERE home = "chicago" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
1368,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
467,
47,
16,
8780,
9,
839,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
234,
3274,
96,
1436,
658,
839,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the name of amenities Smith Hall dorm have. ordered the results by amenity names. | CREATE TABLE dorm_amenity (
amenity_name VARCHAR,
amenid VARCHAR
)
CREATE TABLE has_amenity (
dormid VARCHAR,
amenid VARCHAR
)
CREATE TABLE dorm (
dormid VARCHAR,
dorm_name VARCHAR
) | SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall' ORDER BY T3.amenity_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
103,
52,
51,
834,
9,
904,
485,
41,
183,
35,
485,
834,
4350,
584,
4280,
28027,
6,
183,
35,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
9,
904,
485,
834,
4350,
21680,
103,
52,
51,
6157,
332,
536,
3,
15355,
3162,
65,
834,
9,
904,
485,
6157,
332,
357,
9191,
332,
5411,
26,
127,
6983,
3274,
332,
4416,
26,
127,
6983,
3,
15355,
3162,
103,
5... |
Which Position has a Pick smaller than 152, and a Round smaller than 3? | CREATE TABLE table_name_92 (
position VARCHAR,
pick VARCHAR,
round VARCHAR
) | SELECT position FROM table_name_92 WHERE pick < 152 AND round < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
1102,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
14258,
65,
3,
9,
8356,
2755,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1432,
3,
2,
3,
26320,
3430,
1751,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of black/haitian ethnic background patients who are diagnosed with myopia? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND diagnoses.long_title = "Myopia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA | CREATE TABLE table_14747043_1 (class_a VARCHAR, class_aAAAA VARCHAR, Weslaco VARCHAR, class_aAAA VARCHAR, Brownwood VARCHAR) | SELECT class_a FROM table_14747043_1 WHERE class_aAAAA = Weslaco AND class_aAAA = Brownwood | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
27760,
4906,
834,
536,
41,
4057,
834,
9,
584,
4280,
28027,
6,
853,
834,
9,
5498,
5498,
584,
4280,
28027,
6,
101,
7,
9700,
32,
584,
4280,
28027,
6,
853,
834,
9,
188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
853,
834,
9,
21680,
953,
834,
24719,
27760,
4906,
834,
536,
549,
17444,
427,
853,
834,
9,
5498,
5498,
3274,
101,
7,
9700,
32,
3430,
853,
834,
9,
188,
5498,
3274,
3899,
2037,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients in urgent admission have self pay health insurance? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.insurance = "Self Pay" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
5905,
517,
6431,
121,
3430,
14798,
5,
29441,
3274,
96,
134,
10... |
What was the total number of A scores for Japan when the T score was more than 4? | CREATE TABLE table_name_63 (a_score VARCHAR, nation VARCHAR, t_score VARCHAR) | SELECT COUNT(a_score) FROM table_name_63 WHERE nation = "japan" AND t_score > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
9,
834,
7,
9022,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
3,
17,
834,
7,
9022,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9,
834,
7,
9022,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2982,
3274,
96,
1191,
2837,
121,
3430,
3,
17,
834,
7,
9022,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many people attended the score of w 7-6? | CREATE TABLE table_name_15 (crowd VARCHAR, score VARCHAR) | SELECT crowd FROM table_name_15 WHERE score = "w 7-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
75,
3623,
26,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
8,
2604,
13,
3,
210,
489,
5783,
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,
4374,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
2604,
3274,
96,
210,
489,
5783,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which mlb team is located in maryland? | CREATE TABLE table_49127 (
"Team" text,
"City" text,
"State/Province" text,
"League" text,
"Est." text
) | SELECT "Team" FROM table_49127 WHERE "State/Province" = 'maryland' AND "League" = 'mlb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
22367,
41,
96,
18699,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
87,
3174,
2494,
565,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
14997,
535,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
3647,
22367,
549,
17444,
427,
96,
134,
4748,
87,
3174,
2494,
565,
121,
3274,
3,
31,
1635,
28900,
31,
3430,
96,
2796,
9,
5398,
121,
3274,
3,
31,
51,
40,
115,
31,
1,
-100,
-100,
-1... |
What is the location for the first division, Sun Pegasus Club? | CREATE TABLE table_63932 (
"Club" text,
"League/Division" text,
"Home Ground" text,
"Location" text,
"Position in 2012-13" text
) | SELECT "Location" FROM table_63932 WHERE "League/Division" = 'first division' AND "Club" = 'sun pegasus' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
4271,
357,
41,
96,
254,
11158,
121,
1499,
6,
96,
2796,
9,
5398,
87,
308,
23,
6610,
121,
1499,
6,
96,
19040,
13908,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
434,
32,
75,
257,
121,
21680,
953,
834,
3891,
4271,
357,
549,
17444,
427,
96,
2796,
9,
5398,
87,
308,
23,
6610,
121,
3274,
3,
31,
14672,
4889,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
7,
202,
158,
5556,
... |
If the amount of rebounds is 0, what is the maximum minutes? | CREATE TABLE table_23346303_5 (
minutes INTEGER,
rebounds VARCHAR
) | SELECT MAX(minutes) FROM table_23346303_5 WHERE rebounds = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
4448,
23335,
834,
755,
41,
676,
3,
21342,
17966,
6,
3,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
866,
13,
3,
23768,
19,
8014,
125,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6890,
7,
61,
21680,
953,
834,
20879,
4448,
23335,
834,
755,
549,
17444,
427,
3,
23768,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which driver drove car Wolf WR3? | CREATE TABLE table_name_12 (
winning_driver VARCHAR,
winning_car VARCHAR
) | SELECT winning_driver FROM table_name_12 WHERE winning_car = "wolf wr3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
3447,
834,
1720,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2535,
10719,
443,
9091,
3,
1547... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
13739,
52,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
3447,
834,
1720,
3274,
96,
19747,
3,
210,
52,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date did a race occur at Long Beach? | CREATE TABLE table_name_76 (date VARCHAR, location VARCHAR) | SELECT date FROM table_name_76 WHERE location = "long beach" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
5522,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
3,
9,
1964,
4093,
44,
3230,
2979,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
1128,
3274,
96,
2961,
2608,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Mike Miller played for what school/club team? | CREATE TABLE table_name_87 (
school_club_team VARCHAR,
player VARCHAR
) | SELECT school_club_team FROM table_name_87 WHERE player = "mike miller" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4794,
9429,
1944,
21,
125,
496,
87,
13442... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
496,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1959,
3274,
96,
20068,
15,
3293,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
who was the last japanese player to finish ? | CREATE TABLE table_204_544 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT "name" FROM table_204_544 WHERE "nationality" = 'japan' ORDER BY "rank" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3628,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
755,
3628,
549,
17444,
427,
96,
16557,
485,
121,
3274,
3,
31,
1191,
2837,
31,
4674,
11300,
272,
476,
96,
6254,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100... |
What was the away score at VFL Park? | CREATE TABLE table_name_78 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team AS score FROM table_name_78 WHERE venue = "vfl park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
2604,
44,
584,
10765,
1061,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
5669,
3274,
96,
208,
89,
40,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who were the Brazil scorers who scored 3-3? | CREATE TABLE table_name_11 (brazil_scorers VARCHAR, score VARCHAR) | SELECT brazil_scorers FROM table_name_11 WHERE score = "3-3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
1939,
702,
40,
834,
7,
5715,
277,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
9278,
14056,
277,
113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3858,
702,
40,
834,
7,
5715,
277,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
2604,
3274,
96,
519,
3486,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who are the foreign players on team/s that play in Moscow? | CREATE TABLE table_19526911_1 (
foreign_players__max_2_ VARCHAR,
town VARCHAR
) | SELECT foreign_players__max_2_ FROM table_19526911_1 WHERE town = "Moscow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22464,
357,
3951,
2596,
834,
536,
41,
2959,
834,
20846,
7,
834,
834,
9128,
834,
357,
834,
584,
4280,
28027,
6,
1511,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2959,
834,
20846,
7,
834,
834,
9128,
834,
357,
834,
21680,
953,
834,
22464,
357,
3951,
2596,
834,
536,
549,
17444,
427,
1511,
3274,
96,
329,
32,
3523,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what date was Portland on the road for Game 2? | CREATE TABLE table_name_95 (
date VARCHAR,
road_team VARCHAR,
game VARCHAR
) | SELECT date FROM table_name_95 WHERE road_team = "portland" AND game = "game 2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
833,
584,
4280,
28027,
6,
1373,
834,
11650,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
11829,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1373,
834,
11650,
3274,
96,
1493,
40,
232,
121,
3430,
467,
3274,
96,
7261,
204,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percentage did chris wright receive? | CREATE TABLE table_name_23 (
percentage VARCHAR,
candidate VARCHAR
) | SELECT percentage FROM table_name_23 WHERE candidate = "chris wright" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
5294,
584,
4280,
28027,
6,
4775,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5294,
410,
3,
524,
52,
159,
3,
210,
3535,
911,
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,
5294,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
4775,
3274,
96,
524,
52,
159,
3,
210,
3535,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the away team score when the home team was Carlton? | CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_94 WHERE home_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
372,
2604,
116,
8,
234,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
There were 68 worcs f-c matches played on Chester Road North Ground. | CREATE TABLE table_1156428_2 (worcs_f_c_matches VARCHAR, name_of_ground VARCHAR) | SELECT worcs_f_c_matches FROM table_1156428_2 WHERE name_of_ground = "Chester Road North Ground" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
4389,
2577,
834,
357,
41,
210,
127,
75,
7,
834,
89,
834,
75,
834,
19515,
15,
7,
584,
4280,
28027,
6,
564,
834,
858,
834,
9232,
584,
4280,
28027,
61,
3,
32102,
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,
2275,
52,
75,
7,
834,
89,
834,
75,
834,
19515,
15,
7,
21680,
953,
834,
15660,
4389,
2577,
834,
357,
549,
17444,
427,
564,
834,
858,
834,
9232,
3274,
96,
254,
88,
1370,
2409,
1117,
13908,
121,
1,
-100,
-100,
-100,
... |
What season had 1st position, 33 pld, and 58 points? | CREATE TABLE table_63305 (
"Season" text,
"Div." text,
"Pos." text,
"Pld." text,
"Pts." text
) | SELECT "Season" FROM table_63305 WHERE "Pos." = '1st' AND "Pld." = '33' AND "Pts." = '58' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
26724,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
21313,
535,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
345,
40,
26,
535,
1499,
6,
96,
345,
17,
7,
535,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
9,
739,
121,
21680,
953,
834,
3891,
26724,
549,
17444,
427,
96,
345,
32,
7,
535,
3274,
3,
31,
536,
7,
17,
31,
3430,
96,
345,
40,
26,
535,
3274,
3,
31,
4201,
31,
3430,
96,
345,
17,
7,
535,
3274,
... |
What is the score for Set 2 at 15:21? | CREATE TABLE table_name_48 (
score VARCHAR,
set_2 VARCHAR
) | SELECT score FROM table_name_48 WHERE set_2 = "15:21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
2604,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
2821,
204,
44,
627,
10,
2658,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
356,
834,
357,
3274,
96,
1808,
10,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many electronvolts is 3,600 joules? | CREATE TABLE table_name_44 (electronvolt VARCHAR, joule VARCHAR) | SELECT electronvolt FROM table_name_44 WHERE joule = "3,600" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
400,
75,
6255,
10897,
584,
4280,
28027,
6,
3,
8921,
109,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
21126,
10897,
7,
19,
6180,
6007,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21126,
10897,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
3,
8921,
109,
3274,
96,
6355,
6007,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many female patients are Black/Cape Verdean? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.ethnicity = "BLACK/CAPE VERDEAN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
16986,
427,
3,
16174,
308,
20152,
121,
... |
Who is Winners that has editions of 1992, 2003 as Not Winning | CREATE TABLE table_name_77 (
winners VARCHAR,
not_winning_editions VARCHAR
) | SELECT winners FROM table_name_77 WHERE not_winning_editions = "1992, 2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
8969,
584,
4280,
28027,
6,
59,
834,
8163,
834,
15,
10569,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
18125,
7,
24,
65,
4182,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8969,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
59,
834,
8163,
834,
15,
10569,
7,
3274,
96,
19479,
4482,
3888,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many results for minimum first elected incumbent Noble Jones Gregory? | CREATE TABLE table_18531 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT MIN("First elected") FROM table_18531 WHERE "Incumbent" = 'Noble Jones Gregory' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
3341,
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,
3,
17684,
599,
121,
25171,
8160,
8512,
21680,
953,
834,
21594,
3341,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
4168,
2296,
6193,
25431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is minimum age of patients whose gender is m and age is greater than or equal to 55? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.age >= "55" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
545,
2490,
2423,
96,
3769,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For each bed type, find the average base price of different bed type. Show bar chart. | CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
) | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
27659,
7,
41,
3636,
3,
21342,
17966,
6,
4181,
3,
3463,
4,
382,
6,
1972,
1570,
3,
3463,
4,
382,
6,
1972,
15767,
3,
3463,
4,
382,
6,
13002,
17833,
6,
2506,
23954,
3,
3463,
4,
382,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1953,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result when the attendance was 25,418? | CREATE TABLE table_32756 (
"Week" real,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" text
) | SELECT "Result" FROM table_32756 WHERE "Attendance" = '25,418' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2555,
4834,
41,
96,
518,
10266,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
1649,
7621,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
519,
2555,
4834,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
1828,
6,
591,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For the engine family MaxxForce 11, what is the years produced? | CREATE TABLE table_26352332_4 (years_produced VARCHAR, engine_family VARCHAR) | SELECT years_produced FROM table_26352332_4 WHERE engine_family = "MaxxForce 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2469,
2773,
2668,
834,
591,
41,
1201,
7,
834,
29462,
584,
4280,
28027,
6,
1948,
834,
15474,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
8,
1948,
384,
5370... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
834,
29462,
21680,
953,
834,
2688,
2469,
2773,
2668,
834,
591,
549,
17444,
427,
1948,
834,
15474,
3274,
96,
21298,
226,
3809,
565,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What method was used in the match that went to round 1, and had a 6-3-1 record? | CREATE TABLE table_name_13 (
method VARCHAR,
round VARCHAR,
record VARCHAR
) | SELECT method FROM table_name_13 WHERE round = 1 AND record = "6-3-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
1573,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1573,
47,
261,
16,
8,
1588,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1573,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1751,
3274,
209,
3430,
1368,
3274,
96,
24262,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT OPPONENT HAD A SCORE OF 5:5? | CREATE TABLE table_47635 (
"Opponent" text,
"Res." text,
"Class" text,
"Score" text,
"Date" text,
"Competition" text,
"Notes" text
) | SELECT "Opponent" FROM table_47635 WHERE "Score" = '5:5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3959,
2469,
41,
96,
667,
102,
9977,
121,
1499,
6,
96,
1649,
7,
535,
1499,
6,
96,
21486,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
308,
342,
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,
667,
102,
9977,
121,
21680,
953,
834,
591,
3959,
2469,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
755,
10,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When the percentage is 0.34900000000000003 with more than 13 solo blocks and less than 4713 total attempts, what is the greatest assists? | CREATE TABLE table_name_63 (
assists INTEGER,
total_attempts VARCHAR,
percentage VARCHAR,
solo_blocks VARCHAR
) | SELECT MAX(assists) FROM table_name_63 WHERE percentage < 0.34900000000000003 AND solo_blocks > 13 AND total_attempts < 4713 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
13041,
3,
21342,
17966,
6,
792,
834,
144,
17,
9045,
7,
584,
4280,
28027,
6,
5294,
584,
4280,
28027,
6,
6729,
834,
10734,
7,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
6500,
7,
17,
7,
61,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
5294,
3,
2,
3,
19997,
3647,
19568,
19568,
19568,
4928,
3430,
6729,
834,
10734,
7,
2490,
1179,
3430,
792,
834,
144,
17,
9045,
7,
... |
Show the id and details of the investor that has the largest number of transactions. | CREATE TABLE transactions (
transaction_id number,
investor_id number,
transaction_type_code text,
date_of_transaction time,
amount_of_transaction number,
share_count text,
other_details text
)
CREATE TABLE transactions_lots (
transaction_id number,
lot_id number
)
CREATE TABLE ref_transaction_types (
transaction_type_code text,
transaction_type_description text
)
CREATE TABLE investors (
investor_id number,
investor_details text
)
CREATE TABLE sales (
sales_transaction_id number,
sales_details text
)
CREATE TABLE lots (
lot_id number,
investor_id number,
lot_details text
)
CREATE TABLE purchases (
purchase_transaction_id number,
purchase_details text
) | SELECT T2.investor_id, T1.investor_details FROM investors AS T1 JOIN transactions AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6413,
41,
5878,
834,
23,
26,
381,
6,
12024,
834,
23,
26,
381,
6,
5878,
834,
6137,
834,
4978,
1499,
6,
833,
834,
858,
834,
7031,
4787,
97,
6,
866,
834,
858,
834,
7031,
4787,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
15601,
127,
834,
23,
26,
6,
332,
5411,
15601,
127,
834,
221,
5756,
7,
21680,
4367,
6157,
332,
536,
3,
15355,
3162,
6413,
6157,
332,
357,
9191,
332,
5411,
15601,
127,
834,
23,
26,
3274,
332,
4416,
15601,
... |
What is the sum of Year(s), when Championship is "Australian Open", when Outcome is "Runner-Up", and when Score in Final is 3-6, 6-3, 6-2? | CREATE TABLE table_name_36 (year INTEGER, score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR) | SELECT SUM(year) FROM table_name_36 WHERE championship = "australian open" AND outcome = "runner-up" AND score_in_final = "3-6, 6-3, 6-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1201,
3,
21342,
17966,
6,
2604,
834,
77,
834,
12406,
584,
4280,
28027,
6,
10183,
584,
4280,
28027,
6,
6138,
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,
1... | [
3,
23143,
14196,
180,
6122,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
10183,
3274,
96,
402,
3109,
9928,
539,
121,
3430,
6138,
3274,
96,
10806,
18,
413,
121,
3430,
2604,
834,
77,
834,
12406,
3274,
96,
25342,
6... |
Natural change (per 1000) larger than 8.2, and a Crude birth rate (per 1000) of 26.4 involves how many deaths? | CREATE TABLE table_6691 (
"Average population (x 1000)" text,
"Live births" text,
"Deaths" text,
"Natural change" text,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
) | SELECT "Deaths" FROM table_6691 WHERE "Natural change (per 1000)" > '8.2' AND "Crude birth rate (per 1000)" = '26.4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
4729,
41,
96,
188,
624,
545,
2074,
41,
226,
5580,
61,
121,
1499,
6,
96,
24179,
3879,
7,
121,
1499,
6,
96,
2962,
9,
189,
7,
121,
1499,
6,
96,
567,
13149,
40,
483,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2962,
9,
189,
7,
121,
21680,
953,
834,
3539,
4729,
549,
17444,
427,
96,
567,
13149,
40,
483,
41,
883,
5580,
61,
121,
2490,
3,
31,
927,
5,
357,
31,
3430,
96,
254,
17237,
15,
3879,
1080,
41,
883,
5580,
61,
1... |
When there were 30 races and the final placing was 13th, how many points were scored? | CREATE TABLE table_26794530_1 (
points VARCHAR,
final_placing VARCHAR,
races VARCHAR
) | SELECT points FROM table_26794530_1 WHERE final_placing = "13th" AND races = 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4440,
2128,
1458,
834,
536,
41,
979,
584,
4280,
28027,
6,
804,
834,
6042,
75,
53,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
2688,
4440,
2128,
1458,
834,
536,
549,
17444,
427,
804,
834,
6042,
75,
53,
3274,
96,
2368,
189,
121,
3430,
10879,
3274,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the birthplace of the third (2009) generation member from the lespros entertainment agency? | CREATE TABLE table_9907 (
"Generation" text,
"Birthday" text,
"Birthplace" text,
"Blood Type" text,
"Agency" text
) | SELECT "Birthplace" FROM table_9907 WHERE "Agency" = 'lespros entertainment' AND "Generation" = 'third (2009)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3264,
4560,
41,
96,
13714,
49,
257,
121,
1499,
6,
96,
279,
23,
52,
189,
1135,
121,
1499,
6,
96,
279,
23,
52,
189,
4687,
121,
1499,
6,
96,
279,
40,
32,
32,
26,
6632,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23,
52,
189,
4687,
121,
21680,
953,
834,
3264,
4560,
549,
17444,
427,
96,
188,
122,
4392,
121,
3274,
3,
31,
965,
1409,
7,
4527,
31,
3430,
96,
13714,
49,
257,
121,
3274,
3,
31,
14965,
3,
25812,
31,
1,
... |
College of idaho, and an Overall smaller than 141 is what average round? | CREATE TABLE table_name_60 (
round INTEGER,
college VARCHAR,
overall VARCHAR
) | SELECT AVG(round) FROM table_name_60 WHERE college = "idaho" AND overall < 141 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
1751,
3,
21342,
17966,
6,
1900,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1888,
13,
3,
23,
26,
9,
107,
32,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
1900,
3274,
96,
23,
26,
9,
107,
32,
121,
3430,
1879,
3,
2,
3,
26059,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which round lasted 2:32? | CREATE TABLE table_9865 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Round" FROM table_9865 WHERE "Time" = '2:32' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3916,
4122,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
448,
32,
1106,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
3916,
4122,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
357,
10,
2668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On what date was the asset acquisition that was announced on February 22, 2007 completed? | CREATE TABLE table_1373542_1 (
date_completed VARCHAR,
date_announced VARCHAR
) | SELECT date_completed FROM table_1373542_1 WHERE date_announced = "February 22, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
2469,
4165,
834,
536,
41,
833,
834,
25288,
26,
584,
4280,
28027,
6,
833,
834,
152,
29,
7906,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
25288,
26,
21680,
953,
834,
24636,
2469,
4165,
834,
536,
549,
17444,
427,
833,
834,
152,
29,
7906,
26,
3274,
96,
31122,
12889,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many have a class of 330? | CREATE TABLE table_name_97 (
quantity_made VARCHAR,
class VARCHAR
) | SELECT quantity_made FROM table_name_97 WHERE class = "330" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
8708,
834,
4725,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
43,
3,
9,
853,
13,
3,
17225,
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,
8708,
834,
4725,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
853,
3274,
96,
17225,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Please visualize a bar chart, that the X-axis is the director and the Y-axis is thier corresponding lowest rating among all movies, sort in ascending by the x axis. | CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Reviewer (
rID int,
name text
) | SELECT director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY director ORDER BY director | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
3,
51,
4309,
16,
17,
6,
4811,
16,
17,
6,
5773,
308,
342,
833,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
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,
2090,
6,
3,
17684,
599,
382,
5411,
3624,
7,
61,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
2090,
4674,
11300... |
what was patient 002-7771's first hospital admission time until 3 years ago? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
) | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '002-7771' AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY patient.hospitaladmittime LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
7412,
4013,
4450,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
61,
3,
2,
2423,
... |
What was the attendance of the game on December 11, 2005? | CREATE TABLE table_name_82 (
attendance VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_82 WHERE date = "december 11, 2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
13,
8,
467,
30,
1882,
9694,
3105,
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,
11364,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
9694,
3105,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the number of the last names for all scholarship students? | CREATE TABLE SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
CREATE TABLE Plays_Games (
StuID INTEGER,
GameID INTEGER,
Hours_Played INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Video_Games (
GameID INTEGER,
GName VARCHAR(40),
GType VARCHAR(40)
) | SELECT LName, COUNT(LName) FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.OnScholarship = 'Y' GROUP BY LName | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5716,
29381,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
3349,
23954,
584,
4280,
28027,
599,
2668,
201,
10768,
7,
12988,
518,
10266,
3,
21342,
17966,
6,
5880,
15800,
15,
26,
3,
21342,
1796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
301,
23954,
6,
2847,
17161,
599,
434,
23954,
61,
21680,
5716,
29381,
6157,
332,
536,
3,
15355,
3162,
6341,
6157,
332,
357,
9191,
332,
5411,
13076,
4309,
3274,
332,
4416,
13076,
4309,
549,
17444,
427,
332,
5411,
7638,
... |
What's the tries for count for the team with 70 points? | CREATE TABLE table_14070062_3 (tries_for VARCHAR, points VARCHAR) | SELECT tries_for FROM table_14070062_3 WHERE points = "70" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
9295,
4056,
834,
519,
41,
9000,
834,
1161,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
9000,
21,
3476,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
1161,
21680,
953,
834,
22012,
9295,
4056,
834,
519,
549,
17444,
427,
979,
3274,
96,
2518,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the largest round with a Race Title of korean grand prix? | CREATE TABLE table_14343 (
"Round" real,
"Race Title" text,
"Grand Prix" text,
"Circuit" text,
"Date" text
) | SELECT MAX("Round") FROM table_14343 WHERE "Race Title" = 'korean grand prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4906,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
448,
3302,
11029,
121,
1499,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
1106,
8512,
21680,
953,
834,
25133,
4906,
549,
17444,
427,
96,
448,
3302,
11029,
121,
3274,
3,
31,
5543,
15,
152,
1907,
3407,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Podium has 1 Race and a Final Place of 5th? | CREATE TABLE table_name_11 (podiums VARCHAR, races VARCHAR, final_placing VARCHAR) | SELECT podiums FROM table_name_11 WHERE races = "1" AND final_placing = "5th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
11410,
2552,
7,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
6,
804,
834,
6042,
75,
53,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1908,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22828,
7,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
10879,
3274,
96,
536,
121,
3430,
804,
834,
6042,
75,
53,
3274,
96,
755,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the least attendance for opponent of new orleans saints and week more than 2 | CREATE TABLE table_67785 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT MIN("Attendance") FROM table_67785 WHERE "Week" > '2' AND "Opponent" = 'new orleans saints' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3940,
755,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
3708,
3940,
755,
549,
17444,
427,
96,
518,
10266,
121,
2490,
3,
31,
357,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
5534,
42,
109,
3247,
155... |
Show names of climbers and the names of mountains they climb. | CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
) | SELECT T1.name, T2.name FROM climber AS T1 JOIN mountain AS T2 ON T1.mountain_id = T2.mountain_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8147,
49,
41,
8147,
49,
834,
23,
26,
381,
6,
564,
1499,
6,
684,
1499,
6,
97,
1499,
6,
979,
381,
6,
4180,
834,
23,
26,
381,
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,
332,
5411,
4350,
6,
332,
4416,
4350,
21680,
8147,
49,
6157,
332,
536,
3,
15355,
3162,
4180,
6157,
332,
357,
9191,
332,
5411,
11231,
9,
77,
834,
23,
26,
3274,
332,
4416,
11231,
9,
77,
834,
23,
26,
1,
-100,
-100,
... |
What date was the result 6–2, 4–6, 6–4? | CREATE TABLE table_11636213_7 (date VARCHAR, result VARCHAR) | SELECT date FROM table_11636213_7 WHERE result = "6–2, 4–6, 6–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
3420,
357,
2368,
834,
940,
41,
5522,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
741,
431,
104,
4482,
314,
104,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
20159,
3420,
357,
2368,
834,
940,
549,
17444,
427,
741,
3274,
96,
948,
104,
4482,
314,
104,
11071,
431,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those records from the products and each product's manufacturer, what is the relationship between code and revenue , and group by attribute name? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
22737,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
5570,
... |
give me the number of patients whose primary disease is gastrointestinal bleed and days of hospital stay is greater than 14? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "GASTROINTESTINAL BLEED" AND demographic.days_stay > "14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
6302,
134,
22749,
21342,
134,
25424,
4090,
272,
3765,
2326,
121,
3430,
... |
What was the average attendance for games played at Atlanta Falcons? | CREATE TABLE table_77283 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Attendance") FROM table_77283 WHERE "Opponent" = 'at atlanta falcons' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2577,
519,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
4013,
2577,
519,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
144,
44,
6761,
9,
12553,
8056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Album # of 5th is what chinese title? | CREATE TABLE table_name_94 (
chinese_title VARCHAR,
album_number VARCHAR
) | SELECT chinese_title FROM table_name_94 WHERE album_number = "5th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
3,
1436,
1496,
15,
834,
21869,
584,
4280,
28027,
6,
2306,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
16135,
1713,
13,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
1436,
1496,
15,
834,
21869,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
2306,
834,
5525,
1152,
3274,
96,
755,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What engine has the Mercedes AMG Petronas f1 team, and 93 points? | CREATE TABLE table_48183 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" text
) | SELECT "Engine" FROM table_48183 WHERE "Entrant" = 'mercedes amg petronas f1 team' AND "Points" = '93' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
24361,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
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,
31477,
121,
21680,
953,
834,
3707,
24361,
549,
17444,
427,
96,
16924,
3569,
121,
3274,
3,
31,
935,
565,
1395,
183,
122,
158,
6255,
9,
7,
3,
89,
536,
372,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
4271,
31,
... |
What is the region for tv vtv? | CREATE TABLE table_60016 (
"Name" text,
"Region" text,
"Programming" text,
"Type" text,
"Encryption" text
) | SELECT "Region" FROM table_60016 WHERE "Name" = 'tv vtv' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6007,
2938,
41,
96,
23954,
121,
1499,
6,
96,
17748,
23,
106,
121,
1499,
6,
96,
3174,
16582,
53,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
8532,
13708,
23,
106,
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,
17748,
23,
106,
121,
21680,
953,
834,
6007,
2938,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17,
208,
3,
208,
17,
208,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.