instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What did the away team score when playing North Melbourne? | SELECT "Away team score" FROM table_77739 WHERE "Home team" = 'north melbourne' | [
2061,
750,
262,
1497,
1074,
4776,
618,
2712,
2258,
14819,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
29331,
2670,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
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,
750,
262,
1497,
1074,
4776,
618,
2712,
2258,
14819,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
29331,
2670,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
6
] |
Get Comments By User Id. | SELECT Id AS "comment_link", Score, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('%##CommentText##%') AND UserId = '##UserId##' ORDER BY Score DESC | [
3855,
19502,
2750,
11787,
5121,
13,
46506,
5121,
7054,
366,
23893,
62,
8726,
1600,
15178,
11,
8255,
16034,
19502,
33411,
471,
10246,
1137,
7,
8206,
8,
34178,
471,
10246,
1137,
10786,
4,
2235,
21357,
8206,
2235,
4,
11537,
5357,
11787,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3855,
19502,
2750,
11787,
5121,
13,
46506,
5121,
7054,
366,
23893,
62,
8726,
1600,
15178,
11,
8255,
16034,
19502,
33411,
471,
10246,
1137,
7,
8206,
8,
34178,
471,
10246,
1137,
10786,
4,
2235,
21357,
8206,
2235,
4,
11537,
5357,
11787,
73... |
Who was the home team when the away team scored 18.18 (126)? | SELECT "Home team" FROM table_57345 WHERE "Away team score" = '18.18 (126)' | [
8241,
373,
262,
1363,
1074,
618,
262,
1497,
1074,
7781,
1248,
13,
1507,
357,
19420,
19427,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3553,
27712,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1507,
13,
1507,
357,
19420,
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,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
1363,
1074,
618,
262,
1497,
1074,
7781,
1248,
13,
1507,
357,
19420,
19427,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3553,
27712,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1507,
13,
1507,
357,
19420,
33047
] |
For those records from the products and each product's manufacturer, give me the comparison about the sum of revenue over the headquarter , and group by attribute headquarter by a bar chart, rank in ascending by the y-axis. | SELECT Headquarter, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Revenue) | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6426,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
416,
257,
2318,
8262,
11,
4279,
287,
41988,
416,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2160,
286,
6426,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
416,
257,
2318,
8262,
11,
4279,
287,
41988,
416,
262,
... |
What shows for 2006, when 2013 is 2 4? | SELECT 2006 FROM table_name_64 WHERE 2013 = "2–4" | [
2061,
2523,
329,
4793,
11,
618,
2211,
318,
362,
604,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
2414,
33411,
2211,
796,
366,
17,
1906,
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
] | [
2061,
2523,
329,
4793,
11,
618,
2211,
318,
362,
604,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
2414,
33411,
2211,
796,
366,
17,
1906,
19,
1
] |
How many questions did SO have X days after its creation?. Note that the public beta started on September 15th, 2008 | SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND CreationDate < DATEADD(day, '##Days##', '2008-07-15') | [
2437,
867,
2683,
750,
12809,
423,
1395,
1528,
706,
663,
6282,
30,
13,
5740,
326,
262,
1171,
12159,
2067,
319,
2693,
1315,
400,
11,
3648,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
21582,
10430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2683,
750,
12809,
423,
1395,
1528,
706,
663,
6282,
30,
13,
5740,
326,
262,
1171,
12159,
2067,
319,
2693,
1315,
400,
11,
3648,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
21582,
10430,
... |
Big Data trends (# of questions per month). | SELECT DATEADD(mm, (YEAR(Posts.CreationDate) - 1900) * 12 + MONTH(Posts.CreationDate) - 1, 0) AS Month, Tags.TagName, COUNT(*) AS Questions FROM Tags LEFT JOIN PostTags ON PostTags.TagId = Tags.Id LEFT JOIN Posts ON Posts.Id = PostTags.PostId LEFT JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId WHERE Tags.TagName IN ... | [
12804,
6060,
11257,
17426,
286,
2683,
583,
1227,
737,
46506,
360,
6158,
29266,
7,
3020,
11,
357,
56,
17133,
7,
21496,
13,
12443,
341,
10430,
8,
532,
21489,
8,
1635,
1105,
1343,
25000,
4221,
7,
21496,
13,
12443,
341,
10430,
8,
532,
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... | [
12804,
6060,
11257,
17426,
286,
2683,
583,
1227,
737,
46506,
360,
6158,
29266,
7,
3020,
11,
357,
56,
17133,
7,
21496,
13,
12443,
341,
10430,
8,
532,
21489,
8,
1635,
1105,
1343,
25000,
4221,
7,
21496,
13,
12443,
341,
10430,
8,
532,
3... |
What is Player, when Total is greater than 148, and when To Par is '12'? | SELECT player FROM table_name_83 WHERE total > 148 AND to_par = 12 | [
2061,
318,
7853,
11,
618,
7472,
318,
3744,
621,
22613,
11,
290,
618,
1675,
2547,
318,
705,
1065,
30960,
46506,
2137,
16034,
3084,
62,
3672,
62,
5999,
33411,
2472,
1875,
22613,
5357,
284,
62,
1845,
796,
1105
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7853,
11,
618,
7472,
318,
3744,
621,
22613,
11,
290,
618,
1675,
2547,
318,
705,
1065,
30960,
46506,
2137,
16034,
3084,
62,
3672,
62,
5999,
33411,
2472,
1875,
22613,
5357,
284,
62,
1845,
796,
1105
] |
What is the number of the series written by Teresa Lin? | SELECT COUNT(no_in_series) FROM table_26801821_1 WHERE written_by = "Teresa Lin" | [
2061,
318,
262,
1271,
286,
262,
2168,
3194,
416,
34405,
5164,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
25076,
8,
16034,
3084,
62,
25022,
29159,
2481,
62,
16,
33411,
3194,
62,
1525,
796,
366,
6767,
14625,
5164,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
262,
2168,
3194,
416,
34405,
5164,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
25076,
8,
16034,
3084,
62,
25022,
29159,
2481,
62,
16,
33411,
3194,
62,
1525,
796,
366,
6767,
14625,
5164,
1
] |
What is the dage of catalog asw 28033? | SELECT date FROM table_name_68 WHERE catalog = "asw 28033" | [
2061,
318,
262,
288,
496,
286,
18388,
355,
86,
21355,
2091,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3104,
33411,
18388,
796,
366,
292,
86,
21355,
2091,
1
] | [
1,
1,
1,
1,
1,
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,
288,
496,
286,
18388,
355,
86,
21355,
2091,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3104,
33411,
18388,
796,
366,
292,
86,
21355,
2091,
1
] |
Users having Stack Exchange Inc. emails on their 'About me'. Email domains included: stackexchange.com and stackoverflow.com | SELECT Id AS "user_link", AboutMe, WebsiteUrl FROM Users WHERE (AboutMe LIKE '%@stackexchange.com%' OR AboutMe LIKE '%@stackoverflow.com%' OR AboutMe LIKE '%valued associate%') | [
14490,
1719,
23881,
12516,
3457,
13,
7237,
319,
511,
705,
8585,
502,
4458,
9570,
18209,
3017,
25,
336,
330,
365,
87,
3803,
13,
785,
290,
8931,
2502,
11125,
13,
785,
46506,
5121,
7054,
366,
7220,
62,
8726,
1600,
7994,
5308,
11,
15887,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
1719,
23881,
12516,
3457,
13,
7237,
319,
511,
705,
8585,
502,
4458,
9570,
18209,
3017,
25,
336,
330,
365,
87,
3803,
13,
785,
290,
8931,
2502,
11125,
13,
785,
46506,
5121,
7054,
366,
7220,
62,
8726,
1600,
7994,
5308,
11,
15887,
... |
Do I need to take SCAND 349 before taking SCAND 103 ? | SELECT COUNT(*) > 0 FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'SCAND' AND COURSE_0.number = 349 AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.department = 'SCAND' AND COURSE_1.number = 103 | [
5211,
314,
761,
284,
1011,
6374,
6981,
44367,
878,
2263,
6374,
6981,
15349,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
7054,
37384,
5188,
62,
15,
11,
1781,
7054,
37384,
5188,
62,
16,
11,
1781,
62,
3866,
27614,
33411,
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... | [
5211,
314,
761,
284,
1011,
6374,
6981,
44367,
878,
2263,
6374,
6981,
15349,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
7054,
37384,
5188,
62,
15,
11,
1781,
7054,
37384,
5188,
62,
16,
11,
1781,
62,
3866,
27614,
33411,
3... |
were there more conservative councillors in 1965 or 1966 ? | SELECT "year" FROM table_204_349 WHERE "year" IN (1965, 1966) ORDER BY "conservative\ncouncillors" DESC LIMIT 1 | [
22474,
612,
517,
5940,
43321,
287,
17672,
393,
19322,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
27371,
33411,
366,
1941,
1,
3268,
357,
45271,
11,
19322,
8,
38678,
11050,
366,
43218,
59,
10782,
977,
20346,
669,
1,
22196,
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
] | [
22474,
612,
517,
5940,
43321,
287,
17672,
393,
19322,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
27371,
33411,
366,
1941,
1,
3268,
357,
45271,
11,
19322,
8,
38678,
11050,
366,
43218,
59,
10782,
977,
20346,
669,
1,
22196,
3... |
Visualize a pie chart with what are the allergy types and how many allergies correspond to each one? | SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType | [
36259,
1096,
257,
2508,
8262,
351,
644,
389,
262,
36197,
3858,
290,
703,
867,
36665,
6053,
284,
1123,
530,
30,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
28104,
16034,
1439,
26079,
62,
6030,
44441,
11050,
1439,
26079,
6030
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2508,
8262,
351,
644,
389,
262,
36197,
3858,
290,
703,
867,
36665,
6053,
284,
1123,
530,
30,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
28104,
16034,
1439,
26079,
62,
6030,
44441,
11050,
1439,
26079,
6030
] |
What's the target for the brand mylotarg? | SELECT target FROM table_name_96 WHERE brand_name = "mylotarg" | [
2061,
338,
262,
2496,
329,
262,
4508,
616,
26487,
853,
30,
46506,
2496,
16034,
3084,
62,
3672,
62,
4846,
33411,
4508,
62,
3672,
796,
366,
1820,
26487,
853,
1
] | [
1,
1,
1,
1,
1,
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,
2496,
329,
262,
4508,
616,
26487,
853,
30,
46506,
2496,
16034,
3084,
62,
3672,
62,
4846,
33411,
4508,
62,
3672,
796,
366,
1820,
26487,
853,
1
] |
how many hours has elapsed since the last time patient 006-105495 received a d5w intake on the current intensive care unit visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 ... | [
4919,
867,
2250,
468,
42118,
1201,
262,
938,
640,
5827,
3571,
21,
12,
13348,
33781,
2722,
257,
288,
20,
86,
10337,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
42118,
1201,
262,
938,
640,
5827,
3571,
21,
12,
13348,
33781,
2722,
257,
288,
20,
86,
10337,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237... |
how many patients are below 62 years of age and hospital stay is above 6 days? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "62" AND demographic.days_stay > "6" | [
4919,
867,
3871,
389,
2174,
8190,
812,
286,
2479,
290,
4436,
2652,
318,
2029,
718,
1528,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
496,
1279,
366,
5237,
1,
5357,
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
] | [
4919,
867,
3871,
389,
2174,
8190,
812,
286,
2479,
290,
4436,
2652,
318,
2029,
718,
1528,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
496,
1279,
366,
5237,
1,
5357,
16... |
Find number of products which Sony does not make. | SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T2.name = 'Sony') | [
16742,
1271,
286,
3186,
543,
10184,
857,
407,
787,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1438,
8,
16034,
3186,
33411,
5626,
1438,
3268,
357,
46506,
309,
16,
13,
3672,
16034,
3186,
7054,
309,
16,
32357,
1268,
11372,
7054,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3186,
543,
10184,
857,
407,
787,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1438,
8,
16034,
3186,
33411,
5626,
1438,
3268,
357,
46506,
309,
16,
13,
3672,
16034,
3186,
7054,
309,
16,
32357,
1268,
11372,
7054,
309... |
What is the date of the episode with Ryan Stiles as performer 2, Colin Mochrie as performer 3, and Tony Slattery as performer 4? | SELECT "Date" FROM table_36538 WHERE "Performer 2" = 'ryan stiles' AND "Performer 3" = 'colin mochrie' AND "Performer 4" = 'tony slattery' | [
2061,
318,
262,
3128,
286,
262,
4471,
351,
6047,
520,
2915,
355,
26960,
362,
11,
18373,
4270,
354,
5034,
355,
26960,
513,
11,
290,
8832,
3454,
16296,
355,
26960,
604,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
24760,
2548,
33411,
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,
1,
1,
1,
1,
1... | [
2061,
318,
262,
3128,
286,
262,
4471,
351,
6047,
520,
2915,
355,
26960,
362,
11,
18373,
4270,
354,
5034,
355,
26960,
513,
11,
290,
8832,
3454,
16296,
355,
26960,
604,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
24760,
2548,
33411,
366,... |
what is primary disease and procedure short title of subject id 1875? | SELECT demographic.diagnosis, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "1875" | [
10919,
318,
4165,
4369,
290,
8771,
1790,
3670,
286,
2426,
4686,
1248,
2425,
30,
46506,
16728,
13,
47356,
5958,
11,
9021,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4165,
4369,
290,
8771,
1790,
3670,
286,
2426,
4686,
1248,
2425,
30,
46506,
16728,
13,
47356,
5958,
11,
9021,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
... |
calculate the number of dead patients who are less than 70 years of age. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.age < "70" | [
9948,
3129,
378,
262,
1271,
286,
2636,
3871,
508,
389,
1342,
621,
4317,
812,
286,
2479,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
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
] | [
9948,
3129,
378,
262,
1271,
286,
2636,
3871,
508,
389,
1342,
621,
4317,
812,
286,
2479,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
1... |
How many players have the pick number 166? | SELECT COUNT(player) FROM table_1965650_11 WHERE pick__number = 166 | [
2437,
867,
1938,
423,
262,
2298,
1271,
26753,
30,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
45271,
17544,
62,
1157,
33411,
2298,
834,
17618,
796,
26753
] | [
1,
1,
1,
1,
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,
1938,
423,
262,
2298,
1271,
26753,
30,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
45271,
17544,
62,
1157,
33411,
2298,
834,
17618,
796,
26753
] |
When the change (2011 to 2012) is -0.1% what is the country? | SELECT "Country" FROM table_19571 WHERE "Change (2011 to 2012)" = '-0.1%' | [
2215,
262,
1487,
357,
9804,
284,
2321,
8,
318,
532,
15,
13,
16,
4,
644,
318,
262,
1499,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1129,
42875,
33411,
366,
19400,
357,
9804,
284,
2321,
16725,
796,
705,
12,
15,
13,
16,
4,
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
] | [
2215,
262,
1487,
357,
9804,
284,
2321,
8,
318,
532,
15,
13,
16,
4,
644,
318,
262,
1499,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1129,
42875,
33411,
366,
19400,
357,
9804,
284,
2321,
16725,
796,
705,
12,
15,
13,
16,
4,
6
] |
Name the date for game 9 | SELECT "Date" FROM table_20975 WHERE "Game" = '9' | [
5376,
262,
3128,
329,
983,
860,
46506,
366,
10430,
1,
16034,
3084,
62,
22567,
2425,
33411,
366,
8777,
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
] | [
5376,
262,
3128,
329,
983,
860,
46506,
366,
10430,
1,
16034,
3084,
62,
22567,
2425,
33411,
366,
8777,
1,
796,
705,
24,
6
] |
When event 4 was Whiplash, what was event 2? | SELECT event_2 FROM table_17257687_1 WHERE event_4 = "Whiplash" | [
2215,
1785,
604,
373,
854,
24705,
1077,
11,
644,
373,
1785,
362,
30,
46506,
1785,
62,
17,
16034,
3084,
62,
1558,
28676,
39925,
62,
16,
33411,
1785,
62,
19,
796,
366,
1199,
24705,
1077,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1785,
604,
373,
854,
24705,
1077,
11,
644,
373,
1785,
362,
30,
46506,
1785,
62,
17,
16034,
3084,
62,
1558,
28676,
39925,
62,
16,
33411,
1785,
62,
19,
796,
366,
1199,
24705,
1077,
1
] |
Name the decision for boston bruins visitor | SELECT decision FROM table_name_14 WHERE visitor = "boston bruins" | [
5376,
262,
2551,
329,
275,
5744,
18145,
1040,
21493,
46506,
2551,
16034,
3084,
62,
3672,
62,
1415,
33411,
21493,
796,
366,
65,
5744,
18145,
1040,
1
] | [
1,
1,
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,
2551,
329,
275,
5744,
18145,
1040,
21493,
46506,
2551,
16034,
3084,
62,
3672,
62,
1415,
33411,
21493,
796,
366,
65,
5744,
18145,
1040,
1
] |
how did patient 13329 enter hospital for the last time until 3 years ago? | SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 13329 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY admissions.admittime DESC LIMIT 1 | [
4919,
750,
5827,
22169,
1959,
3802,
4436,
329,
262,
938,
640,
1566,
513,
812,
2084,
30,
46506,
25349,
13,
324,
3411,
62,
4906,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
22169,
1959,
5357,
360,
1404,
2767,
12789,
7,
324,
848... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
5827,
22169,
1959,
3802,
4436,
329,
262,
938,
640,
1566,
513,
812,
2084,
30,
46506,
25349,
13,
324,
3411,
62,
4906,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
22169,
1959,
5357,
360,
1404,
2767,
12789,
7,
324,
848... |
hachinski ischemia score < 4 . | SELECT * FROM table_train_100 WHERE rosen_modified_hachinski_ischemic_score < 4 | [
71,
620,
21141,
318,
15245,
544,
4776,
1279,
604,
764,
46506,
1635,
16034,
3084,
62,
27432,
62,
3064,
33411,
686,
6248,
62,
41771,
62,
71,
620,
21141,
62,
2304,
4411,
291,
62,
26675,
1279,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
71,
620,
21141,
318,
15245,
544,
4776,
1279,
604,
764,
46506,
1635,
16034,
3084,
62,
27432,
62,
3064,
33411,
686,
6248,
62,
41771,
62,
71,
620,
21141,
62,
2304,
4411,
291,
62,
26675,
1279,
604
] |
Name the number of swimsuit for israel | SELECT COUNT("Swimsuit") FROM table_288 WHERE "Delegate" = 'Israel' | [
5376,
262,
1271,
286,
9422,
6063,
329,
318,
2510,
46506,
327,
28270,
7203,
10462,
320,
6063,
4943,
16034,
3084,
62,
25270,
33411,
366,
5005,
34637,
1,
796,
705,
14040,
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
] | [
5376,
262,
1271,
286,
9422,
6063,
329,
318,
2510,
46506,
327,
28270,
7203,
10462,
320,
6063,
4943,
16034,
3084,
62,
25270,
33411,
366,
5005,
34637,
1,
796,
705,
14040,
6
] |
What's the most number of byes for Longwood having less than 1944 against? | SELECT MAX("Byes") FROM table_59114 WHERE "Benalla DFL" = 'longwood' AND "Against" < '1944' | [
2061,
338,
262,
749,
1271,
286,
416,
274,
329,
5882,
3822,
1719,
1342,
621,
16994,
1028,
30,
46506,
25882,
7203,
3886,
274,
4943,
16034,
3084,
62,
3270,
16562,
33411,
366,
11696,
30315,
360,
3697,
1,
796,
705,
6511,
3822,
6,
5357,
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
] | [
2061,
338,
262,
749,
1271,
286,
416,
274,
329,
5882,
3822,
1719,
1342,
621,
16994,
1028,
30,
46506,
25882,
7203,
3886,
274,
4943,
16034,
3084,
62,
3270,
16562,
33411,
366,
11696,
30315,
360,
3697,
1,
796,
705,
6511,
3822,
6,
5357,
366... |
how did patient 70516 last come to the hospital since 2104? | SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 70516 AND STRFTIME('%y', admissions.admittime) >= '2104' ORDER BY admissions.admittime DESC LIMIT 1 | [
4919,
750,
5827,
767,
2713,
1433,
938,
1282,
284,
262,
4436,
1201,
362,
13464,
30,
46506,
25349,
13,
324,
3411,
62,
4906,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
767,
2713,
1433,
5357,
19269,
9792,
12789,
10786,
4,
88,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
750,
5827,
767,
2713,
1433,
938,
1282,
284,
262,
4436,
1201,
362,
13464,
30,
46506,
25349,
13,
324,
3411,
62,
4906,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
767,
2713,
1433,
5357,
19269,
9792,
12789,
10786,
4,
88,
32... |
who are all the players when season mvp is less than 1.0 and second team is less than 1.0 | SELECT player FROM table_26130295_3 WHERE season_mvp < 1.0 AND second_team < 1.0 | [
8727,
389,
477,
262,
1938,
618,
1622,
285,
36133,
318,
1342,
621,
352,
13,
15,
290,
1218,
1074,
318,
1342,
621,
352,
13,
15,
46506,
2137,
16034,
3084,
62,
2075,
12952,
25710,
62,
18,
33411,
1622,
62,
76,
36133,
1279,
352,
13,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
389,
477,
262,
1938,
618,
1622,
285,
36133,
318,
1342,
621,
352,
13,
15,
290,
1218,
1074,
318,
1342,
621,
352,
13,
15,
46506,
2137,
16034,
3084,
62,
2075,
12952,
25710,
62,
18,
33411,
1622,
62,
76,
36133,
1279,
352,
13,
15,
... |
what is the report when the home team is new zealand breakers? | SELECT report FROM table_name_31 WHERE home_team = "new zealand breakers" | [
10919,
318,
262,
989,
618,
262,
1363,
1074,
318,
649,
27689,
392,
2270,
364,
30,
46506,
989,
16034,
3084,
62,
3672,
62,
3132,
33411,
1363,
62,
15097,
796,
366,
3605,
27689,
392,
2270,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
989,
618,
262,
1363,
1074,
318,
649,
27689,
392,
2270,
364,
30,
46506,
989,
16034,
3084,
62,
3672,
62,
3132,
33411,
1363,
62,
15097,
796,
366,
3605,
27689,
392,
2270,
364,
1
] |
Which Opponent has a Game site of heinz field, and a Record of 3 1? | SELECT opponent FROM table_name_7 WHERE game_site = "heinz field" AND record = "3–1" | [
13828,
9385,
3471,
468,
257,
3776,
2524,
286,
339,
259,
89,
2214,
11,
290,
257,
13266,
286,
513,
352,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
22,
33411,
983,
62,
15654,
796,
366,
258,
259,
89,
2214,
1,
5357,
1700,
796,
366,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9385,
3471,
468,
257,
3776,
2524,
286,
339,
259,
89,
2214,
11,
290,
257,
13266,
286,
513,
352,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
22,
33411,
983,
62,
15654,
796,
366,
258,
259,
89,
2214,
1,
5357,
1700,
796,
366,
18... |
how many players were born before 1988 ? | SELECT COUNT("player") FROM table_203_116 WHERE "birth date" < 1988 | [
4919,
867,
1938,
547,
4642,
878,
12122,
5633,
46506,
327,
28270,
7203,
7829,
4943,
16034,
3084,
62,
22416,
62,
18298,
33411,
366,
24280,
3128,
1,
1279,
12122
] | [
1,
1,
1,
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,
1938,
547,
4642,
878,
12122,
5633,
46506,
327,
28270,
7203,
7829,
4943,
16034,
3084,
62,
22416,
62,
18298,
33411,
366,
24280,
3128,
1,
1279,
12122
] |
What rank for season 1? | SELECT rank FROM table_name_28 WHERE season = 1 | [
2061,
4279,
329,
1622,
352,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
2078,
33411,
1622,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4279,
329,
1622,
352,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
2078,
33411,
1622,
796,
352
] |
how many hours has it been since patient 006-157753 has had his first rbc lab test during this hospital encounter? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-157753' AND patient.hos... | [
4919,
867,
2250,
468,
340,
587,
1201,
5827,
3571,
21,
12,
18458,
44550,
468,
550,
465,
717,
374,
15630,
2248,
1332,
1141,
428,
4436,
8791,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
2895... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3571,
21,
12,
18458,
44550,
468,
550,
465,
717,
374,
15630,
2248,
1332,
1141,
428,
4436,
8791,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
2895... |
how many times did patient 005-77687 have an intake of ns on this month/06? | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-77687')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.ce... | [
4919,
867,
1661,
750,
5827,
3571,
20,
12,
3324,
39925,
423,
281,
10337,
286,
36545,
319,
428,
1227,
14,
3312,
30,
46506,
327,
28270,
7,
28104,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
582... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
750,
5827,
3571,
20,
12,
3324,
39925,
423,
281,
10337,
286,
36545,
319,
428,
1227,
14,
3312,
30,
46506,
327,
28270,
7,
28104,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
582... |
contraindication for nmr ( creatinin clearance < 30 ml / min / 1.73 m2, metallic implants or claustrophobia ) . | SELECT * FROM table_test_3 WHERE contraindication_for_nmr = 1 OR (creatinine_clearance_cl < 30 OR metallic_implants = 1 OR claustrophobia = 1) | [
3642,
3201,
67,
3299,
329,
28642,
81,
357,
1827,
259,
259,
19745,
1279,
1542,
25962,
1220,
949,
1220,
352,
13,
4790,
285,
17,
11,
27306,
35223,
393,
26435,
436,
10051,
30665,
1267,
764,
46506,
1635,
16034,
3084,
62,
9288,
62,
18,
3341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3642,
3201,
67,
3299,
329,
28642,
81,
357,
1827,
259,
259,
19745,
1279,
1542,
25962,
1220,
949,
1220,
352,
13,
4790,
285,
17,
11,
27306,
35223,
393,
26435,
436,
10051,
30665,
1267,
764,
46506,
1635,
16034,
3084,
62,
9288,
62,
18,
3341... |
when patient 025-44495 had their first sputum, tracheal specimen microbiology test in this month? | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495')) AND microlab.culturesite = 'sputum, tracheal specime... | [
12518,
5827,
657,
1495,
12,
2598,
33781,
550,
511,
717,
599,
315,
388,
11,
491,
4891,
282,
31674,
24559,
1435,
1332,
287,
428,
1227,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
13,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
657,
1495,
12,
2598,
33781,
550,
511,
717,
599,
315,
388,
11,
491,
4891,
282,
31674,
24559,
1435,
1332,
287,
428,
1227,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
13,
260... |
Which Opponent has a Record of 65-95? | SELECT opponent FROM table_name_12 WHERE record = "65-95" | [
13828,
9385,
3471,
468,
257,
13266,
286,
6135,
12,
3865,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1065,
33411,
1700,
796,
366,
2996,
12,
3865,
1
] | [
1,
1,
1,
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,
9385,
3471,
468,
257,
13266,
286,
6135,
12,
3865,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1065,
33411,
1700,
796,
366,
2996,
12,
3865,
1
] |
how many processors have an integrated monochrome display ? | SELECT COUNT("processor") FROM table_203_136 WHERE "case" = 'desktop with integrated monochrome display' | [
4919,
867,
20399,
423,
281,
11521,
937,
5374,
5998,
3359,
5633,
46506,
327,
28270,
7203,
41341,
4943,
16034,
3084,
62,
22416,
62,
20809,
33411,
366,
7442,
1,
796,
705,
41375,
351,
11521,
937,
5374,
5998,
3359,
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
] | [
4919,
867,
20399,
423,
281,
11521,
937,
5374,
5998,
3359,
5633,
46506,
327,
28270,
7203,
41341,
4943,
16034,
3084,
62,
22416,
62,
20809,
33411,
366,
7442,
1,
796,
705,
41375,
351,
11521,
937,
5374,
5998,
3359,
6
] |
what is the total number of international goals that holosko has scored ? | SELECT SUM("result") FROM table_203_6 | [
10919,
318,
262,
2472,
1271,
286,
3230,
4661,
326,
6039,
418,
7204,
468,
7781,
5633,
46506,
35683,
7203,
20274,
4943,
16034,
3084,
62,
22416,
62,
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
] | [
10919,
318,
262,
2472,
1271,
286,
3230,
4661,
326,
6039,
418,
7204,
468,
7781,
5633,
46506,
35683,
7203,
20274,
4943,
16034,
3084,
62,
22416,
62,
21
] |
What is the First Pref Votes for the % FPv of 0.06? | SELECT "First Pref votes" FROM table_9516 WHERE "% FPv" = '0.06' | [
2061,
318,
262,
3274,
42195,
39584,
329,
262,
4064,
31459,
85,
286,
657,
13,
3312,
30,
46506,
366,
5962,
42195,
5690,
1,
16034,
3084,
62,
3865,
1433,
33411,
36521,
31459,
85,
1,
796,
705,
15,
13,
3312,
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,
318,
262,
3274,
42195,
39584,
329,
262,
4064,
31459,
85,
286,
657,
13,
3312,
30,
46506,
366,
5962,
42195,
5690,
1,
16034,
3084,
62,
3865,
1433,
33411,
36521,
31459,
85,
1,
796,
705,
15,
13,
3312,
6
] |
List the total points for the 1st place team. | SELECT "Points" FROM table_3296 WHERE "Position" = '1st' | [
8053,
262,
2472,
2173,
329,
262,
352,
301,
1295,
1074,
13,
46506,
366,
40710,
1,
16034,
3084,
62,
18,
27137,
33411,
366,
26545,
1,
796,
705,
16,
301,
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
] | [
8053,
262,
2472,
2173,
329,
262,
352,
301,
1295,
1074,
13,
46506,
366,
40710,
1,
16034,
3084,
62,
18,
27137,
33411,
366,
26545,
1,
796,
705,
16,
301,
6
] |
Find the name of customers who did not pay with Cash. | SELECT customer_name FROM customers WHERE payment_method <> 'Cash' | [
16742,
262,
1438,
286,
4297,
508,
750,
407,
1414,
351,
16210,
13,
46506,
6491,
62,
3672,
16034,
4297,
33411,
6074,
62,
24396,
1279,
29,
705,
35361,
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
] | [
16742,
262,
1438,
286,
4297,
508,
750,
407,
1414,
351,
16210,
13,
46506,
6491,
62,
3672,
16034,
4297,
33411,
6074,
62,
24396,
1279,
29,
705,
35361,
6
] |
how many hours has it been since the last time that patient 31854 on the current icu visit received a criticare hn intake? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854) AND icustays.outtime IS NULL)... | [
4919,
867,
2250,
468,
340,
587,
1201,
262,
938,
640,
326,
5827,
39320,
4051,
319,
262,
1459,
14158,
84,
3187,
2722,
257,
4014,
533,
289,
77,
10337,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
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... | [
4919,
867,
2250,
468,
340,
587,
1201,
262,
938,
640,
326,
5827,
39320,
4051,
319,
262,
1459,
14158,
84,
3187,
2722,
257,
4014,
533,
289,
77,
10337,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
... |
What's the title for year n.m.? | SELECT title FROM table_name_43 WHERE year = "n.m." | [
2061,
338,
262,
3670,
329,
614,
299,
13,
76,
40791,
46506,
3670,
16034,
3084,
62,
3672,
62,
3559,
33411,
614,
796,
366,
77,
13,
76,
526
] | [
1,
1,
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,
329,
614,
299,
13,
76,
40791,
46506,
3670,
16034,
3084,
62,
3672,
62,
3559,
33411,
614,
796,
366,
77,
13,
76,
526
] |
What is the total number of birth/2012 for January December 2012 in Kurgan Oblast? | SELECT COUNT("Birth/2012") FROM table_3389 WHERE "January\u2013December 2012" = 'Kurgan Oblast' | [
2061,
318,
262,
2472,
1271,
286,
4082,
14,
6999,
329,
3269,
3426,
2321,
287,
18132,
1030,
1835,
12957,
30,
46506,
327,
28270,
7203,
38480,
14,
6999,
4943,
16034,
3084,
62,
2091,
4531,
33411,
366,
21339,
59,
84,
6390,
20588,
2321,
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
] | [
2061,
318,
262,
2472,
1271,
286,
4082,
14,
6999,
329,
3269,
3426,
2321,
287,
18132,
1030,
1835,
12957,
30,
46506,
327,
28270,
7203,
38480,
14,
6999,
4943,
16034,
3084,
62,
2091,
4531,
33411,
366,
21339,
59,
84,
6390,
20588,
2321,
1,
7... |
Name the total number of laps with rank of 8 | SELECT COUNT(laps) FROM table_name_90 WHERE rank = "8" | [
5376,
262,
2472,
1271,
286,
24590,
351,
4279,
286,
807,
46506,
327,
28270,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
4279,
796,
366,
23,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
1271,
286,
24590,
351,
4279,
286,
807,
46506,
327,
28270,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
4279,
796,
366,
23,
1
] |
give the birthdate and number of days of hospital stay for kelly gallardo? | SELECT demographic.dob, demographic.days_stay FROM demographic WHERE demographic.name = "Kelly Gallardo" | [
26535,
262,
4082,
4475,
290,
1271,
286,
1528,
286,
4436,
2652,
329,
885,
12810,
7976,
13109,
30,
46506,
16728,
13,
67,
672,
11,
16728,
13,
12545,
62,
31712,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
34831,
7096,
13109,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4082,
4475,
290,
1271,
286,
1528,
286,
4436,
2652,
329,
885,
12810,
7976,
13109,
30,
46506,
16728,
13,
67,
672,
11,
16728,
13,
12545,
62,
31712,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
34831,
7096,
13109,
1
] |
What rank is the nation with 2 silver medals? | SELECT rank FROM table_name_44 WHERE silver = "2" | [
2061,
4279,
318,
262,
3277,
351,
362,
8465,
28057,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
2598,
33411,
8465,
796,
366,
17,
1
] | [
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,
4279,
318,
262,
3277,
351,
362,
8465,
28057,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
2598,
33411,
8465,
796,
366,
17,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me the trend about salary over hire_date with a line chart, and I want to order by the X in ascending. | SELECT HIRE_DATE, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
262,
5182,
546,
9588,
625,
11078,
62,
4475,
351,
257,
1627,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
1395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
262,
5182,
546,
9588,
625,
11078,
62,
4475,
351,
257,
1627,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
1395,
... |
Which player's position is the shooting guard? | SELECT player FROM table_11545282_19 WHERE position = "Shooting guard" | [
13828,
2137,
338,
2292,
318,
262,
4395,
4860,
30,
46506,
2137,
16034,
3084,
62,
15363,
2231,
32568,
62,
1129,
33411,
2292,
796,
366,
2484,
12494,
4860,
1
] | [
1,
1,
1,
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,
2137,
338,
2292,
318,
262,
4395,
4860,
30,
46506,
2137,
16034,
3084,
62,
15363,
2231,
32568,
62,
1129,
33411,
2292,
796,
366,
2484,
12494,
4860,
1
] |
What type has the characters ? | SELECT type FROM table_name_48 WHERE characters = "廣利" | [
2061,
2099,
468,
262,
3435,
5633,
46506,
2099,
16034,
3084,
62,
3672,
62,
2780,
33411,
3435,
796,
366,
161,
119,
96,
26344,
102,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2099,
468,
262,
3435,
5633,
46506,
2099,
16034,
3084,
62,
3672,
62,
2780,
33411,
3435,
796,
366,
161,
119,
96,
26344,
102,
1
] |
Plot the number of name by grouped by name as a bar graph | SELECT Name, COUNT(Name) FROM train GROUP BY Name | [
43328,
262,
1271,
286,
1438,
416,
32824,
416,
1438,
355,
257,
2318,
4823,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
4512,
44441,
11050,
6530
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
262,
1271,
286,
1438,
416,
32824,
416,
1438,
355,
257,
2318,
4823,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
4512,
44441,
11050,
6530
] |
Name the men's singles of marina yakusheva elena shimko | SELECT mens_singles FROM table_12104319_1 WHERE womens_doubles = "Marina Yakusheva Elena Shimko" | [
5376,
262,
1450,
338,
25287,
286,
1667,
1437,
46251,
385,
258,
6862,
1288,
8107,
427,
320,
7204,
46506,
285,
641,
62,
12215,
829,
16034,
3084,
62,
1065,
940,
3559,
1129,
62,
16,
33411,
1116,
641,
62,
67,
280,
7689,
796,
366,
7676,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1450,
338,
25287,
286,
1667,
1437,
46251,
385,
258,
6862,
1288,
8107,
427,
320,
7204,
46506,
285,
641,
62,
12215,
829,
16034,
3084,
62,
1065,
940,
3559,
1129,
62,
16,
33411,
1116,
641,
62,
67,
280,
7689,
796,
366,
7676,
1... |
what is marital status and age of subject name john gartman? | SELECT demographic.marital_status, demographic.age FROM demographic WHERE demographic.name = "John Gartman" | [
10919,
318,
29555,
3722,
290,
2479,
286,
2426,
1438,
45610,
308,
433,
805,
30,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
496,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
7554,
402,
433,
805,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
290,
2479,
286,
2426,
1438,
45610,
308,
433,
805,
30,
46506,
16728,
13,
3876,
1287,
62,
13376,
11,
16728,
13,
496,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
7554,
402,
433,
805,
1
] |
What is the first appearance of the character played by Obdul Reid? | SELECT first_appearance FROM table_26240046_1 WHERE played_by = "Obdul Reid" | [
2061,
318,
262,
717,
5585,
286,
262,
2095,
2826,
416,
1835,
67,
377,
16095,
30,
46506,
717,
62,
1324,
23435,
16034,
3084,
62,
2075,
1731,
405,
3510,
62,
16,
33411,
2826,
62,
1525,
796,
366,
5944,
67,
377,
16095,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
5585,
286,
262,
2095,
2826,
416,
1835,
67,
377,
16095,
30,
46506,
717,
62,
1324,
23435,
16034,
3084,
62,
2075,
1731,
405,
3510,
62,
16,
33411,
2826,
62,
1525,
796,
366,
5944,
67,
377,
16095,
1
] |
Who is #1 in each tag?. | SELECT TagName, DisplayName, tagcount FROM (SELECT TagName, DisplayName, tagcount, RANK() OVER (PARTITION BY TagName ORDER BY tagscore DESC) AS tagrank FROM (SELECT TagName, DisplayName, Tags.Count AS tagcount, SUM(answers.Score) AS tagscore FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts AS ... | [
8241,
318,
1303,
16,
287,
1123,
7621,
30,
13,
46506,
17467,
5376,
11,
16531,
5376,
11,
7621,
9127,
16034,
357,
46506,
17467,
5376,
11,
16531,
5376,
11,
7621,
9127,
11,
371,
15154,
3419,
28729,
357,
30709,
17941,
11050,
17467,
5376,
3867... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1303,
16,
287,
1123,
7621,
30,
13,
46506,
17467,
5376,
11,
16531,
5376,
11,
7621,
9127,
16034,
357,
46506,
17467,
5376,
11,
16531,
5376,
11,
7621,
9127,
11,
371,
15154,
3419,
28729,
357,
30709,
17941,
11050,
17467,
5376,
3867... |
What is the final score when the visiting team is the Washington Redskins and the date is September 4? | SELECT "Final Score" FROM table_53453 WHERE "Visiting Team" = 'washington redskins' AND "Date" = 'september 4' | [
2061,
318,
262,
2457,
4776,
618,
262,
10013,
1074,
318,
262,
2669,
22038,
290,
262,
3128,
318,
2693,
604,
30,
46506,
366,
19006,
15178,
1,
16034,
3084,
62,
4310,
36625,
33411,
366,
15854,
1780,
4816,
1,
796,
705,
86,
2542,
2266,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2457,
4776,
618,
262,
10013,
1074,
318,
262,
2669,
22038,
290,
262,
3128,
318,
2693,
604,
30,
46506,
366,
19006,
15178,
1,
16034,
3084,
62,
4310,
36625,
33411,
366,
15854,
1780,
4816,
1,
796,
705,
86,
2542,
2266,
82,
... |
history of severe hypoglycemia | SELECT * FROM table_train_243 WHERE hypoglycemia = 1 | [
23569,
286,
6049,
5328,
34619,
344,
20730,
46506,
1635,
16034,
3084,
62,
27432,
62,
26660,
33411,
5328,
34619,
344,
20730,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23569,
286,
6049,
5328,
34619,
344,
20730,
46506,
1635,
16034,
3084,
62,
27432,
62,
26660,
33411,
5328,
34619,
344,
20730,
796,
352
] |
Trust building: Average reputation of users that post answers. | SELECT answers.year, Average_reputation_answers = SUM(Reputation.SUM_GOLD / CAST(Answers.posts AS FLOAT)) OVER (ORDER BY Answers.year rows BETWEEN unbounded preceding AND CURRENT ROW) FROM (SELECT Year = DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0), Posts = COUNT(Id) FROM Posts WHERE PostTypeId = 2 GROUP BY DATE... | [
33814,
2615,
25,
13475,
8507,
286,
2985,
326,
1281,
7429,
13,
46506,
7429,
13,
1941,
11,
13475,
62,
260,
1996,
341,
62,
504,
86,
364,
796,
35683,
7,
6207,
7094,
13,
50,
5883,
62,
38,
15173,
1220,
327,
11262,
7,
2025,
37848,
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... | [
33814,
2615,
25,
13475,
8507,
286,
2985,
326,
1281,
7429,
13,
46506,
7429,
13,
1941,
11,
13475,
62,
260,
1996,
341,
62,
504,
86,
364,
796,
35683,
7,
6207,
7094,
13,
50,
5883,
62,
38,
15173,
1220,
327,
11262,
7,
2025,
37848,
13,
24... |
What team drove a Dodge vehicle? | SELECT "Team" FROM table_5446 WHERE "Make" = 'dodge' | [
2061,
1074,
10357,
257,
26048,
4038,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
20,
27260,
33411,
366,
12050,
1,
796,
705,
67,
9728,
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
] | [
2061,
1074,
10357,
257,
26048,
4038,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
20,
27260,
33411,
366,
12050,
1,
796,
705,
67,
9728,
6
] |
what surface was used before carpet ? | SELECT "surface" FROM table_204_520 WHERE id = (SELECT id FROM table_204_520 WHERE "surface" = 'carpet') - 1 | [
10919,
4417,
373,
973,
878,
20710,
5633,
46506,
366,
42029,
1,
16034,
3084,
62,
18638,
62,
31211,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
31211,
33411,
366,
42029,
1,
796,
705,
66,
5117,
316,
11537,
532,
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
] | [
10919,
4417,
373,
973,
878,
20710,
5633,
46506,
366,
42029,
1,
16034,
3084,
62,
18638,
62,
31211,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
31211,
33411,
366,
42029,
1,
796,
705,
66,
5117,
316,
11537,
532,
352
] |
For those employees who was hired before 2002-06-21, return a bar chart about the distribution of hire_date and the average of department_id bin hire_date by weekday. | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
13,
46506,
36210,
2200,
62,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
13,
46506,
36210,
2200,
62,
35,
... |
Who was the opponent with the time 3:59? | SELECT opponent FROM table_name_52 WHERE time = "3:59" | [
8241,
373,
262,
6125,
351,
262,
640,
513,
25,
3270,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
4309,
33411,
640,
796,
366,
18,
25,
3270,
1
] | [
1,
1,
1,
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,
6125,
351,
262,
640,
513,
25,
3270,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
4309,
33411,
640,
796,
366,
18,
25,
3270,
1
] |
provide the number of patients whose diagnoses long title is infection with microorganisms resistant to penicillins and lab test category is chemistry? | 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.long_title = "Infection with microorganisms resistant to penicillins" AND lab."CATEGORY" = "Chemistry" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
10280,
351,
4580,
45165,
18290,
284,
3112,
291,
359,
1040,
290,
2248,
1332,
6536,
318,
16585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
10280,
351,
4580,
45165,
18290,
284,
3112,
291,
359,
1040,
290,
2248,
1332,
6536,
318,
16585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,... |
Which song lasts 4:08? | SELECT "Song" FROM table_63571 WHERE "Length" = '4:08' | [
13828,
3496,
20374,
604,
25,
2919,
30,
46506,
366,
44241,
1,
16034,
3084,
62,
48250,
4869,
33411,
366,
24539,
1,
796,
705,
19,
25,
2919,
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
] | [
13828,
3496,
20374,
604,
25,
2919,
30,
46506,
366,
44241,
1,
16034,
3084,
62,
48250,
4869,
33411,
366,
24539,
1,
796,
705,
19,
25,
2919,
6
] |
What are the ids of the problems which are reported before 1978-06-26? | SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26" | [
2061,
389,
262,
220,
2340,
286,
262,
2761,
543,
389,
2098,
878,
15524,
12,
3312,
12,
2075,
30,
46506,
1917,
62,
312,
16034,
2761,
33411,
3128,
62,
45573,
62,
26263,
1279,
366,
37950,
12,
3312,
12,
2075,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
220,
2340,
286,
262,
2761,
543,
389,
2098,
878,
15524,
12,
3312,
12,
2075,
30,
46506,
1917,
62,
312,
16034,
2761,
33411,
3128,
62,
45573,
62,
26263,
1279,
366,
37950,
12,
3312,
12,
2075,
1
] |
Give me the comparison about the average of monthly_rental over the date_address_from bin date_address_from by time. | SELECT date_address_from, AVG(monthly_rental) FROM Student_Addresses ORDER BY monthly_rental DESC | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
9651,
62,
1156,
282,
625,
262,
3128,
62,
21975,
62,
6738,
9874,
3128,
62,
21975,
62,
6738,
416,
640,
13,
46506,
3128,
62,
21975,
62,
6738,
11,
35224,
7,
8424,
306,
62,
1156,
282,
8,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
9651,
62,
1156,
282,
625,
262,
3128,
62,
21975,
62,
6738,
9874,
3128,
62,
21975,
62,
6738,
416,
640,
13,
46506,
3128,
62,
21975,
62,
6738,
11,
35224,
7,
8424,
306,
62,
1156,
282,
8,
1603... |
What is the Purse in Sunland Park Track? | SELECT "Purse ( US$ )" FROM table_10941 WHERE "Track" = 'sunland park' | [
2061,
318,
262,
9330,
325,
287,
3825,
1044,
3250,
17762,
30,
46506,
366,
47,
12321,
357,
1294,
3,
1267,
1,
16034,
3084,
62,
14454,
3901,
33411,
366,
24802,
1,
796,
705,
19155,
1044,
3952,
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
] | [
2061,
318,
262,
9330,
325,
287,
3825,
1044,
3250,
17762,
30,
46506,
366,
47,
12321,
357,
1294,
3,
1267,
1,
16034,
3084,
62,
14454,
3901,
33411,
366,
24802,
1,
796,
705,
19155,
1044,
3952,
6
] |
What is the name of the partner that has a winner outcome and a hard surface? | SELECT "Partner" FROM table_4146 WHERE "Outcome" = 'Winner' AND "Surface" = 'Hard' | [
2061,
318,
262,
1438,
286,
262,
5212,
326,
468,
257,
8464,
8055,
290,
257,
1327,
4417,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
19,
20964,
33411,
366,
7975,
2958,
1,
796,
705,
48056,
6,
5357,
366,
14214,
2550,
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,
1438,
286,
262,
5212,
326,
468,
257,
8464,
8055,
290,
257,
1327,
4417,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
19,
20964,
33411,
366,
7975,
2958,
1,
796,
705,
48056,
6,
5357,
366,
14214,
2550,
1,
796,
705,
... |
what is average age of patients whose primary disease is t5 fracture and year of birth is greater than 2134? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "T5 FRACTURE" AND demographic.dob_year > "2134" | [
10919,
318,
2811,
2479,
286,
3871,
3025,
4165,
4369,
318,
256,
20,
31846,
290,
614,
286,
4082,
318,
3744,
621,
362,
19880,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
51,
20,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
2811,
2479,
286,
3871,
3025,
4165,
4369,
318,
256,
20,
31846,
290,
614,
286,
4082,
318,
3744,
621,
362,
19880,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
51,
20,
8... |
Which Date has a Set 1 of 25 20? | SELECT "Date" FROM table_44502 WHERE "Set 1" = '25–20' | [
13828,
7536,
468,
257,
5345,
352,
286,
1679,
1160,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2598,
35126,
33411,
366,
7248,
352,
1,
796,
705,
1495,
1906,
1238,
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
] | [
13828,
7536,
468,
257,
5345,
352,
286,
1679,
1160,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2598,
35126,
33411,
366,
7248,
352,
1,
796,
705,
1495,
1906,
1238,
6
] |
how many patients whose days of hospital stay is greater than 14 and diagnoses long title is neonatal jaundice associated with preterm delivery? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "14" AND diagnoses.long_title = "Neonatal jaundice associated with preterm delivery" | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1478,
290,
40567,
890,
3670,
318,
25988,
10254,
474,
14677,
501,
3917,
351,
662,
4354,
7585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1478,
290,
40567,
890,
3670,
318,
25988,
10254,
474,
14677,
501,
3917,
351,
662,
4354,
7585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... |
How many players have the hometown Pennsauken, NJ? | SELECT COUNT(player) FROM table_11677100_12 WHERE hometown = "Pennsauken, NJ" | [
2437,
867,
1938,
423,
262,
20994,
6595,
82,
559,
3464,
11,
18732,
30,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
1157,
40179,
3064,
62,
1065,
33411,
20994,
796,
366,
39899,
82,
559,
3464,
11,
18732,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1938,
423,
262,
20994,
6595,
82,
559,
3464,
11,
18732,
30,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
1157,
40179,
3064,
62,
1065,
33411,
20994,
796,
366,
39899,
82,
559,
3464,
11,
18732,
1
] |
What are the name of rooms booked by customers whose first name has 'ROY' in part, and count them by a bar chart, I want to show total number from high to low order. | SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName ORDER BY COUNT(roomName) DESC | [
2061,
389,
262,
1438,
286,
9519,
21765,
416,
4297,
3025,
717,
1438,
468,
705,
13252,
56,
6,
287,
636,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
905,
2472,
1271,
422,
1029,
284,
1877,
1502,
13,
46506,
2119,
5376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
9519,
21765,
416,
4297,
3025,
717,
1438,
468,
705,
13252,
56,
6,
287,
636,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
905,
2472,
1271,
422,
1029,
284,
1877,
1502,
13,
46506,
2119,
5376,
... |
what is patient 94293's daily average level of asparate aminotransferase (ast) during their first hospital encounter? | SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 94293 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = '... | [
10919,
318,
5827,
10048,
31675,
338,
4445,
2811,
1241,
286,
355,
1845,
378,
716,
259,
313,
26084,
2232,
589,
357,
459,
8,
1141,
511,
717,
4436,
8791,
30,
46506,
35224,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
10048,
31675,
338,
4445,
2811,
1241,
286,
355,
1845,
378,
716,
259,
313,
26084,
2232,
589,
357,
459,
8,
1141,
511,
717,
4436,
8791,
30,
46506,
35224,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411... |
Visualize a scatter chart about the correlation between ACC_Percent and All_Games_Percent , and group by attribute ACC_Regular_Season. | SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY ACC_Regular_Season | [
36259,
1096,
257,
41058,
8262,
546,
262,
16096,
1022,
15859,
62,
31905,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
15859,
62,
40164,
62,
18960,
13,
46506,
15859,
62,
31905,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
41058,
8262,
546,
262,
16096,
1022,
15859,
62,
31905,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
15859,
62,
40164,
62,
18960,
13,
46506,
15859,
62,
31905,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
... |
How many golds for uganda with under 3 total medals? | SELECT MAX(gold) FROM table_name_25 WHERE nation = "uganda" AND total < 3 | [
2437,
867,
3869,
82,
329,
334,
70,
5282,
351,
739,
513,
2472,
28057,
30,
46506,
25882,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
3277,
796,
366,
1018,
5282,
1,
5357,
2472,
1279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3869,
82,
329,
334,
70,
5282,
351,
739,
513,
2472,
28057,
30,
46506,
25882,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
3277,
796,
366,
1018,
5282,
1,
5357,
2472,
1279,
513
] |
What are the description and credit of the course which the student whose last name is Smithson took? | SELECT T4.crs_description, T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson' | [
2061,
389,
262,
6764,
290,
3884,
286,
262,
1781,
543,
262,
3710,
3025,
938,
1438,
318,
4176,
1559,
1718,
30,
46506,
309,
19,
13,
66,
3808,
62,
11213,
11,
309,
19,
13,
66,
3808,
62,
43082,
16034,
42715,
7054,
309,
16,
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... | [
2061,
389,
262,
6764,
290,
3884,
286,
262,
1781,
543,
262,
3710,
3025,
938,
1438,
318,
4176,
1559,
1718,
30,
46506,
309,
19,
13,
66,
3808,
62,
11213,
11,
309,
19,
13,
66,
3808,
62,
43082,
16034,
42715,
7054,
309,
16,
32357,
1268,
... |
During which years did the golfer with the total of 289 win? | SELECT year_s__won FROM table_name_42 WHERE total = 289 | [
7191,
543,
812,
750,
262,
43791,
2232,
351,
262,
2472,
286,
38902,
1592,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
3682,
33411,
2472,
796,
38902
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
7191,
543,
812,
750,
262,
43791,
2232,
351,
262,
2472,
286,
38902,
1592,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
3682,
33411,
2472,
796,
38902
] |
When Yale is listed as the regular season winner, what tournament venue is given? | SELECT "Tournament Venue (City)" FROM table_30506 WHERE "Regular Season Winner" = 'Yale' | [
2215,
19681,
318,
5610,
355,
262,
3218,
1622,
8464,
11,
644,
7756,
14359,
318,
1813,
30,
46506,
366,
51,
5138,
9932,
518,
357,
14941,
16725,
16034,
3084,
62,
1270,
35638,
33411,
366,
40164,
7369,
25358,
1,
796,
705,
56,
1000,
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
] | [
2215,
19681,
318,
5610,
355,
262,
3218,
1622,
8464,
11,
644,
7756,
14359,
318,
1813,
30,
46506,
366,
51,
5138,
9932,
518,
357,
14941,
16725,
16034,
3084,
62,
1270,
35638,
33411,
366,
40164,
7369,
25358,
1,
796,
705,
56,
1000,
6
] |
Find the name of customers whose credit score is below the average credit scores of all customers. | SELECT cust_name FROM customer WHERE credit_score < (SELECT AVG(credit_score) FROM customer) | [
16742,
262,
1438,
286,
4297,
3025,
3884,
4776,
318,
2174,
262,
2811,
3884,
8198,
286,
477,
4297,
13,
46506,
9378,
62,
3672,
16034,
6491,
33411,
3884,
62,
26675,
1279,
357,
46506,
35224,
7,
43082,
62,
26675,
8,
16034,
6491,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1438,
286,
4297,
3025,
3884,
4776,
318,
2174,
262,
2811,
3884,
8198,
286,
477,
4297,
13,
46506,
9378,
62,
3672,
16034,
6491,
33411,
3884,
62,
26675,
1279,
357,
46506,
35224,
7,
43082,
62,
26675,
8,
16034,
6491,
8
] |
What is the score for the match where the opponent in the final was james cerretani todd perry? | SELECT score FROM table_name_5 WHERE opponents_in_the_final = "james cerretani todd perry" | [
2061,
318,
262,
4776,
329,
262,
2872,
810,
262,
6125,
287,
262,
2457,
373,
474,
1047,
26074,
1186,
3216,
23646,
583,
563,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
20,
33411,
7691,
62,
259,
62,
1169,
62,
20311,
796,
366,
73,
1047,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
329,
262,
2872,
810,
262,
6125,
287,
262,
2457,
373,
474,
1047,
26074,
1186,
3216,
23646,
583,
563,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
20,
33411,
7691,
62,
259,
62,
1169,
62,
20311,
796,
366,
73,
1047,... |
i need information on flights from TORONTO to SAN DIEGO | 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 CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'TORONTO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DI... | [
72,
761,
1321,
319,
13956,
422,
40691,
1340,
10468,
284,
37376,
14766,
7156,
14058,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
761,
1321,
319,
13956,
422,
40691,
1340,
10468,
284,
37376,
14766,
7156,
14058,
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,... |
How many episodes originally aired on April 29, 2008? | SELECT COUNT(no_in_series) FROM table_13301516_1 WHERE original_air_date = "April 29, 2008" | [
2437,
867,
8640,
6198,
18530,
319,
3035,
2808,
11,
3648,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
25076,
8,
16034,
3084,
62,
16945,
25150,
1433,
62,
16,
33411,
2656,
62,
958,
62,
4475,
796,
366,
16784,
2808,
11,
3648,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8640,
6198,
18530,
319,
3035,
2808,
11,
3648,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
25076,
8,
16034,
3084,
62,
16945,
25150,
1433,
62,
16,
33411,
2656,
62,
958,
62,
4475,
796,
366,
16784,
2808,
11,
3648,
1
] |
Which Country has Entities of emsa? | SELECT "Country" FROM table_13307 WHERE "Entities" = 'emsa' | [
13828,
12946,
468,
7232,
871,
286,
795,
11400,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1485,
22996,
33411,
366,
14539,
871,
1,
796,
705,
5232,
64,
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
] | [
13828,
12946,
468,
7232,
871,
286,
795,
11400,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
1485,
22996,
33411,
366,
14539,
871,
1,
796,
705,
5232,
64,
6
] |
What competition had a final round in the finals and the final position winners? | SELECT "Competition" FROM table_69630 WHERE "Final Position" = 'winners' AND "Final Round" = 'finals' | [
2061,
5449,
550,
257,
2457,
2835,
287,
262,
18576,
290,
262,
2457,
2292,
14591,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
3388,
30005,
33411,
366,
19006,
23158,
1,
796,
705,
5404,
2741,
6,
5357,
366,
19006,
10485,
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
] | [
2061,
5449,
550,
257,
2457,
2835,
287,
262,
18576,
290,
262,
2457,
2292,
14591,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
3388,
30005,
33411,
366,
19006,
23158,
1,
796,
705,
5404,
2741,
6,
5357,
366,
19006,
10485,
1,
796,
705,
... |
What is 1st Party, when 2nd Party is 'Conservative', when 2nd Member is 'Samuel Hammersley', and when Election is '1931'? | SELECT "1st Party" FROM table_12819 WHERE "2nd Party" = 'conservative' AND "2nd Member" = 'samuel hammersley' AND "Election" = '1931' | [
2061,
318,
352,
301,
3615,
11,
618,
362,
358,
3615,
318,
705,
42039,
3256,
618,
362,
358,
10239,
318,
705,
16305,
2731,
4345,
11056,
1636,
3256,
290,
618,
14219,
318,
705,
1129,
3132,
30960,
46506,
366,
16,
301,
3615,
1,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
352,
301,
3615,
11,
618,
362,
358,
3615,
318,
705,
42039,
3256,
618,
362,
358,
10239,
318,
705,
16305,
2731,
4345,
11056,
1636,
3256,
290,
618,
14219,
318,
705,
1129,
3132,
30960,
46506,
366,
16,
301,
3615,
1,
16034,
3084,
... |
What is the total share of transactions? | SELECT SUM(share_count) FROM TRANSACTIONS | [
2061,
318,
262,
2472,
2648,
286,
8945,
30,
46506,
35683,
7,
20077,
62,
9127,
8,
16034,
44069,
10659,
11053
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
2648,
286,
8945,
30,
46506,
35683,
7,
20077,
62,
9127,
8,
16034,
44069,
10659,
11053
] |
what is the date of vacancy when the manner of departure is contract terminated, the position in table is 23rd and the date of appointment is 31 december 2008? | SELECT "Date of vacancy" FROM table_13551 WHERE "Manner of departure" = 'contract terminated' AND "Position in table" = '23rd' AND "Date of appointment" = '31 december 2008' | [
10919,
318,
262,
3128,
286,
39836,
618,
262,
5642,
286,
12928,
318,
2775,
23083,
11,
262,
2292,
287,
3084,
318,
2242,
4372,
290,
262,
3128,
286,
12557,
318,
3261,
390,
3273,
3648,
30,
46506,
366,
10430,
286,
39836,
1,
16034,
3084,
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,
318,
262,
3128,
286,
39836,
618,
262,
5642,
286,
12928,
318,
2775,
23083,
11,
262,
2292,
287,
3084,
318,
2242,
4372,
290,
262,
3128,
286,
12557,
318,
3261,
390,
3273,
3648,
30,
46506,
366,
10430,
286,
39836,
1,
16034,
3084,
62,... |
I want the constructor for divina galica rounds of 1-2 | SELECT constructor FROM table_name_54 WHERE rounds = "1-2" AND driver = "divina galica" | [
40,
765,
262,
23772,
329,
2659,
1437,
9426,
3970,
9196,
286,
352,
12,
17,
46506,
23772,
16034,
3084,
62,
3672,
62,
4051,
33411,
9196,
796,
366,
16,
12,
17,
1,
5357,
4639,
796,
366,
7146,
1437,
9426,
3970,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23772,
329,
2659,
1437,
9426,
3970,
9196,
286,
352,
12,
17,
46506,
23772,
16034,
3084,
62,
3672,
62,
4051,
33411,
9196,
796,
366,
16,
12,
17,
1,
5357,
4639,
796,
366,
7146,
1437,
9426,
3970,
1
] |
Who were the candidates in the Louisiana 4 district? | SELECT candidates FROM table_1341604_19 WHERE district = "Louisiana 4" | [
8241,
547,
262,
5871,
287,
262,
13340,
604,
4783,
30,
46506,
5871,
16034,
3084,
62,
19880,
1433,
3023,
62,
1129,
33411,
4783,
796,
366,
32117,
7484,
604,
1
] | [
1,
1,
1,
1,
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,
547,
262,
5871,
287,
262,
13340,
604,
4783,
30,
46506,
5871,
16034,
3084,
62,
19880,
1433,
3023,
62,
1129,
33411,
4783,
796,
366,
32117,
7484,
604,
1
] |
Which set 3 has a Time of 10:00, and a Score of 3 2, and a Total of 113 102? | SELECT "Set 3" FROM table_71108 WHERE "Time" = '10:00' AND "Score" = '3–2' AND "Total" = '113–102' | [
13828,
900,
513,
468,
257,
3862,
286,
838,
25,
405,
11,
290,
257,
15178,
286,
513,
362,
11,
290,
257,
7472,
286,
17318,
15143,
30,
46506,
366,
7248,
513,
1,
16034,
3084,
62,
4869,
15711,
33411,
366,
7575,
1,
796,
705,
940,
25,
405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
900,
513,
468,
257,
3862,
286,
838,
25,
405,
11,
290,
257,
15178,
286,
513,
362,
11,
290,
257,
7472,
286,
17318,
15143,
30,
46506,
366,
7248,
513,
1,
16034,
3084,
62,
4869,
15711,
33411,
366,
7575,
1,
796,
705,
940,
25,
405... |
Which Score has a Date of june 22? | SELECT score FROM table_name_80 WHERE date = "june 22" | [
13828,
15178,
468,
257,
7536,
286,
474,
1726,
2534,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
1795,
33411,
3128,
796,
366,
73,
1726,
2534,
1
] | [
1,
1,
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,
15178,
468,
257,
7536,
286,
474,
1726,
2534,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
1795,
33411,
3128,
796,
366,
73,
1726,
2534,
1
] |
SO - Mobile OS - Android. | SELECT COUNT(*) AS PostCount, YEAR(P.CreationDate), MONTH(P.CreationDate) FROM Posts AS P INNER JOIN PostTags AS PT ON (P.Id = PT.PostId) INNER JOIN Tags AS T ON (PT.TagId = T.Id) WHERE T.TagName LIKE ('%android%') GROUP BY YEAR(P.CreationDate), MONTH(P.CreationDate) ORDER BY 2 DESC, 3 DESC | [
15821,
532,
12173,
7294,
532,
5565,
13,
46506,
327,
28270,
7,
28104,
7054,
2947,
12332,
11,
32914,
7,
47,
13,
12443,
341,
10430,
828,
25000,
4221,
7,
47,
13,
12443,
341,
10430,
8,
16034,
12043,
7054,
350,
3268,
21479,
32357,
1268,
294... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15821,
532,
12173,
7294,
532,
5565,
13,
46506,
327,
28270,
7,
28104,
7054,
2947,
12332,
11,
32914,
7,
47,
13,
12443,
341,
10430,
828,
25000,
4221,
7,
47,
13,
12443,
341,
10430,
8,
16034,
12043,
7054,
350,
3268,
21479,
32357,
1268,
294... |
Are there any courses taught by Prof. Nicholas Gaudio ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Nicholas Gaudio%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id... | [
8491,
612,
597,
10902,
7817,
416,
4415,
13,
20320,
402,
24051,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8491,
612,
597,
10902,
7817,
416,
4415,
13,
20320,
402,
24051,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
... |
which NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)? | SELECT nhl_team FROM table_name_63 WHERE college_junior_club_team__league_ = "shattuck-saint mary's school (midget major aaa)" | [
4758,
9481,
1074,
468,
257,
5535,
14,
22396,
1504,
14,
42350,
4816,
357,
24623,
8,
286,
427,
1078,
1347,
12,
82,
2913,
285,
560,
338,
1524,
357,
13602,
1136,
1688,
257,
7252,
19427,
46506,
299,
18519,
62,
15097,
16034,
3084,
62,
3672,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9481,
1074,
468,
257,
5535,
14,
22396,
1504,
14,
42350,
4816,
357,
24623,
8,
286,
427,
1078,
1347,
12,
82,
2913,
285,
560,
338,
1524,
357,
13602,
1136,
1688,
257,
7252,
19427,
46506,
299,
18519,
62,
15097,
16034,
3084,
62,
3672,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.