instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Top Android Users in Egypt. | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id =... | [
9126,
5565,
18987,
287,
6365,
13,
54,
10554,
1294,
1137,
62,
17513,
62,
42197,
7054,
357,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
10916,
11,
334,
13,
7390,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5565,
18987,
287,
6365,
13,
54,
10554,
1294,
1137,
62,
17513,
62,
42197,
7054,
357,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
10916,
11,
334,
13,
7390,
70... |
Effect of the post score to the delay until the next post of the same type. Both scale a base2 log | WITH Raw AS (SELECT Id, PostTypeId, DATEDIFF(day, CreationDate, LAG(CreationDate) OVER (PARTITION BY OwnerUserId, PostTypeId ORDER BY CreationDate DESC)) AS DayToNext, CASE WHEN NOT ClosedDate IS NULL OR Score < 0 THEN -1 WHEN Score > 0 THEN 1 ELSE 0 END AS Sign FROM Posts WHERE PostTypeId <= 2 AND OwnerUserId > 0) SEL... | [
18610,
286,
262,
1281,
4776,
284,
262,
5711,
1566,
262,
1306,
1281,
286,
262,
976,
2099,
13,
5747,
5046,
257,
2779,
17,
2604,
54,
10554,
16089,
7054,
357,
46506,
5121,
11,
2947,
6030,
7390,
11,
360,
11617,
29267,
7,
820,
11,
21582,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18610,
286,
262,
1281,
4776,
284,
262,
5711,
1566,
262,
1306,
1281,
286,
262,
976,
2099,
13,
5747,
5046,
257,
2779,
17,
2604,
54,
10554,
16089,
7054,
357,
46506,
5121,
11,
2947,
6030,
7390,
11,
360,
11617,
29267,
7,
820,
11,
21582,
... |
Which airport has an IATA code of AMS? | SELECT "Airport" FROM table_35255 WHERE "Code (IATA)" = 'ams' | [
13828,
9003,
468,
281,
314,
13563,
2438,
286,
3001,
50,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
2327,
13381,
33411,
366,
10669,
357,
40,
13563,
16725,
796,
705,
4105,
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,
9003,
468,
281,
314,
13563,
2438,
286,
3001,
50,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
2327,
13381,
33411,
366,
10669,
357,
40,
13563,
16725,
796,
705,
4105,
6
] |
Which water has green wood? | SELECT "Water" FROM table_33961 WHERE "Wood" = 'green' | [
13828,
1660,
468,
4077,
4898,
30,
46506,
366,
19184,
1,
16034,
3084,
62,
2091,
4846,
16,
33411,
366,
22911,
1,
796,
705,
14809,
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
] | [
13828,
1660,
468,
4077,
4898,
30,
46506,
366,
19184,
1,
16034,
3084,
62,
2091,
4846,
16,
33411,
366,
22911,
1,
796,
705,
14809,
6
] |
tell me, what is the top three most common diagnosis? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd GROUP BY diagnoses_icd.icd9_code) AS t1 WHERE t1.c1 <= 3) | [
33331,
502,
11,
644,
318,
262,
1353,
1115,
749,
2219,
13669,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
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... | [
33331,
502,
11,
644,
318,
262,
1353,
1115,
749,
2219,
13669,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
... |
Who directed the episode with an audience of 14.11 million? | SELECT directed_by FROM table_27776266_1 WHERE us_viewers__million_ = "14.11" | [
8241,
7924,
262,
4471,
351,
281,
5386,
286,
1478,
13,
1157,
1510,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
1983,
39509,
25540,
62,
16,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
1415,
13,
1157,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7924,
262,
4471,
351,
281,
5386,
286,
1478,
13,
1157,
1510,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
1983,
39509,
25540,
62,
16,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
1415,
13,
1157,
1
] |
How much Silver has a Bronze larger than 1, and a Gold of 0, and a Rank smaller than 4? | SELECT COUNT("Silver") FROM table_65777 WHERE "Bronze" > '1' AND "Gold" = '0' AND "Rank" < '4' | [
2437,
881,
7698,
468,
257,
19461,
4025,
621,
352,
11,
290,
257,
3561,
286,
657,
11,
290,
257,
10916,
4833,
621,
604,
30,
46506,
327,
28270,
7203,
26766,
4943,
16034,
3084,
62,
2996,
29331,
33411,
366,
18760,
2736,
1,
1875,
705,
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
] | [
2437,
881,
7698,
468,
257,
19461,
4025,
621,
352,
11,
290,
257,
3561,
286,
657,
11,
290,
257,
10916,
4833,
621,
604,
30,
46506,
327,
28270,
7203,
26766,
4943,
16034,
3084,
62,
2996,
29331,
33411,
366,
18760,
2736,
1,
1875,
705,
16,
... |
What artist had a mintage of 41,828 before year 2002? | SELECT artist FROM table_name_81 WHERE year < 2002 AND mintage = "41,828" | [
2061,
6802,
550,
257,
285,
14630,
286,
6073,
11,
23,
2078,
878,
614,
6244,
30,
46506,
6802,
16034,
3084,
62,
3672,
62,
6659,
33411,
614,
1279,
6244,
5357,
285,
14630,
796,
366,
3901,
11,
23,
2078,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6802,
550,
257,
285,
14630,
286,
6073,
11,
23,
2078,
878,
614,
6244,
30,
46506,
6802,
16034,
3084,
62,
3672,
62,
6659,
33411,
614,
1279,
6244,
5357,
285,
14630,
796,
366,
3901,
11,
23,
2078,
1
] |
What shows for traditional when the population was 44,803? | SELECT "Traditional" FROM table_60876 WHERE "Population" = '44,803' | [
2061,
2523,
329,
4569,
618,
262,
3265,
373,
5846,
11,
43564,
30,
46506,
366,
48485,
1,
16034,
3084,
62,
28688,
4304,
33411,
366,
45251,
1,
796,
705,
2598,
11,
43564,
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,
2523,
329,
4569,
618,
262,
3265,
373,
5846,
11,
43564,
30,
46506,
366,
48485,
1,
16034,
3084,
62,
28688,
4304,
33411,
366,
45251,
1,
796,
705,
2598,
11,
43564,
6
] |
Which college has a position of goaltender? | SELECT "College/Junior/Club Team (League)" FROM table_34685 WHERE "Position" = 'goaltender' | [
13828,
4152,
468,
257,
2292,
286,
44113,
30,
46506,
366,
38951,
14,
22396,
1504,
14,
42350,
4816,
357,
24623,
16725,
16034,
3084,
62,
2682,
35978,
33411,
366,
26545,
1,
796,
705,
2188,
2501,
2194,
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
] | [
13828,
4152,
468,
257,
2292,
286,
44113,
30,
46506,
366,
38951,
14,
22396,
1504,
14,
42350,
4816,
357,
24623,
16725,
16034,
3084,
62,
2682,
35978,
33411,
366,
26545,
1,
796,
705,
2188,
2501,
2194,
6
] |
how many international friendlys took place ? | SELECT COUNT(*) FROM table_203_384 WHERE "competition" = 'international friendly' | [
4919,
867,
3230,
8030,
82,
1718,
1295,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
22842,
33411,
366,
5589,
15620,
1,
796,
705,
45609,
8030,
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
] | [
4919,
867,
3230,
8030,
82,
1718,
1295,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
22842,
33411,
366,
5589,
15620,
1,
796,
705,
45609,
8030,
6
] |
how many patients whose age is less than 41 and lab test category is chemistry? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab."CATEGORY" = "Chemistry" | [
4919,
867,
3871,
3025,
2479,
318,
1342,
621,
6073,
290,
2248,
1332,
6536,
318,
16585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
318,
1342,
621,
6073,
290,
2248,
1332,
6536,
318,
16585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
... |
What is the webkit version when the minor version was 3.1.2.? | SELECT "WebKit version" FROM table_26708 WHERE "Minor version" = '3.1.2' | [
2061,
318,
262,
3992,
15813,
2196,
618,
262,
4159,
2196,
373,
513,
13,
16,
13,
17,
40791,
46506,
366,
13908,
20827,
2196,
1,
16034,
3084,
62,
2075,
32583,
33411,
366,
39825,
2196,
1,
796,
705,
18,
13,
16,
13,
17,
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
] | [
2061,
318,
262,
3992,
15813,
2196,
618,
262,
4159,
2196,
373,
513,
13,
16,
13,
17,
40791,
46506,
366,
13908,
20827,
2196,
1,
16034,
3084,
62,
2075,
32583,
33411,
366,
39825,
2196,
1,
796,
705,
18,
13,
16,
13,
17,
6
] |
What did the home team score in the game where the away team scored 8.14 (62)? | SELECT "Home team score" FROM table_52835 WHERE "Away team score" = '8.14 (62)' | [
2061,
750,
262,
1363,
1074,
4776,
287,
262,
983,
810,
262,
1497,
1074,
7781,
807,
13,
1415,
357,
5237,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
49351,
2327,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
23,
13,
141... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
262,
1363,
1074,
4776,
287,
262,
983,
810,
262,
1497,
1074,
7781,
807,
13,
1415,
357,
5237,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
49351,
2327,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
23,
13,
141... |
What was the 2nd leg that had a first leg of 1-1? | SELECT "Home (2nd leg)" FROM table_12739 WHERE "1st Leg" = '1-1' | [
2061,
373,
262,
362,
358,
1232,
326,
550,
257,
717,
1232,
286,
352,
12,
16,
30,
46506,
366,
16060,
357,
17,
358,
1232,
16725,
16034,
3084,
62,
16799,
2670,
33411,
366,
16,
301,
3564,
1,
796,
705,
16,
12,
16,
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
] | [
2061,
373,
262,
362,
358,
1232,
326,
550,
257,
717,
1232,
286,
352,
12,
16,
30,
46506,
366,
16060,
357,
17,
358,
1232,
16725,
16034,
3084,
62,
16799,
2670,
33411,
366,
16,
301,
3564,
1,
796,
705,
16,
12,
16,
6
] |
give me the number of patients whose diagnoses icd9 code is 29281 and lab test fluid is ascites? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "29281" AND lab.fluid = "Ascites" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
2808,
30368,
290,
2248,
1332,
11711,
318,
10570,
2737,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
2808,
30368,
290,
2248,
1332,
11711,
318,
10570,
2737,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... |
I want the NGC number for leo of irregular galaxy | SELECT "NGC number" FROM table_55221 WHERE "Constellation" = 'leo' AND "Object type" = 'irregular galaxy' | [
40,
765,
262,
399,
15916,
1271,
329,
443,
78,
286,
21388,
16161,
46506,
366,
10503,
34,
1271,
1,
16034,
3084,
62,
2816,
26115,
33411,
366,
34184,
28828,
1,
796,
705,
293,
78,
6,
5357,
366,
10267,
2099,
1,
796,
705,
343,
16338,
16161... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
399,
15916,
1271,
329,
443,
78,
286,
21388,
16161,
46506,
366,
10503,
34,
1271,
1,
16034,
3084,
62,
2816,
26115,
33411,
366,
34184,
28828,
1,
796,
705,
293,
78,
6,
5357,
366,
10267,
2099,
1,
796,
705,
343,
16338,
16161... |
since 2105 has nitroglycerin, meropenem or metoprolol tartrate been prescribed to patient 76332? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76332) AND prescriptions.drug IN ('nitroglycerin', 'meropenem', 'metoprolol tartrate') AND STRFTIME('%y', prescriptions.startdate) >= '2105' | [
20777,
362,
13348,
468,
13759,
3828,
38577,
259,
11,
4017,
9654,
368,
393,
1138,
404,
3225,
349,
35842,
4873,
587,
14798,
284,
5827,
8684,
32148,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
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... | [
20777,
362,
13348,
468,
13759,
3828,
38577,
259,
11,
4017,
9654,
368,
393,
1138,
404,
3225,
349,
35842,
4873,
587,
14798,
284,
5827,
8684,
32148,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,... |
what is the number of home health care discharge patients who were admitted before 2197? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME HEALTH CARE" AND demographic.admityear < "2197" | [
10919,
318,
262,
1271,
286,
1363,
1535,
1337,
17655,
3871,
508,
547,
6848,
878,
362,
24991,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
1363,
1535,
1337,
17655,
3871,
508,
547,
6848,
878,
362,
24991,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366... |
What Venue had Carlton has the Away team? | SELECT "Venue" FROM table_55964 WHERE "Away team" = 'carlton' | [
2061,
9932,
518,
550,
44348,
468,
262,
21986,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
38605,
2414,
33411,
366,
32,
1014,
1074,
1,
796,
705,
66,
7063,
1122,
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,
9932,
518,
550,
44348,
468,
262,
21986,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
38605,
2414,
33411,
366,
32,
1014,
1074,
1,
796,
705,
66,
7063,
1122,
6
] |
Who is Eric McClure's and Tristar Motorsports' crew chief? | SELECT crew_chief FROM table_name_36 WHERE team = "tristar motorsports" AND driver_s_ = "eric mcclure" | [
8241,
318,
7651,
23780,
495,
338,
290,
833,
47229,
19292,
3742,
6,
5462,
4039,
30,
46506,
5462,
62,
17351,
16034,
3084,
62,
3672,
62,
2623,
33411,
1074,
796,
366,
83,
1585,
283,
24699,
3742,
1,
5357,
4639,
62,
82,
62,
796,
366,
3562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7651,
23780,
495,
338,
290,
833,
47229,
19292,
3742,
6,
5462,
4039,
30,
46506,
5462,
62,
17351,
16034,
3084,
62,
3672,
62,
2623,
33411,
1074,
796,
366,
83,
1585,
283,
24699,
3742,
1,
5357,
4639,
62,
82,
62,
796,
366,
3562... |
Name the number of record for 12 cowboys points | SELECT COUNT("Record") FROM table_25326 WHERE "Cowboys points" = '12' | [
5376,
262,
1271,
286,
1700,
329,
1105,
9875,
13202,
2173,
46506,
327,
28270,
7203,
23739,
4943,
16034,
3084,
62,
28592,
2075,
33411,
366,
40147,
13202,
2173,
1,
796,
705,
1065,
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
] | [
5376,
262,
1271,
286,
1700,
329,
1105,
9875,
13202,
2173,
46506,
327,
28270,
7203,
23739,
4943,
16034,
3084,
62,
28592,
2075,
33411,
366,
40147,
13202,
2173,
1,
796,
705,
1065,
6
] |
Which position does John Starks play? | SELECT position FROM table_11545282_18 WHERE player = "John Starks" | [
13828,
2292,
857,
1757,
2907,
591,
711,
30,
46506,
2292,
16034,
3084,
62,
15363,
2231,
32568,
62,
1507,
33411,
2137,
796,
366,
7554,
2907,
591,
1
] | [
1,
1,
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,
2292,
857,
1757,
2907,
591,
711,
30,
46506,
2292,
16034,
3084,
62,
15363,
2231,
32568,
62,
1507,
33411,
2137,
796,
366,
7554,
2907,
591,
1
] |
who is the home team when the away team is ipswich town? | SELECT home_team FROM table_name_34 WHERE away_team = "ipswich town" | [
8727,
318,
262,
1363,
1074,
618,
262,
1497,
1074,
318,
20966,
2032,
488,
3240,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2682,
33411,
1497,
62,
15097,
796,
366,
541,
2032,
488,
3240,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
318,
262,
1363,
1074,
618,
262,
1497,
1074,
318,
20966,
2032,
488,
3240,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2682,
33411,
1497,
62,
15097,
796,
366,
541,
2032,
488,
3240,
1
] |
How many people attended the home game against the New York Jets? | SELECT SUM(attendance) FROM table_name_61 WHERE opponent = "new york jets" | [
2437,
867,
661,
9141,
262,
1363,
983,
1028,
262,
968,
1971,
14728,
30,
46506,
35683,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
5333,
33411,
6125,
796,
366,
3605,
331,
967,
20792,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
983,
1028,
262,
968,
1971,
14728,
30,
46506,
35683,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
5333,
33411,
6125,
796,
366,
3605,
331,
967,
20792,
1
] |
how many patients whose admission type is newborn and days of hospital stay is greater than 10? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.days_stay > "10" | [
4919,
867,
3871,
3025,
13938,
2099,
318,
23856,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
838,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
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
] | [
4919,
867,
3871,
3025,
13938,
2099,
318,
23856,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
838,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
... |
What was the winning time in 1984? | SELECT time FROM table_name_99 WHERE year = "1984" | [
2061,
373,
262,
5442,
640,
287,
12844,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
2079,
33411,
614,
796,
366,
28296,
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,
5442,
640,
287,
12844,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
2079,
33411,
614,
796,
366,
28296,
1
] |
What was the listed crowd at junction oval? | SELECT "Crowd" FROM table_74759 WHERE "Venue" = 'junction oval' | [
2061,
373,
262,
5610,
4315,
379,
35037,
41186,
30,
46506,
366,
34,
3986,
1,
16034,
3084,
62,
4524,
38314,
33411,
366,
37522,
518,
1,
796,
705,
73,
4575,
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
] | [
2061,
373,
262,
5610,
4315,
379,
35037,
41186,
30,
46506,
366,
34,
3986,
1,
16034,
3084,
62,
4524,
38314,
33411,
366,
37522,
518,
1,
796,
705,
73,
4575,
41186,
6
] |
Who directed the episode that originally aired on March 18, 1988? | SELECT "Directed by" FROM table_24023 WHERE "Original air date" = 'March 18, 1988' | [
8241,
7924,
262,
4471,
326,
6198,
18530,
319,
2805,
1248,
11,
12122,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
16102,
1954,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
16192,
1248,
11,
12122,
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
] | [
8241,
7924,
262,
4471,
326,
6198,
18530,
319,
2805,
1248,
11,
12122,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
16102,
1954,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
16192,
1248,
11,
12122,
6
] |
Who was the host country in 2007? | SELECT "Host country / countries" FROM table_49628 WHERE "Year" = '2007' | [
8241,
373,
262,
2583,
1499,
287,
4343,
30,
46506,
366,
17932,
1499,
1220,
2678,
1,
16034,
3084,
62,
37747,
2078,
33411,
366,
17688,
1,
796,
705,
12726,
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
] | [
8241,
373,
262,
2583,
1499,
287,
4343,
30,
46506,
366,
17932,
1499,
1220,
2678,
1,
16034,
3084,
62,
37747,
2078,
33411,
366,
17688,
1,
796,
705,
12726,
6
] |
what was the first type of the hospital admission of patient 025-23610 until 2 years ago? | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '025-23610' AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime LIMIT 1 | [
10919,
373,
262,
717,
2099,
286,
262,
4436,
13938,
286,
5827,
657,
1495,
12,
24940,
940,
1566,
362,
812,
2084,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
36629,
12,
24940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
2099,
286,
262,
4436,
13938,
286,
5827,
657,
1495,
12,
24940,
940,
1566,
362,
812,
2084,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
36629,
12,
24940... |
what other movies was aggarwal in the same year as her role in veera ? | SELECT "film" FROM table_203_451 WHERE "film" <> 'veera' AND "year" = (SELECT "year" FROM table_203_451 WHERE "film" = 'veera') | [
10919,
584,
6918,
373,
4194,
283,
16783,
287,
262,
976,
614,
355,
607,
2597,
287,
1569,
8607,
5633,
46506,
366,
26240,
1,
16034,
3084,
62,
22416,
62,
36330,
33411,
366,
26240,
1,
1279,
29,
705,
303,
8607,
6,
5357,
366,
1941,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
584,
6918,
373,
4194,
283,
16783,
287,
262,
976,
614,
355,
607,
2597,
287,
1569,
8607,
5633,
46506,
366,
26240,
1,
16034,
3084,
62,
22416,
62,
36330,
33411,
366,
26240,
1,
1279,
29,
705,
303,
8607,
6,
5357,
366,
1941,
1,
796,... |
How many papers does james fogarty have ? | SELECT DISTINCT COUNT(DISTINCT writes.paperid) FROM author, writes WHERE author.authorname = 'james fogarty' AND writes.authorid = author.authorid | [
2437,
867,
9473,
857,
474,
1047,
19558,
25494,
423,
5633,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
35,
8808,
1268,
4177,
6797,
13,
20189,
312,
8,
16034,
1772,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
73,
1047,
19558,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9473,
857,
474,
1047,
19558,
25494,
423,
5633,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
35,
8808,
1268,
4177,
6797,
13,
20189,
312,
8,
16034,
1772,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
73,
1047,
19558,... |
what's the camp with estimated deaths of 600,000 | SELECT "Camp" FROM table_16053 WHERE "Estimated deaths" = '600,000' | [
10919,
338,
262,
1413,
351,
6108,
7040,
286,
10053,
11,
830,
46506,
366,
21111,
1,
16034,
3084,
62,
1433,
2713,
18,
33411,
366,
22362,
15655,
7040,
1,
796,
705,
8054,
11,
830,
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
] | [
10919,
338,
262,
1413,
351,
6108,
7040,
286,
10053,
11,
830,
46506,
366,
21111,
1,
16034,
3084,
62,
1433,
2713,
18,
33411,
366,
22362,
15655,
7040,
1,
796,
705,
8054,
11,
830,
6
] |
count how many times patient 69895 has had a urine out foley out on 02/10/2105. | SELECT COUNT(*) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 69895)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urine out foley' A... | [
9127,
703,
867,
1661,
5827,
39861,
3865,
468,
550,
257,
18922,
503,
11511,
1636,
503,
319,
7816,
14,
940,
14,
17,
13348,
13,
46506,
327,
28270,
7,
28104,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
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... | [
9127,
703,
867,
1661,
5827,
39861,
3865,
468,
550,
257,
18922,
503,
11511,
1636,
503,
319,
7816,
14,
940,
14,
17,
13348,
13,
46506,
327,
28270,
7,
28104,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
6... |
What is the capacity with 2.7v volts and a power-to-weight ratio of 5.44 w/kg c/1 (1.875a)? | SELECT capacity FROM table_name_11 WHERE volts = "2.7v" AND power_to_weight_ratio = "5.44 w/kg c/1 (1.875a)" | [
2061,
318,
262,
5339,
351,
362,
13,
22,
85,
46297,
290,
257,
1176,
12,
1462,
12,
6551,
8064,
286,
642,
13,
2598,
266,
14,
10025,
269,
14,
16,
357,
16,
13,
31360,
64,
19427,
46506,
5339,
16034,
3084,
62,
3672,
62,
1157,
33411,
4629... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5339,
351,
362,
13,
22,
85,
46297,
290,
257,
1176,
12,
1462,
12,
6551,
8064,
286,
642,
13,
2598,
266,
14,
10025,
269,
14,
16,
357,
16,
13,
31360,
64,
19427,
46506,
5339,
16034,
3084,
62,
3672,
62,
1157,
33411,
4629... |
What was the total crowd attendance at Westpac Stadium? | SELECT SUM(crowd) FROM table_name_98 WHERE ground = "westpac stadium" | [
2061,
373,
262,
2472,
4315,
14858,
379,
2688,
33587,
10499,
30,
46506,
35683,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
2323,
796,
366,
7038,
33587,
10308,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
4315,
14858,
379,
2688,
33587,
10499,
30,
46506,
35683,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
2323,
796,
366,
7038,
33587,
10308,
1
] |
Which Name has a League Cup Goals of 0, and League Apps of 1? | SELECT "Name" FROM table_13269 WHERE "League Cup Goals" = '0' AND "League Apps" = '1' | [
13828,
6530,
468,
257,
4041,
5454,
28510,
286,
657,
11,
290,
4041,
27710,
286,
352,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
1485,
26276,
33411,
366,
24623,
5454,
28510,
1,
796,
705,
15,
6,
5357,
366,
24623,
27710,
1,
796,
705,
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
] | [
13828,
6530,
468,
257,
4041,
5454,
28510,
286,
657,
11,
290,
4041,
27710,
286,
352,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
1485,
26276,
33411,
366,
24623,
5454,
28510,
1,
796,
705,
15,
6,
5357,
366,
24623,
27710,
1,
796,
705,
16,... |
What is the least amount of playoff legs won? | SELECT MIN(Winners) AS play_off_legs_won FROM table_24334163_1 | [
2061,
318,
262,
1551,
2033,
286,
13119,
7405,
1839,
30,
46506,
20625,
7,
16643,
2741,
8,
7054,
711,
62,
2364,
62,
1455,
82,
62,
26502,
16034,
3084,
62,
1731,
31380,
24136,
62,
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
] | [
2061,
318,
262,
1551,
2033,
286,
13119,
7405,
1839,
30,
46506,
20625,
7,
16643,
2741,
8,
7054,
711,
62,
2364,
62,
1455,
82,
62,
26502,
16034,
3084,
62,
1731,
31380,
24136,
62,
16
] |
what is the marital status of patient 9519 in their last hospital visit. | SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 9519 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | [
10919,
318,
262,
29555,
3722,
286,
5827,
6957,
1129,
287,
511,
938,
4436,
3187,
13,
46506,
25349,
13,
3876,
1287,
62,
13376,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
6957,
1129,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
286,
5827,
6957,
1129,
287,
511,
938,
4436,
3187,
13,
46506,
25349,
13,
3876,
1287,
62,
13376,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
6957,
1129,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
... |
What is the least amount of games for Luis scola with a rank greater than 1? | SELECT MIN("Games") FROM table_53630 WHERE "Rank" > '1' AND "Name" = 'luis scola' | [
2061,
318,
262,
1551,
2033,
286,
1830,
329,
20894,
629,
5708,
351,
257,
4279,
3744,
621,
352,
30,
46506,
20625,
7203,
24474,
4943,
16034,
3084,
62,
44468,
1270,
33411,
366,
27520,
1,
1875,
705,
16,
6,
5357,
366,
5376,
1,
796,
705,
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
] | [
2061,
318,
262,
1551,
2033,
286,
1830,
329,
20894,
629,
5708,
351,
257,
4279,
3744,
621,
352,
30,
46506,
20625,
7203,
24474,
4943,
16034,
3084,
62,
44468,
1270,
33411,
366,
27520,
1,
1875,
705,
16,
6,
5357,
366,
5376,
1,
796,
705,
2... |
How many students attend course English? | SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "English" | [
2437,
867,
2444,
5262,
1781,
3594,
30,
46506,
327,
28270,
7,
28104,
16034,
10902,
7054,
309,
16,
32357,
1268,
3710,
62,
17319,
62,
1078,
437,
590,
7054,
309,
17,
6177,
309,
16,
13,
17319,
62,
312,
796,
309,
17,
13,
17319,
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
] | [
2437,
867,
2444,
5262,
1781,
3594,
30,
46506,
327,
28270,
7,
28104,
16034,
10902,
7054,
309,
16,
32357,
1268,
3710,
62,
17319,
62,
1078,
437,
590,
7054,
309,
17,
6177,
309,
16,
13,
17319,
62,
312,
796,
309,
17,
13,
17319,
62,
312,
... |
count the number of patients whose admission year is less than 2190 and diagnoses short title is hx of bladder malignancy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2190" AND diagnoses.short_title = "Hx of bladder malignancy" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
19782,
290,
40567,
1790,
3670,
318,
289,
87,
286,
34918,
6428,
570,
3883,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
19782,
290,
40567,
1790,
3670,
318,
289,
87,
286,
34918,
6428,
570,
3883,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... |
Name the class 1-200 for university of hertfordshire for university of warwick | SELECT class_1 - 200 FROM table_1936678_1 WHERE best_uk_team = "University of Hertfordshire" AND class_1a = "University of Warwick" | [
5376,
262,
1398,
352,
12,
2167,
329,
6403,
286,
607,
83,
3841,
10932,
329,
6403,
286,
1175,
16239,
46506,
1398,
62,
16,
532,
939,
16034,
3084,
62,
1129,
2623,
30924,
62,
16,
33411,
1266,
62,
2724,
62,
15097,
796,
366,
21009,
286,
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,
1,
1
] | [
5376,
262,
1398,
352,
12,
2167,
329,
6403,
286,
607,
83,
3841,
10932,
329,
6403,
286,
1175,
16239,
46506,
1398,
62,
16,
532,
939,
16034,
3084,
62,
1129,
2623,
30924,
62,
16,
33411,
1266,
62,
2724,
62,
15097,
796,
366,
21009,
286,
40... |
give the number of patients who are under the age of 58 lab test fluid is urine. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "58" AND lab.fluid = "Urine" | [
26535,
262,
1271,
286,
3871,
508,
389,
739,
262,
2479,
286,
7618,
2248,
1332,
11711,
318,
18922,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
262,
1271,
286,
3871,
508,
389,
739,
262,
2479,
286,
7618,
2248,
1332,
11711,
318,
18922,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
... |
when patient 8773 arterial bp [diastolic] last measured on 12/19/2104? | SELECT chartevents.charttime 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 = 8773)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | [
12518,
5827,
807,
46871,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
938,
8630,
319,
1105,
14,
1129,
14,
17,
13464,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
5827,
807,
46871,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
938,
8630,
319,
1105,
14,
1129,
14,
17,
13464,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,... |
The record of 9-4 was against which opponent? | SELECT "Opponent" FROM table_16065 WHERE "Record" = '9-4' | [
464,
1700,
286,
860,
12,
19,
373,
1028,
543,
6125,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
14198,
2996,
33411,
366,
23739,
1,
796,
705,
24,
12,
19,
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
] | [
464,
1700,
286,
860,
12,
19,
373,
1028,
543,
6125,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
14198,
2996,
33411,
366,
23739,
1,
796,
705,
24,
12,
19,
6
] |
What was the score of the game where Montreal was the home team and the Devils had a record of 40 24 6? | SELECT score FROM table_name_91 WHERE home = "montreal" AND record = "40–24–6" | [
2061,
373,
262,
4776,
286,
262,
983,
810,
12871,
373,
262,
1363,
1074,
290,
262,
26199,
550,
257,
1700,
286,
2319,
1987,
718,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6420,
33411,
1363,
796,
366,
8691,
5305,
1,
5357,
1700,
796,
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
] | [
2061,
373,
262,
4776,
286,
262,
983,
810,
12871,
373,
262,
1363,
1074,
290,
262,
26199,
550,
257,
1700,
286,
2319,
1987,
718,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6420,
33411,
1363,
796,
366,
8691,
5305,
1,
5357,
1700,
796,
3... |
Which Team has a Recopa 1994 of n/a and a CONMEBOL 1994 of 1st round? | SELECT "Team" FROM table_39086 WHERE "Recopa 1994" = 'n/a' AND "CONMEBOL 1994" = '1st round' | [
13828,
4816,
468,
257,
3311,
26186,
9162,
286,
299,
14,
64,
290,
257,
7102,
11682,
33,
3535,
9162,
286,
352,
301,
2835,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2670,
2919,
21,
33411,
366,
6690,
26186,
9162,
1,
796,
705,
77,
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
] | [
13828,
4816,
468,
257,
3311,
26186,
9162,
286,
299,
14,
64,
290,
257,
7102,
11682,
33,
3535,
9162,
286,
352,
301,
2835,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2670,
2919,
21,
33411,
366,
6690,
26186,
9162,
1,
796,
705,
77,
14,
... |
Which Frequency MHz has a Call Sign of K218BE? | SELECT frequency_mhz FROM table_name_7 WHERE call_sign = "k218be" | [
13828,
31902,
19805,
468,
257,
4889,
5865,
286,
509,
28727,
12473,
30,
46506,
8373,
62,
76,
32179,
16034,
3084,
62,
3672,
62,
22,
33411,
869,
62,
12683,
796,
366,
74,
28727,
1350,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31902,
19805,
468,
257,
4889,
5865,
286,
509,
28727,
12473,
30,
46506,
8373,
62,
76,
32179,
16034,
3084,
62,
3672,
62,
22,
33411,
869,
62,
12683,
796,
366,
74,
28727,
1350,
1
] |
what is the name of the last locomotive to be located at the bressingham steam museum ? | SELECT "name" FROM table_204_30 WHERE "current location" = 'bressingham steam museum' ORDER BY "year built" DESC LIMIT 1 | [
10919,
318,
262,
1438,
286,
262,
938,
33334,
19138,
284,
307,
5140,
379,
262,
275,
11697,
2763,
13324,
13257,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
1270,
33411,
366,
14421,
4067,
1,
796,
705,
65,
11697,
2763,
13324,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
938,
33334,
19138,
284,
307,
5140,
379,
262,
275,
11697,
2763,
13324,
13257,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
1270,
33411,
366,
14421,
4067,
1,
796,
705,
65,
11697,
2763,
13324,
1... |
Who directed the episode that aired on February 19, 1968? | SELECT "Director" FROM table_3435 WHERE "Airdate" = 'February 19, 1968' | [
8241,
7924,
262,
4471,
326,
18530,
319,
3945,
678,
11,
15963,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
2682,
2327,
33411,
366,
32,
1447,
378,
1,
796,
705,
21816,
678,
11,
15963,
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,
7924,
262,
4471,
326,
18530,
319,
3945,
678,
11,
15963,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
2682,
2327,
33411,
366,
32,
1447,
378,
1,
796,
705,
21816,
678,
11,
15963,
6
] |
In what time period were 354 built? | SELECT "Period" FROM table_15102 WHERE "Built" = '354' | [
818,
644,
640,
2278,
547,
46752,
3170,
30,
46506,
366,
5990,
2101,
1,
16034,
3084,
62,
1314,
15377,
33411,
366,
39582,
1,
796,
705,
32182,
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
] | [
818,
644,
640,
2278,
547,
46752,
3170,
30,
46506,
366,
5990,
2101,
1,
16034,
3084,
62,
1314,
15377,
33411,
366,
39582,
1,
796,
705,
32182,
6
] |
what's the first elected with incumbent being joseph d. early | SELECT first_elected FROM table_1341604_22 WHERE incumbent = "Joseph D. Early" | [
10919,
338,
262,
717,
7018,
351,
23526,
852,
474,
577,
746,
288,
13,
1903,
46506,
717,
62,
28604,
16034,
3084,
62,
19880,
1433,
3023,
62,
1828,
33411,
23526,
796,
366,
29458,
360,
13,
12556,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
338,
262,
717,
7018,
351,
23526,
852,
474,
577,
746,
288,
13,
1903,
46506,
717,
62,
28604,
16034,
3084,
62,
19880,
1433,
3023,
62,
1828,
33411,
23526,
796,
366,
29458,
360,
13,
12556,
1
] |
Who built the grid 2 car? | SELECT constructor FROM table_name_40 WHERE grid = 2 | [
8241,
3170,
262,
10706,
362,
1097,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
1821,
33411,
10706,
796,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
3170,
262,
10706,
362,
1097,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
1821,
33411,
10706,
796,
362
] |
Which place has 23 floors and a street address in Detroit of 144 west congress street? | SELECT name FROM table_name_17 WHERE floors = 23 AND street_address_in_detroit = "144 west congress street" | [
13828,
1295,
468,
2242,
18570,
290,
257,
4675,
2209,
287,
8488,
286,
20224,
7421,
8681,
4675,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
1558,
33411,
18570,
796,
2242,
5357,
4675,
62,
21975,
62,
259,
62,
15255,
7775,
796,
366,
18444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1295,
468,
2242,
18570,
290,
257,
4675,
2209,
287,
8488,
286,
20224,
7421,
8681,
4675,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
1558,
33411,
18570,
796,
2242,
5357,
4675,
62,
21975,
62,
259,
62,
15255,
7775,
796,
366,
18444,
... |
How many teams have an eagles mascot? | SELECT COUNT("Affiliation") FROM table_18732 WHERE "Mascot" = 'Eagles' | [
2437,
867,
3466,
423,
281,
304,
37803,
37358,
30,
46506,
327,
28270,
7203,
35191,
15547,
4943,
16034,
3084,
62,
23451,
2624,
33411,
366,
44,
3372,
313,
1,
796,
705,
36,
37803,
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
] | [
2437,
867,
3466,
423,
281,
304,
37803,
37358,
30,
46506,
327,
28270,
7203,
35191,
15547,
4943,
16034,
3084,
62,
23451,
2624,
33411,
366,
44,
3372,
313,
1,
796,
705,
36,
37803,
6
] |
what is the primary disease and drug route for patient betty campbell? | SELECT demographic.diagnosis, prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Betty Campbell" | [
10919,
318,
262,
4165,
4369,
290,
2563,
6339,
329,
5827,
731,
774,
1413,
7923,
30,
46506,
16728,
13,
47356,
5958,
11,
34092,
13,
38629,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
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
] | [
10919,
318,
262,
4165,
4369,
290,
2563,
6339,
329,
5827,
731,
774,
1413,
7923,
30,
46506,
16728,
13,
47356,
5958,
11,
34092,
13,
38629,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
... |
What is the earliest year with 16 points? | SELECT MIN("Year") FROM table_71156 WHERE "Pts." = '16' | [
2061,
318,
262,
14555,
614,
351,
1467,
2173,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
22,
1157,
3980,
33411,
366,
47,
912,
526,
796,
705,
1433,
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
] | [
2061,
318,
262,
14555,
614,
351,
1467,
2173,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
22,
1157,
3980,
33411,
366,
47,
912,
526,
796,
705,
1433,
6
] |
What is the lowest number of League Cups a player with a 434 league has? | SELECT MIN(league) AS Cup FROM table_name_34 WHERE league = 434 | [
2061,
318,
262,
9016,
1271,
286,
4041,
41611,
257,
2137,
351,
257,
604,
2682,
4652,
468,
30,
46506,
20625,
7,
19316,
8,
7054,
5454,
16034,
3084,
62,
3672,
62,
2682,
33411,
4652,
796,
604,
2682
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
4041,
41611,
257,
2137,
351,
257,
604,
2682,
4652,
468,
30,
46506,
20625,
7,
19316,
8,
7054,
5454,
16034,
3084,
62,
3672,
62,
2682,
33411,
4652,
796,
604,
2682
] |
Find the names of customers who never ordered product Latte. | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' | [
16742,
262,
3891,
286,
4297,
508,
1239,
6149,
1720,
5476,
660,
13,
46506,
6491,
62,
3672,
16034,
4297,
7788,
42006,
33493,
256,
16,
13,
23144,
263,
62,
3672,
16034,
4297,
7054,
256,
16,
32357,
1268,
6491,
62,
6361,
7054,
256,
17,
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... | [
16742,
262,
3891,
286,
4297,
508,
1239,
6149,
1720,
5476,
660,
13,
46506,
6491,
62,
3672,
16034,
4297,
7788,
42006,
33493,
256,
16,
13,
23144,
263,
62,
3672,
16034,
4297,
7054,
256,
16,
32357,
1268,
6491,
62,
6361,
7054,
256,
17,
6177... |
What team is in the dhl-h llin arena? | SELECT team FROM table_name_5 WHERE arena = "dhl-höllin" | [
2061,
1074,
318,
287,
262,
288,
18519,
12,
71,
32660,
259,
13478,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
20,
33411,
13478,
796,
366,
67,
18519,
12,
71,
9101,
297,
259,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
318,
287,
262,
288,
18519,
12,
71,
32660,
259,
13478,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
20,
33411,
13478,
796,
366,
67,
18519,
12,
71,
9101,
297,
259,
1
] |
What is the channel with a 03:40 time? | SELECT channel FROM table_name_51 WHERE time = "03:40" | [
2061,
318,
262,
6518,
351,
257,
7643,
25,
1821,
640,
30,
46506,
6518,
16034,
3084,
62,
3672,
62,
4349,
33411,
640,
796,
366,
3070,
25,
1821,
1
] | [
1,
1,
1,
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,
6518,
351,
257,
7643,
25,
1821,
640,
30,
46506,
6518,
16034,
3084,
62,
3672,
62,
4349,
33411,
640,
796,
366,
3070,
25,
1821,
1
] |
count the number of patients whose diagnoses icd9 code is 3310 and lab test fluid is pleural? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "3310" AND lab.fluid = "Pleural" | [
9127,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
4747,
940,
290,
2248,
1332,
11711,
318,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
4747,
940,
290,
2248,
1332,
11711,
318,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... |
Return a scatter chart about the correlation between School_ID and All_Games_Percent , and group by attribute Team_Name. | SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY Team_Name | [
13615,
257,
41058,
8262,
546,
262,
16096,
1022,
3961,
62,
2389,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
4816,
62,
5376,
13,
46506,
3961,
62,
2389,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
44441,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41058,
8262,
546,
262,
16096,
1022,
3961,
62,
2389,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
4816,
62,
5376,
13,
46506,
3961,
62,
2389,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
44441,
110... |
Show the advisors of the students whose city of residence has city code 'BAL'. | SELECT advisor FROM student WHERE city_code = "BAL" | [
15307,
262,
32456,
286,
262,
2444,
3025,
1748,
286,
11566,
468,
1748,
2438,
705,
33,
1847,
4458,
46506,
20685,
16034,
3710,
33411,
1748,
62,
8189,
796,
366,
33,
1847,
1
] | [
1,
1,
1,
1,
1,
1,
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,
32456,
286,
262,
2444,
3025,
1748,
286,
11566,
468,
1748,
2438,
705,
33,
1847,
4458,
46506,
20685,
16034,
3710,
33411,
1748,
62,
8189,
796,
366,
33,
1847,
1
] |
Show the position of players and the corresponding number of players with a bar chart, and could you list from low to high by the x axis? | SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY Position | [
15307,
262,
2292,
286,
1938,
290,
262,
11188,
1271,
286,
1938,
351,
257,
2318,
8262,
11,
290,
714,
345,
1351,
422,
1877,
284,
1029,
416,
262,
2124,
16488,
30,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
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
] | [
15307,
262,
2292,
286,
1938,
290,
262,
11188,
1271,
286,
1938,
351,
257,
2318,
8262,
11,
290,
714,
345,
1351,
422,
1877,
284,
1029,
416,
262,
2124,
16488,
30,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050... |
Which host has more than 11 episodes? | SELECT host FROM table_name_95 WHERE _number_of_episodes > 11 | [
13828,
2583,
468,
517,
621,
1367,
8640,
30,
46506,
2583,
16034,
3084,
62,
3672,
62,
3865,
33411,
4808,
17618,
62,
1659,
62,
538,
8052,
1875,
1367
] | [
1,
1,
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,
2583,
468,
517,
621,
1367,
8640,
30,
46506,
2583,
16034,
3084,
62,
3672,
62,
3865,
33411,
4808,
17618,
62,
1659,
62,
538,
8052,
1875,
1367
] |
What is the run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91? | SELECT SUM("Run 3") FROM table_37050 WHERE "Run 1" > '53.75' AND "Run 2" < '52.91' | [
2061,
318,
262,
1057,
513,
286,
262,
16076,
351,
257,
1057,
352,
517,
621,
7192,
13,
2425,
290,
257,
1057,
362,
1342,
621,
6740,
13,
6420,
30,
46506,
35683,
7203,
10987,
513,
4943,
16034,
3084,
62,
20167,
1120,
33411,
366,
10987,
352,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1057,
513,
286,
262,
16076,
351,
257,
1057,
352,
517,
621,
7192,
13,
2425,
290,
257,
1057,
362,
1342,
621,
6740,
13,
6420,
30,
46506,
35683,
7203,
10987,
513,
4943,
16034,
3084,
62,
20167,
1120,
33411,
366,
10987,
352,... |
What player has a number of playoff games played greater than 0? | SELECT player FROM table_name_51 WHERE pl_gp > 0 | [
2061,
2137,
468,
257,
1271,
286,
13119,
1830,
2826,
3744,
621,
657,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
4349,
33411,
458,
62,
31197,
1875,
657
] | [
1,
1,
1,
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,
2137,
468,
257,
1271,
286,
13119,
1830,
2826,
3744,
621,
657,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
4349,
33411,
458,
62,
31197,
1875,
657
] |
Return a pie chart on what are the names of projects that require more than 300 hours, and how many scientists are assigned to each? | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project WHERE T1.Hours > 300 GROUP BY T1.Name | [
13615,
257,
2508,
8262,
319,
644,
389,
262,
3891,
286,
4493,
326,
2421,
517,
621,
5867,
2250,
11,
290,
703,
867,
5519,
389,
8686,
284,
1123,
30,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
29898,
7054,
309,
16,
32357,
1268,
2195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2508,
8262,
319,
644,
389,
262,
3891,
286,
4493,
326,
2421,
517,
621,
5867,
2250,
11,
290,
703,
867,
5519,
389,
8686,
284,
1123,
30,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
29898,
7054,
309,
16,
32357,
1268,
2195,
... |
What district did the Democratic party incumbent Stephen J. Solarz get first elected to in 1974? | SELECT "District" FROM table_18327 WHERE "Party" = 'Democratic' AND "First elected" = '1974' AND "Incumbent" = 'Stephen J. Solarz' | [
2061,
4783,
750,
262,
4390,
2151,
23526,
7970,
449,
13,
12347,
89,
651,
717,
7018,
284,
287,
16489,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
24839,
1983,
33411,
366,
33553,
1,
796,
705,
33939,
6,
5357,
366,
5962,
7018,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4783,
750,
262,
4390,
2151,
23526,
7970,
449,
13,
12347,
89,
651,
717,
7018,
284,
287,
16489,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
24839,
1983,
33411,
366,
33553,
1,
796,
705,
33939,
6,
5357,
366,
5962,
7018,
1,
796,
705... |
creatinine clearance is < 60 ml / minute | SELECT * FROM table_train_154 WHERE creatinine_clearance_cl < 60 | [
20123,
259,
500,
19745,
318,
1279,
3126,
25962,
1220,
5664,
46506,
1635,
16034,
3084,
62,
27432,
62,
21526,
33411,
1827,
259,
500,
62,
20063,
590,
62,
565,
1279,
3126
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20123,
259,
500,
19745,
318,
1279,
3126,
25962,
1220,
5664,
46506,
1635,
16034,
3084,
62,
27432,
62,
21526,
33411,
1827,
259,
500,
62,
20063,
590,
62,
565,
1279,
3126
] |
what is the percentile value of magnesium 2.2 among patients of the same age as patient 016-6134 on the last hospital encounter? | SELECT DISTINCT t1.c1 FROM (SELECT lab.labresult, PERCENT_RANK() OVER (ORDER BY lab.labresult) AS c1 FROM lab WHERE lab.labname = 'magnesium' AND lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age = (SELECT patient.age FROM patient WHERE patient.uniquepid = '016-6134' AND NOT pati... | [
10919,
318,
262,
37894,
1988,
286,
33525,
362,
13,
17,
1871,
3871,
286,
262,
976,
2479,
355,
5827,
5534,
21,
12,
21,
19880,
319,
262,
938,
4436,
8791,
30,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
66,
16,
16034,
357,
46506,
2248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
37894,
1988,
286,
33525,
362,
13,
17,
1871,
3871,
286,
262,
976,
2479,
355,
5827,
5534,
21,
12,
21,
19880,
319,
262,
938,
4436,
8791,
30,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
66,
16,
16034,
357,
46506,
2248,
... |
provide the number of patients whose diagnoses short title is hematoma complic proc and drug route is buccal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Hematoma complic proc" AND prescriptions.route = "BUCCAL" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
339,
6759,
6086,
2299,
291,
13834,
290,
2563,
6339,
318,
809,
535,
282,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
339,
6759,
6086,
2299,
291,
13834,
290,
2563,
6339,
318,
809,
535,
282,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
IS LING 997 a course offered during the next semester ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'LING' AND course.number = 997 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | [
1797,
406,
2751,
860,
5607,
257,
1781,
4438,
1141,
262,
1306,
24878,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1797,
406,
2751,
860,
5607,
257,
1781,
4438,
1141,
262,
1306,
24878,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319... |
Name the successor for elected january 26, 1837 | SELECT COUNT(successor) FROM table_225200_3 WHERE date_of_successors_formal_installation = "Elected January 26, 1837" | [
5376,
262,
17270,
329,
7018,
42897,
2838,
2608,
11,
1248,
2718,
46506,
327,
28270,
7,
13138,
273,
8,
16034,
3084,
62,
18182,
2167,
62,
18,
33411,
3128,
62,
1659,
62,
13138,
669,
62,
687,
282,
62,
17350,
341,
796,
366,
36,
12609,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17270,
329,
7018,
42897,
2838,
2608,
11,
1248,
2718,
46506,
327,
28270,
7,
13138,
273,
8,
16034,
3084,
62,
18182,
2167,
62,
18,
33411,
3128,
62,
1659,
62,
13138,
669,
62,
687,
282,
62,
17350,
341,
796,
366,
36,
12609,
326... |
how many patients whose diagnoses icd9 code is 77089 and lab test fluid is other body fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "77089" AND lab.fluid = "Other Body Fluid" | [
4919,
867,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
44586,
4531,
290,
2248,
1332,
11711,
318,
584,
1767,
11711,
30,
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... | [
4919,
867,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
44586,
4531,
290,
2248,
1332,
11711,
318,
584,
1767,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
Where was the location of the Mong Kok Stadium? | SELECT "Location" FROM table_63930 WHERE "Home Ground" = 'mong kok stadium' | [
8496,
373,
262,
4067,
286,
262,
18428,
35020,
10499,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
21,
2670,
1270,
33411,
366,
16060,
13706,
1,
796,
705,
31059,
479,
482,
10308,
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
] | [
8496,
373,
262,
4067,
286,
262,
18428,
35020,
10499,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
21,
2670,
1270,
33411,
366,
16060,
13706,
1,
796,
705,
31059,
479,
482,
10308,
6
] |
On what surface was the Australian Open (6) played on? | SELECT "Surface" FROM table_4182 WHERE "Championship" = 'Australian Open (6)' | [
2202,
644,
4417,
373,
262,
6638,
4946,
357,
21,
8,
2826,
319,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
19,
24294,
33411,
366,
1925,
4350,
1056,
1,
796,
705,
38036,
4946,
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,
1,
1
] | [
2202,
644,
4417,
373,
262,
6638,
4946,
357,
21,
8,
2826,
319,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
19,
24294,
33411,
366,
1925,
4350,
1056,
1,
796,
705,
38036,
4946,
357,
21,
33047
] |
what was the first playstation 3 release date ? | SELECT "playstation 3 release date" FROM table_204_587 ORDER BY "playstation 3 release date" LIMIT 1 | [
10919,
373,
262,
717,
711,
17529,
513,
2650,
3128,
5633,
46506,
366,
1759,
17529,
513,
2650,
3128,
1,
16034,
3084,
62,
18638,
62,
44617,
38678,
11050,
366,
1759,
17529,
513,
2650,
3128,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
711,
17529,
513,
2650,
3128,
5633,
46506,
366,
1759,
17529,
513,
2650,
3128,
1,
16034,
3084,
62,
18638,
62,
44617,
38678,
11050,
366,
1759,
17529,
513,
2650,
3128,
1,
27564,
2043,
352
] |
when was the first time since 03/27/2103 that patient 017-88691 had an intake? | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-88691')) AND intakeoutput.cellpath LIKE '%intake%... | [
12518,
373,
262,
717,
640,
1201,
7643,
14,
1983,
14,
17,
15197,
326,
5827,
5534,
22,
12,
3459,
49541,
550,
281,
10337,
30,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
717,
640,
1201,
7643,
14,
1983,
14,
17,
15197,
326,
5827,
5534,
22,
12,
3459,
49541,
550,
281,
10337,
30,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712... |
What is the lowest number of FA cups associated with 0 malaysia cups? | SELECT MIN(fa_cup) FROM table_name_69 WHERE malaysia_cup < 0 | [
2061,
318,
262,
9016,
1271,
286,
9677,
14180,
3917,
351,
657,
6428,
592,
544,
14180,
30,
46506,
20625,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672,
62,
3388,
33411,
6428,
592,
544,
62,
25244,
1279,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
9677,
14180,
3917,
351,
657,
6428,
592,
544,
14180,
30,
46506,
20625,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672,
62,
3388,
33411,
6428,
592,
544,
62,
25244,
1279,
657
] |
i'd like a flight from SAN DIEGO to TORONTO on AS leaving around 1pm | 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.departure_time <= 1330 AND flight.departure_time >= 1230) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'TORONTO' AND fligh... | [
72,
1549,
588,
257,
5474,
422,
37376,
14766,
7156,
46,
284,
40691,
1340,
10468,
319,
7054,
4305,
1088,
352,
4426,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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... | [
72,
1549,
588,
257,
5474,
422,
37376,
14766,
7156,
46,
284,
40691,
1340,
10468,
319,
7054,
4305,
1088,
352,
4426,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
... |
Who had points smaller than 22 and a drawn of 2? | SELECT "Name" FROM table_50689 WHERE "Points" < '22' AND "Drawn" = '2' | [
8241,
550,
2173,
4833,
621,
2534,
290,
257,
7428,
286,
362,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
1120,
40523,
33411,
366,
40710,
1,
1279,
705,
1828,
6,
5357,
366,
35,
5791,
1,
796,
705,
17,
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
] | [
8241,
550,
2173,
4833,
621,
2534,
290,
257,
7428,
286,
362,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
1120,
40523,
33411,
366,
40710,
1,
1279,
705,
1828,
6,
5357,
366,
35,
5791,
1,
796,
705,
17,
6
] |
When was the team that plays at Athelstone founded? | SELECT "Founded" FROM table_50901 WHERE "Location" = 'athelstone' | [
2215,
373,
262,
1074,
326,
5341,
379,
27751,
75,
6440,
9393,
30,
46506,
366,
37,
6302,
1,
16034,
3084,
62,
29022,
486,
33411,
366,
14749,
1,
796,
705,
265,
2978,
6440,
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
] | [
2215,
373,
262,
1074,
326,
5341,
379,
27751,
75,
6440,
9393,
30,
46506,
366,
37,
6302,
1,
16034,
3084,
62,
29022,
486,
33411,
366,
14749,
1,
796,
705,
265,
2978,
6440,
6
] |
When mike bibby (9) has the highest amount of assists what is the location and attendance? | SELECT "Location Attendance" FROM table_21501 WHERE "High assists" = 'Mike Bibby (9)' | [
2215,
285,
522,
275,
571,
1525,
357,
24,
8,
468,
262,
4511,
2033,
286,
13648,
644,
318,
262,
4067,
290,
14858,
30,
46506,
366,
14749,
46502,
590,
1,
16034,
3084,
62,
23349,
486,
33411,
366,
11922,
13648,
1,
796,
705,
16073,
43278,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
285,
522,
275,
571,
1525,
357,
24,
8,
468,
262,
4511,
2033,
286,
13648,
644,
318,
262,
4067,
290,
14858,
30,
46506,
366,
14749,
46502,
590,
1,
16034,
3084,
62,
23349,
486,
33411,
366,
11922,
13648,
1,
796,
705,
16073,
43278,
1... |
Return the lot details and investor ids. | SELECT lot_details, investor_id FROM LOTS | [
13615,
262,
1256,
3307,
290,
15811,
220,
2340,
13,
46506,
1256,
62,
36604,
11,
15811,
62,
312,
16034,
30314,
50
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
262,
1256,
3307,
290,
15811,
220,
2340,
13,
46506,
1256,
62,
36604,
11,
15811,
62,
312,
16034,
30314,
50
] |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of founder and the average of code , and group by attribute founder, I want to sort by the the average of code from high to low. | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T1.Code DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
314,
765,
284,
3297,
416,
262,
262,
2811,
286,
2438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
314,
765,
284,
3297,
416,
262,
262,
2811,
286,
2438... |
Give me a pie to show sum enrollment from different type. | SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type | [
23318,
502,
257,
2508,
284,
905,
2160,
20753,
422,
1180,
2099,
13,
46506,
5994,
11,
35683,
7,
4834,
48108,
8,
16034,
29426,
44441,
11050,
5994
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
257,
2508,
284,
905,
2160,
20753,
422,
1180,
2099,
13,
46506,
5994,
11,
35683,
7,
4834,
48108,
8,
16034,
29426,
44441,
11050,
5994
] |
how many events lasted 3 rounds ? | SELECT COUNT("event") FROM table_204_53 WHERE "round" = 3 | [
4919,
867,
2995,
15436,
513,
9196,
5633,
46506,
327,
28270,
7203,
15596,
4943,
16034,
3084,
62,
18638,
62,
4310,
33411,
366,
744,
1,
796,
513
] | [
1,
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,
2995,
15436,
513,
9196,
5633,
46506,
327,
28270,
7203,
15596,
4943,
16034,
3084,
62,
18638,
62,
4310,
33411,
366,
744,
1,
796,
513
] |
what is the number of networks accounted for in this chart ? | SELECT COUNT("tv network(s)") FROM table_204_446 | [
10919,
318,
262,
1271,
286,
7686,
17830,
329,
287,
428,
8262,
5633,
46506,
327,
28270,
7203,
14981,
3127,
7,
82,
8,
4943,
16034,
3084,
62,
18638,
62,
27260
] | [
1,
1,
1,
1,
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,
7686,
17830,
329,
287,
428,
8262,
5633,
46506,
327,
28270,
7203,
14981,
3127,
7,
82,
8,
4943,
16034,
3084,
62,
18638,
62,
27260
] |
Show the names of all the clients with no booking. | SELECT Customer_Name FROM Clients EXCEPT SELECT T2.Customer_Name FROM Bookings AS T1 JOIN Clients AS T2 ON T1.Customer_ID = T2.Client_ID | [
15307,
262,
3891,
286,
477,
262,
7534,
351,
645,
25452,
13,
46506,
22092,
62,
5376,
16034,
1012,
2334,
7788,
42006,
33493,
309,
17,
13,
44939,
62,
5376,
16034,
4897,
654,
7054,
309,
16,
32357,
1268,
1012,
2334,
7054,
309,
17,
6177,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
3891,
286,
477,
262,
7534,
351,
645,
25452,
13,
46506,
22092,
62,
5376,
16034,
1012,
2334,
7788,
42006,
33493,
309,
17,
13,
44939,
62,
5376,
16034,
4897,
654,
7054,
309,
16,
32357,
1268,
1012,
2334,
7054,
309,
17,
6177,
30... |
In what year did the Democratic incumbent that was re-elected first take office? | SELECT "First elected" FROM table_12873 WHERE "Results" = 're-elected' AND "Party" = 'democratic' | [
818,
644,
614,
750,
262,
4390,
23526,
326,
373,
302,
12,
28604,
717,
1011,
2607,
30,
46506,
366,
5962,
7018,
1,
16034,
3084,
62,
12762,
4790,
33411,
366,
25468,
1,
796,
705,
260,
12,
28604,
6,
5357,
366,
33553,
1,
796,
705,
41232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
750,
262,
4390,
23526,
326,
373,
302,
12,
28604,
717,
1011,
2607,
30,
46506,
366,
5962,
7018,
1,
16034,
3084,
62,
12762,
4790,
33411,
366,
25468,
1,
796,
705,
260,
12,
28604,
6,
5357,
366,
33553,
1,
796,
705,
41232,
... |
What's the title of the episode seen by 12.85 millions of people in the US? | SELECT title FROM table_28212888_2 WHERE us_viewers__millions_ = "12.85" | [
2061,
338,
262,
3670,
286,
262,
4471,
1775,
416,
1105,
13,
5332,
5242,
286,
661,
287,
262,
1294,
30,
46506,
3670,
16034,
3084,
62,
2078,
21777,
28011,
62,
17,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
1065,
13,
5332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
286,
262,
4471,
1775,
416,
1105,
13,
5332,
5242,
286,
661,
287,
262,
1294,
30,
46506,
3670,
16034,
3084,
62,
2078,
21777,
28011,
62,
17,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
1065,
13,
5332,... |
Tag Badge Count By User. | SELECT Users.Id AS "user_link", Users.DisplayName, COUNT(Badges.Id) AS Number_of_Badges FROM Badges INNER JOIN Users ON Users.Id = Badges.UserId WHERE Badges.Name = 'Necromancer' GROUP BY Users.DisplayName, Users.Id ORDER BY Number_of_Badges DESC | [
24835,
44308,
2764,
2750,
11787,
13,
46506,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
18987,
13,
23114,
5376,
11,
327,
28270,
7,
22069,
3212,
13,
7390,
8,
7054,
7913,
62,
1659,
62,
22069,
3212,
16034,
7772,
3212,
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... | [
24835,
44308,
2764,
2750,
11787,
13,
46506,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
18987,
13,
23114,
5376,
11,
327,
28270,
7,
22069,
3212,
13,
7390,
8,
7054,
7913,
62,
1659,
62,
22069,
3212,
16034,
7772,
3212,
3268,
21479,
... |
What is Ken Walter's lowest pick number with an overall pick number larger than 195? | SELECT MIN(pick__number) FROM table_name_28 WHERE name = "ken walter" AND overall > 195 | [
2061,
318,
7148,
15819,
338,
9016,
2298,
1271,
351,
281,
4045,
2298,
1271,
4025,
621,
24793,
30,
46506,
20625,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
1438,
796,
366,
3464,
6514,
353,
1,
5357,
4045,
1875,
2479... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7148,
15819,
338,
9016,
2298,
1271,
351,
281,
4045,
2298,
1271,
4025,
621,
24793,
30,
46506,
20625,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
1438,
796,
366,
3464,
6514,
353,
1,
5357,
4045,
1875,
2479... |
What is the lowest drawn that has games less than 7? | SELECT MIN("Drawn") FROM table_6357 WHERE "Games" < '7' | [
2061,
318,
262,
9016,
7428,
326,
468,
1830,
1342,
621,
767,
30,
46506,
20625,
7203,
35,
5791,
4943,
16034,
3084,
62,
21,
27277,
33411,
366,
24474,
1,
1279,
705,
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,
318,
262,
9016,
7428,
326,
468,
1830,
1342,
621,
767,
30,
46506,
20625,
7203,
35,
5791,
4943,
16034,
3084,
62,
21,
27277,
33411,
366,
24474,
1,
1279,
705,
22,
6
] |
Who wrote the episodes with 7.70 u.s. viewers (million) ? | SELECT written_by FROM table_27117365_1 WHERE us_viewers__million_ = "7.70" | [
8241,
2630,
262,
8640,
351,
767,
13,
2154,
334,
13,
82,
13,
10209,
357,
14100,
8,
5633,
46506,
3194,
62,
1525,
16034,
3084,
62,
1983,
17657,
24760,
62,
16,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
22,
13,
2154,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2630,
262,
8640,
351,
767,
13,
2154,
334,
13,
82,
13,
10209,
357,
14100,
8,
5633,
46506,
3194,
62,
1525,
16034,
3084,
62,
1983,
17657,
24760,
62,
16,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
22,
13,
2154,
1
] |
how many matches did jones kusi asare play in in his first season ? | SELECT "matches" FROM table_204_235 ORDER BY "season" LIMIT 1 | [
4919,
867,
7466,
750,
474,
1952,
479,
385,
72,
355,
533,
711,
287,
287,
465,
717,
1622,
5633,
46506,
366,
6759,
2052,
1,
16034,
3084,
62,
18638,
62,
22370,
38678,
11050,
366,
6230,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7466,
750,
474,
1952,
479,
385,
72,
355,
533,
711,
287,
287,
465,
717,
1622,
5633,
46506,
366,
6759,
2052,
1,
16034,
3084,
62,
18638,
62,
22370,
38678,
11050,
366,
6230,
1,
27564,
2043,
352
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.