NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who is the director of the film in Italian? | CREATE TABLE table_name_92 (
director VARCHAR,
language VARCHAR
) | SELECT director FROM table_name_92 WHERE language = "italian" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
2090,
584,
4280,
28027,
6,
1612,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
2090,
13,
8,
814,
16,
4338,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
1612,
3274,
96,
155,
9,
9928,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the language of the film directed by Hans Kristensen? | CREATE TABLE table_name_14 (
language VARCHAR,
director VARCHAR
) | SELECT language FROM table_name_14 WHERE director = "hans kristensen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
1612,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1612,
13,
8,
814,
6640,
57,
10001,
9375,
324,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1612,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
2090,
3274,
96,
2618,
7,
3,
10648,
1913,
7,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Get me the number of patients who have private health insurance and are diagnosed with late effects of cerebrovascular disease hemiplegia affecting an unaffected side. | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.short_title = "Late ef-hemplga side NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Where was the disaster located that took place on 1916? | CREATE TABLE table_name_49 (location VARCHAR, date VARCHAR) | SELECT location FROM table_name_49 WHERE date = "1916" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
14836,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
6912,
1069,
24,
808,
286,
30,
27827,
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,
1128,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
833,
3274,
96,
2294,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Rank has a Finish of 8? | CREATE TABLE table_13662 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) | SELECT "Rank" FROM table_13662 WHERE "Finish" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
4056,
41,
96,
476,
2741,
121,
1499,
6,
96,
7681,
17,
121,
1499,
6,
96,
5991,
138,
121,
1499,
6,
96,
22557,
121,
1499,
6,
96,
371,
77,
1273,
121,
1499,
6,
96,
361... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
121,
21680,
953,
834,
23459,
4056,
549,
17444,
427,
96,
371,
77,
1273,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was pinky's bmi at the reunion? | CREATE TABLE table_4059 (
"Contestant" text,
"Age" real,
"Height" text,
"Starting BMI" text,
"Finale BMI" text,
"Reunion BMI" text,
"Start Weight" text,
"Finale Weight" text,
"Reunion Weight" text,
"lbs lost finale" text,
"lbs lost reunion" real
) | SELECT "Reunion BMI" FROM table_4059 WHERE "Contestant" = 'Pinky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3390,
41,
96,
4302,
4377,
288,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
3845,
2632,
121,
1499,
6,
96,
7681,
1222,
272,
7075,
121,
1499,
6,
96,
371,
10270,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
16598,
272,
7075,
121,
21680,
953,
834,
2445,
3390,
549,
17444,
427,
96,
4302,
4377,
288,
121,
3274,
3,
31,
345,
77,
3781,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What kind of report was for the game played on 29 November with Melbourne Tigers being the away team? | CREATE TABLE table_name_89 (report VARCHAR, date VARCHAR, away_team VARCHAR) | SELECT report FROM table_name_89 WHERE date = "29 november" AND away_team = "melbourne tigers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
60,
1493,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
773,
13,
934,
47,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
934,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
833,
3274,
96,
3166,
3,
5326,
18247,
121,
3430,
550,
834,
11650,
3274,
96,
2341,
26255,
3,
2880,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the Rank of Qi Hui? | CREATE TABLE table_name_52 (
rank VARCHAR,
name VARCHAR
) | SELECT COUNT(rank) FROM table_name_52 WHERE name = "qi hui" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
11003,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
22557,
13,
1593,
23,
3455,
23,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
564,
3274,
96,
1824,
23,
3,
3464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the draws when wins are fwewer than 9 and byes fewer than 2? | CREATE TABLE table_name_15 (draws VARCHAR, wins VARCHAR, byes VARCHAR) | SELECT COUNT(draws) FROM table_name_15 WHERE wins < 9 AND byes < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
19489,
7,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
14924,
116,
9204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19489,
7,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
9204,
3,
2,
668,
3430,
57,
15,
7,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the Home team is carlton, what's the lowest Crowd found? | CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR) | SELECT MIN(crowd) FROM table_name_13 WHERE home_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
75,
3623,
26,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
1210,
372,
19,
443,
7377,
6,
125,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
2368,
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,
... |
What is the Engine(s) that has f Tyres in 1971? | CREATE TABLE table_name_68 (
engine_s_ VARCHAR,
tyres VARCHAR,
year VARCHAR
) | SELECT engine_s_ FROM table_name_68 WHERE tyres = "f" AND year = 1971 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
1948,
834,
7,
834,
584,
4280,
28027,
6,
3,
17,
63,
60,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
834,
7,
834,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
3,
17,
63,
60,
7,
3274,
96,
89,
121,
3430,
215,
3274,
17961,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers? | CREATE TABLE table_name_64 (
total INTEGER,
silver VARCHAR,
bronze VARCHAR,
gold VARCHAR
) | SELECT MIN(total) FROM table_name_64 WHERE bronze > 1 AND gold > 8 AND silver < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
792,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
13467,
2490,
209,
3430,
2045,
2490,
505,
3430,
4294,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How long was the course from Naples to Foggia? | CREATE TABLE table_67235 (
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"Race Leader" text
) | SELECT "Distance" FROM table_67235 WHERE "Course" = 'naples to foggia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
25174,
41,
96,
308,
342,
121,
1499,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
448,
3302,
10310,
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,
308,
23,
8389,
121,
21680,
953,
834,
3708,
25174,
549,
17444,
427,
96,
3881,
3589,
15,
121,
3274,
3,
31,
29,
9,
4788,
7,
12,
5575,
15406,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the 2001 % for the status widowed or surviving partner? | CREATE TABLE table_74101 (
"Status" text,
"2001 number (,000)" real,
"2001 %" text,
"2011 number (,000)" real,
"2011 %" text
) | SELECT "2001 %" FROM table_74101 WHERE "Status" = 'Widowed or surviving partner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
19621,
41,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23658,
381,
41,
6,
2313,
61,
121,
490,
6,
96,
23658,
3,
1454,
121,
1499,
6,
96,
13907,
381,
41,
6,
2313,
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,
96,
23658,
3,
1454,
121,
21680,
953,
834,
4581,
19621,
549,
17444,
427,
96,
134,
17,
144,
302,
121,
3274,
3,
31,
518,
23,
26,
9200,
42,
3,
22279,
2397,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of laps with more than 16 points? | CREATE TABLE table_name_29 (laps INTEGER, points INTEGER) | SELECT MIN(laps) FROM table_name_29 WHERE points > 16 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
8478,
7,
3,
21342,
17966,
6,
979,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
14941,
7,
28,
72,
145,
898,
979,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
979,
2490,
898,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which venue has a Goal of 3? | CREATE TABLE table_name_81 (
venue VARCHAR,
goal VARCHAR
) | SELECT venue FROM table_name_81 WHERE goal = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
5669,
584,
4280,
28027,
6,
1288,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
65,
3,
9,
17916,
13,
220,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1288,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many names correspond to the value 101 for appearances? | CREATE TABLE table_24565004_14 (
name VARCHAR,
appearances¹ VARCHAR
) | SELECT COUNT(name) FROM table_24565004_14 WHERE appearances¹ = 101 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4834,
2560,
591,
834,
2534,
41,
564,
584,
4280,
28027,
6,
3179,
7,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3056,
10423,
12,
8,
701,
137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4350,
61,
21680,
953,
834,
2266,
4834,
2560,
591,
834,
2534,
549,
17444,
427,
3179,
7,
536,
3274,
13736,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the French translation for the English word "orange"? | CREATE TABLE table_2077192_2 (french VARCHAR, english VARCHAR) | SELECT french FROM table_2077192_2 WHERE english = "orange" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4013,
19978,
834,
357,
41,
89,
60,
5457,
584,
4280,
28027,
6,
22269,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2379,
7314,
21,
8,
1566,
1448,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20609,
21680,
953,
834,
1755,
4013,
19978,
834,
357,
549,
17444,
427,
22269,
3274,
96,
32,
5517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the date released when there was 9.7% of Green communist? | CREATE TABLE table_65645 (
"Date Released" text,
"Polling institute" text,
"Social Democratic" text,
"Socialist" text,
"Green-Communist" text,
"Democratic and Social Centre" text,
"Lead" text
) | SELECT "Date Released" FROM table_65645 WHERE "Green-Communist" = '9.7%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
948,
2128,
41,
96,
308,
342,
13048,
26,
121,
1499,
6,
96,
8931,
697,
13681,
121,
1499,
6,
96,
5231,
4703,
10021,
121,
1499,
6,
96,
5231,
4703,
343,
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,
308,
342,
13048,
26,
121,
21680,
953,
834,
4122,
948,
2128,
549,
17444,
427,
96,
22918,
18,
10205,
202,
343,
121,
3274,
3,
31,
8797,
6170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In what Round was Pick 138? | CREATE TABLE table_name_93 (round INTEGER, pick VARCHAR) | SELECT SUM(round) FROM table_name_93 WHERE pick = 138 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
7775,
3,
21342,
17966,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
9609,
47,
8356,
3,
22744,
58,
1,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1432,
3274,
3,
22744,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose procedure short title is abdomen artery incision? | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Abdomen artery incision" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What did they do against Memphis? | CREATE TABLE table_21058823_1 (
result VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_21058823_1 WHERE opponent = "Memphis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
12869,
4060,
2773,
834,
536,
41,
741,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
79,
103,
581,
22715,
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,
741,
21680,
953,
834,
357,
12869,
4060,
2773,
834,
536,
549,
17444,
427,
15264,
3274,
96,
329,
15,
7656,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List all points against with a 0 try bonus and points for of 150. | CREATE TABLE table_17941032_2 (points_against VARCHAR, try_bonus VARCHAR, points_for VARCHAR) | SELECT points_against FROM table_17941032_2 WHERE try_bonus = "0" AND points_for = "150" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26593,
24175,
2668,
834,
357,
41,
2700,
7,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
653,
834,
5407,
302,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
26593,
24175,
2668,
834,
357,
549,
17444,
427,
653,
834,
5407,
302,
3274,
96,
632,
121,
3430,
979,
834,
1161,
3274,
96,
12278,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the nickname of the school located in Manchester, New Hampshire? | CREATE TABLE table_67253 (
"Institution" text,
"Location" text,
"Nickname" text,
"Current Conference" text,
"Classification" text
) | SELECT "Nickname" FROM table_67253 WHERE "Location" = 'manchester, new hampshire' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
1828,
519,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
254,
450,
5320,
4379,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
3142,
4350,
121,
21680,
953,
834,
3708,
1828,
519,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
348,
13263,
6,
126,
3,
1483,
102,
5718,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what procedure was performed on patient 003-33922 for the last time during their first hospital encounter? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '003-33922' AND NOT patient.hospitaldischargetime IS NULL ORDER BY... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
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,
1058,
5,
26889,
4350,
21680,
1058,
549,
17444,
427,
1058,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
... |
What is the Doha, Qatar when the snatch is total? | CREATE TABLE table_name_17 (
doha_ VARCHAR,
_qatar VARCHAR,
snatch VARCHAR
) | SELECT doha_, _qatar FROM table_name_17 WHERE snatch = "total" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
103,
1024,
834,
584,
4280,
28027,
6,
3,
834,
1824,
9,
2046,
584,
4280,
28027,
6,
3,
7,
29,
14547,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
103,
1024,
834,
6,
3,
834,
1824,
9,
2046,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3,
7,
29,
14547,
3274,
96,
235,
1947,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, give me the comparison about manufacturer over the name , and group by attribute name by a bar chart, and I want to list y axis from low to high order please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Manufacturer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
7296,
76,
8717,
450,
49,
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,... |
What was the largest crowd when Melbourne was the away team? | CREATE TABLE table_name_37 (
crowd INTEGER,
away_team VARCHAR
) | SELECT MAX(crowd) FROM table_name_37 WHERE away_team = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
4374,
3,
21342,
17966,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2015,
4374,
116,
9396,
47,
8,
550,
372,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
550,
834,
11650,
3274,
96,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the purpose for Frequency of 102.3? | CREATE TABLE table_name_65 (
purpose VARCHAR,
frequency VARCHAR
) | SELECT purpose FROM table_name_65 WHERE frequency = "102.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
1730,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1730,
21,
5532,
835,
11298,
13,
335,
18561,
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,
1730,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
7321,
3274,
96,
1714,
18561,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the sum of gold when Bronze is less than 0 | CREATE TABLE table_15003 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Gold") FROM table_15003 WHERE "Bronze" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
4928,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23576,
8512,
21680,
953,
834,
12278,
4928,
549,
17444,
427,
96,
22780,
29,
776,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which nationality has a lane of 6 and a rank smaller than 6? | CREATE TABLE table_name_33 (nationality VARCHAR, rank VARCHAR, lane VARCHAR) | SELECT nationality FROM table_name_33 WHERE rank < 6 AND lane = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
16557,
485,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1157,
485,
65,
3,
9,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
11003,
3,
2,
431,
3430,
3,
8102,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Semifinal has an Event of team? | CREATE TABLE table_51294 (
"Event" text,
"2nd round" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text,
"Rank" real
) | SELECT "Semifinal" FROM table_51294 WHERE "Event" = 'team' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24163,
4240,
41,
96,
427,
2169,
121,
1499,
6,
96,
357,
727,
1751,
121,
1499,
6,
96,
5991,
1408,
49,
12406,
121,
1499,
6,
96,
134,
15,
51,
23,
12406,
121,
1499,
6,
96,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
15,
51,
23,
12406,
121,
21680,
953,
834,
24163,
4240,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
11650,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What rank is Super Mario Land 2: 6 Golden Coins? | CREATE TABLE table_22436 (
"Rank" real,
"Title" text,
"Release Date" text,
"Franchise" text,
"Developer(s)" text,
"Platform" text,
"Units sold (in Millions)" text
) | SELECT MIN("Rank") FROM table_22436 WHERE "Title" = 'Super Mario Land 2: 6 Golden Coins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
3420,
41,
96,
22557,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
1649,
40,
14608,
7678,
121,
1499,
6,
96,
371,
2002,
1436,
7,
15,
121,
1499,
6,
96,
2962,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22557,
8512,
21680,
953,
834,
24622,
3420,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
23290,
14082,
2216,
204,
10,
431,
7100,
15589,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is every release price(USD) for model number core i5-650? | CREATE TABLE table_23028629_2 (
release_price___usd__ VARCHAR,
model_number VARCHAR
) | SELECT release_price___usd__ FROM table_23028629_2 WHERE model_number = "Core i5-650" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
357,
3840,
3166,
834,
357,
41,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
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,
1576,
834,
102,
4920,
834,
834,
834,
302,
26,
834,
834,
21680,
953,
834,
13427,
357,
3840,
3166,
834,
357,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
13026,
15,
3,
23,
755,
18,
15348,
121,
1,
-100,
-100,
-10... |
What is the Area KM 2 of Rothesay? | CREATE TABLE table_171236_2 (area_km_2 VARCHAR, official_name VARCHAR) | SELECT COUNT(area_km_2) FROM table_171236_2 WHERE official_name = "Rothesay" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2122,
3420,
834,
357,
41,
498,
834,
5848,
834,
357,
584,
4280,
28027,
6,
2314,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5690,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
498,
834,
5848,
834,
7318,
21680,
953,
834,
2517,
2122,
3420,
834,
357,
549,
17444,
427,
2314,
834,
4350,
3274,
96,
448,
32,
532,
8735,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who has a Took Office of march 4, 1903? | CREATE TABLE table_name_32 (name VARCHAR, took_office VARCHAR) | SELECT name FROM table_name_32 WHERE took_office = "march 4, 1903" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
4350,
584,
4280,
28027,
6,
808,
834,
19632,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
3,
9,
304,
1825,
2126,
13,
10556,
6464,
957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
808,
834,
19632,
3274,
96,
51,
7064,
6464,
957,
4928,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many people attended on April 12? | CREATE TABLE table_name_75 (attendance VARCHAR, date VARCHAR) | SELECT COUNT(attendance) FROM table_name_75 WHERE date = "april 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
30,
1186,
586,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the try bonus when there were 58 points? | CREATE TABLE table_name_67 (
try_bonus VARCHAR,
points VARCHAR
) | SELECT try_bonus FROM table_name_67 WHERE points = "58" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
653,
834,
5407,
302,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
653,
4023,
116,
132,
130,
3,
3449,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
653,
834,
5407,
302,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
979,
3274,
96,
3449,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the part number of the processor that has an 1.8 ghz frequency and 2 256 kb L@ Cache? | CREATE TABLE table_name_56 (
part_number_s_ VARCHAR,
l2_cache VARCHAR,
frequency VARCHAR
) | SELECT part_number_s_ FROM table_name_56 WHERE l2_cache = "2 × 256 kb" AND frequency = "1.8 ghz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
294,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
3,
40,
357,
834,
75,
4933,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
3,
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,
294,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3,
40,
357,
834,
75,
4933,
3274,
96,
357,
3,
2,
3,
19337,
3,
157,
115,
121,
3430,
7321,
3274,
96,
16253,
3,
122,
107,
172,
... |
What is the Netflix episode that has a series episode of 6-02? | CREATE TABLE table_name_98 (
netflix VARCHAR,
series_ep VARCHAR
) | SELECT netflix FROM table_name_98 WHERE series_ep = "6-02" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
3134,
89,
17591,
584,
4280,
28027,
6,
939,
834,
15,
102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11894,
5640,
24,
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,
3134,
89,
17591,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
939,
834,
15,
102,
3274,
96,
28625,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which event happened in 1988? | CREATE TABLE table_name_91 (
name VARCHAR,
year VARCHAR
) | SELECT name FROM table_name_91 WHERE year = "1988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
564,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
605,
2817,
16,
10414,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
215,
3274,
96,
2294,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the admission type and discharge location of subject id 17570? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.admission_type, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "17570" | [
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,
14798,
5,
9,
26,
5451,
834,
6137,
6,
14798,
5,
26,
159,
7993,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
2517,
28363,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the opponent on December 16, 1989? | CREATE TABLE table_43852 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT "Opponent" FROM table_43852 WHERE "Date" = 'december 16, 1989' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4433,
357,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
4906,
4433,
357,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
11940,
9975,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show me mean age by sex in a histogram, rank by the X in desc. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
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 Has_Allergy (
StuID INTEGE... | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY Sex DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
71,
17217,
599,
188,
397,
61,
21680,
6341,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Attendance has a Score of 0:2? | CREATE TABLE table_47728 (
"Date" text,
"Home" text,
"Score" text,
"Away" text,
"Attendance" real
) | SELECT MAX("Attendance") FROM table_47728 WHERE "Score" = '0:2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4013,
2577,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
591,
4013,
2577,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
632,
10,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the entrant when the year is less than 1953? | CREATE TABLE table_name_97 (
entrant VARCHAR,
year INTEGER
) | SELECT entrant FROM table_name_97 WHERE year < 1953 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
3,
295,
3569,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
3,
295,
3569,
116,
8,
215,
19,
705,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
215,
3,
2,
23726,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)? | CREATE TABLE table_28820 (
"Hydrographic Basin" text,
"Surface Area (km 2 )" real,
"Rainfall totals (million m 3 )" real,
"Evapotranspiration (million m 3 )" real,
"Surface water runoff (million m 3 )" real,
"Groundwater discharge (million m 3 )" real
) | SELECT "Rainfall totals (million m 3 )" FROM table_28820 WHERE "Hydrographic Basin" = 'Martha Brae, River' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4060,
1755,
41,
96,
566,
63,
26,
52,
16587,
6653,
77,
121,
1499,
6,
96,
134,
450,
4861,
5690,
41,
5848,
204,
3,
61,
121,
490,
6,
96,
448,
9,
77,
2857,
792,
7,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
9,
77,
2857,
792,
7,
41,
17030,
3,
51,
220,
3,
61,
121,
21680,
953,
834,
357,
4060,
1755,
549,
17444,
427,
96,
566,
63,
26,
52,
16587,
6653,
77,
121,
3274,
3,
31,
7286,
189,
9,
3497,
15,
6,
2473,
31... |
what is the number of patients whose gender is f and diagnoses short title is constipation nos? | 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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Constipation NOS" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the lowest relative permeability with a skin depth larger than 0.112 inches? | CREATE TABLE table_68992 (
"Material" text,
"Resistivity (10 \u22126 ohm-inches)" real,
"Relative permeability" real,
"Skin depth, inches" real,
"Surface resistance, Relative to copper" real
) | SELECT MIN("Relative permeability") FROM table_68992 WHERE "Skin depth, inches" > '0.112' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3264,
357,
41,
96,
329,
342,
12042,
121,
1499,
6,
96,
1649,
7,
343,
10696,
11704,
3,
2,
76,
2884,
21976,
3,
32,
107,
51,
18,
77,
2951,
61,
121,
490,
6,
96,
1649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
40,
1528,
3,
31970,
485,
8512,
21680,
953,
834,
3651,
3264,
357,
549,
17444,
427,
96,
134,
2917,
4963,
6,
5075,
121,
2490,
3,
31,
16029,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what country won the same number of bronze as great britain , yet did not win a gold medal ? | CREATE TABLE table_203_206 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_206 WHERE "nation" <> 'great britain' AND "bronze" = (SELECT "bronze" FROM table_203_206 WHERE "nation" = 'great britain') AND "gold" = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24643,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
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,
29,
257,
121,
21680,
953,
834,
23330,
834,
24643,
549,
17444,
427,
96,
29,
257,
121,
3,
2,
3155,
3,
31,
20288,
3,
115,
10694,
77,
31,
3430,
96,
13711,
776,
121,
3274,
41,
23143,
14196,
96,
13711,
776,
121,
2... |
What is the score when Philadelphia was the visitor with a Record of 7 4 0? | CREATE TABLE table_52295 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Score" FROM table_52295 WHERE "Visitor" = 'philadelphia' AND "Record" = '7–4–0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
357,
3301,
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,
2962,
18901,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
5373,
357,
3301,
549,
17444,
427,
96,
553,
159,
155,
127,
121,
3274,
3,
31,
18118,
15311,
11692,
9,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
940,
104,
591,
104,
632,
31,
1... |
When total goals is 11 what was the league apps (sub)? | CREATE TABLE table_1112176_1 (league_apps__sub_ INTEGER, total_goals VARCHAR) | SELECT MAX(league_apps__sub_) FROM table_1112176_1 WHERE total_goals = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
2658,
3959,
834,
536,
41,
29512,
834,
3096,
7,
834,
834,
7304,
834,
3,
21342,
17966,
6,
792,
834,
839,
5405,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
29512,
834,
3096,
7,
834,
834,
7304,
834,
61,
21680,
953,
834,
15866,
2658,
3959,
834,
536,
549,
17444,
427,
792,
834,
839,
5405,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average number of casualties for the convoy with a number of U-844? | CREATE TABLE table_49185 (
"Date" text,
"Number" text,
"Type" text,
"Captain" text,
"Casualties" real
) | SELECT AVG("Casualties") FROM table_49185 WHERE "Number" = 'u-844' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
21594,
41,
96,
308,
342,
121,
1499,
6,
96,
567,
5937,
49,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
19566,
17,
9,
77,
121,
1499,
6,
96,
254,
9,
7,
3471,
3010,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
254,
9,
7,
3471,
3010,
8512,
21680,
953,
834,
3647,
21594,
549,
17444,
427,
96,
567,
5937,
49,
121,
3274,
3,
31,
76,
6039,
3628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many codes have a population of 598 in Vellinge Municipality? | CREATE TABLE table_16796625_1 (
code VARCHAR,
municipality VARCHAR,
population VARCHAR
) | SELECT COUNT(code) FROM table_16796625_1 WHERE municipality = "Vellinge municipality" AND population = 598 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4440,
3539,
1828,
834,
536,
41,
1081,
584,
4280,
28027,
6,
27597,
584,
4280,
28027,
6,
2074,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5633,
43,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4978,
61,
21680,
953,
834,
2938,
4440,
3539,
1828,
834,
536,
549,
17444,
427,
27597,
3274,
96,
553,
15,
12013,
15,
27597,
121,
3430,
2074,
3274,
305,
3916,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find number of tracks in each genre? | CREATE TABLE genres (
name VARCHAR,
id VARCHAR
)
CREATE TABLE tracks (
genre_id VARCHAR
) | SELECT COUNT(*), T1.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id GROUP BY T1.name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5349,
7,
41,
564,
584,
4280,
28027,
6,
3,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6542,
41,
5349,
834,
23,
26,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
201,
332,
5411,
4350,
21680,
5349,
7,
6157,
332,
536,
3,
15355,
3162,
6542,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
729,
60,
834,
23,
26,
350,
4630,
6880,
272,
476,
332,
5... |
How many Away Losses have Home Losses larger than 3, and Wins smaller than 5? | CREATE TABLE table_46380 (
"Institution" text,
"Wins" real,
"Loss" real,
"Home Wins" real,
"Home Losses" real,
"Away Wins" real,
"Away Losses" real,
"Neutral Wins" real,
"Neutral Losses" real
) | SELECT COUNT("Away Losses") FROM table_46380 WHERE "Home Losses" > '3' AND "Wins" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
22671,
41,
96,
1570,
17448,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
19040,
4871,
7,
121,
490,
6,
96,
19040,
3144,
2260,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
188,
1343,
3144,
2260,
8512,
21680,
953,
834,
4448,
22671,
549,
17444,
427,
96,
19040,
3144,
2260,
121,
2490,
3,
31,
519,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
755,
31,
1,
-100,
-100,
... |
On what Surface was the match against Malek Jaziri played? | CREATE TABLE table_name_78 (surface VARCHAR, opponent VARCHAR) | SELECT surface FROM table_name_78 WHERE opponent = "malek jaziri" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
26899,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
18884,
47,
8,
1588,
581,
17830,
157,
2215,
702,
52,
23,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
15264,
3274,
96,
13513,
157,
2662,
702,
52,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Can you draw the trend of the average of capacity over the openning year?, and sort by the x axis in desc. | CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_seaso... | SELECT Openning_year, AVG(Capacity) FROM cinema ORDER BY Openning_year DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10276,
41,
17544,
834,
4309,
16,
17,
6,
5570,
1499,
6,
2384,
29,
53,
834,
1201,
16,
17,
6,
4000,
9,
6726,
16,
17,
6,
10450,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2384,
29,
53,
834,
1201,
6,
71,
17217,
599,
19566,
9,
6726,
61,
21680,
10276,
4674,
11300,
272,
476,
2384,
29,
53,
834,
1201,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the directed by season # 2 | CREATE TABLE table_23286722_1 (directed_by VARCHAR, season__number VARCHAR) | SELECT directed_by FROM table_23286722_1 WHERE season__number = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
3708,
2884,
834,
536,
41,
22955,
834,
969,
584,
4280,
28027,
6,
774,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6640,
57,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6640,
834,
969,
21680,
953,
834,
2773,
2577,
3708,
2884,
834,
536,
549,
17444,
427,
774,
834,
834,
5525,
1152,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the batting style for heath streak | CREATE TABLE table_name_57 (
batting_style VARCHAR,
player VARCHAR
) | SELECT batting_style FROM table_name_57 WHERE player = "heath streak" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
3,
27759,
834,
4084,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
27759,
869,
21,
1678,
107,
18631,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
27759,
834,
4084,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1959,
3274,
96,
88,
9,
189,
18631,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which team has Pick 13 in Round 2? | CREATE TABLE table_10391 (
"Round" text,
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text,
"College" text
) | SELECT "Team" FROM table_10391 WHERE "Round" = '2' AND "Pick" = '13' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17864,
4729,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
345,
3142,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
17864,
4729,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
357,
31,
3430,
96,
345,
3142,
121,
3274,
3,
31,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which was the lowest overall that Wisconsin's team managed? | CREATE TABLE table_name_78 (
overall INTEGER,
school_club_team VARCHAR
) | SELECT MIN(overall) FROM table_name_78 WHERE school_club_team = "wisconsin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
1879,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
47,
8,
7402,
1879,
24,
10212,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1890,
1748,
61,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
210,
159,
8056,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the away team for tie number 9? | CREATE TABLE table_name_6 (
away_team VARCHAR,
tie_no VARCHAR
) | SELECT away_team FROM table_name_6 WHERE tie_no = "9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
550,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
550,
372,
21,
6177,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the total number of patients who had unspecified chronic pulmonary heart disease? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Chronic pulmonary heart disease, unspecified" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
when deland is the fcsl team and 2008 is the year played who is the mlb team? | CREATE TABLE table_18373863_2 (
mlb_team VARCHAR,
years_played VARCHAR,
fcsl_team VARCHAR
) | SELECT mlb_team FROM table_18373863_2 WHERE years_played = "2008" AND fcsl_team = "DeLand" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4118,
3747,
3891,
834,
357,
41,
3,
51,
40,
115,
834,
11650,
584,
4280,
28027,
6,
203,
834,
4895,
15,
26,
584,
4280,
28027,
6,
3,
89,
75,
7,
40,
834,
11650,
584,
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,
3,
51,
40,
115,
834,
11650,
21680,
953,
834,
2606,
4118,
3747,
3891,
834,
357,
549,
17444,
427,
203,
834,
4895,
15,
26,
3274,
96,
16128,
121,
3430,
3,
89,
75,
7,
40,
834,
11650,
3274,
96,
2962,
434,
232,
121,
1,... |
during the first hospital encounter, how much did patient 012-169 weigh for the first time? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-169' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL ORDER BY pat... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
1868,
5,
9,
26,
5451,
9378,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1... |
allergy to sulfa; | CREATE TABLE table_train_182 (
"id" int,
"allergy_to_sulfa" bool,
"creatinine_clearance_cl" float,
"liver_disease" bool,
"allergy_to_glyburide" bool,
"allergy_to_metformin" bool,
"NOUSE" float
) | SELECT * FROM table_train_182 WHERE allergy_to_sulfa = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2606,
357,
41,
96,
23,
26,
121,
16,
17,
6,
96,
11211,
122,
63,
834,
235,
834,
7,
83,
89,
9,
121,
3,
12840,
40,
6,
96,
5045,
144,
77,
630,
834,
2482,
9,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
2606,
357,
549,
17444,
427,
23886,
834,
235,
834,
7,
83,
89,
9,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many games were recorded when the team was @ Memphis? | CREATE TABLE table_17326036_6 (
game VARCHAR,
team VARCHAR
) | SELECT COUNT(game) FROM table_17326036_6 WHERE team = "@ Memphis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2668,
3328,
3420,
834,
948,
41,
467,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1031,
130,
4381,
116,
8,
372,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
2517,
2668,
3328,
3420,
834,
948,
549,
17444,
427,
372,
3274,
96,
1741,
22715,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness? | CREATE TABLE table_name_99 (
year INTEGER,
rank VARCHAR,
name VARCHAR
) | SELECT MIN(year) FROM table_name_99 WHERE rank < 132 AND name = "biodiversity richness" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
215,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
7402,
2929,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
11003,
3,
2,
3,
23757,
3430,
564,
3274,
96,
6420,
8481,
277,
485,
2354,
655,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the gold medal count ranked 2 with a total of more than 21? | CREATE TABLE table_61821 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT COUNT("Gold") FROM table_61821 WHERE "Rank" = '2' AND "Total" > '21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2606,
2658,
41,
96,
22557,
121,
490,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
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,
2847,
17161,
599,
121,
23576,
8512,
21680,
953,
834,
948,
2606,
2658,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
357,
31,
3430,
96,
3696,
1947,
121,
2490,
3,
31,
2658,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients who were given a stool microbiology test since 5 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 lab (
labid numbe... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT microlab.patientunitstayid FROM microlab WHERE microlab.culturesite = 'stool' AND DATETIME(microlab.culturetakentime) >= DATETIME(CURRENT_TIME(), '-5 year')) | [
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,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
21680,
2179,
... |
Who constructed Aguri Suzuki's car? | CREATE TABLE table_name_4 (constructor VARCHAR, driver VARCHAR) | SELECT constructor FROM table_name_4 WHERE driver = "aguri suzuki" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
15982,
5317,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
8520,
4821,
459,
26855,
31,
7,
443,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6774,
127,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
2535,
3274,
96,
9,
122,
459,
2629,
1000,
2168,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which city is home to the greatest number of historic sites , existing or demolished ? | CREATE TABLE table_204_558 (
id number,
"name" text,
"location" text,
"city" text,
"listing date" text
) | SELECT "city" FROM table_204_558 GROUP BY "city" ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
755,
3449,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
6726,
121,
1499,
6,
96,
3350,
53,
833,
121,
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,
96,
6726,
121,
21680,
953,
834,
26363,
834,
755,
3449,
350,
4630,
6880,
272,
476,
96,
6726,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many patients died before the year 2186 and were diagnosed with icd9 code 7778? | 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 ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2186.0" AND diagnoses.icd9_code = "7778" | [
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 Circuit has the Winning Team of carlin motorsport, and the Winning Driver of oliver turvey, and a Date of 24 march? | CREATE TABLE table_49880 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Team" text
) | SELECT "Circuit" FROM table_49880 WHERE "Winning Team" = 'carlin motorsport' AND "Winning Driver" = 'oliver turvey' AND "Date" = '24 march' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3916,
2079,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
254,
23,
52,
21560,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
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,
96,
254,
23,
52,
21560,
121,
21680,
953,
834,
591,
3916,
2079,
549,
17444,
427,
96,
518,
10503,
2271,
121,
3274,
3,
31,
1720,
40,
77,
2340,
6661,
31,
3430,
96,
518,
10503,
10546,
121,
3274,
3,
31,
4172,
624,
3,
... |
The League Cup of 0 40 0 (6) also has what listed in the Europe column? | CREATE TABLE table_68720 (
"Name" text,
"Years" text,
"League" text,
"FA Cup" text,
"League Cup" text,
"Europe" text,
"Other [C ]" text,
"Total" text
) | SELECT "Europe" FROM table_68720 WHERE "League Cup" = '0 40 0 (6)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
18517,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
4795,
3802,
121,
1499,
6,
96,
2796,
9,
5398,
3802,
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,
11351,
121,
21680,
953,
834,
3651,
18517,
549,
17444,
427,
96,
2796,
9,
5398,
3802,
121,
3274,
3,
31,
632,
1283,
3,
632,
3,
18669,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the biggest Bronze that has less than 0 Silvers? | CREATE TABLE table_name_73 (bronze INTEGER, silver INTEGER) | SELECT MAX(bronze) FROM table_name_73 WHERE silver < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
13711,
776,
3,
21342,
17966,
6,
4294,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
2630,
20841,
24,
65,
705,
145,
3,
632,
5642,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
4294,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is every high point when the team is Washington? | CREATE TABLE table_21541 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_21541 WHERE "Team" = 'Washington' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
1808,
4853,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
979,
121,
21680,
953,
834,
357,
1808,
4853,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
518,
3198,
6029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average price for products? | CREATE TABLE Products (
Product_Price INTEGER
) | SELECT AVG(Product_Price) FROM Products | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
6246,
834,
345,
4920,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
594,
21,
494,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
3174,
7472,
834,
345,
4920,
61,
21680,
7554,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When the home team was South Melbourne, what did the away team score? | CREATE TABLE table_name_64 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team AS score FROM table_name_64 WHERE home_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
234,
372,
47,
1013,
9396,
6,
125... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4389,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What loss occurred on August 21? | CREATE TABLE table_name_57 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_57 WHERE date = "august 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
2298,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1453,
6935,
30,
1660,
1401,
58,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1453,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
833,
3274,
96,
402,
17198,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average ROM size of phones produced by the company named "Nokia Corporation"? | CREATE TABLE phone (chip_model VARCHAR, Company_name VARCHAR); CREATE TABLE chip_model (ROM_MiB INTEGER, Model_name VARCHAR) | SELECT AVG(T1.ROM_MiB) FROM chip_model AS T1 JOIN phone AS T2 ON T1.Model_name = T2.chip_model WHERE T2.Company_name = "Nokia Corporation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
41,
17362,
834,
21770,
584,
4280,
28027,
6,
1958,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6591,
834,
21770,
41,
13103,
834,
329,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
5411,
13103,
834,
329,
23,
279,
61,
21680,
6591,
834,
21770,
6157,
332,
536,
3,
15355,
3162,
951,
6157,
332,
357,
9191,
332,
5411,
24663,
834,
4350,
3274,
332,
4416,
17362,
834,
21770,
549,
17444,... |
How many series had viewers totaling 23.93 million? | CREATE TABLE table_18217753_1 (
series__number VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT COUNT(series__number) FROM table_18217753_1 WHERE us_viewers__millions_ = "23.93" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
2658,
4013,
4867,
834,
536,
41,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10833,
7,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2606,
2658,
4013,
4867,
834,
536,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
2773,
5,
4271,
121,
1,
-100,
-100,
... |
What was the lowest total of medals won by Croatia? | CREATE TABLE table_name_12 (
total INTEGER,
nation VARCHAR
) | SELECT MIN(total) FROM table_name_12 WHERE nation = "croatia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
792,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
792,
13,
9365,
7,
751,
57,
19789,
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,
3,
17684,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
2982,
3274,
96,
2771,
144,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the results on September 24, 1995? | CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR) | SELECT result FROM table_name_11 WHERE date = "september 24, 1995" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
772,
30,
1600,
14320,
7273,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
14320,
7273,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where did the player loaned out on 27 november 2008 move to ? | CREATE TABLE table_name_65 (moving_to VARCHAR, date_from VARCHAR) | SELECT moving_to FROM table_name_65 WHERE date_from = "27 november 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
7168,
53,
834,
235,
584,
4280,
28027,
6,
833,
834,
7152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
410,
8,
1959,
2289,
15,
26,
91,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1735,
834,
235,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
833,
834,
7152,
3274,
96,
2555,
3,
5326,
18247,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the first broadcast date of the episode in which Sean's team is made up of Peter Serafinowicz and Johnny Vegas? | CREATE TABLE table_23292220_3 (first_broadcast VARCHAR, seans_team VARCHAR) | SELECT first_broadcast FROM table_23292220_3 WHERE seans_team = "Peter Serafinowicz and Johnny Vegas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3166,
2884,
1755,
834,
519,
41,
14672,
834,
115,
8635,
5254,
584,
4280,
28027,
6,
142,
3247,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
166,
834,
115,
8635,
5254,
21680,
953,
834,
2773,
3166,
2884,
1755,
834,
519,
549,
17444,
427,
142,
3247,
834,
11650,
3274,
96,
345,
15,
449,
5631,
9,
89,
23,
7651,
447,
172,
11,
18398,
7615,
121,
1,
-100,
-100,
-... |
What is the Segment B when the Segment D is s Hammock? | CREATE TABLE table_19941 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment B" FROM table_19941 WHERE "Segment D" = 's Hammock' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19479,
4853,
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,
272,
121,
21680,
953,
834,
19479,
4853,
549,
17444,
427,
96,
134,
15,
122,
297,
309,
121,
3274,
3,
31,
7,
5845,
51,
3961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many tracks have a single density? | CREATE TABLE table_64894 (
"Size" text,
"Density" text,
"Tracks" real,
"Coercivity" text,
"Unformatted capacity per side" text
) | SELECT COUNT("Tracks") FROM table_64894 WHERE "Density" = 'single' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
3914,
591,
41,
96,
134,
1737,
121,
1499,
6,
96,
308,
35,
7,
485,
121,
1499,
6,
96,
382,
16729,
7,
121,
490,
6,
96,
3881,
49,
75,
10696,
121,
1499,
6,
96,
5110,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
16729,
7,
8512,
21680,
953,
834,
4389,
3914,
591,
549,
17444,
427,
96,
308,
35,
7,
485,
121,
3274,
3,
31,
7,
53,
109,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the no. 4 team that has the no. 5 player Susana Telmo? | CREATE TABLE table_67736 (
"No.1" text,
"No.2" text,
"No.3" text,
"No.4" text,
"No.5" text,
"Intruder" text,
"No.6" text,
"No.7" text,
"No.8" text,
"No.9" text,
"FINAL" text
) | SELECT "No.4" FROM table_67736 WHERE "No.5" = 'susana telmo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
940,
3420,
41,
96,
4168,
5,
536,
121,
1499,
6,
96,
4168,
5,
357,
121,
1499,
6,
96,
4168,
5,
519,
121,
1499,
6,
96,
4168,
5,
20364,
1499,
6,
96,
4168,
5,
17395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
5,
20364,
21680,
953,
834,
3708,
940,
3420,
549,
17444,
427,
96,
4168,
5,
17395,
3274,
3,
31,
7,
302,
152,
9,
3,
1625,
51,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the sum of gross tonnage for wood on date more tahn 1846 for comissioned and ship of esk | CREATE TABLE table_name_75 (
gross_tonnage INTEGER,
ship VARCHAR,
material VARCHAR,
date_commissioned VARCHAR
) | SELECT SUM(gross_tonnage) FROM table_name_75 WHERE material = "wood" AND date_commissioned > 1846 AND ship = "esk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
8690,
834,
17,
106,
9761,
3,
21342,
17966,
6,
4383,
584,
4280,
28027,
6,
1037,
584,
4280,
28027,
6,
833,
834,
17183,
584,
4280,
28027,
3,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
3844,
7,
7,
834,
17,
106,
9761,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
1037,
3274,
96,
2037,
121,
3430,
833,
834,
17183,
2490,
507,
4448,
3430,
4383,
3274,
96,
15,
7,
157,
121,
1,
... |
Who are all high points in game 14? | CREATE TABLE table_23248940_6 (high_points VARCHAR, game VARCHAR) | SELECT high_points FROM table_23248940_6 WHERE game = 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
2445,
834,
948,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
66,
306,
979,
16,
467,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
2773,
2266,
3914,
2445,
834,
948,
549,
17444,
427,
467,
3274,
968,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the notes when the rank is less than 2? | CREATE TABLE table_name_59 (
notes VARCHAR,
rank INTEGER
) | SELECT notes FROM table_name_59 WHERE rank < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
3358,
584,
4280,
28027,
6,
11003,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
3358,
116,
8,
11003,
19,
705,
145,
204,
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,
3358,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
11003,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest score of round 1 where they also shot 90 in round 2 | CREATE TABLE table_1091 (
"Place" real,
"Shooter" text,
"Total" real,
"Round 1" real,
"Round 2" real,
"Round 3" real,
"Round 4" real,
"Round 5" real,
"Round 6" real
) | SELECT MAX("Round 1") FROM table_1091 WHERE "Round 2" = '90' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4729,
41,
96,
345,
11706,
121,
490,
6,
96,
10499,
32,
32,
449,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
448,
32,
1106,
209,
121,
490,
6,
96,
448,
32,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
209,
8512,
21680,
953,
834,
1714,
4729,
549,
17444,
427,
96,
448,
32,
1106,
204,
121,
3274,
3,
31,
2394,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When did the rank 9 building got completed? | CREATE TABLE table_67459 (
"Rank" text,
"Building Name" text,
"Street address" text,
"Height feet (meters)" text,
"Floors" real,
"Completed" real
) | SELECT "Completed" FROM table_67459 WHERE "Rank" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
591,
3390,
41,
96,
22557,
121,
1499,
6,
96,
24752,
53,
5570,
121,
1499,
6,
96,
11500,
15,
15,
17,
1115,
121,
1499,
6,
96,
3845,
2632,
1922,
41,
4401,
7,
61,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
29014,
26,
121,
21680,
953,
834,
3708,
591,
3390,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
1298,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the margin when periyakulam is the constituency? | CREATE TABLE table_22754491_1 (margin VARCHAR, constituency VARCHAR) | SELECT margin FROM table_22754491_1 WHERE constituency = "Periyakulam" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3072,
3628,
4729,
834,
536,
41,
1635,
122,
77,
584,
4280,
28027,
6,
6439,
4392,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6346,
116,
158,
26038,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6346,
21680,
953,
834,
2884,
3072,
3628,
4729,
834,
536,
549,
17444,
427,
6439,
4392,
3274,
96,
12988,
23,
20856,
83,
265,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show different nominees and the number of musicals they have been nominated. Plot them as bar chart. | CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7556,
41,
1983,
127,
834,
4309,
16,
17,
6,
5570,
1499,
6,
22307,
834,
4309,
16,
17,
6,
20087,
1499,
6,
20610,
1499,
6,
1246,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
465,
8695,
15,
6,
2847,
17161,
599,
1935,
61,
21680,
4183,
350,
4630,
6880,
272,
476,
465,
8695,
15,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What surface was the April 24, 2003 match played on? | CREATE TABLE table_51661 (
"Edition" text,
"Round" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Result" text
) | SELECT "Surface" FROM table_51661 WHERE "Date" = 'april 24, 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2938,
4241,
41,
96,
427,
10569,
121,
1499,
6,
96,
448,
32,
1106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
755,
2938,
4241,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
14320,
3888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the result of the game on September 25 with a box score of box? | CREATE TABLE table_33424 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Box scores" text,
"Attendance" text
) | SELECT "Result" FROM table_33424 WHERE "Box scores" = 'box' AND "Date" = 'september 25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3710,
2266,
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,
134,
17,
9,
12925,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
519,
3710,
2266,
549,
17444,
427,
96,
16075,
7586,
121,
3274,
3,
31,
2689,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
944,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the "date became customers" of the customers whose ID is between 10 and 20. | CREATE TABLE customers (date_became_customer VARCHAR, customer_id INTEGER) | SELECT date_became_customer FROM customers WHERE customer_id BETWEEN 10 AND 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
5522,
834,
346,
6527,
15,
834,
25697,
49,
584,
4280,
28027,
6,
884,
834,
23,
26,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
96,
5522,
1632,
722,
121,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
346,
6527,
15,
834,
25697,
49,
21680,
722,
549,
17444,
427,
884,
834,
23,
26,
272,
7969,
518,
23394,
335,
3430,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.