NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the Median household income associated with a median family income of $46,616? | CREATE TABLE table_39686 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
) | SELECT "Median household income" FROM table_39686 WHERE "Median family income" = '$46,616' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4314,
3840,
41,
96,
10628,
63,
121,
1499,
6,
96,
12988,
23219,
2055,
121,
1499,
6,
96,
24607,
29,
5699,
2055,
121,
1499,
6,
96,
24607,
29,
384,
2055,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24607,
29,
5699,
2055,
121,
21680,
953,
834,
519,
4314,
3840,
549,
17444,
427,
96,
24607,
29,
384,
2055,
121,
3274,
3,
31,
3229,
4448,
6,
948,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Geological Trend has an Operator(s) of woc? | CREATE TABLE table_name_41 (
geological_trend VARCHAR,
operator_s_ VARCHAR
) | SELECT geological_trend FROM table_name_41 WHERE operator_s_ = "woc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
873,
4478,
834,
22517,
584,
4280,
28027,
6,
7221,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
961,
4478,
11145,
65,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
873,
4478,
834,
22517,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
7221,
834,
7,
834,
3274,
96,
210,
32,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what nationality is on top of french navy ? | CREATE TABLE table_203_148 (
id number,
"date" text,
"name" text,
"nationality" text,
"tonnage\n(grt)" number,
"fate" text
) | SELECT "nationality" FROM table_203_148 WHERE id = (SELECT id FROM table_203_148 WHERE "nationality" = 'french navy') - 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24748,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
17,
106,
9761,
2,
29,
599,
122,
52,
17,
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,
16557,
485,
121,
21680,
953,
834,
23330,
834,
24748,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
23330,
834,
24748,
549,
17444,
427,
96,
16557,
485,
121,
3274,
3,
31,
89,
60... |
What's the amount of winnings (in $) in the year with 2 wins? | CREATE TABLE table_1909647_2 (
winnings VARCHAR,
wins VARCHAR
) | SELECT winnings FROM table_1909647_2 WHERE wins = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
4314,
4177,
834,
357,
41,
3447,
7,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
866,
13,
3447,
7,
41,
77,
1514... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
7,
21680,
953,
834,
11776,
4314,
4177,
834,
357,
549,
17444,
427,
9204,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opposing team at Schaefer Stadium later in the season than week 7? | CREATE TABLE table_9614 (
"Week" real,
"Date" text,
"Opponent" text,
"Stadium" text,
"Result" text,
"Record" text,
"Streak" text,
"Attendance" real
) | SELECT "Opponent" FROM table_9614 WHERE "Week" > '7' AND "Stadium" = 'schaefer stadium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4314,
2534,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
20119,
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,
667,
102,
9977,
121,
21680,
953,
834,
4314,
2534,
549,
17444,
427,
96,
518,
10266,
121,
2490,
3,
31,
940,
31,
3430,
96,
134,
17,
9,
12925,
121,
3274,
3,
31,
860,
9,
15,
1010,
14939,
31,
1,
-100,
-100,
-100,
... |
what country had the least arrivals per 1000 inhabitants in 2007 -lrb- estimated -rrb- ? | CREATE TABLE table_203_54 (
id number,
"selected\nlatin american\ncountries" text,
"internl.\ntourism\narrivals\n2010\n(x 1000)" number,
"internl.\ntourism\nreceipts.\n2010\n(usd\n(x1000)" number,
"average\nreceipt\nper visitor\n2009\n(usd/turista)" number,
"tourist\narrivals\nper\n1000 inhab\n(... | SELECT "selected\nlatin american\ncountries" FROM table_203_54 ORDER BY "tourist\narrivals\nper\n1000 inhab\n(estimated)\n2007" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
5062,
41,
3,
23,
26,
381,
6,
96,
7,
19971,
2,
29,
14098,
10211,
2,
29,
13362,
2593,
121,
1499,
6,
96,
3870,
29,
40,
5,
2,
29,
30712,
2,
29,
291,
25295,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7,
19971,
2,
29,
14098,
10211,
2,
29,
13362,
2593,
121,
21680,
953,
834,
23330,
834,
5062,
4674,
11300,
272,
476,
96,
17,
1211,
343,
2,
29,
291,
25295,
7,
2,
29,
883,
2,
29,
16824,
16,
6111,
2,
29,
599,
33... |
How many candidates ran in the race where the incumbent is J. L. Pilcher? | CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1342013_10 WHERE incumbent = "J. L. Pilcher" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
11138,
834,
1714,
41,
1608,
12416,
6203,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4341,
4037,
16,
8,
1964,
213,
8,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1608,
12416,
6203,
61,
21680,
953,
834,
23747,
11138,
834,
1714,
549,
17444,
427,
28406,
3274,
96,
683,
5,
301,
5,
16536,
1703,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What Romani word has the same meaning as the Persian word dah? | CREATE TABLE table_name_56 (
romani VARCHAR,
persian VARCHAR
) | SELECT romani FROM table_name_56 WHERE persian = "dah" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
3408,
23,
584,
4280,
28027,
6,
399,
10488,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3385,
23,
1448,
65,
8,
337,
2530,
38,
8,
25518,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3408,
23,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
399,
10488,
3274,
96,
26,
9,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the 2nd leg for team 2 san francisco? | CREATE TABLE table_60779 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_60779 WHERE "Team 2" = 'san francisco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
940,
4440,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
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,
357,
727,
4553,
121,
21680,
953,
834,
3328,
940,
4440,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
7,
152,
2515,
11389,
3523,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the percentage of win to loss for the colonial athletic association ? | CREATE TABLE table_203_187 (
id number,
"conference" text,
"bids" number,
"record" text,
"win %" number,
"quarterfinals" number,
"semifinals" number,
"final" number,
"champions" number
) | SELECT "win %" FROM table_203_187 WHERE "conference" = 'colonial athletic association' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
25828,
41,
3,
23,
26,
381,
6,
96,
28496,
121,
1499,
6,
96,
9824,
7,
121,
381,
6,
96,
60,
7621,
121,
1499,
6,
96,
3757,
3,
1454,
121,
381,
6,
96,
19973,
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,
3757,
3,
1454,
121,
21680,
953,
834,
23330,
834,
25828,
549,
17444,
427,
96,
28496,
121,
3274,
3,
31,
8135,
7419,
12217,
6028,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are diagnosed with icd9 code 9600 and suggested the additive drug type? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND demographic.admityear < "2156" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
11421,
7016,
11951,
3162,
12689,
377,
5173,
3502,
15296,
121,
3... |
WHAT IS THE TRIES WITH POINTS 190? | CREATE TABLE table_name_36 (tries_for VARCHAR, points_for VARCHAR) | SELECT tries_for FROM table_name_36 WHERE points_for = "190" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
9000,
834,
1161,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
11466,
11973,
11951,
9915,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
9000,
834,
1161,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
979,
834,
1161,
3274,
96,
11776,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Result with a Date with 4 september 2013? | CREATE TABLE table_11178 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Result" FROM table_11178 WHERE "Date" = '4 september 2013' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
3940,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
15866,
3940,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
591,
16022,
18247,
2038,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many entries for district home are listed for the 87th congress? | CREATE TABLE table_4021 (
"Representative" text,
"Party" text,
"Years" text,
"Congress" text,
"District Home" text,
"Occupation" text,
"Electoral history" text
) | SELECT COUNT("District Home") FROM table_4021 WHERE "Congress" = '87th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
2658,
41,
96,
1649,
12640,
1528,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
4302,
10292,
121,
1499,
6,
96,
308,
23,
20066,
1210,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
23,
20066,
1210,
8512,
21680,
953,
834,
2445,
2658,
549,
17444,
427,
96,
4302,
10292,
121,
3274,
3,
31,
4225,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of patients less than 58 years who were discharged home? | 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 WHERE demographic.discharge_location = "HOME" AND demographic.age < "58" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
6299,
4369,
121,
3430,
14798,
5,
545,
3,
2,
96,
3449,
121,
... |
What is the lowest number of wins where the byes are less than 0? | CREATE TABLE table_78805 (
"Geelong DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MIN("Wins") FROM table_78805 WHERE "Byes" < '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
2079,
755,
41,
96,
517,
15,
15,
2961,
309,
10765,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
279,
10070,
121,
490,
6,
96,
434,
13526,
7,
121,
490,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
18455,
7,
8512,
21680,
953,
834,
3940,
2079,
755,
549,
17444,
427,
96,
279,
10070,
121,
3,
2,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
retrieve patient ids of patients who are diagnosed with cerebral subdural hematoma - secondary to trauma until 4 years ago. | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'cerebral subdural hematoma - secondary to trauma' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-4 year')) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
202,
1495,
12417,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
10061,
15129,
21545,
23,
26,
21680,
8209,
549,
17444,
427,
8209,
5,
25930,
4844,
159,
435... |
What is the latest day in November with a game 15? | CREATE TABLE table_name_31 (november INTEGER, game VARCHAR) | SELECT MAX(november) FROM table_name_31 WHERE game = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
5326,
18247,
3,
21342,
17966,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1251,
239,
16,
1671,
28,
3,
9,
467,
627,
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,
0... | [
3,
23143,
14196,
4800,
4,
599,
5326,
18247,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
467,
3274,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What line has Junction of Huntly NIMT | CREATE TABLE table_name_7 (line_name VARCHAR, nimt_junction VARCHAR) | SELECT line_name FROM table_name_7 WHERE nimt_junction = "huntly" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
747,
834,
4350,
584,
4280,
28027,
6,
3,
29,
603,
17,
834,
6959,
4985,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
689,
65,
29092,
13,
9550... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
689,
834,
4350,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
3,
29,
603,
17,
834,
6959,
4985,
3274,
96,
24963,
120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest Against where they lost less than 20 games, tied more than 2 of them, and they had Favour less than 11? | CREATE TABLE table_name_85 (against INTEGER, favour VARCHAR, lost VARCHAR, draw VARCHAR) | SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
9,
16720,
7,
17,
3,
21342,
17966,
6,
14499,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1513,
3,
2,
460,
3430,
3314,
2490,
204,
3430,
14499,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the home team when real juventud was the away team when there were more than 1189 in attendance? | CREATE TABLE table_name_4 (
home VARCHAR,
attendance VARCHAR,
away VARCHAR
) | SELECT home FROM table_name_4 WHERE attendance > 1189 AND away = "real juventud" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
234,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
6,
550,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
116,
490,
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,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
11364,
2490,
850,
3914,
3430,
550,
3274,
96,
6644,
3,
354,
4348,
76,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the margin of victory with the winning score '63-68-68-68=267'? | CREATE TABLE table_1602858_1 (
margin_of_victory VARCHAR,
winning_score VARCHAR
) | SELECT margin_of_victory FROM table_1602858_1 WHERE winning_score = 63 - 68 - 68 - 68 = 267 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
2577,
3449,
834,
536,
41,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3447,
834,
7,
9022,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
19129,
2577,
3449,
834,
536,
549,
17444,
427,
3447,
834,
7,
9022,
3274,
3,
3891,
3,
18,
3,
3651,
3,
18,
3,
3651,
3,
18,
3,
3651,
3274,
204,
3708,
1,
-100,
-100,... |
Can you tell me the average Laps that has the Time of +17.485, and the Grid smaller than 7? | CREATE TABLE table_name_16 (laps INTEGER, time VARCHAR, grid VARCHAR) | SELECT AVG(laps) FROM table_name_16 WHERE time = "+17.485" AND grid < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
8478,
7,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
1348,
325,
102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
97,
3274,
96,
1220,
2517,
5,
3707,
17395,
3430,
8634,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find all invoice dates corresponding to customers with first name Astrid and last name Gruber. | CREATE TABLE CUSTOMER (
CustomerId VARCHAR,
FirstName VARCHAR
)
CREATE TABLE INVOICE (
InvoiceDate VARCHAR,
CustomerId VARCHAR
) | SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
205,
16847,
667,
13098,
41,
7327,
196,
26,
584,
4280,
28027,
6,
1485,
23954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3388,
8040,
8906,
41,
86,
232... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
1570,
23235,
308,
342,
21680,
205,
16847,
667,
13098,
6157,
332,
536,
3,
15355,
3162,
3388,
8040,
8906,
6157,
332,
357,
9191,
332,
5411,
30067,
49,
196,
26,
3274,
332,
4416,
30067,
49,
196,
26,
549,
17444,
... |
What was the visiting team on November 12? | CREATE TABLE table_name_12 (
visiting_team VARCHAR,
date VARCHAR
) | SELECT visiting_team FROM table_name_12 WHERE date = "november 12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
3644,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3644,
372,
30,
1671,
586,
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,
3644,
834,
11650,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
586,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many terms did the governor that left office on August 4, 1825 serve? | CREATE TABLE table_64973 (
"Governor" text,
"Took office" text,
"Left office" text,
"Party" text,
"Lieutenant Governor" text,
"Terms" text
) | SELECT "Terms" FROM table_64973 WHERE "Left office" = 'august 4, 1825' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
4327,
519,
41,
96,
27304,
127,
121,
1499,
6,
96,
3696,
1825,
828,
121,
1499,
6,
96,
2796,
89,
17,
828,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
19079,
76,
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,
11679,
7,
121,
21680,
953,
834,
4389,
4327,
519,
549,
17444,
427,
96,
2796,
89,
17,
828,
121,
3274,
3,
31,
402,
17198,
6464,
507,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the populati in 2000 for Panlicsian? | CREATE TABLE table_2144436_1 (
population__2000_ INTEGER,
barangay VARCHAR
) | SELECT MIN(population__2000_) FROM table_2144436_1 WHERE barangay = "Panlicsian" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
3628,
3420,
834,
536,
41,
2074,
834,
834,
13527,
834,
3,
21342,
17966,
6,
1207,
1468,
9,
63,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
8364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9791,
7830,
834,
834,
13527,
834,
61,
21680,
953,
834,
27357,
3628,
3420,
834,
536,
549,
17444,
427,
1207,
1468,
9,
63,
3274,
96,
345,
152,
2176,
10488,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What year sold 1,695,900+ copies with an Oricon position larger than 1? | CREATE TABLE table_name_19 (
year INTEGER,
copies_sold VARCHAR,
oricon_position VARCHAR
) | SELECT AVG(year) FROM table_name_19 WHERE copies_sold = "1,695,900+" AND oricon_position > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
215,
3,
21342,
17966,
6,
8167,
834,
7,
1490,
584,
4280,
28027,
6,
5322,
1018,
834,
4718,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
8167,
834,
7,
1490,
3274,
96,
4347,
3951,
11116,
7015,
1220,
121,
3430,
5322,
1018,
834,
4718,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the director of alt i alt | CREATE TABLE table_name_92 (
director_s_ VARCHAR,
film VARCHAR
) | SELECT director_s_ FROM table_name_92 WHERE film = "alt i alt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
2090,
834,
7,
834,
584,
4280,
28027,
6,
814,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2090,
13,
4445,
3,
23,
4445,
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,
2090,
834,
7,
834,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
814,
3274,
96,
2920,
3,
23,
4445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the season for position 4th | CREATE TABLE table_25375093_1 (
season VARCHAR,
position VARCHAR
) | SELECT COUNT(season) FROM table_25375093_1 WHERE position = "4th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
519,
9979,
4271,
834,
536,
41,
774,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
774,
21,
1102,
314,
189,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
9476,
61,
21680,
953,
834,
1828,
519,
9979,
4271,
834,
536,
549,
17444,
427,
1102,
3274,
96,
591,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the week where attendance is 77,098 | CREATE TABLE table_11406866_2 (week VARCHAR, attendance VARCHAR) | SELECT week FROM table_11406866_2 WHERE attendance = "77,098" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
5176,
26750,
834,
357,
41,
8041,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
471,
213,
11364,
19,
3,
4013,
6,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
21680,
953,
834,
18959,
5176,
26750,
834,
357,
549,
17444,
427,
11364,
3274,
96,
4013,
6,
632,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Part number(s) has a Model number of core i7-3770? | CREATE TABLE table_name_60 (
part_number_s_ VARCHAR,
model_number VARCHAR
) | SELECT part_number_s_ FROM table_name_60 WHERE model_number = "core i7-3770" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
294,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2733,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
294,
834,
5525,
1152,
834,
7,
834,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
9022,
3,
23,
940,
3486,
26920,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the maximum speed for the P4-1 (24/36 ps)? | CREATE TABLE table_name_78 (vmax VARCHAR, type VARCHAR) | SELECT vmax FROM table_name_78 WHERE type = "p4-1 (24/36 ps)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
208,
9128,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2411,
1634,
21,
8,
276,
591,
2292,
41,
2266,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
208,
9128,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
686,
3274,
96,
102,
591,
2292,
41,
2266,
87,
3420,
3,
102,
7,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9? | CREATE TABLE table_name_40 (
result VARCHAR,
record VARCHAR,
game VARCHAR,
streak VARCHAR
) | SELECT result FROM table_name_40 WHERE game < 37 AND streak = "lost 1" AND record = "4-9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
741,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
6,
18631,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
741,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
467,
3,
2,
6862,
3430,
18631,
3274,
96,
2298,
17,
209,
121,
3430,
1368,
3274,
96,
591,
7141,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is discharge time and procedure icd9 code of subject id 65759? | 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 demographic.dischtime, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "65759" | [
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,
14798,
5,
26,
2499,
715,
6,
4293,
5,
447,
26,
1298,
834,
4978,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,
... |
What was the results for top 12? | CREATE TABLE table_3526 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Result" FROM table_3526 WHERE "Week #" = 'Top 12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
2688,
41,
96,
518,
10266,
1713,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
121,
1499,
6,
96,
7395,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2469,
2688,
549,
17444,
427,
96,
518,
10266,
1713,
121,
3274,
3,
31,
22481,
586,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Compare the smallest enrollment of schools in each state using a bar chart. | CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
) | SELECT cName, MIN(enr) FROM College GROUP BY state | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12387,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
102,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
63,
6936,
26,
3,
4331,
4059,
17867,
6,
3,
4950,
206,
17552,
599,
11116,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
23954,
6,
3,
17684,
599,
35,
52,
61,
21680,
1888,
350,
4630,
6880,
272,
476,
538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
In the Datsun Twin 200 race, what was the fastest lap? | CREATE TABLE table_16146 (
"Rd" real,
"Name" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) | SELECT "Fastest Lap" FROM table_16146 WHERE "Name" = 'Datsun Twin 200' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
24300,
41,
96,
448,
26,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,
6,
96,
371,
9,
7,
4377,
325,
102,
121,
1499,
6,
96,
518,
10503,
2535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
9,
7,
4377,
325,
102,
121,
21680,
953,
834,
2938,
24300,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
308,
23766,
29,
13058,
2382,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many registed students do each course have? List course name and the number of their registered students. | CREATE TABLE Courses (
course_id VARCHAR(100),
course_name VARCHAR(120),
course_description VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Student_Course_Attendance (
student_id INTEGER,
course_id INTEGER,
date_of_attendance DATETIME
)
CREATE TABLE Student_Course_Registrations (
... | SELECT course_name, COUNT(*) FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id JOIN Courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8670,
7,
41,
503,
834,
23,
26,
584,
4280,
28027,
599,
2915,
201,
503,
834,
4350,
584,
4280,
28027,
599,
15518,
201,
503,
834,
221,
11830,
584,
4280,
28027,
599,
25502,
201,
119,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
503,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
4375,
6157,
332,
536,
3,
15355,
3162,
6341,
834,
3881,
3589,
15,
834,
18752,
1628,
6157,
332,
357,
9191,
332,
5411,
8637,
295,
834,
23,
26,
3274,
332,
4416,
8637... |
What is the location when founded was 1957? | CREATE TABLE table_24195232_1 (location VARCHAR, founded VARCHAR) | SELECT location FROM table_24195232_1 WHERE founded = 1957 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
22464,
23188,
834,
536,
41,
14836,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
116,
5710,
47,
24011,
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,
2266,
22464,
23188,
834,
536,
549,
17444,
427,
5710,
3274,
24011,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who is the directed by when the production code is 67425? | CREATE TABLE table_2618072_1 (
directed_by VARCHAR,
production_code VARCHAR
) | SELECT directed_by FROM table_2618072_1 WHERE production_code = 67425 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
20829,
5865,
834,
536,
41,
6640,
834,
969,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
6640,
57,
116,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6640,
834,
969,
21680,
953,
834,
2688,
20829,
5865,
834,
536,
549,
17444,
427,
999,
834,
4978,
3274,
431,
4581,
1828,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Country of the Player with a Score of 75-70-74=219? | CREATE TABLE table_8723 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Country" FROM table_8723 WHERE "Score" = '75-70-74=219' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4225,
2773,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
4225,
2773,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
3072,
18,
2518,
18,
4581,
2423,
357,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the Comp on 2007-08-06? | CREATE TABLE table_name_16 (
comp VARCHAR,
date VARCHAR
) | SELECT comp FROM table_name_16 WHERE date = "2007-08-06" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
2890,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4961,
30,
4101,
18,
4018,
18,
5176,
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,
2890,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
833,
3274,
96,
20615,
18,
4018,
18,
5176,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the green house made of? | CREATE TABLE table_16802 (
"House Name" text,
"Composition" text,
"Named after" text,
"Founded" real,
"Colours" text
) | SELECT "Composition" FROM table_16802 WHERE "Colours" = 'Green' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
4305,
41,
96,
4489,
1074,
5570,
121,
1499,
6,
96,
5890,
4718,
121,
1499,
6,
96,
23954,
26,
227,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
9939,
1211,
7,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
5890,
4718,
121,
21680,
953,
834,
24274,
4305,
549,
17444,
427,
96,
9939,
1211,
7,
121,
3274,
3,
31,
22918,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Display a bar chart for what are the names of climbers and the corresponding heights of the mountains that they climb?, and show by the Height in descending. | CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
) | SELECT T1.Name, T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T2.Height DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
5617,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
749,
1109,
1433,
490,
6,
10971,
1499,
6,
6993,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4416,
3845,
2632,
21680,
8147,
49,
6157,
332,
536,
3,
15355,
3162,
4180,
6157,
332,
357,
9191,
332,
5411,
329,
32,
14016,
77,
834,
4309,
3274,
332,
4416,
329,
32,
14016,
77,
834,
4309,
4674... |
What is the lowest amount of races? | CREATE TABLE table_25318033_1 (races INTEGER) | SELECT MIN(races) FROM table_25318033_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3341,
2079,
4201,
834,
536,
41,
12614,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
866,
13,
10879,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
12614,
7,
61,
21680,
953,
834,
1828,
3341,
2079,
4201,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Fred Couples to par? | CREATE TABLE table_68063 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "To par" FROM table_68063 WHERE "Player" = 'fred couples' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2079,
3891,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
948,
2079,
3891,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
89,
1271,
11992,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many laps did the 6th placed in 1998 complete? | CREATE TABLE table_name_90 (laps INTEGER, pos VARCHAR, year VARCHAR) | SELECT SUM(laps) FROM table_name_90 WHERE pos = "6th" AND year = 1998 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
8478,
7,
3,
21342,
17966,
6,
3,
2748,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
410,
8,
431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
3,
2748,
3274,
96,
948,
189,
121,
3430,
215,
3274,
6260,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What teams has a home of 1-0, in the season 1988-89? | CREATE TABLE table_13060 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "Teams" FROM table_13060 WHERE "Home" = '1-0' AND "Season" = '1988-89' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
3328,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18699,
7,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
7,
121,
21680,
953,
834,
21448,
3328,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
18930,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
2294,
4060,
18,
3914,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
what is the year union university was founded? | CREATE TABLE table_21401 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Left" real,
"Current Conference" text
) | SELECT "Founded" FROM table_21401 WHERE "Institution" = 'Union University' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
20016,
41,
96,
1570,
17448,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
25160,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20100,
121,
21680,
953,
834,
2658,
20016,
549,
17444,
427,
96,
1570,
17448,
121,
3274,
3,
31,
19011,
636,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Date has a Distance of 500 m? | CREATE TABLE table_name_3 (
date VARCHAR,
distance VARCHAR
) | SELECT date FROM table_name_3 WHERE distance = "500 m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
833,
584,
4280,
28027,
6,
2357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7678,
65,
3,
9,
27370,
13,
2899,
3,
51,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
2357,
3274,
96,
2560,
3,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What are all the locations with a cinema? | CREATE TABLE cinema (LOCATION VARCHAR) | SELECT DISTINCT LOCATION FROM cinema | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10276,
41,
5017,
254,
8015,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
66,
8,
3248,
28,
3,
9,
10276,
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,
3,
15438,
25424,
6227,
301,
5618,
8015,
21680,
10276,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who scored more than liliya dusmetova but less than lee young sun ? | CREATE TABLE table_204_174 (
id number,
"rank" number,
"name" text,
"nationality" text,
"result" number,
"notes" text
) | SELECT "name" FROM table_204_174 WHERE "result" > (SELECT "result" FROM table_204_174 WHERE "name" = 'liliya dusmetova') AND "result" < (SELECT "result" FROM table_204_174 WHERE "name" = 'lee young-sun') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
27693,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
381,
6,
96,
7977,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
27693,
549,
17444,
427,
96,
60,
7,
83,
17,
121,
2490,
41,
23143,
14196,
96,
60,
7,
83,
17,
121,
21680,
953,
834,
26363,
834,
27693,
549,
17444,
427,
96,
4350,
121,
3274,... |
Which nation won 1 gold medal and 1 bronze, for a total of 2 medals? | CREATE TABLE table_name_70 (
nation VARCHAR,
total VARCHAR,
gold VARCHAR,
bronze VARCHAR
) | SELECT nation FROM table_name_70 WHERE gold = "1" AND bronze = "1" AND total = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
2982,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2982... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2982,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
2045,
3274,
96,
536,
121,
3430,
13467,
3274,
96,
536,
121,
3430,
792,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which pronoun has e biti / bi e in first person? | CREATE TABLE table_29405 (
"Pronoun" text,
"Present" text,
"1st" text,
"2nd" text,
"perfect" text,
"aorist" text,
"imperfect" text,
"pluperfect" text
) | SELECT "Pronoun" FROM table_29405 WHERE "1st" = 'će biti / biće' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4240,
3076,
41,
96,
3174,
15358,
29,
121,
1499,
6,
96,
10572,
5277,
121,
1499,
6,
96,
536,
7,
17,
121,
1499,
6,
96,
357,
727,
121,
1499,
6,
96,
22588,
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,
3174,
15358,
29,
121,
21680,
953,
834,
357,
4240,
3076,
549,
17444,
427,
96,
536,
7,
17,
121,
3274,
3,
31,
2,
15,
720,
23,
3,
87,
2647,
2,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what specimen tests were given to patient 031-24513 for the last time? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
d... | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-24513')) ORDER BY microlab.culturetakentime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2179,
9339,
5,
10547,
3585,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
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,
1... |
In the tournament that has 15 events, and less than 6 top-25's, how many top-5's did he have? | CREATE TABLE table_6073 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT SUM("Top-5") FROM table_6073 WHERE "Events" = '15' AND "Top-25" < '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4552,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,
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,
180,
6122,
599,
121,
22481,
4525,
8512,
21680,
953,
834,
3328,
4552,
549,
17444,
427,
96,
427,
2169,
7,
121,
3274,
3,
31,
1808,
31,
3430,
96,
22481,
14855,
121,
3,
2,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-... |
Who is the pitcher from the 1994 season that had the Cleveland Indians as an opponent? | CREATE TABLE table_63221 (
"Season" text,
"Pitcher" text,
"Decision" text,
"Opponent" text,
"Location" text
) | SELECT "Pitcher" FROM table_63221 WHERE "Opponent" = 'cleveland indians' AND "Season" = '1994' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
357,
2658,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
345,
155,
1703,
121,
1499,
6,
96,
2962,
18901,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
155,
1703,
121,
21680,
953,
834,
3891,
357,
2658,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
75,
4563,
232,
16,
8603,
7,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
2294,
4240,
31,
1,... |
What team is located in brooklyn? | CREATE TABLE table_name_5 (team VARCHAR, city VARCHAR) | SELECT team FROM table_name_5 WHERE city = "brooklyn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
11650,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
19,
1069,
16,
3,
14370,
120,
29,
58,
1,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
690,
3274,
96,
14370,
120,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest number of blocks for players with height of 206 and more than 356 spikes? | CREATE TABLE table_name_69 (block INTEGER, height VARCHAR, spike VARCHAR) | SELECT MIN(block) FROM table_name_69 WHERE height = 206 AND spike > 356 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
10734,
3,
21342,
17966,
6,
3902,
584,
4280,
28027,
6,
22440,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
6438,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
10734,
61,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
3902,
3274,
3,
24643,
3430,
22440,
2490,
220,
4834,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the total number for nfl team for ellis gardner | CREATE TABLE table_2508633_6 (nfl_team VARCHAR, player VARCHAR) | SELECT COUNT(nfl_team) FROM table_2508633_6 WHERE player = "Ellis Gardner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
3840,
4201,
834,
948,
41,
29,
89,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
21,
3,
29,
89,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
89,
40,
834,
11650,
61,
21680,
953,
834,
11434,
3840,
4201,
834,
948,
549,
17444,
427,
1959,
3274,
96,
427,
195,
159,
30033,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many gold medals when the total is more than 1 and 18 silver? | CREATE TABLE table_name_80 (
gold INTEGER,
total VARCHAR,
silver VARCHAR
) | SELECT MIN(gold) FROM table_name_80 WHERE total > 1 AND silver = 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
2045,
3,
21342,
17966,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2045,
9365,
7,
116,
8,
792,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
792,
2490,
209,
3430,
4294,
3274,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Score has a Tie no of 33? | CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR) | SELECT score FROM table_name_56 WHERE tie_no = "33" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
7,
9022,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
2262,
15,
150,
13,
5400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
4201,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When the country was Scotland, how many ends were won? | CREATE TABLE table_16922657_2 (Ends VARCHAR, country VARCHAR, Scotland VARCHAR) | SELECT COUNT(Ends) AS won FROM table_16922657_2 WHERE country = Scotland | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4508,
2688,
3436,
834,
357,
41,
8532,
26,
7,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
8288,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
684,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8532,
26,
7,
61,
6157,
751,
21680,
953,
834,
2938,
4508,
2688,
3436,
834,
357,
549,
17444,
427,
684,
3274,
8288,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
When oslo is 48, what is stavanger? | CREATE TABLE table_19439864_2 (
stavanger INTEGER,
oslo VARCHAR
) | SELECT MIN(stavanger) FROM table_19439864_2 WHERE oslo = 48 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4906,
3916,
4389,
834,
357,
41,
3342,
2132,
1304,
3,
21342,
17966,
6,
3,
32,
7,
40,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
32,
7,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
2427,
2132,
1304,
61,
21680,
953,
834,
2294,
4906,
3916,
4389,
834,
357,
549,
17444,
427,
3,
32,
7,
40,
32,
3274,
4678,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the player for nationality of canada for pick of 43 | CREATE TABLE table_name_85 (player VARCHAR, nationality VARCHAR, pick VARCHAR) | SELECT player FROM table_name_85 WHERE nationality = "canada" AND pick = "43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
20846,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1959,
21,
1157,
485,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
1157,
485,
3274,
96,
658,
18089,
121,
3430,
1432,
3274,
96,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
state the earliest year li xuerui won womens singles | CREATE TABLE table_20361783_1 (
year INTEGER,
womens_singles VARCHAR
) | SELECT MIN(year) FROM table_20361783_1 WHERE womens_singles = "Li Xuerui" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3420,
2517,
4591,
834,
536,
41,
215,
3,
21342,
17966,
6,
887,
7,
834,
7,
53,
965,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
538,
8,
3,
16454,
215,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
1755,
3420,
2517,
4591,
834,
536,
549,
17444,
427,
887,
7,
834,
7,
53,
965,
3274,
96,
434,
23,
3,
4,
7014,
76,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the record of Game 56? | CREATE TABLE table_name_37 (
record VARCHAR,
game VARCHAR
) | SELECT record FROM table_name_37 WHERE game = 56 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1368,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1368,
13,
4435,
11526,
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,
1368,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
467,
3274,
11526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the low lap total for minardi - motori moderni, and a Grid smaller than 18? | CREATE TABLE table_52885 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT MIN("Laps") FROM table_52885 WHERE "Constructor" = 'minardi - motori moderni' AND "Grid" < '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2577,
4433,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
755,
2577,
4433,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
1109,
986,
23,
3,
18,
2340,
23,
941,
23,
31,
3430,
96,
13313,
26,
121,
3,
2,
3,... |
Which Gold has a Nation of south korea (kor), and Bronze smaller than 65? | CREATE TABLE table_13211 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Gold") FROM table_13211 WHERE "Nation" = 'south korea (kor)' AND "Bronze" < '65' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23757,
2596,
41,
96,
22557,
121,
1499,
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,
71,
17217,
599,
121,
23576,
8512,
21680,
953,
834,
23757,
2596,
549,
17444,
427,
96,
567,
257,
121,
3274,
3,
31,
7,
670,
107,
3,
5543,
15,
9,
41,
5543,
61,
31,
3430,
96,
22780,
29,
776,
121,
3,
2,
3,
31,
4122,... |
What color is the super-soft compound? | CREATE TABLE table_name_31 (
colour VARCHAR,
compound_name VARCHAR
) | SELECT colour FROM table_name_31 WHERE compound_name = "super-soft" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
3243,
584,
4280,
28027,
6,
12771,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
945,
19,
8,
1355,
18,
12369,
12771,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3243,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
12771,
834,
4350,
3274,
96,
21771,
18,
12369,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Total has a Country of united states, and a Player of andy north? | CREATE TABLE table_name_12 (total INTEGER, country VARCHAR, player VARCHAR) | SELECT AVG(total) FROM table_name_12 WHERE country = "united states" AND player = "andy north" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
235,
1947,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9273,
65,
3,
9,
6993,
13,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
1959,
3274,
96,
232,
63,
3457,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What were the rank points when the total was 11? | CREATE TABLE table_name_72 (
rank_points VARCHAR,
total VARCHAR
) | SELECT rank_points FROM table_name_72 WHERE total = "11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
11003,
834,
2700,
7,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
11003,
979,
116,
8,
792,
47,
850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
834,
2700,
7,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
792,
3274,
96,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
who else along with scott dixon and graham rahal drove with the most speed | CREATE TABLE table_13512105_3 (
fastest_lap VARCHAR,
most_laps_led VARCHAR,
pole_position VARCHAR
) | SELECT fastest_lap FROM table_13512105_3 WHERE most_laps_led = "Scott Dixon" AND pole_position = "Graham Rahal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
24163,
12869,
834,
519,
41,
10391,
834,
8478,
584,
4280,
28027,
6,
167,
834,
8478,
7,
834,
1361,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10391,
834,
8478,
21680,
953,
834,
2368,
24163,
12869,
834,
519,
549,
17444,
427,
167,
834,
8478,
7,
834,
1361,
3274,
96,
134,
10405,
30368,
121,
3430,
11148,
834,
4718,
3274,
96,
4744,
1483,
20492,
138,
121,
1,
-100,... |
Events of 22, and a Rank smaller than 4 involved which of the lowest earnings ($)? | CREATE TABLE table_38142 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) | SELECT MIN("Earnings ( $ )") FROM table_38142 WHERE "Events" = '22' AND "Rank" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
24978,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
490,
6,
96,
427,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
8512,
21680,
953,
834,
3747,
24978,
549,
17444,
427,
96,
427,
2169,
7,
121,
3274,
3,
31,
2884,
31,
3430,
96,
22557,
121,
3,
2,
3,
31,
591,
31,
1,
-10... |
Which Points for has a Losing bonus of 2, and a Club of bridgend sports rfc? | CREATE TABLE table_8546 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Points for" FROM table_8546 WHERE "Losing bonus" = '2' AND "Club" = 'bridgend sports rfc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4433,
4448,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
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,
22512,
7,
21,
121,
21680,
953,
834,
4433,
4448,
549,
17444,
427,
96,
434,
32,
7,
53,
4023,
121,
3274,
3,
31,
357,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
9818,
727,
2100,
3,
52,
89,
75,
31,
1,
-100,
... |
What was the margin of victory over Justin Leonard, phillip price? | CREATE TABLE table_11570261_2 (margin_of_victory VARCHAR, runner_s__up VARCHAR) | SELECT COUNT(margin_of_victory) FROM table_11570261_2 WHERE runner_s__up = "Justin Leonard, Phillip Price" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
2518,
357,
4241,
834,
357,
41,
1635,
122,
77,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
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,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1635,
122,
77,
834,
858,
834,
7287,
10972,
61,
21680,
953,
834,
15660,
2518,
357,
4241,
834,
357,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
19969,
77,
17342,
6,
16202,
5312,
121,
... |
What the score of the 1992 game? | CREATE TABLE table_66062 (
"Year" text,
"Champions" text,
"Score" text,
"Runners-up" text,
"Venue" text
) | SELECT "Score" FROM table_66062 WHERE "Year" = '1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
4056,
41,
96,
476,
2741,
121,
1499,
6,
96,
3541,
4624,
2865,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
7,
18,
413,
121,
1499,
6,
96,
553,
35,
76,
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,
0... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
27720,
4056,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
19479,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the record of the game played on 2/17/1974? | CREATE TABLE table_65539 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Record" FROM table_65539 WHERE "Date" = '2/17/1974' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
755,
3288,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4122,
755,
3288,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
15896,
2517,
13523,
4581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the record at the game held on May 1st with a loss of Speier (1–3)? | CREATE TABLE table_name_94 (record VARCHAR, date VARCHAR, loss VARCHAR) | SELECT record FROM table_name_94 WHERE date = "may 1" AND loss = "speier (1–3)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4240,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
44,
8,
467,
1213,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
4240,
549,
17444,
427,
833,
3274,
96,
13726,
209,
121,
3430,
1453,
3274,
96,
7,
855,
972,
4077,
104,
5268,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the season, home team, away team of all the games. | CREATE TABLE injury_accident (
game_id number,
id number,
player text,
injury text,
number_of_matches text,
source text
)
CREATE TABLE game (
stadium_id number,
id number,
season number,
date text,
home_team text,
away_team text,
score text,
competition text
)
C... | SELECT season, home_team, away_team FROM game | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2871,
834,
6004,
4215,
41,
467,
834,
23,
26,
381,
6,
3,
23,
26,
381,
6,
1959,
1499,
6,
2871,
1499,
6,
381,
834,
858,
834,
19515,
15,
7,
1499,
6,
1391,
1499,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
774,
6,
234,
834,
11650,
6,
550,
834,
11650,
21680,
467,
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,
-... |
Who was the opponent at the away game with a score of 5-4? | CREATE TABLE table_35889 (
"Date" text,
"Competition" text,
"Opponents" text,
"Venue" text,
"Score" text
) | SELECT "Opponents" FROM table_35889 WHERE "Venue" = 'away' AND "Score" = '5-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3449,
3914,
41,
96,
308,
342,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
7,
121,
21680,
953,
834,
519,
3449,
3914,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
8006,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
755,
4278,
31,
1,
-100,
-100,
-100,
-100,
... |
What date did Dax Shepard play 20 questions? | CREATE TABLE table_26824 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | SELECT "Date" FROM table_26824 WHERE "20 Questions" = 'Dax Shepard' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3651,
2266,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
357,
3651,
2266,
549,
17444,
427,
96,
1755,
14218,
121,
3274,
3,
31,
308,
9,
226,
451,
1893,
26,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Tell me the highest cuts made with wins more than 1 | CREATE TABLE table_name_5 (cuts_made INTEGER, wins INTEGER) | SELECT MAX(cuts_made) FROM table_name_5 WHERE wins > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
3044,
7,
834,
4725,
3,
21342,
17966,
6,
9204,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
2030,
8620,
263,
28,
9204,
72,
145,
209,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
9204,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Left Office, when Took Office is "11 June 2001", and when Minister is "Mirko Tremaglia"? | CREATE TABLE table_name_47 (left_office VARCHAR, took_office VARCHAR, minister VARCHAR) | SELECT left_office FROM table_name_47 WHERE took_office = "11 june 2001" AND minister = "mirko tremaglia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
17068,
834,
19632,
584,
4280,
28027,
6,
808,
834,
19632,
584,
4280,
28027,
6,
6323,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
14298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
646,
834,
19632,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
808,
834,
19632,
3274,
96,
2596,
3,
6959,
15,
4402,
121,
3430,
6323,
3274,
96,
51,
12546,
32,
3,
929,
51,
9,
4707,
9,
121,
1,
-100,
-100,
-100,
... |
What was the result for the 2012 ibjjf world jiu-jitsu championships event when the method was points (4 x 0)? | CREATE TABLE table_12627 (
"Result" text,
"Opponent" text,
"Method" text,
"Event" text,
"Notes" text
) | SELECT "Result" FROM table_12627 WHERE "Event" = '2012 ibjjf world jiu-jitsu championships' AND "Method" = 'points (4 x 0)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21976,
2555,
41,
96,
20119,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
10358,
15,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
21976,
2555,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
12172,
3,
23,
115,
354,
354,
89,
296,
3,
354,
23,
76,
18,
13272,
7,
76,
10183,
7,
31,
3430,
96,
23351,
107,
32,
2... |
What is the candidate for south carolina 4? | CREATE TABLE table_18609 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_18609 WHERE "District" = 'South Carolina 4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
1298,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14050,
12416,
6203,
121,
21680,
953,
834,
24700,
1298,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
22081,
5089,
314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which team had a final stage when Claudio Chiappucci had the points? | CREATE TABLE table_name_23 (trofeo_fast_team VARCHAR, points_classification VARCHAR, stage VARCHAR) | SELECT trofeo_fast_team FROM table_name_23 WHERE points_classification = "claudio chiappucci" AND stage = "final" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
17,
52,
858,
15,
32,
834,
11584,
834,
11650,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10968,
89,
15,
32,
834,
11584,
834,
11650,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
75,
40,
28696,
3,
1436,
3096,
17431,
23,
121,
3430,
1726,
3274,
96,
12406,
121,
1,
-100,
... |
What was the margin of victory in the year when the honoree was Tommy Armour? | CREATE TABLE table_1515346_2 (margin_of_victory VARCHAR, honoree_s_ VARCHAR) | SELECT margin_of_victory FROM table_1515346_2 WHERE honoree_s_ = "Tommy Armour" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
27025,
4448,
834,
357,
41,
1635,
122,
77,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
6,
3610,
15,
15,
834,
7,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
6346,
834,
858,
834,
7287,
10972,
21680,
953,
834,
1808,
27025,
4448,
834,
357,
549,
17444,
427,
3610,
15,
15,
834,
7,
834,
3274,
96,
3696,
635,
63,
5412,
1211,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Member has an Electorate of southern melbourne? | CREATE TABLE table_60459 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" real
) | SELECT "Member" FROM table_60459 WHERE "Electorate" = 'southern melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
591,
3390,
41,
96,
329,
18247,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
127,
342,
121,
1499,
6,
96,
134,
4748,
121,
1499,
6,
96,
25171,
8160,
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,
96,
329,
18247,
121,
21680,
953,
834,
3328,
591,
3390,
549,
17444,
427,
96,
21543,
127,
342,
121,
3274,
3,
31,
7,
670,
760,
29,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the No 1 from the Maryland (2008) Region (year)? | CREATE TABLE table_name_27 (
no_1 VARCHAR,
region__year_ VARCHAR
) | SELECT no_1 FROM table_name_27 WHERE region__year_ = "maryland (2008)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2555,
41,
150,
834,
536,
584,
4280,
28027,
6,
1719,
834,
834,
1201,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
465,
209,
45,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
536,
21680,
953,
834,
4350,
834,
2555,
549,
17444,
427,
1719,
834,
834,
1201,
834,
3274,
96,
1635,
28900,
26974,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many patients of black/cape verdean ethnicity are diagnosed with unspecified problem with head, neck or trunk? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND diagnoses.long_title = "Unspecified problem with head, neck, or trunk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Name the withdrawn for charles dickens | CREATE TABLE table_name_93 (
withdrawn VARCHAR,
name VARCHAR
) | SELECT withdrawn FROM table_name_93 WHERE name = "charles dickens" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
3,
28032,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
28032,
21,
3,
4059,
965,
31149,
29,
7,
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,
28032,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
564,
3274,
96,
4059,
965,
31149,
29,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006? | CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2004 VARCHAR, _percentage_of_all_immigrants_2006 VARCHAR) | SELECT _percentage_of_all_immigrants_2004 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2006 = "2.1%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
19978,
2122,
834,
536,
41,
834,
883,
3728,
545,
834,
858,
834,
1748,
834,
603,
12549,
17,
7,
834,
21653,
584,
4280,
28027,
6,
3,
834,
883,
3728,
545,
834,
858,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
834,
883,
3728,
545,
834,
858,
834,
1748,
834,
603,
12549,
17,
7,
834,
21653,
21680,
953,
834,
357,
3420,
19978,
2122,
834,
536,
549,
17444,
427,
3,
834,
883,
3728,
545,
834,
858,
834,
1748,
834,
603,
12549,
17... |
Tell me the total number of Grid for Rubens Barrichello | CREATE TABLE table_10945 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT COUNT("Grid") FROM table_10945 WHERE "Driver" = 'rubens barrichello' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17304,
2128,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13313,
26,
8512,
21680,
953,
834,
17304,
2128,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
14446,
35,
7,
1207,
3723,
7126,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the record on April 8? | CREATE TABLE table_name_53 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_53 WHERE date = "april 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
1368,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
30,
1186,
505,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
833,
3274,
96,
9,
2246,
40,
505,
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 barrell profile that goes with the gas piston carbine? | CREATE TABLE table_12834315_5 (
barrel_profile VARCHAR,
name VARCHAR
) | SELECT barrel_profile FROM table_12834315_5 WHERE name = "Gas Piston Carbine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4591,
4906,
1808,
834,
755,
41,
10650,
834,
18816,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
10650,
40,
3278,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10650,
834,
18816,
21680,
953,
834,
2122,
4591,
4906,
1808,
834,
755,
549,
17444,
427,
564,
3274,
96,
517,
9,
7,
2745,
4411,
1184,
12712,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Display a pie chart for how many songs were released for each format? | CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(50),
country varchar2(20),
f_id number(10),
genre_is varchar2(20),
rating number(10),
languages varchar2(20),
releasedate Date,
resolution number(10)
)
CREATE TABLE genre (
g_name varchar2(20),
rating varchar2(... | SELECT formats, COUNT(*) FROM files GROUP BY formats | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
2324,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
2377,
834,
4350,
3,
4331,
4059,
357,
599,
1752,
201,
684,
3,
4331,
4059,
357,
599,
1755,
201,
3,
89,
834,
23,
26,
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,
10874,
6,
2847,
17161,
599,
1935,
61,
21680,
2073,
350,
4630,
6880,
272,
476,
10874,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was relegated in the 2006 season? | CREATE TABLE table_name_48 (
relegated VARCHAR,
season VARCHAR
) | SELECT relegated FROM table_name_48 WHERE season = "2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
3,
60,
8791,
26,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
3,
60,
8791,
26,
16,
8,
3581,
774,
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,
60,
8791,
26,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
774,
3274,
96,
21196,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the rank 16 wins with the latest win at the 1967 Belgian Grand Prix? | CREATE TABLE table_51497 (
"Rank" real,
"Engine" text,
"Wins" real,
"First win" text,
"Latest win" text
) | SELECT "Wins" FROM table_51497 WHERE "Rank" > '16' AND "Latest win" = '1967 belgian grand prix' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2534,
4327,
41,
96,
22557,
121,
490,
6,
96,
31477,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
25171,
1369,
121,
1499,
6,
96,
3612,
4377,
1369,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
7,
121,
21680,
953,
834,
755,
2534,
4327,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
2938,
31,
3430,
96,
3612,
4377,
1369,
121,
3274,
3,
31,
2294,
3708,
36,
40,
22898,
1907,
3407,
31,
1,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.