instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what is the number of unmarried patients admitted to the hospital before 2176? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admityear < "2176" | [
10919,
318,
262,
1271,
286,
39183,
3871,
6848,
284,
262,
4436,
878,
362,
24096,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
39183,
3871,
6848,
284,
262,
4436,
878,
362,
24096,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
... |
What's the green (SW) of the model with charcoal/white interior/roof? | SELECT MIN("Green (SW)") FROM table_23794 WHERE "Interior/Roof" = 'Charcoal/white' | [
2061,
338,
262,
4077,
357,
17887,
8,
286,
262,
2746,
351,
33512,
14,
11186,
11087,
14,
305,
1659,
30,
46506,
20625,
7203,
13719,
357,
17887,
8,
4943,
16034,
3084,
62,
1954,
50242,
33411,
366,
9492,
1504,
14,
15450,
1659,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
4077,
357,
17887,
8,
286,
262,
2746,
351,
33512,
14,
11186,
11087,
14,
305,
1659,
30,
46506,
20625,
7203,
13719,
357,
17887,
8,
4943,
16034,
3084,
62,
1954,
50242,
33411,
366,
9492,
1504,
14,
15450,
1659,
1,
796,
705,
... |
What is the lowest ends lost when the stolen ends for is less than 13, and stolten ends against is 6? | SELECT MIN(ends_lost) FROM table_name_16 WHERE stolen_ends_for < 13 AND stolen_ends_against = 6 | [
2061,
318,
262,
9016,
5645,
2626,
618,
262,
9909,
5645,
329,
318,
1342,
621,
1511,
11,
290,
336,
349,
1452,
5645,
1028,
318,
718,
30,
46506,
20625,
7,
2412,
62,
33224,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
9909,
62,
2412,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
5645,
2626,
618,
262,
9909,
5645,
329,
318,
1342,
621,
1511,
11,
290,
336,
349,
1452,
5645,
1028,
318,
718,
30,
46506,
20625,
7,
2412,
62,
33224,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
9909,
62,
2412,
62,
... |
What is the week 12 opponent for the year that had a week 3 opponent of South Florida (3-0)? | SELECT "Week 12 Nov 16" FROM table_38965 WHERE "Week 3 Sept 14" = 'south florida (3-0)' | [
2061,
318,
262,
1285,
1105,
6125,
329,
262,
614,
326,
550,
257,
1285,
513,
6125,
286,
2520,
4744,
357,
18,
12,
15,
19427,
46506,
366,
20916,
1105,
5267,
1467,
1,
16034,
3084,
62,
29769,
2996,
33411,
366,
20916,
513,
2362,
1478,
1,
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
] | [
2061,
318,
262,
1285,
1105,
6125,
329,
262,
614,
326,
550,
257,
1285,
513,
6125,
286,
2520,
4744,
357,
18,
12,
15,
19427,
46506,
366,
20916,
1105,
5267,
1467,
1,
16034,
3084,
62,
29769,
2996,
33411,
366,
20916,
513,
2362,
1478,
1,
7... |
does YX serve NASHVILLE | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.to_airport = AIRPORT_SERVICE_0.airport_code AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NASHVILLE') OR (flight.from_airpo... | [
22437,
575,
55,
4691,
7210,
39,
53,
8267,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
22437,
575,
55,
4691,
7210,
39,
53,
8267,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... |
Top econometrics questions with no answers. | SELECT p.Id, p.Title, p.Score FROM Posts AS p JOIN PostTags AS pt ON pt.PostId = p.Id JOIN Tags AS t ON t.Id = pt.TagId WHERE t.TagName = 'econometrics' AND p.AnswerCount = 0 AND p.PostTypeId = 1 ORDER BY -p.Score | [
9126,
304,
1102,
908,
10466,
2683,
351,
645,
7429,
13,
46506,
279,
13,
7390,
11,
279,
13,
19160,
11,
279,
13,
26595,
16034,
12043,
7054,
279,
32357,
1268,
2947,
36142,
7054,
42975,
6177,
42975,
13,
6307,
7390,
796,
279,
13,
7390,
3235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
304,
1102,
908,
10466,
2683,
351,
645,
7429,
13,
46506,
279,
13,
7390,
11,
279,
13,
19160,
11,
279,
13,
26595,
16034,
12043,
7054,
279,
32357,
1268,
2947,
36142,
7054,
42975,
6177,
42975,
13,
6307,
7390,
796,
279,
13,
7390,
3235... |
Find broken Guava links (docs.guava-libraries.googlecode.com). | SELECT Id AS "post_link", Body, Score, Tags FROM Posts JOIN PostTags ON Posts.Id = PostTags.PostId WHERE PostTags.TagId = @tag_id AND LOWER(Body) LIKE '%docs.guava-libraries.googlecode.com%' ORDER BY Score DESC LIMIT 100 | [
16742,
5445,
1962,
4170,
6117,
357,
31628,
13,
5162,
4170,
12,
75,
11127,
13,
13297,
8189,
13,
785,
737,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
12290,
11,
15178,
11,
44789,
16034,
12043,
32357,
1268,
2947,
36142,
6177,
12043,
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... | [
16742,
5445,
1962,
4170,
6117,
357,
31628,
13,
5162,
4170,
12,
75,
11127,
13,
13297,
8189,
13,
785,
737,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
12290,
11,
15178,
11,
44789,
16034,
12043,
32357,
1268,
2947,
36142,
6177,
12043,
13,... |
When karl ridderbusch is the la roche who is the olivier? | SELECT "Olivier" FROM table_31320 WHERE "La Roche" = 'Karl Ridderbusch' | [
2215,
479,
7063,
5755,
1082,
10885,
354,
318,
262,
8591,
686,
2395,
508,
318,
262,
267,
16017,
959,
30,
46506,
366,
46,
16017,
959,
1,
16034,
3084,
62,
25838,
1238,
33411,
366,
14772,
47765,
1,
796,
705,
46063,
23223,
1082,
10885,
354... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
479,
7063,
5755,
1082,
10885,
354,
318,
262,
8591,
686,
2395,
508,
318,
262,
267,
16017,
959,
30,
46506,
366,
46,
16017,
959,
1,
16034,
3084,
62,
25838,
1238,
33411,
366,
14772,
47765,
1,
796,
705,
46063,
23223,
1082,
10885,
354... |
How many field goals are there that have 8 touchdowns and more than 49 points? | SELECT SUM("Field goals") FROM table_34977 WHERE "Touchdowns" = '8' AND "Points" > '49' | [
2437,
867,
2214,
4661,
389,
612,
326,
423,
807,
17692,
290,
517,
621,
5125,
2173,
30,
46506,
35683,
7203,
15878,
4661,
4943,
16034,
3084,
62,
27371,
3324,
33411,
366,
35211,
30371,
1,
796,
705,
23,
6,
5357,
366,
40710,
1,
1875,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2214,
4661,
389,
612,
326,
423,
807,
17692,
290,
517,
621,
5125,
2173,
30,
46506,
35683,
7203,
15878,
4661,
4943,
16034,
3084,
62,
27371,
3324,
33411,
366,
35211,
30371,
1,
796,
705,
23,
6,
5357,
366,
40710,
1,
1875,
705,
... |
In what Week is the Opponent the New Orleans Saints? | SELECT AVG("Week") FROM table_47698 WHERE "Opponent" = 'new orleans saints' | [
818,
644,
6119,
318,
262,
9385,
3471,
262,
968,
12255,
13048,
30,
46506,
35224,
7203,
20916,
4943,
16034,
3084,
62,
2857,
39357,
33411,
366,
27524,
3471,
1,
796,
705,
3605,
393,
11861,
31728,
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
] | [
818,
644,
6119,
318,
262,
9385,
3471,
262,
968,
12255,
13048,
30,
46506,
35224,
7203,
20916,
4943,
16034,
3084,
62,
2857,
39357,
33411,
366,
27524,
3471,
1,
796,
705,
3605,
393,
11861,
31728,
6
] |
Who is the turner on Team MRF? | SELECT "Tuner" FROM table_56598 WHERE "Team" = 'mrf' | [
8241,
318,
262,
1210,
263,
319,
4816,
17242,
37,
30,
46506,
366,
51,
38886,
1,
16034,
3084,
62,
47372,
4089,
33411,
366,
15592,
1,
796,
705,
76,
41871,
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
] | [
8241,
318,
262,
1210,
263,
319,
4816,
17242,
37,
30,
46506,
366,
51,
38886,
1,
16034,
3084,
62,
47372,
4089,
33411,
366,
15592,
1,
796,
705,
76,
41871,
6
] |
What is the smallest withdrawn value with a GNRI greater than 172, name of Croagh Patrick and was rebuilt before 1939? | SELECT MIN(withdrawn) FROM table_name_10 WHERE gnri_no > 172 AND name = "croagh patrick" AND rebuilt < 1939 | [
2061,
318,
262,
18197,
23019,
1988,
351,
257,
15484,
7112,
3744,
621,
23120,
11,
1438,
286,
9325,
10471,
9925,
290,
373,
30080,
878,
24414,
30,
46506,
20625,
7,
4480,
41549,
8,
16034,
3084,
62,
3672,
62,
940,
33411,
19967,
380,
62,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
23019,
1988,
351,
257,
15484,
7112,
3744,
621,
23120,
11,
1438,
286,
9325,
10471,
9925,
290,
373,
30080,
878,
24414,
30,
46506,
20625,
7,
4480,
41549,
8,
16034,
3084,
62,
3672,
62,
940,
33411,
19967,
380,
62,
39... |
What are the most viewed profiles?. | SELECT Id AS "user_link", Views, Reputation FROM Users WHERE Views > 6000 ORDER BY Views DESC | [
2061,
389,
262,
749,
9569,
16545,
30,
13,
46506,
5121,
7054,
366,
7220,
62,
8726,
1600,
29978,
11,
1432,
7094,
16034,
18987,
33411,
29978,
1875,
39064,
38678,
11050,
29978,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
749,
9569,
16545,
30,
13,
46506,
5121,
7054,
366,
7220,
62,
8726,
1600,
29978,
11,
1432,
7094,
16034,
18987,
33411,
29978,
1875,
39064,
38678,
11050,
29978,
22196,
34
] |
What is the highest amount of points with a goal average larger than 4, less than 12 draws, and a goal of 63? | SELECT MAX("Points") FROM table_47493 WHERE "Goal average" > '4' AND "Draws" < '12' AND "Goals for" = '63' | [
2061,
318,
262,
4511,
2033,
286,
2173,
351,
257,
3061,
2811,
4025,
621,
604,
11,
1342,
621,
1105,
14293,
11,
290,
257,
3061,
286,
8093,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
2857,
43134,
33411,
366,
49045,
2811,
1,
187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
4511,
2033,
286,
2173,
351,
257,
3061,
2811,
4025,
621,
604,
11,
1342,
621,
1105,
14293,
11,
290,
257,
3061,
286,
8093,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
2857,
43134,
33411,
366,
49045,
2811,
1,
187... |
what is the number of patients under the age of 86 whose drug code is levobase2? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "86" AND prescriptions.formulary_drug_cd = "LEVOBASE2" | [
10919,
318,
262,
1271,
286,
3871,
739,
262,
2479,
286,
9849,
3025,
2563,
2438,
318,
23145,
672,
589,
17,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
739,
262,
2479,
286,
9849,
3025,
2563,
2438,
318,
23145,
672,
589,
17,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177... |
On what date did Canty (6) receive high assists? | SELECT "Date" FROM table_1613 WHERE "High assists" = 'Canty (6)' | [
2202,
644,
3128,
750,
16821,
88,
357,
21,
8,
3328,
1029,
13648,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1433,
1485,
33411,
366,
11922,
13648,
1,
796,
705,
34,
46098,
357,
21,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
750,
16821,
88,
357,
21,
8,
3328,
1029,
13648,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1433,
1485,
33411,
366,
11922,
13648,
1,
796,
705,
34,
46098,
357,
21,
33047
] |
How many SO answers per month?. | SELECT u.DisplayName, MONTH(p.CreationDate) + YEAR(p.CreationDate) * 100 AS "mdate", COUNT(u.DisplayName) AS "num" FROM Posts AS p, Users AS u WHERE p.PostTypeId = 2 AND p.OwnerUserId IN ('##SOid##') AND p.OwnerUserId = u.Id GROUP BY MONTH(p.CreationDate) + YEAR(p.CreationDate) * 100, u.DisplayName ORDER BY Num DESC | [
2437,
867,
12809,
7429,
583,
1227,
30,
13,
46506,
334,
13,
23114,
5376,
11,
25000,
4221,
7,
79,
13,
12443,
341,
10430,
8,
1343,
32914,
7,
79,
13,
12443,
341,
10430,
8,
1635,
1802,
7054,
366,
76,
4475,
1600,
327,
28270,
7,
84,
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... | [
2437,
867,
12809,
7429,
583,
1227,
30,
13,
46506,
334,
13,
23114,
5376,
11,
25000,
4221,
7,
79,
13,
12443,
341,
10430,
8,
1343,
32914,
7,
79,
13,
12443,
341,
10430,
8,
1635,
1802,
7054,
366,
76,
4475,
1600,
327,
28270,
7,
84,
13,
... |
What is the nt identity when the species is drosophilia melanogaster? | SELECT "NT Identity" FROM table_28968 WHERE "Species" = 'Drosophilia melanogaster' | [
2061,
318,
262,
299,
83,
5369,
618,
262,
4693,
318,
3102,
82,
2522,
17517,
34963,
519,
1603,
30,
46506,
366,
11251,
27207,
1,
16034,
3084,
62,
27693,
3104,
33411,
366,
5248,
3171,
1,
796,
705,
35,
4951,
2522,
17517,
34963,
519,
1603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
299,
83,
5369,
618,
262,
4693,
318,
3102,
82,
2522,
17517,
34963,
519,
1603,
30,
46506,
366,
11251,
27207,
1,
16034,
3084,
62,
27693,
3104,
33411,
366,
5248,
3171,
1,
796,
705,
35,
4951,
2522,
17517,
34963,
519,
1603,
... |
What was the score in round 7? | SELECT score FROM table_26847237_1 WHERE round__number = "Round 7" | [
2061,
373,
262,
4776,
287,
2835,
767,
30,
46506,
4776,
16034,
3084,
62,
25022,
2857,
24693,
62,
16,
33411,
2835,
834,
17618,
796,
366,
22685,
767,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
287,
2835,
767,
30,
46506,
4776,
16034,
3084,
62,
25022,
2857,
24693,
62,
16,
33411,
2835,
834,
17618,
796,
366,
22685,
767,
1
] |
What district did incumbent Ralph A. Gamble represent? | SELECT "District" FROM table_748 WHERE "Incumbent" = 'Ralph A. Gamble' | [
2061,
4783,
750,
23526,
20993,
317,
13,
49318,
2380,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
48246,
33411,
366,
25517,
2178,
298,
1,
796,
705,
49,
17307,
317,
13,
49318,
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
] | [
2061,
4783,
750,
23526,
20993,
317,
13,
49318,
2380,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
48246,
33411,
366,
25517,
2178,
298,
1,
796,
705,
49,
17307,
317,
13,
49318,
6
] |
Who was the visiting team when the home team was Seattle? | SELECT visitor FROM table_name_22 WHERE home = "seattle" | [
8241,
373,
262,
10013,
1074,
618,
262,
1363,
1074,
373,
7312,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
1828,
33411,
1363,
796,
366,
325,
1999,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
10013,
1074,
618,
262,
1363,
1074,
373,
7312,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
1828,
33411,
1363,
796,
366,
325,
1999,
1
] |
with left ventricular ejection fraction ( lvef ) >= 45 % | SELECT * FROM table_test_19 WHERE left_ventricular_ejection_fraction_lvef >= 45 | [
4480,
1364,
7435,
41001,
22189,
295,
13390,
357,
300,
303,
69,
1267,
18189,
4153,
4064,
46506,
1635,
16034,
3084,
62,
9288,
62,
1129,
33411,
1364,
62,
1151,
41001,
62,
68,
29192,
62,
69,
7861,
62,
75,
303,
69,
18189,
4153
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4480,
1364,
7435,
41001,
22189,
295,
13390,
357,
300,
303,
69,
1267,
18189,
4153,
4064,
46506,
1635,
16034,
3084,
62,
9288,
62,
1129,
33411,
1364,
62,
1151,
41001,
62,
68,
29192,
62,
69,
7861,
62,
75,
303,
69,
18189,
4153
] |
What is the campus fee for San Francisco State University in 1996? | SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND T2.year = 1996 | [
2061,
318,
262,
7611,
6838,
329,
2986,
6033,
1812,
2059,
287,
8235,
30,
46506,
7611,
39071,
16034,
23003,
7054,
309,
16,
32357,
1268,
269,
2385,
62,
69,
2841,
7054,
309,
17,
6177,
309,
16,
13,
312,
796,
256,
17,
13,
43842,
33411,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7611,
6838,
329,
2986,
6033,
1812,
2059,
287,
8235,
30,
46506,
7611,
39071,
16034,
23003,
7054,
309,
16,
32357,
1268,
269,
2385,
62,
69,
2841,
7054,
309,
17,
6177,
309,
16,
13,
312,
796,
256,
17,
13,
43842,
33411,
25... |
Stack bar chart of school_id vs All_Home based on acc road, rank Y from high to low order. | SELECT ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY School_ID DESC | [
25896,
2318,
8262,
286,
1524,
62,
312,
3691,
1439,
62,
16060,
1912,
319,
697,
2975,
11,
4279,
575,
422,
1029,
284,
1877,
1502,
13,
46506,
15859,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25896,
2318,
8262,
286,
1524,
62,
312,
3691,
1439,
62,
16060,
1912,
319,
697,
2975,
11,
4279,
575,
422,
1029,
284,
1877,
1502,
13,
46506,
15859,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060,
11,... |
What are the names of all people, ordered by their date of birth? | SELECT name FROM people ORDER BY date_of_birth | [
2061,
389,
262,
3891,
286,
477,
661,
11,
6149,
416,
511,
3128,
286,
4082,
30,
46506,
1438,
16034,
661,
38678,
11050,
3128,
62,
1659,
62,
24280
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
477,
661,
11,
6149,
416,
511,
3128,
286,
4082,
30,
46506,
1438,
16034,
661,
38678,
11050,
3128,
62,
1659,
62,
24280
] |
Which city does staff with first name as Janessa and last name as Sawayn live? | SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" | [
13828,
1748,
857,
3085,
351,
717,
1438,
355,
2365,
21411,
290,
938,
1438,
355,
311,
8272,
77,
2107,
30,
46506,
309,
16,
13,
19205,
16034,
3060,
16746,
7054,
309,
16,
32357,
1268,
9983,
7054,
309,
17,
6177,
309,
16,
13,
21975,
62,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
1748,
857,
3085,
351,
717,
1438,
355,
2365,
21411,
290,
938,
1438,
355,
311,
8272,
77,
2107,
30,
46506,
309,
16,
13,
19205,
16034,
3060,
16746,
7054,
309,
16,
32357,
1268,
9983,
7054,
309,
17,
6177,
309,
16,
13,
21975,
62,
31... |
For the match that had detail of 2001 nrl grand final, what was the lowest total points? | SELECT MIN(total_points) FROM table_name_73 WHERE details = "2001 nrl grand final" | [
1890,
262,
2872,
326,
550,
3703,
286,
5878,
299,
45895,
4490,
2457,
11,
644,
373,
262,
9016,
2472,
2173,
30,
46506,
20625,
7,
23350,
62,
13033,
8,
16034,
3084,
62,
3672,
62,
4790,
33411,
3307,
796,
366,
14585,
299,
45895,
4490,
2457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
262,
2872,
326,
550,
3703,
286,
5878,
299,
45895,
4490,
2457,
11,
644,
373,
262,
9016,
2472,
2173,
30,
46506,
20625,
7,
23350,
62,
13033,
8,
16034,
3084,
62,
3672,
62,
4790,
33411,
3307,
796,
366,
14585,
299,
45895,
4490,
2457,
... |
What was the broadcaste date for the episode with a run time of 24:44? | SELECT broadcast_date FROM table_name_60 WHERE run_time = "24:44" | [
2061,
373,
262,
7025,
68,
3128,
329,
262,
4471,
351,
257,
1057,
640,
286,
1987,
25,
2598,
30,
46506,
7025,
62,
4475,
16034,
3084,
62,
3672,
62,
1899,
33411,
1057,
62,
2435,
796,
366,
1731,
25,
2598,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
7025,
68,
3128,
329,
262,
4471,
351,
257,
1057,
640,
286,
1987,
25,
2598,
30,
46506,
7025,
62,
4475,
16034,
3084,
62,
3672,
62,
1899,
33411,
1057,
62,
2435,
796,
366,
1731,
25,
2598,
1
] |
What is the total avge of John Hall, who has less than 63 goals? | SELECT COUNT(avge) FROM table_name_25 WHERE name = "john hall" AND goals < 63 | [
2061,
318,
262,
2472,
1196,
469,
286,
1757,
4789,
11,
508,
468,
1342,
621,
8093,
4661,
30,
46506,
327,
28270,
7,
615,
469,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
1438,
796,
366,
30686,
6899,
1,
5357,
4661,
1279,
8093
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1196,
469,
286,
1757,
4789,
11,
508,
468,
1342,
621,
8093,
4661,
30,
46506,
327,
28270,
7,
615,
469,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
1438,
796,
366,
30686,
6899,
1,
5357,
4661,
1279,
8093
] |
Wh' questions' score and answeredness. | SELECT MONTH(CreationDate) AS month, YEAR(CreationDate) AS year, 1.0 * SUM(CASE WHEN LOWER(LEFT(Title, 2)) = 'wh' THEN 1 ELSE 0 END) / COUNT(*) AS wh, (SELECT 1.0 * SUM(Score) / COUNT(*) FROM Posts AS u WHERE MONTH(CreationDate) = MONTH(t.CreationDate) AND YEAR(CreationDate) = YEAR(t.CreationDate) AND LOWER(LEFT(Title,... | [
1199,
6,
2683,
6,
4776,
290,
9373,
1108,
13,
46506,
25000,
4221,
7,
12443,
341,
10430,
8,
7054,
1227,
11,
32914,
7,
12443,
341,
10430,
8,
7054,
614,
11,
352,
13,
15,
1635,
35683,
7,
34,
11159,
42099,
406,
36048,
7,
2538,
9792,
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... | [
1199,
6,
2683,
6,
4776,
290,
9373,
1108,
13,
46506,
25000,
4221,
7,
12443,
341,
10430,
8,
7054,
1227,
11,
32914,
7,
12443,
341,
10430,
8,
7054,
614,
11,
352,
13,
15,
1635,
35683,
7,
34,
11159,
42099,
406,
36048,
7,
2538,
9792,
7,
... |
Name the sum of grid with laps more than 97 | SELECT SUM("Grid") FROM table_38668 WHERE "Laps" > '97' | [
5376,
262,
2160,
286,
10706,
351,
24590,
517,
621,
10111,
46506,
35683,
7203,
41339,
4943,
16034,
3084,
62,
2548,
35809,
33411,
366,
43,
1686,
1,
1875,
705,
5607,
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
] | [
5376,
262,
2160,
286,
10706,
351,
24590,
517,
621,
10111,
46506,
35683,
7203,
41339,
4943,
16034,
3084,
62,
2548,
35809,
33411,
366,
43,
1686,
1,
1875,
705,
5607,
6
] |
How many goal differences have Played larger than 44? | SELECT SUM(goal_difference) FROM table_name_99 WHERE played > 44 | [
2437,
867,
3061,
5400,
423,
33101,
4025,
621,
5846,
30,
46506,
35683,
7,
35231,
62,
26069,
1945,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
2826,
1875,
5846
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3061,
5400,
423,
33101,
4025,
621,
5846,
30,
46506,
35683,
7,
35231,
62,
26069,
1945,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
2826,
1875,
5846
] |
calculate the number of patients to whom lidocaine 5% patch was administered when admitted to emergency. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug = "Lidocaine 5% Patch" | [
9948,
3129,
378,
262,
1271,
286,
3871,
284,
4150,
19789,
420,
5718,
642,
4,
8529,
373,
17169,
618,
6848,
284,
6334,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
1271,
286,
3871,
284,
4150,
19789,
420,
5718,
642,
4,
8529,
373,
17169,
618,
6848,
284,
6334,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
what is the difference in the tonage between the queen mary and media ? | SELECT (SELECT "tonnage" FROM table_203_547 WHERE "ship" = 'queen mary') - (SELECT "tonnage" FROM table_203_547 WHERE "ship" = 'media') | [
10919,
318,
262,
3580,
287,
262,
5680,
496,
1022,
262,
16599,
285,
560,
290,
2056,
5633,
46506,
357,
46506,
366,
1122,
77,
496,
1,
16034,
3084,
62,
22416,
62,
20,
2857,
33411,
366,
6720,
1,
796,
705,
4188,
268,
285,
560,
11537,
532,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
3580,
287,
262,
5680,
496,
1022,
262,
16599,
285,
560,
290,
2056,
5633,
46506,
357,
46506,
366,
1122,
77,
496,
1,
16034,
3084,
62,
22416,
62,
20,
2857,
33411,
366,
6720,
1,
796,
705,
4188,
268,
285,
560,
11537,
532,... |
Who was the commentator when the spokesperson was michael aspel? | SELECT commentator FROM table_name_35 WHERE spokespersons = "michael aspel" | [
8241,
373,
262,
28823,
618,
262,
11821,
373,
285,
40302,
355,
30242,
30,
46506,
28823,
16034,
3084,
62,
3672,
62,
2327,
33411,
4212,
19276,
684,
796,
366,
76,
40302,
355,
30242,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
28823,
618,
262,
11821,
373,
285,
40302,
355,
30242,
30,
46506,
28823,
16034,
3084,
62,
3672,
62,
2327,
33411,
4212,
19276,
684,
796,
366,
76,
40302,
355,
30242,
1
] |
How many touchdowns were scored when QB rating was 82.7? | SELECT MAX(touchdowns) FROM table_20906175_3 WHERE qb_rating = "82.7" | [
2437,
867,
17692,
547,
7781,
618,
16135,
7955,
373,
9415,
13,
22,
30,
46506,
25882,
7,
29332,
30371,
8,
16034,
3084,
62,
22567,
3312,
17430,
62,
18,
33411,
10662,
65,
62,
8821,
796,
366,
6469,
13,
22,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
17692,
547,
7781,
618,
16135,
7955,
373,
9415,
13,
22,
30,
46506,
25882,
7,
29332,
30371,
8,
16034,
3084,
62,
22567,
3312,
17430,
62,
18,
33411,
10662,
65,
62,
8821,
796,
366,
6469,
13,
22,
1
] |
what is minimum age of patients whose days of hospital stay is 29 and admission year is greater than or equal to 2107? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.days_stay = "29" AND demographic.admityear >= "2107" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
2808,
290,
13938,
614,
318,
3744,
621,
393,
4961,
284,
362,
15982,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
12545,
62,
31712,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
5288,
2479,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
2808,
290,
13938,
614,
318,
3744,
621,
393,
4961,
284,
362,
15982,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
12545,
62,
31712,
796... |
what are the number of images on the list ? | SELECT COUNT(*) FROM table_204_665 | [
10919,
389,
262,
1271,
286,
4263,
319,
262,
1351,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
36879
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
389,
262,
1271,
286,
4263,
319,
262,
1351,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
36879
] |
What were the amount of rebounds in game 2? | SELECT high_rebounds FROM table_23248910_11 WHERE game = 2 | [
2061,
547,
262,
2033,
286,
18841,
287,
983,
362,
30,
46506,
1029,
62,
34806,
3733,
16034,
3084,
62,
1954,
1731,
4531,
940,
62,
1157,
33411,
983,
796,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
547,
262,
2033,
286,
18841,
287,
983,
362,
30,
46506,
1029,
62,
34806,
3733,
16034,
3084,
62,
1954,
1731,
4531,
940,
62,
1157,
33411,
983,
796,
362
] |
how many hours has it been since patient 030-42006 first carbon monoxide overdose diagnosis on this hospital visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-42006... | [
4919,
867,
2250,
468,
340,
587,
1201,
5827,
657,
1270,
12,
19,
13330,
717,
6588,
937,
28885,
27357,
13669,
319,
428,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
2250,
468,
340,
587,
1201,
5827,
657,
1270,
12,
19,
13330,
717,
6588,
937,
28885,
27357,
13669,
319,
428,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19... |
What couple had a total score of 6? | SELECT couple FROM table_19744915_15 WHERE total = 6 | [
2061,
3155,
550,
257,
2472,
4776,
286,
718,
30,
46506,
3155,
16034,
3084,
62,
24991,
31911,
1314,
62,
1314,
33411,
2472,
796,
718
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3155,
550,
257,
2472,
4776,
286,
718,
30,
46506,
3155,
16034,
3084,
62,
24991,
31911,
1314,
62,
1314,
33411,
2472,
796,
718
] |
has the heart rate of patient 10624 ever less been on 09/04/last year than 75.0? | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10624)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d... | [
10134,
262,
2612,
2494,
286,
5827,
15696,
1731,
1683,
1342,
587,
319,
7769,
14,
3023,
14,
12957,
614,
621,
5441,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
262,
2612,
2494,
286,
5827,
15696,
1731,
1683,
1342,
587,
319,
7769,
14,
3023,
14,
12957,
614,
621,
5441,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
... |
How many gp-gs have 121.70 as an effic and an avg/g less than 218.7? | SELECT COUNT(gp_gs) FROM table_name_41 WHERE effic = "121.70" AND avg_g < 218.7 | [
2437,
867,
27809,
12,
14542,
423,
20416,
13,
2154,
355,
281,
4396,
290,
281,
42781,
14,
70,
1342,
621,
29217,
13,
22,
30,
46506,
327,
28270,
7,
31197,
62,
14542,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
4396,
796,
366,
19244,
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
] | [
2437,
867,
27809,
12,
14542,
423,
20416,
13,
2154,
355,
281,
4396,
290,
281,
42781,
14,
70,
1342,
621,
29217,
13,
22,
30,
46506,
327,
28270,
7,
31197,
62,
14542,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
4396,
796,
366,
19244,
13,
... |
Show details of all investors if they make any transaction with share count greater than 100, and count them by a bar chart, and I want to order by the Y in ascending. | SELECT Investor_details, COUNT(Investor_details) FROM Investors AS T1 JOIN Transactions AS T2 ON T1.investor_id = T2.investor_id WHERE T2.share_count > 100 GROUP BY Investor_details ORDER BY COUNT(Investor_details) | [
15307,
3307,
286,
477,
7713,
611,
484,
787,
597,
8611,
351,
2648,
954,
3744,
621,
1802,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
575,
287,
41988,
13,
46506,
47979,
62,
36604,
11,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
3307,
286,
477,
7713,
611,
484,
787,
597,
8611,
351,
2648,
954,
3744,
621,
1802,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
575,
287,
41988,
13,
46506,
47979,
62,
36604,
11,
327,
28270,
... |
How many games had 41 rushes and were than 197 yards? | SELECT COUNT("Games") FROM table_31613 WHERE "Rushes" = '41' AND "Yards" < '197' | [
2437,
867,
1830,
550,
6073,
38596,
290,
547,
621,
29903,
5695,
30,
46506,
327,
28270,
7203,
24474,
4943,
16034,
3084,
62,
33400,
1485,
33411,
366,
49,
17237,
1,
796,
705,
3901,
6,
5357,
366,
56,
1371,
1,
1279,
705,
24991,
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
] | [
2437,
867,
1830,
550,
6073,
38596,
290,
547,
621,
29903,
5695,
30,
46506,
327,
28270,
7203,
24474,
4943,
16034,
3084,
62,
33400,
1485,
33411,
366,
49,
17237,
1,
796,
705,
3901,
6,
5357,
366,
56,
1371,
1,
1279,
705,
24991,
6
] |
what is the three most common lab test performed? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents GROUP BY labevents.itemid) AS t1 WHERE t1.c1 <= 3) | [
10919,
318,
262,
1115,
749,
2219,
2248,
1332,
6157,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1115,
749,
2219,
2248,
1332,
6157,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,
2... |
Return a bar chart about the distribution of All_Neutral and ACC_Percent , sort in descending by the X-axis. | SELECT All_Neutral, ACC_Percent FROM basketball_match ORDER BY All_Neutral DESC | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
8199,
6815,
290,
15859,
62,
31905,
837,
3297,
287,
31491,
416,
262,
1395,
12,
22704,
13,
46506,
1439,
62,
8199,
6815,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
11050,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
8199,
6815,
290,
15859,
62,
31905,
837,
3297,
287,
31491,
416,
262,
1395,
12,
22704,
13,
46506,
1439,
62,
8199,
6815,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
11050,
1... |
What is Score, when Competition is 'ECQG5', and when Venue is 'Hampden Park , Glasgow (H)'? | SELECT "Score" FROM table_13173 WHERE "Competition" = 'ecqg5' AND "Venue" = 'hampden park , glasgow (h)' | [
2061,
318,
15178,
11,
618,
27348,
318,
705,
2943,
48,
38,
20,
3256,
290,
618,
9932,
518,
318,
705,
39,
696,
6559,
3250,
837,
23995,
357,
39,
8,
30960,
46506,
366,
26595,
1,
16034,
3084,
62,
1485,
25399,
33411,
366,
7293,
15620,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
15178,
11,
618,
27348,
318,
705,
2943,
48,
38,
20,
3256,
290,
618,
9932,
518,
318,
705,
39,
696,
6559,
3250,
837,
23995,
357,
39,
8,
30960,
46506,
366,
26595,
1,
16034,
3084,
62,
1485,
25399,
33411,
366,
7293,
15620,
1,
... |
In the year 2013, what was the outcome? | SELECT outcome FROM table_2516282_3 WHERE year = 2013 | [
818,
262,
614,
2211,
11,
644,
373,
262,
8055,
30,
46506,
8055,
16034,
3084,
62,
1495,
1433,
32568,
62,
18,
33411,
614,
796,
2211
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
262,
614,
2211,
11,
644,
373,
262,
8055,
30,
46506,
8055,
16034,
3084,
62,
1495,
1433,
32568,
62,
18,
33411,
614,
796,
2211
] |
Name the 2nd leg for defence force | SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = "defence force" | [
5376,
262,
362,
358,
1232,
329,
9366,
2700,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
5333,
33411,
1074,
62,
17,
796,
366,
4299,
594,
2700,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
362,
358,
1232,
329,
9366,
2700,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
5333,
33411,
1074,
62,
17,
796,
366,
4299,
594,
2700,
1
] |
Which round has an Opponent of lille, and a H / A of h? | SELECT "Round" FROM table_77655 WHERE "Opponents" = 'lille' AND "H / A" = 'h' | [
13828,
2835,
468,
281,
9385,
3471,
286,
300,
8270,
11,
290,
257,
367,
1220,
317,
286,
289,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
3324,
35916,
33411,
366,
27524,
3906,
1,
796,
705,
75,
8270,
6,
5357,
366,
39,
1220,
317,
1,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2835,
468,
281,
9385,
3471,
286,
300,
8270,
11,
290,
257,
367,
1220,
317,
286,
289,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
3324,
35916,
33411,
366,
27524,
3906,
1,
796,
705,
75,
8270,
6,
5357,
366,
39,
1220,
317,
1,
796... |
Which DOB has a Surname of cresswell? | SELECT dob FROM table_name_40 WHERE surname = "cresswell" | [
13828,
8410,
33,
468,
257,
311,
700,
480,
286,
269,
601,
4053,
30,
46506,
466,
65,
16034,
3084,
62,
3672,
62,
1821,
33411,
40358,
796,
366,
66,
601,
4053,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
8410,
33,
468,
257,
311,
700,
480,
286,
269,
601,
4053,
30,
46506,
466,
65,
16034,
3084,
62,
3672,
62,
1821,
33411,
40358,
796,
366,
66,
601,
4053,
1
] |
how many patients aged below 43 year had the drug route dialysis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "43" AND prescriptions.route = "DIALYS" | [
4919,
867,
3871,
9722,
2174,
5946,
614,
550,
262,
2563,
6339,
5980,
3097,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
9722,
2174,
5946,
614,
550,
262,
2563,
6339,
5980,
3097,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312... |
how many exhibitions has each artist had? | SELECT Name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.Artist_ID = T2.Artist_ID GROUP BY T1.Artist_ID | [
4919,
867,
48130,
468,
1123,
6802,
550,
30,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
17127,
7054,
309,
16,
32357,
1268,
6802,
7054,
309,
17,
6177,
309,
16,
13,
43020,
62,
2389,
796,
309,
17,
13,
43020,
62,
2389,
44441,
11050,
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
] | [
4919,
867,
48130,
468,
1123,
6802,
550,
30,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
17127,
7054,
309,
16,
32357,
1268,
6802,
7054,
309,
17,
6177,
309,
16,
13,
43020,
62,
2389,
796,
309,
17,
13,
43020,
62,
2389,
44441,
11050,
3... |
how many patients whose admission type is elective and procedure short title is hemodialysis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.short_title = "Hemodialysis" | [
4919,
867,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
8771,
1790,
3670,
318,
339,
4666,
498,
3097,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
8771,
1790,
3670,
318,
339,
4666,
498,
3097,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16... |
Which Date has a Road team of portland, and a Game of game 5? | SELECT date FROM table_name_16 WHERE road_team = "portland" AND game = "game 5" | [
13828,
7536,
468,
257,
5567,
1074,
286,
2493,
1044,
11,
290,
257,
3776,
286,
983,
642,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1433,
33411,
2975,
62,
15097,
796,
366,
634,
1044,
1,
5357,
983,
796,
366,
6057,
642,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7536,
468,
257,
5567,
1074,
286,
2493,
1044,
11,
290,
257,
3776,
286,
983,
642,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1433,
33411,
2975,
62,
15097,
796,
366,
634,
1044,
1,
5357,
983,
796,
366,
6057,
642,
1
] |
Find the number of different product types. | SELECT COUNT(DISTINCT product_type_code) FROM products | [
16742,
262,
1271,
286,
1180,
1720,
3858,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1720,
62,
4906,
62,
8189,
8,
16034,
3186
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
1180,
1720,
3858,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1720,
62,
4906,
62,
8189,
8,
16034,
3186
] |
What is the lowest draw number for the song ranked 6th with more than 43 points? | SELECT MIN("Draw") FROM table_42399 WHERE "Points" > '43' AND "Rank" = '6th' | [
2061,
318,
262,
9016,
3197,
1271,
329,
262,
3496,
10307,
718,
400,
351,
517,
621,
5946,
2173,
30,
46506,
20625,
7203,
25302,
4943,
16034,
3084,
62,
43356,
2079,
33411,
366,
40710,
1,
1875,
705,
3559,
6,
5357,
366,
27520,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
3197,
1271,
329,
262,
3496,
10307,
718,
400,
351,
517,
621,
5946,
2173,
30,
46506,
20625,
7203,
25302,
4943,
16034,
3084,
62,
43356,
2079,
33411,
366,
40710,
1,
1875,
705,
3559,
6,
5357,
366,
27520,
1,
796,
705,
... |
what is the 2nd leg when team #2 is algiris kaunas? | SELECT 2 AS nd_leg FROM table_name_47 WHERE team__number2 = "žalgiris kaunas" | [
10919,
318,
262,
362,
358,
1232,
618,
1074,
1303,
17,
318,
435,
70,
29616,
479,
1942,
292,
30,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
2857,
33411,
1074,
834,
17618,
17,
796,
366,
129,
122,
14016,
29616,
479,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
362,
358,
1232,
618,
1074,
1303,
17,
318,
435,
70,
29616,
479,
1942,
292,
30,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
2857,
33411,
1074,
834,
17618,
17,
796,
366,
129,
122,
14016,
29616,
479,... |
What year is the Grim Fandango with a windows platform? | SELECT year FROM table_name_36 WHERE platform_s_ = "windows" AND game = "grim fandango" | [
2061,
614,
318,
262,
17525,
376,
392,
14208,
351,
257,
9168,
3859,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
2623,
33411,
3859,
62,
82,
62,
796,
366,
28457,
1,
5357,
983,
796,
366,
33563,
277,
392,
14208,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
318,
262,
17525,
376,
392,
14208,
351,
257,
9168,
3859,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
2623,
33411,
3859,
62,
82,
62,
796,
366,
28457,
1,
5357,
983,
796,
366,
33563,
277,
392,
14208,
1
] |
What original channel is associated with B Mountain Channel 9? | SELECT "Original Channel" FROM table_33347 WHERE "B Mountain Channel" = '9' | [
2061,
2656,
6518,
318,
3917,
351,
347,
9638,
11102,
860,
30,
46506,
366,
20556,
11102,
1,
16034,
3084,
62,
2091,
30995,
33411,
366,
33,
9638,
11102,
1,
796,
705,
24,
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
] | [
2061,
2656,
6518,
318,
3917,
351,
347,
9638,
11102,
860,
30,
46506,
366,
20556,
11102,
1,
16034,
3084,
62,
2091,
30995,
33411,
366,
33,
9638,
11102,
1,
796,
705,
24,
6
] |
What is the production code for episode 229? | SELECT MAX(production_code) FROM table_14889988_1 WHERE no_in_series = 229 | [
2061,
318,
262,
3227,
2438,
329,
4471,
31064,
30,
46506,
25882,
7,
25493,
62,
8189,
8,
16034,
3084,
62,
1415,
3459,
2079,
3459,
62,
16,
33411,
645,
62,
259,
62,
25076,
796,
31064
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3227,
2438,
329,
4471,
31064,
30,
46506,
25882,
7,
25493,
62,
8189,
8,
16034,
3084,
62,
1415,
3459,
2079,
3459,
62,
16,
33411,
645,
62,
259,
62,
25076,
796,
31064
] |
List the number of the phone numbers of all employees. | SELECT Phone, COUNT(Phone) FROM Employee GROUP BY Phone | [
8053,
262,
1271,
286,
262,
3072,
3146,
286,
477,
4409,
13,
46506,
14484,
11,
327,
28270,
7,
6132,
8,
16034,
36824,
44441,
11050,
14484
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
1271,
286,
262,
3072,
3146,
286,
477,
4409,
13,
46506,
14484,
11,
327,
28270,
7,
6132,
8,
16034,
36824,
44441,
11050,
14484
] |
How many people attended the game when the away team scored 10.11 (71)? | SELECT SUM("Crowd") FROM table_56900 WHERE "Away team score" = '10.11 (71)' | [
2437,
867,
661,
9141,
262,
983,
618,
262,
1497,
1074,
7781,
838,
13,
1157,
357,
4869,
19427,
46506,
35683,
7203,
34,
3986,
4943,
16034,
3084,
62,
20,
3388,
405,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
940,
13,
1157,
357,
4869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
661,
9141,
262,
983,
618,
262,
1497,
1074,
7781,
838,
13,
1157,
357,
4869,
19427,
46506,
35683,
7203,
34,
3986,
4943,
16034,
3084,
62,
20,
3388,
405,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
940,
13,
1157,
357,
4869... |
What are the enrollment dates of all the tests that have result 'Pass', and count them by a bar chart, sort in descending by the y-axis. | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" ORDER BY COUNT(date_of_enrolment) DESC | [
2061,
389,
262,
20753,
9667,
286,
477,
262,
5254,
326,
423,
1255,
705,
14478,
3256,
290,
954,
606,
416,
257,
2318,
8262,
11,
3297,
287,
31491,
416,
262,
331,
12,
22704,
13,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
20753,
9667,
286,
477,
262,
5254,
326,
423,
1255,
705,
14478,
3256,
290,
954,
606,
416,
257,
2318,
8262,
11,
3297,
287,
31491,
416,
262,
331,
12,
22704,
13,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11,
327,
28270,
... |
Compute the total population across county name as a pie chart. | SELECT County_name, Population FROM county | [
7293,
1133,
262,
2472,
3265,
1973,
7968,
1438,
355,
257,
2508,
8262,
13,
46506,
3418,
62,
3672,
11,
20133,
16034,
7968
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
7293,
1133,
262,
2472,
3265,
1973,
7968,
1438,
355,
257,
2508,
8262,
13,
46506,
3418,
62,
3672,
11,
20133,
16034,
7968
] |
Which Game is the highest one that has a Record of 4-3-6? | SELECT MAX(game) FROM table_name_83 WHERE record = "4-3-6" | [
13828,
3776,
318,
262,
4511,
530,
326,
468,
257,
13266,
286,
604,
12,
18,
12,
21,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
1700,
796,
366,
19,
12,
18,
12,
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
] | [
13828,
3776,
318,
262,
4511,
530,
326,
468,
257,
13266,
286,
604,
12,
18,
12,
21,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
1700,
796,
366,
19,
12,
18,
12,
21,
1
] |
Which parish has an area of 750.51? | SELECT "Official Name" FROM table_78569 WHERE "Area km 2" = '750.51' | [
13828,
28830,
468,
281,
1989,
286,
19683,
13,
4349,
30,
46506,
366,
28529,
6530,
1,
16034,
3084,
62,
41172,
3388,
33411,
366,
30547,
10571,
362,
1,
796,
705,
15426,
13,
4349,
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
] | [
13828,
28830,
468,
281,
1989,
286,
19683,
13,
4349,
30,
46506,
366,
28529,
6530,
1,
16034,
3084,
62,
41172,
3388,
33411,
366,
30547,
10571,
362,
1,
796,
705,
15426,
13,
4349,
6
] |
What is the affiliation of a high school in Issaquah that was founded in less than 1965? | SELECT "Affiliation" FROM table_75460 WHERE "Founded" < '1965' AND "High School" = 'issaquah' | [
2061,
318,
262,
26218,
286,
257,
1029,
1524,
287,
10585,
36129,
993,
326,
373,
9393,
287,
1342,
621,
17672,
30,
46506,
366,
35191,
15547,
1,
16034,
3084,
62,
2425,
34716,
33411,
366,
37,
6302,
1,
1279,
705,
45271,
6,
5357,
366,
11922,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
26218,
286,
257,
1029,
1524,
287,
10585,
36129,
993,
326,
373,
9393,
287,
1342,
621,
17672,
30,
46506,
366,
35191,
15547,
1,
16034,
3084,
62,
2425,
34716,
33411,
366,
37,
6302,
1,
1279,
705,
45271,
6,
5357,
366,
11922,... |
what was the last value on the sodium lab test of patient 42956? | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 42956) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'sodium') ORDER BY labevents.charttime DESC LIMIT 1 | [
10919,
373,
262,
938,
1988,
319,
262,
21072,
2248,
1332,
286,
5827,
42313,
3980,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
938,
1988,
319,
262,
21072,
2248,
1332,
286,
5827,
42313,
3980,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
... |
Name the year with percentage of 9.66% | SELECT year FROM table_name_55 WHERE percentage = "9.66%" | [
5376,
262,
614,
351,
5873,
286,
860,
13,
2791,
4,
46506,
614,
16034,
3084,
62,
3672,
62,
2816,
33411,
5873,
796,
366,
24,
13,
2791,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
614,
351,
5873,
286,
860,
13,
2791,
4,
46506,
614,
16034,
3084,
62,
3672,
62,
2816,
33411,
5873,
796,
366,
24,
13,
2791,
39658
] |
which primary disease is the patient paul edwards suffering from? | SELECT demographic.diagnosis FROM demographic WHERE demographic.name = "Paul Edwards" | [
4758,
4165,
4369,
318,
262,
5827,
279,
2518,
1225,
2017,
7195,
422,
30,
46506,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
12041,
17381,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
4165,
4369,
318,
262,
5827,
279,
2518,
1225,
2017,
7195,
422,
30,
46506,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
12041,
17381,
1
] |
what is the number of patients whose marital status is married and admission year is less than 2198? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2198" | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
13938,
614,
318,
1342,
621,
362,
22337,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
13938,
614,
318,
1342,
621,
362,
22337,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,... |
What is the total number of seats with gavin duffy in series 4? | SELECT COUNT(seat) FROM table_name_13 WHERE series_4 = "gavin duffy" | [
2061,
318,
262,
2472,
1271,
286,
8632,
351,
308,
20637,
288,
15352,
287,
2168,
604,
30,
46506,
327,
28270,
7,
24073,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
2168,
62,
19,
796,
366,
70,
20637,
288,
15352,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
8632,
351,
308,
20637,
288,
15352,
287,
2168,
604,
30,
46506,
327,
28270,
7,
24073,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
2168,
62,
19,
796,
366,
70,
20637,
288,
15352,
1
] |
What district is Jim Moran the incumbent for. | SELECT district FROM table_name_40 WHERE incumbent = "jim moran" | [
2061,
4783,
318,
5395,
42705,
262,
23526,
329,
13,
46506,
4783,
16034,
3084,
62,
3672,
62,
1821,
33411,
23526,
796,
366,
73,
320,
2146,
272,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4783,
318,
5395,
42705,
262,
23526,
329,
13,
46506,
4783,
16034,
3084,
62,
3672,
62,
1821,
33411,
23526,
796,
366,
73,
320,
2146,
272,
1
] |
What was the scoring rank for Angela Stanford in 2009? | SELECT scoring_rank FROM table_14836185_3 WHERE year = 2009 | [
2061,
373,
262,
9689,
4279,
329,
17799,
13863,
287,
3717,
30,
46506,
9689,
62,
43027,
16034,
3084,
62,
18294,
2623,
21652,
62,
18,
33411,
614,
796,
3717
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
9689,
4279,
329,
17799,
13863,
287,
3717,
30,
46506,
9689,
62,
43027,
16034,
3084,
62,
18294,
2623,
21652,
62,
18,
33411,
614,
796,
3717
] |
What was the production company for the film directed by Daniel Cormack? | SELECT "Production Company" FROM table_5175 WHERE "Director(s)" = 'daniel cormack' | [
2061,
373,
262,
3227,
1664,
329,
262,
2646,
7924,
416,
7806,
43154,
441,
30,
46506,
366,
35027,
5834,
1,
16034,
3084,
62,
20,
17430,
33411,
366,
28702,
7,
82,
16725,
796,
705,
67,
6321,
269,
579,
441,
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
] | [
2061,
373,
262,
3227,
1664,
329,
262,
2646,
7924,
416,
7806,
43154,
441,
30,
46506,
366,
35027,
5834,
1,
16034,
3084,
62,
20,
17430,
33411,
366,
28702,
7,
82,
16725,
796,
705,
67,
6321,
269,
579,
441,
6
] |
Which Comments has a Model of 18sq? | SELECT comments FROM table_name_30 WHERE model = "18sq" | [
13828,
19502,
468,
257,
9104,
286,
1248,
31166,
30,
46506,
3651,
16034,
3084,
62,
3672,
62,
1270,
33411,
2746,
796,
366,
1507,
31166,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
19502,
468,
257,
9104,
286,
1248,
31166,
30,
46506,
3651,
16034,
3084,
62,
3672,
62,
1270,
33411,
2746,
796,
366,
1507,
31166,
1
] |
How many scores were at the Northville Long Island Classic? | SELECT COUNT(score) FROM table_11621873_1 WHERE tournament = "Northville Long Island Classic" | [
2437,
867,
8198,
547,
379,
262,
2258,
4244,
5882,
5451,
13449,
30,
46506,
327,
28270,
7,
26675,
8,
16034,
3084,
62,
1157,
5237,
1507,
4790,
62,
16,
33411,
7756,
796,
366,
14157,
4244,
5882,
5451,
13449,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
8198,
547,
379,
262,
2258,
4244,
5882,
5451,
13449,
30,
46506,
327,
28270,
7,
26675,
8,
16034,
3084,
62,
1157,
5237,
1507,
4790,
62,
16,
33411,
7756,
796,
366,
14157,
4244,
5882,
5451,
13449,
1
] |
What is the lowest combined mpg in the US for the A6 transmission, a CO2 g/km under 303, engine capacity over 2461, and L/100km urban (cold) of 15.9? | SELECT MIN(mpg_us_combined) FROM table_name_11 WHERE transmission = "a6" AND co_2_g_km < 303 AND engine_capacity > 2461 AND l_100km_urban__cold_ = 15.9 | [
2061,
318,
262,
9016,
5929,
285,
6024,
287,
262,
1294,
329,
262,
317,
21,
11478,
11,
257,
7375,
17,
308,
14,
13276,
739,
30727,
11,
3113,
5339,
625,
1987,
5333,
11,
290,
406,
14,
3064,
13276,
7876,
357,
36673,
8,
286,
1315,
13,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
9016,
5929,
285,
6024,
287,
262,
1294,
329,
262,
317,
21,
11478,
11,
257,
7375,
17,
308,
14,
13276,
739,
30727,
11,
3113,
5339,
625,
1987,
5333,
11,
290,
406,
14,
3064,
13276,
7876,
357,
36673,
8,
286,
1315,
13,
24... |
how many television stations serve the cape girardeau area ? | SELECT COUNT(*) FROM table_204_601 WHERE "area served" = 'cape girardeau' | [
4919,
867,
5581,
8985,
4691,
262,
36023,
37370,
45093,
559,
1989,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
41706,
33411,
366,
20337,
4983,
1,
796,
705,
36435,
37370,
45093,
559,
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
] | [
4919,
867,
5581,
8985,
4691,
262,
36023,
37370,
45093,
559,
1989,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
41706,
33411,
366,
20337,
4983,
1,
796,
705,
36435,
37370,
45093,
559,
6
] |
find the cheapest one way fare from BOSTON to OAKLAND | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_... | [
19796,
262,
28918,
530,
835,
14505,
422,
347,
10892,
1340,
284,
440,
10206,
28182,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
28918,
530,
835,
14505,
422,
347,
10892,
1340,
284,
440,
10206,
28182,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... |
What is the average number of players from Duquesne? | SELECT AVG("From") FROM table_4718 WHERE "School/Country" = 'duquesne' | [
2061,
318,
262,
2811,
1271,
286,
1938,
422,
10343,
13281,
710,
30,
46506,
35224,
7203,
4863,
4943,
16034,
3084,
62,
2857,
1507,
33411,
366,
26130,
14,
33921,
1,
796,
705,
646,
13281,
710,
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
] | [
2061,
318,
262,
2811,
1271,
286,
1938,
422,
10343,
13281,
710,
30,
46506,
35224,
7203,
4863,
4943,
16034,
3084,
62,
2857,
1507,
33411,
366,
26130,
14,
33921,
1,
796,
705,
646,
13281,
710,
6
] |
how much weight was patient 12274's first weight until 11/2105? | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12274)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt'... | [
4919,
881,
3463,
373,
5827,
1105,
28857,
338,
717,
3463,
1566,
1367,
14,
17,
13348,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
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... | [
4919,
881,
3463,
373,
5827,
1105,
28857,
338,
717,
3463,
1566,
1367,
14,
17,
13348,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13... |
how many patients in 2105 had an intake of neocate 24? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT icustays.hadm_id FROM icustays WHERE icustays.icustay_id IN (SELECT inputevents_cv.icustay_id FROM inputevents_cv WHERE inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'neocate 24' AND d_i... | [
4919,
867,
3871,
287,
362,
13348,
550,
281,
10337,
286,
497,
13369,
1987,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
14158,
436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
287,
362,
13348,
550,
281,
10337,
286,
497,
13369,
1987,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
14158,
436,
... |
What number episode had a rating of 4.7? | SELECT MIN("No.") FROM table_26307 WHERE "Rating" = '4.7' | [
2061,
1271,
4471,
550,
257,
7955,
286,
604,
13,
22,
30,
46506,
20625,
7203,
2949,
19570,
16034,
3084,
62,
2075,
22996,
33411,
366,
29321,
1,
796,
705,
19,
13,
22,
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
] | [
2061,
1271,
4471,
550,
257,
7955,
286,
604,
13,
22,
30,
46506,
20625,
7203,
2949,
19570,
16034,
3084,
62,
2075,
22996,
33411,
366,
29321,
1,
796,
705,
19,
13,
22,
6
] |
Return the maximum and minimum number of cities across all markets. | SELECT MAX(number_cities), MIN(number_cities) FROM market | [
13615,
262,
5415,
290,
5288,
1271,
286,
4736,
1973,
477,
5939,
13,
46506,
25882,
7,
17618,
62,
66,
871,
828,
20625,
7,
17618,
62,
66,
871,
8,
16034,
1910
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
262,
5415,
290,
5288,
1271,
286,
4736,
1973,
477,
5939,
13,
46506,
25882,
7,
17618,
62,
66,
871,
828,
20625,
7,
17618,
62,
66,
871,
8,
16034,
1910
] |
What is the highest number of laps for Darren Manning? | SELECT MAX("Laps") FROM table_21510 WHERE "Driver" = 'Darren Manning' | [
2061,
318,
262,
4511,
1271,
286,
24590,
329,
26203,
15281,
30,
46506,
25882,
7203,
43,
1686,
4943,
16034,
3084,
62,
23349,
940,
33411,
366,
32103,
1,
796,
705,
32708,
918,
15281,
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
] | [
2061,
318,
262,
4511,
1271,
286,
24590,
329,
26203,
15281,
30,
46506,
25882,
7203,
43,
1686,
4943,
16034,
3084,
62,
23349,
940,
33411,
366,
32103,
1,
796,
705,
32708,
918,
15281,
6
] |
What is Case Suffix (Case), when Postposition is '-mde (drops d)'? | SELECT "case suffix (case)" FROM table_76304 WHERE "postposition" = '-mde (drops d)' | [
2061,
318,
8913,
24974,
844,
357,
20448,
828,
618,
2947,
9150,
318,
705,
12,
76,
2934,
357,
49253,
288,
8,
30960,
46506,
366,
7442,
35488,
357,
7442,
16725,
16034,
3084,
62,
4304,
21288,
33411,
366,
7353,
9150,
1,
796,
705,
12,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
8913,
24974,
844,
357,
20448,
828,
618,
2947,
9150,
318,
705,
12,
76,
2934,
357,
49253,
288,
8,
30960,
46506,
366,
7442,
35488,
357,
7442,
16725,
16034,
3084,
62,
4304,
21288,
33411,
366,
7353,
9150,
1,
796,
705,
12,
76,
... |
Name the athlete for 3 | SELECT "Athlete" FROM table_24224 WHERE "Place" = '3' | [
5376,
262,
16076,
329,
513,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
1731,
24137,
33411,
366,
27271,
1,
796,
705,
18,
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
] | [
5376,
262,
16076,
329,
513,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
1731,
24137,
33411,
366,
27271,
1,
796,
705,
18,
6
] |
What is the date of the second round? | SELECT "Date" FROM table_59434 WHERE "Round" = 'second round' | [
2061,
318,
262,
3128,
286,
262,
1218,
2835,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
46438,
2682,
33411,
366,
22685,
1,
796,
705,
12227,
2835,
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
] | [
2061,
318,
262,
3128,
286,
262,
1218,
2835,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
46438,
2682,
33411,
366,
22685,
1,
796,
705,
12227,
2835,
6
] |
had patient 002-16314 been tested on vitamin b12 until 11/2100? | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-16314')) AND lab.labname = 'vitamin b12' AND STRFTIME('%y-%m', lab.labresulttime) <=... | [
18108,
5827,
3571,
17,
12,
24136,
1415,
587,
6789,
319,
14411,
275,
1065,
1566,
1367,
14,
2481,
405,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18108,
5827,
3571,
17,
12,
24136,
1415,
587,
6789,
319,
14411,
275,
1065,
1566,
1367,
14,
2481,
405,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
... |
what is the number of live action american superhero movies released in 1978 ? | SELECT COUNT("film") FROM table_203_79 WHERE "year" = 1978 | [
10919,
318,
262,
1271,
286,
2107,
2223,
45630,
272,
17343,
6918,
2716,
287,
15524,
5633,
46506,
327,
28270,
7203,
26240,
4943,
16034,
3084,
62,
22416,
62,
3720,
33411,
366,
1941,
1,
796,
15524
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
2107,
2223,
45630,
272,
17343,
6918,
2716,
287,
15524,
5633,
46506,
327,
28270,
7203,
26240,
4943,
16034,
3084,
62,
22416,
62,
3720,
33411,
366,
1941,
1,
796,
15524
] |
Date of september 28 had what record? | SELECT "Record" FROM table_36901 WHERE "Date" = 'september 28' | [
10430,
286,
384,
457,
1491,
2579,
550,
644,
1700,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
30803,
486,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
2579,
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
] | [
10430,
286,
384,
457,
1491,
2579,
550,
644,
1700,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
30803,
486,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
2579,
6
] |
What is the nationality of the guard who played for Florida International? | SELECT nationality FROM table_name_53 WHERE position = "guard" AND school_club_team = "florida international" | [
2061,
318,
262,
29835,
286,
262,
4860,
508,
2826,
329,
4744,
4037,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
4310,
33411,
2292,
796,
366,
14864,
1,
5357,
1524,
62,
18664,
62,
15097,
796,
366,
2704,
273,
3755,
3230,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
29835,
286,
262,
4860,
508,
2826,
329,
4744,
4037,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
4310,
33411,
2292,
796,
366,
14864,
1,
5357,
1524,
62,
18664,
62,
15097,
796,
366,
2704,
273,
3755,
3230,
1
] |
calculate the four year survival rate among the patients who were prescribed clopidogrel bisulfate after they were diagnosed with kidney laceration-open. | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 4 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | [
9948,
3129,
378,
262,
1440,
614,
9441,
2494,
1871,
262,
3871,
508,
547,
14798,
537,
404,
312,
519,
2411,
47457,
4754,
378,
706,
484,
547,
14641,
351,
21919,
300,
11736,
341,
12,
9654,
13,
46506,
35683,
7,
34,
11159,
42099,
3871,
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... | [
9948,
3129,
378,
262,
1440,
614,
9441,
2494,
1871,
262,
3871,
508,
547,
14798,
537,
404,
312,
519,
2411,
47457,
4754,
378,
706,
484,
547,
14641,
351,
21919,
300,
11736,
341,
12,
9654,
13,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
... |
What was the total score when the guest judge gave a score of 10? | SELECT total FROM table_28352386_1 WHERE guest_judge = "10" | [
2061,
373,
262,
2472,
4776,
618,
262,
8319,
5052,
2921,
257,
4776,
286,
838,
30,
46506,
2472,
16034,
3084,
62,
2078,
2327,
1954,
4521,
62,
16,
33411,
8319,
62,
10456,
469,
796,
366,
940,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2472,
4776,
618,
262,
8319,
5052,
2921,
257,
4776,
286,
838,
30,
46506,
2472,
16034,
3084,
62,
2078,
2327,
1954,
4521,
62,
16,
33411,
8319,
62,
10456,
469,
796,
366,
940,
1
] |
Who was the away team at the game played at Lake Oval? | SELECT "Away team" FROM table_10530 WHERE "Venue" = 'lake oval' | [
8241,
373,
262,
1497,
1074,
379,
262,
983,
2826,
379,
6233,
25165,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
13348,
1270,
33411,
366,
37522,
518,
1,
796,
705,
27180,
41186,
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
] | [
8241,
373,
262,
1497,
1074,
379,
262,
983,
2826,
379,
6233,
25165,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
13348,
1270,
33411,
366,
37522,
518,
1,
796,
705,
27180,
41186,
6
] |
how many patients have stayed in the hospital for more than 17 days with diagnosis long title polyneuropathy in diabetes? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "17" AND diagnoses.long_title = "Polyneuropathy in diabetes" | [
4919,
867,
3871,
423,
9658,
287,
262,
4436,
329,
517,
621,
1596,
1528,
351,
13669,
890,
3670,
7514,
710,
1434,
16786,
287,
12593,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
423,
9658,
287,
262,
4436,
329,
517,
621,
1596,
1528,
351,
13669,
890,
3670,
7514,
710,
1434,
16786,
287,
12593,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,... |
Show the names and ids of tourist attractions that are visited at least two times Visualize by bar chart, display by the Tourist_Attraction_ID in descending. | SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID ORDER BY T1.Tourist_Attraction_ID DESC | [
15307,
262,
3891,
290,
220,
2340,
286,
18473,
29156,
326,
389,
8672,
379,
1551,
734,
1661,
15612,
1096,
416,
2318,
8262,
11,
3359,
416,
262,
9852,
396,
62,
8086,
7861,
62,
2389,
287,
31491,
13,
46506,
309,
16,
13,
5376,
11,
309,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
3891,
290,
220,
2340,
286,
18473,
29156,
326,
389,
8672,
379,
1551,
734,
1661,
15612,
1096,
416,
2318,
8262,
11,
3359,
416,
262,
9852,
396,
62,
8086,
7861,
62,
2389,
287,
31491,
13,
46506,
309,
16,
13,
5376,
11,
309,
16,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.