instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What are the titles of the episodes which had 1.10 million U.S. viewers? | SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = "1.10" | [
2061,
389,
262,
8714,
286,
262,
8640,
543,
550,
352,
13,
940,
1510,
471,
13,
50,
13,
10209,
30,
46506,
3670,
16034,
3084,
62,
25429,
2079,
40271,
62,
19,
33411,
514,
62,
1177,
364,
834,
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
] | [
2061,
389,
262,
8714,
286,
262,
8640,
543,
550,
352,
13,
940,
1510,
471,
13,
50,
13,
10209,
30,
46506,
3670,
16034,
3084,
62,
25429,
2079,
40271,
62,
19,
33411,
514,
62,
1177,
364,
834,
259
] |
How many categories of Senate Seats does Emile Roemer have? | SELECT COUNT(senate_seats) FROM table_158282_1 WHERE political_leader = "Emile Roemer" | [
2437,
867,
9376,
286,
3845,
1001,
1381,
857,
2295,
576,
5564,
24677,
423,
30,
46506,
327,
28270,
7,
6248,
378,
62,
325,
1381,
8,
16034,
3084,
62,
21273,
32568,
62,
16,
33411,
1964,
62,
27940,
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
] | [
2437,
867,
9376,
286,
3845,
1001,
1381,
857,
2295,
576,
5564,
24677,
423,
30,
46506,
327,
28270,
7,
6248,
378,
62,
325,
1381,
8,
16034,
3084,
62,
21273,
32568,
62,
16,
33411,
1964,
62,
27940,
796
] |
tell me the top five frequent input events in this year? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE DATETIME(inputevents_cv.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY inputevents_cv.it... | [
33331,
502,
262,
1353,
1936,
10792,
5128,
2995,
287,
428,
614,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1353,
1936,
10792,
5128,
2995,
287,
428,
614,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186
] |
2D Histogram of number of questions vs. number of answers for users. | SELECT Idx, COUNT(*) AS "occurence" FROM (SELECT nQ * '##n1:int?150##' + nA AS "idx" FROM (SELECT SUM(CASE WHEN p.PostTypeId = 1 THEN 1 ELSE 0 END) AS "nq", SUM(CASE WHEN p.PostTypeId = 2 THEN 1 ELSE 0 END) AS "na" FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id WHERE p.ClosedDate IS NULL GROUP BY u.Id) A... | [
17,
35,
5590,
21857,
286,
1271,
286,
2683,
3691,
13,
1271,
286,
7429,
329,
2985,
13,
46506,
5121,
87,
11,
327,
28270,
7,
28104,
7054,
366,
13966,
495,
1198,
1,
16034,
357,
46506,
299,
48,
1635
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17,
35,
5590,
21857,
286,
1271,
286,
2683,
3691,
13,
1271,
286,
7429,
329,
2985,
13,
46506,
5121,
87,
11,
327,
28270,
7,
28104,
7054,
366,
13966,
495,
1198,
1,
16034,
357,
46506,
299,
48,
1635
] |
How many copies were sold where the position is lager than 1 in 1988? | SELECT copies_sold FROM table_name_85 WHERE oricon_position > 1 AND year = 1988 | [
2437,
867,
9088,
547,
2702,
810,
262,
2292,
318,
300,
3536,
621,
352,
287,
12122,
30,
46506,
9088,
62,
24120,
16034,
3084,
62,
3672,
62,
5332,
33411,
393,
4749,
62,
9150,
1875,
352,
5357,
614,
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
] | [
2437,
867,
9088,
547,
2702,
810,
262,
2292,
318,
300,
3536,
621,
352,
287,
12122,
30,
46506,
9088,
62,
24120,
16034,
3084,
62,
3672,
62,
5332,
33411,
393,
4749,
62,
9150,
1875,
352,
5357,
614,
796
] |
What is the surface for the year 2001? | SELECT "Surface" FROM table_25944 WHERE "Year" = '2001' | [
2061,
318,
262,
4417,
329,
262,
614,
5878,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
25191,
2598,
33411,
366,
17688,
1,
796,
705,
14585,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
318,
262,
4417,
329,
262,
614,
5878,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
25191,
2598,
33411,
366,
17688,
1,
796,
705,
14585,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What city has a stadium with a capacity of more than 13,602, and 2011 12 season of 16th in lega pro prima divisione a? | SELECT "City" FROM table_10242 WHERE "Capacity" > '13,602' AND "2011\u201312 season" = '16th in lega pro prima divisione a' | [
2061,
1748,
468,
257,
10308,
351,
257,
5339,
286,
517,
621,
1511,
11,
31418,
11,
290,
2813,
1105,
1622,
286,
1467,
400,
287,
1232,
64,
386,
2684,
64,
7297,
68,
257,
30,
46506,
366,
14941,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
468,
257,
10308,
351,
257,
5339,
286,
517,
621,
1511,
11,
31418,
11,
290,
2813,
1105,
1622,
286,
1467,
400,
287,
1232,
64,
386,
2684,
64,
7297,
68,
257,
30,
46506,
366,
14941,
1
] |
What is the A-side for it Never Entered My Mind, Part 2? | SELECT "A-side" FROM table_64257 WHERE "B-side" = 'it never entered my mind, part 2' | [
2061,
318,
262,
317,
12,
1589,
329,
340,
7236,
22542,
2011,
10175,
11,
2142,
362,
30,
46506,
366,
32,
12,
1589,
1,
16034,
3084,
62,
2414,
28676,
33411,
366,
33,
12,
1589,
1,
796,
705,
270
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
317,
12,
1589,
329,
340,
7236,
22542,
2011,
10175,
11,
2142,
362,
30,
46506,
366,
32,
12,
1589,
1,
16034,
3084,
62,
2414,
28676,
33411,
366,
33,
12,
1589,
1,
796,
705,
270
] |
Which college has 41 picks? | SELECT college FROM table_name_86 WHERE pick__number = 41 | [
13828,
4152,
468,
6073,
11103,
30,
46506,
4152,
16034,
3084,
62,
3672,
62,
4521,
33411,
2298,
834,
17618,
796,
6073,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
13828,
4152,
468,
6073,
11103,
30,
46506,
4152,
16034,
3084,
62,
3672,
62,
4521,
33411,
2298,
834,
17618,
796,
6073,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What are the least Top-5 finish when the events are greater than 18? | SELECT MIN("Top-5") FROM table_42615 WHERE "Events" > '18' | [
2061,
389,
262,
1551,
5849,
12,
20,
5461,
618,
262,
2995,
389,
3744,
621,
1248,
30,
46506,
20625,
7203,
9126,
12,
20,
4943,
16034,
3084,
62,
42780,
1314,
33411,
366,
37103,
1,
1875,
705,
1507,
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
] | [
2061,
389,
262,
1551,
5849,
12,
20,
5461,
618,
262,
2995,
389,
3744,
621,
1248,
30,
46506,
20625,
7203,
9126,
12,
20,
4943,
16034,
3084,
62,
42780,
1314,
33411,
366,
37103,
1,
1875,
705,
1507,
6
] |
For each account type, find the average account balance of customers with credit score lower than 50 Show bar chart, show by the y-axis in ascending. | SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type ORDER BY AVG(acc_bal) | [
1890,
1123,
1848,
2099,
11,
1064,
262,
2811,
1848,
5236,
286,
4297,
351,
3884,
4776,
2793,
621,
2026,
5438,
2318,
8262,
11,
905,
416,
262,
331,
12,
22704,
287,
41988,
13,
46506,
697,
62,
4906,
11
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
1848,
2099,
11,
1064,
262,
2811,
1848,
5236,
286,
4297,
351,
3884,
4776,
2793,
621,
2026,
5438,
2318,
8262,
11,
905,
416,
262,
331,
12,
22704,
287,
41988,
13,
46506,
697,
62,
4906,
11
] |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and code , and group by attribute founder, rank y axis from high to low order. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name 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,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
4279,
331,
16488,
422,
1029,
284
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
4279,
331,
16488,
422,
1029,
284
] |
WHAT PICK HAD STEVE HAMILTON IN ROUND LARGER THAN 2? | SELECT COUNT("Pick") FROM table_8859 WHERE "Name" = 'steve hamilton' AND "Round" > '2' | [
32971,
350,
11860,
367,
2885,
24483,
6089,
48079,
4146,
11357,
3268,
371,
15919,
47211,
30373,
2320,
1565,
362,
30,
46506,
327,
28270,
7203,
31686,
4943,
16034,
3084,
62,
3459,
3270,
33411,
366,
5376,
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
] | [
32971,
350,
11860,
367,
2885,
24483,
6089,
48079,
4146,
11357,
3268,
371,
15919,
47211,
30373,
2320,
1565,
362,
30,
46506,
327,
28270,
7203,
31686,
4943,
16034,
3084,
62,
3459,
3270,
33411,
366,
5376,
1,
796,
705
] |
Give me a bar chart for how many date of transaction of each date of transaction | SELECT date_of_transaction, COUNT(date_of_transaction) FROM Transactions | [
23318,
502,
257,
2318,
8262,
329,
703,
867,
3128,
286,
8611,
286,
1123,
3128,
286,
8611,
46506,
3128,
62,
1659,
62,
7645,
2673,
11,
327,
28270,
7,
4475,
62,
1659,
62,
7645,
2673,
8,
16034,
46192
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2318,
8262,
329,
703,
867,
3128,
286,
8611,
286,
1123,
3128,
286,
8611,
46506,
3128,
62,
1659,
62,
7645,
2673,
11,
327,
28270,
7,
4475,
62,
1659,
62,
7645,
2673,
8,
16034,
46192
] |
For those records from the products and each product's manufacturer, visualize the relationship between manufacturer and revenue , and group by attribute founder. | SELECT Manufacturer, Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
262,
2776,
1022,
11554,
290,
6426,
837,
290,
1448,
416,
11688,
9119,
13,
46506,
40218,
11,
20197,
16034,
18675,
7054,
309,
16,
32357
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38350,
262,
2776,
1022,
11554,
290,
6426,
837,
290,
1448,
416,
11688,
9119,
13,
46506,
40218,
11,
20197,
16034,
18675,
7054,
309,
16,
32357
] |
For a Team 1 of Al-Merrikh, what was the aggregate? | SELECT agg FROM table_name_47 WHERE team_1 = "al-merrikh" | [
1890,
257,
4816,
352,
286,
978,
12,
13102,
12602,
71,
11,
644,
373,
262,
19406,
30,
46506,
4194,
16034,
3084,
62,
3672,
62,
2857,
33411,
1074,
62,
16,
796,
366,
282,
12,
647,
12602,
71,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
4816,
352,
286,
978,
12,
13102,
12602,
71,
11,
644,
373,
262,
19406,
30,
46506,
4194,
16034,
3084,
62,
3672,
62,
2857,
33411,
1074,
62,
16,
796,
366,
282,
12,
647,
12602,
71,
1
] |
What is the score of the game when the New York Rangers were the home team? | SELECT "Score" FROM table_56609 WHERE "Home" = 'new york rangers' | [
2061,
318,
262,
4776,
286,
262,
983,
618,
262,
968,
1971,
13804,
547,
262,
1363,
1074,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3980,
31751,
33411,
366,
16060,
1,
796,
705,
3605,
331,
967,
374
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
983,
618,
262,
968,
1971,
13804,
547,
262,
1363,
1074,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3980,
31751,
33411,
366,
16060,
1,
796,
705,
3605,
331,
967,
374
] |
How many incumbents were first elected in 1984? | SELECT COUNT(incumbent) FROM table_1341453_40 WHERE first_elected = "1984" | [
2437,
867,
19742,
658,
547,
717,
7018,
287,
12844,
30,
46506,
327,
28270,
7,
1939,
2178,
298,
8,
16034,
3084,
62,
19880,
1415,
4310,
62,
1821,
33411,
717,
62,
28604,
796,
366,
28296,
1,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
2437,
867,
19742,
658,
547,
717,
7018,
287,
12844,
30,
46506,
327,
28270,
7,
1939,
2178,
298,
8,
16034,
3084,
62,
19880,
1415,
4310,
62,
1821,
33411,
717,
62,
28604,
796,
366,
28296,
1,
50256,
50256
] |
If category 1 is 0.05, what is category 3? | SELECT category_3 FROM table_name_77 WHERE category_1 = 0.05 | [
1532,
6536,
352,
318,
657,
13,
2713,
11,
644,
318,
6536,
513,
30,
46506,
6536,
62,
18,
16034,
3084,
62,
3672,
62,
3324,
33411,
6536,
62,
16,
796,
657,
13,
2713,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
1532,
6536,
352,
318,
657,
13,
2713,
11,
644,
318,
6536,
513,
30,
46506,
6536,
62,
18,
16034,
3084,
62,
3672,
62,
3324,
33411,
6536,
62,
16,
796,
657,
13,
2713,
50256,
50256,
50256,
50256,
50256
] |
What is the venue of the game with Man of the Match Vaclav Zavoral? | SELECT venue FROM table_17120964_8 WHERE man_of_the_match = "Vaclav Zavoral" | [
2061,
318,
262,
14359,
286,
262,
983,
351,
1869,
286,
262,
13225,
25709,
18809,
1168,
5570,
282,
30,
46506,
14359,
16034,
3084,
62,
1558,
1065,
2931,
2414,
62,
23,
33411,
582,
62,
1659,
62,
1169,
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
] | [
2061,
318,
262,
14359,
286,
262,
983,
351,
1869,
286,
262,
13225,
25709,
18809,
1168,
5570,
282,
30,
46506,
14359,
16034,
3084,
62,
1558,
1065,
2931,
2414,
62,
23,
33411,
582,
62,
1659,
62,
1169,
62
] |
indicate the daily maximum arterial bp [diastolic] of patient 5544 in 04/this year. | SELECT MAX(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5544)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arter... | [
521,
5344,
262,
4445,
5415,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
5996,
2598,
287,
8702,
14,
5661,
614,
13,
46506,
25882,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
521,
5344,
262,
4445,
5415,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
5996,
2598,
287,
8702,
14,
5661,
614,
13,
46506,
25882,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262
] |
What is the Draw for the team of tramwajarz d ? | SELECT "Draw" FROM table_41180 WHERE "Team" = 'tramwajarz łódź' | [
2061,
318,
262,
15315,
329,
262,
1074,
286,
29957,
86,
1228,
283,
89,
288,
5633,
46506,
366,
25302,
1,
16034,
3084,
62,
42224,
1795,
33411,
366,
15592,
1,
796,
705,
83,
859,
86,
1228,
283,
89
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
15315,
329,
262,
1074,
286,
29957,
86,
1228,
283,
89,
288,
5633,
46506,
366,
25302,
1,
16034,
3084,
62,
42224,
1795,
33411,
366,
15592,
1,
796,
705,
83,
859,
86,
1228,
283,
89
] |
For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the average of employee_id , and group by attribute job_id, I want to display x axis in descending order. | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688
] |
Name the format for 12cm note and catalog of alca-9198 | SELECT "Format" FROM table_66875 WHERE "Note" = '12cm' AND "Catalog" = 'alca-9198' | [
5376,
262,
5794,
329,
1105,
11215,
3465,
290,
18388,
286,
435,
6888,
12,
24,
22337,
46506,
366,
26227,
1,
16034,
3084,
62,
2791,
31360,
33411,
366,
6425,
1,
796,
705,
1065,
11215,
6,
5357,
366,
49015
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5794,
329,
1105,
11215,
3465,
290,
18388,
286,
435,
6888,
12,
24,
22337,
46506,
366,
26227,
1,
16034,
3084,
62,
2791,
31360,
33411,
366,
6425,
1,
796,
705,
1065,
11215,
6,
5357,
366,
49015
] |
Give me the best french in san francisco ? | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'san francisco' AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id AND restaurant.rating = (SELECT MAX(RESTAURANTalias1.rating) FROM location AS LOCATIONalias1, restaurant AS RESTAURANTalias1 W... | [
23318,
502,
262,
1266,
48718,
287,
5336,
46754,
4861,
5633,
46506,
4067,
13,
4803,
62,
17618,
11,
7072,
13,
3672,
16034,
4067,
11,
7072,
33411,
4067,
13,
19205,
62,
3672,
796,
705,
12807,
46754,
4861,
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
] | [
23318,
502,
262,
1266,
48718,
287,
5336,
46754,
4861,
5633,
46506,
4067,
13,
4803,
62,
17618,
11,
7072,
13,
3672,
16034,
4067,
11,
7072,
33411,
4067,
13,
19205,
62,
3672,
796,
705,
12807,
46754,
4861,
6
] |
when did patient 20441 get admitted to the hospital via the hospital er admit for the last time since 4 years ago? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 20441 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY admissions.admittime DESC LIMIT 1 | [
12518,
750,
5827,
1160,
39710,
651,
6848,
284,
262,
4436,
2884,
262,
4436,
1931,
9159,
329,
262,
938,
640,
1201,
604,
812,
2084,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
5827,
1160,
39710,
651,
6848,
284,
262,
4436,
2884,
262,
4436,
1931,
9159,
329,
262,
938,
640,
1201,
604,
812,
2084,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796
] |
How many dvd releases where directed by david decoteau? | SELECT COUNT("DVD release") FROM table_23475 WHERE "Director" = 'David DeCoteau' | [
2437,
867,
288,
20306,
10050,
810,
7924,
416,
21970,
875,
1258,
559,
30,
46506,
327,
28270,
7203,
39218,
2650,
4943,
16034,
3084,
62,
24409,
2425,
33411,
366,
28702,
1,
796,
705,
11006,
1024,
34,
1258,
559
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
20306,
10050,
810,
7924,
416,
21970,
875,
1258,
559,
30,
46506,
327,
28270,
7203,
39218,
2650,
4943,
16034,
3084,
62,
24409,
2425,
33411,
366,
28702,
1,
796,
705,
11006,
1024,
34,
1258,
559
] |
What was the result on 1990-11-04? | SELECT result FROM table_name_55 WHERE date = "1990-11-04" | [
2061,
373,
262,
1255,
319,
6303,
12,
1157,
12,
3023,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2816,
33411,
3128,
796,
366,
19891,
12,
1157,
12,
3023,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
373,
262,
1255,
319,
6303,
12,
1157,
12,
3023,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2816,
33411,
3128,
796,
366,
19891,
12,
1157,
12,
3023,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
How many winning drivers were there in the race that had a fastest lap time of 56.920? | SELECT COUNT(winning_driver) FROM table_10706961_2 WHERE fastest_lap = "56.920" | [
2437,
867,
5442,
6643,
547,
612,
287,
262,
3234,
326,
550,
257,
14162,
14779,
640,
286,
7265,
13,
37128,
30,
46506,
327,
28270,
7,
14463,
62,
26230,
8,
16034,
3084,
62,
940,
2154,
3388,
5333,
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
] | [
2437,
867,
5442,
6643,
547,
612,
287,
262,
3234,
326,
550,
257,
14162,
14779,
640,
286,
7265,
13,
37128,
30,
46506,
327,
28270,
7,
14463,
62,
26230,
8,
16034,
3084,
62,
940,
2154,
3388,
5333,
62
] |
What is the venue when melbourne is the away team? | SELECT "Venue" FROM table_33004 WHERE "Away team" = 'melbourne' | [
2061,
318,
262,
14359,
618,
7758,
12544,
318,
262,
1497,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2091,
22914,
33411,
366,
32,
1014,
1074,
1,
796,
705,
17694,
12544,
6,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
2061,
318,
262,
14359,
618,
7758,
12544,
318,
262,
1497,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2091,
22914,
33411,
366,
32,
1014,
1074,
1,
796,
705,
17694,
12544,
6,
50256,
50256,
50256
] |
Round 1 of beat lee janzen 3&2, and a Year smaller than 1998 has what total number of place? | SELECT COUNT("Place") FROM table_69469 WHERE "Round 1" = 'beat lee janzen 3&2' AND "Year" < '1998' | [
22685,
352,
286,
4405,
443,
68,
42897,
4801,
513,
5,
17,
11,
290,
257,
6280,
4833,
621,
7795,
468,
644,
2472,
1271,
286,
1295,
30,
46506,
327,
28270,
7203,
27271,
4943,
16034,
3084,
62,
3388,
42947
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22685,
352,
286,
4405,
443,
68,
42897,
4801,
513,
5,
17,
11,
290,
257,
6280,
4833,
621,
7795,
468,
644,
2472,
1271,
286,
1295,
30,
46506,
327,
28270,
7203,
27271,
4943,
16034,
3084,
62,
3388,
42947
] |
what are the different role codes for users, and how many users have each?, and sort from high to low by the Y. | SELECT role_code, COUNT(*) FROM Users GROUP BY role_code ORDER BY COUNT(*) DESC | [
10919,
389,
262,
1180,
2597,
12416,
329,
2985,
11,
290,
703,
867,
2985,
423,
1123,
21747,
290,
3297,
422,
1029,
284,
1877,
416,
262,
575,
13,
46506,
2597,
62,
8189,
11,
327,
28270,
7,
28104,
16034
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
1180,
2597,
12416,
329,
2985,
11,
290,
703,
867,
2985,
423,
1123,
21747,
290,
3297,
422,
1029,
284,
1877,
416,
262,
575,
13,
46506,
2597,
62,
8189,
11,
327,
28270,
7,
28104,
16034
] |
What is the 2nd leg that Team 1 is Union Berlin? | SELECT 2 AS nd_leg FROM table_name_46 WHERE team_1 = "union berlin" | [
2061,
318,
262,
362,
358,
1232,
326,
4816,
352,
318,
4479,
11307,
30,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
3510,
33411,
1074,
62,
16,
796,
366,
24592,
18157,
2815,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
362,
358,
1232,
326,
4816,
352,
318,
4479,
11307,
30,
46506,
362,
7054,
299,
67,
62,
1455,
16034,
3084,
62,
3672,
62,
3510,
33411,
1074,
62,
16,
796,
366,
24592,
18157,
2815,
1
] |
SELECT * FROM posts WHERE Id < 50000 AND Score >= 5 AND Tags IS NOT NULL. | SELECT * FROM Posts WHERE Id < 50000 AND Score >= 5 AND NOT Tags IS NULL | [
46506,
1635,
16034,
6851,
33411,
5121,
1279,
642,
2388,
5357,
15178,
18189,
642,
5357,
44789,
3180,
5626,
15697,
13,
46506,
1635,
16034,
12043,
33411,
5121,
1279,
642,
2388,
5357,
15178,
18189,
642,
5357,
5626,
44789,
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
] | [
46506,
1635,
16034,
6851,
33411,
5121,
1279,
642,
2388,
5357,
15178,
18189,
642,
5357,
44789,
3180,
5626,
15697,
13,
46506,
1635,
16034,
12043,
33411,
5121,
1279,
642,
2388,
5357,
15178,
18189,
642,
5357,
5626,
44789,
3180
] |
other than 1999 , what year did ken harnden win second place ? | SELECT "year" FROM table_204_395 WHERE "year" <> 1999 AND "position" = 2 | [
847,
621,
7358,
837,
644,
614,
750,
479,
268,
3971,
358,
268,
1592,
1218,
1295,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
31010,
33411,
366,
1941,
1,
1279,
29,
7358,
5357,
366,
9150
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
847,
621,
7358,
837,
644,
614,
750,
479,
268,
3971,
358,
268,
1592,
1218,
1295,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
31010,
33411,
366,
1941,
1,
1279,
29,
7358,
5357,
366,
9150
] |
What was the Partner on February 23, 1997? | SELECT partner FROM table_name_91 WHERE date = "february 23, 1997" | [
2061,
373,
262,
35532,
319,
3945,
2242,
11,
8309,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
6420,
33411,
3128,
796,
366,
69,
1765,
3728,
2242,
11,
8309,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
373,
262,
35532,
319,
3945,
2242,
11,
8309,
30,
46506,
5212,
16034,
3084,
62,
3672,
62,
6420,
33411,
3128,
796,
366,
69,
1765,
3728,
2242,
11,
8309,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What is Fuzzy Zoeller's To par? | SELECT to_par FROM table_name_29 WHERE player = "fuzzy zoeller" | [
2061,
318,
376,
4715,
88,
31645,
12368,
338,
1675,
1582,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
1959,
33411,
2137,
796,
366,
69,
4715,
88,
40565,
12368,
1,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
2061,
318,
376,
4715,
88,
31645,
12368,
338,
1675,
1582,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
1959,
33411,
2137,
796,
366,
69,
4715,
88,
40565,
12368,
1,
50256,
50256,
50256,
50256,
50256
] |
how many patients until 2104 were diagnosed with pneumothorax - spontaneous? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'pneumothorax - spontaneous' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104') | [
4919,
867,
3871,
1566,
362,
13464,
547,
14641,
351,
29631,
849,
273,
897,
532,
25319,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
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
] | [
4919,
867,
3871,
1566,
362,
13464,
547,
14641,
351,
29631,
849,
273,
897,
532,
25319,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13
] |
What is them two (the two) when we two is ngalbelpa? | SELECT "them two (the two)" FROM table_15990 WHERE "we two" = 'ngalbelpa' | [
2061,
318,
606,
734,
357,
1169,
734,
8,
618,
356,
734,
318,
299,
13528,
6667,
8957,
30,
46506,
366,
18855,
734,
357,
1169,
734,
16725,
16034,
3084,
62,
1314,
34155,
33411,
366,
732,
734,
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
] | [
2061,
318,
606,
734,
357,
1169,
734,
8,
618,
356,
734,
318,
299,
13528,
6667,
8957,
30,
46506,
366,
18855,
734,
357,
1169,
734,
16725,
16034,
3084,
62,
1314,
34155,
33411,
366,
732,
734,
1,
796
] |
Who directed the episode with production code 693-004? | SELECT directed_by FROM table_26982362_2 WHERE production_code = "693-004" | [
8241,
7924,
262,
4471,
351,
3227,
2438,
718,
6052,
12,
22914,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
2075,
4089,
1954,
5237,
62,
17,
33411,
3227,
62,
8189,
796,
366,
48528,
12,
22914,
1,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
8241,
7924,
262,
4471,
351,
3227,
2438,
718,
6052,
12,
22914,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
2075,
4089,
1954,
5237,
62,
17,
33411,
3227,
62,
8189,
796,
366,
48528,
12,
22914,
1,
50256
] |
Who won the French Open in 1999? | SELECT player FROM table_197638_6 WHERE french_open = 1999 | [
8241,
1839,
262,
4141,
4946,
287,
7358,
30,
46506,
2137,
16034,
3084,
62,
38108,
2548,
62,
21,
33411,
48718,
62,
9654,
796,
7358,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
8241,
1839,
262,
4141,
4946,
287,
7358,
30,
46506,
2137,
16034,
3084,
62,
38108,
2548,
62,
21,
33411,
48718,
62,
9654,
796,
7358,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, find job_id and employee_id , and visualize them by a bar chart. | SELECT JOB_ID, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
1693,
62,
312,
290,
6538,
62,
312,
837,
290,
38350,
606,
416,
257,
2318,
8262
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
1693,
62,
312,
290,
6538,
62,
312,
837,
290,
38350,
606,
416,
257,
2318,
8262
] |
When the away team was Geelong, what was the home team score? | SELECT "Home team score" FROM table_4846 WHERE "Away team" = 'geelong' | [
2215,
262,
1497,
1074,
373,
2269,
21537,
11,
644,
373,
262,
1363,
1074,
4776,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
2780,
3510,
33411,
366,
32,
1014,
1074,
1,
796,
705,
469,
21537
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1497,
1074,
373,
2269,
21537,
11,
644,
373,
262,
1363,
1074,
4776,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
2780,
3510,
33411,
366,
32,
1014,
1074,
1,
796,
705,
469,
21537
] |
what was the name of the last intake that patient 016-3041 had on 03/18/last year. | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-3041')) AND intakeoutput.cellpath LIKE '%intake%' AND DA... | [
10919,
373,
262,
1438,
286,
262,
938,
10337,
326,
5827,
5534,
21,
12,
1270,
3901,
550,
319,
7643,
14,
1507,
14,
12957,
614,
13,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
938,
10337,
326,
5827,
5534,
21,
12,
1270,
3901,
550,
319,
7643,
14,
1507,
14,
12957,
614,
13,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915
] |
What Junior Marquee team is Harry Kewell of? | SELECT "Junior Marquee player" FROM table_67336 WHERE "Captain" = 'harry kewell' | [
2061,
20000,
28382,
1453,
1074,
318,
5850,
509,
413,
695,
286,
30,
46506,
366,
22396,
1504,
28382,
1453,
2137,
1,
16034,
3084,
62,
3134,
29211,
33411,
366,
27898,
1,
796,
705,
71,
6532,
885,
4053,
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
] | [
2061,
20000,
28382,
1453,
1074,
318,
5850,
509,
413,
695,
286,
30,
46506,
366,
22396,
1504,
28382,
1453,
2137,
1,
16034,
3084,
62,
3134,
29211,
33411,
366,
27898,
1,
796,
705,
71,
6532,
885,
4053,
6
] |
What are the ids and details of events that have more than one participants, and I want to rank in descending by the X-axis. | SELECT T1.Event_Details, T1.Event_ID FROM Events AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_Details ORDER BY T1.Event_Details DESC | [
2061,
389,
262,
220,
2340,
290,
3307,
286,
2995,
326,
423,
517,
621,
530,
6809,
11,
290,
314,
765,
284,
4279,
287,
31491,
416,
262,
1395,
12,
22704,
13,
46506,
309,
16,
13,
9237,
62,
24259
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
290,
3307,
286,
2995,
326,
423,
517,
621,
530,
6809,
11,
290,
314,
765,
284,
4279,
287,
31491,
416,
262,
1395,
12,
22704,
13,
46506,
309,
16,
13,
9237,
62,
24259
] |
Which nominating festival did Bosnia and Herzegovina enter? | SELECT nominating_festival FROM table_name_62 WHERE country = "bosnia and herzegovina" | [
13828,
48833,
10876,
750,
34292,
290,
34321,
1533,
709,
1437,
3802,
30,
46506,
48833,
62,
69,
6743,
16034,
3084,
62,
3672,
62,
5237,
33411,
1499,
796,
366,
39565,
18142,
290,
607,
89,
1533,
709,
1437,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
48833,
10876,
750,
34292,
290,
34321,
1533,
709,
1437,
3802,
30,
46506,
48833,
62,
69,
6743,
16034,
3084,
62,
3672,
62,
5237,
33411,
1499,
796,
366,
39565,
18142,
290,
607,
89,
1533,
709,
1437,
1
] |
Which airport has SEB as its IATA code? | SELECT "Airport" FROM table_40887 WHERE "IATA" = 'seb' | [
13828,
9003,
468,
7946,
33,
355,
663,
314,
13563,
2438,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
1821,
46660,
33411,
366,
40,
13563,
1,
796,
705,
325,
65,
6,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
13828,
9003,
468,
7946,
33,
355,
663,
314,
13563,
2438,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
1821,
46660,
33411,
366,
40,
13563,
1,
796,
705,
325,
65,
6,
50256,
50256,
50256,
50256,
50256
] |
For those dates with a max temperature greater than or equal to 80, I want to see the number of days for each year using a bar chart, and show in asc by the total number. | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f >= 80 ORDER BY COUNT(date) | [
1890,
883,
9667,
351,
257,
3509,
5951,
3744,
621,
393,
4961,
284,
4019,
11,
314,
765,
284,
766,
262,
1271,
286,
1528,
329,
1123,
614,
1262,
257,
2318,
8262,
11,
290,
905,
287,
10570,
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
] | [
1890,
883,
9667,
351,
257,
3509,
5951,
3744,
621,
393,
4961,
284,
4019,
11,
314,
765,
284,
766,
262,
1271,
286,
1528,
329,
1123,
614,
1262,
257,
2318,
8262,
11,
290,
905,
287,
10570,
416,
262
] |
What is the total gold in Norway with more than 1 bronze? | SELECT SUM(gold) FROM table_name_84 WHERE nation = "norway" AND bronze > 1 | [
2061,
318,
262,
2472,
3869,
287,
15238,
351,
517,
621,
352,
22101,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
5705,
33411,
3277,
796,
366,
13099,
1014,
1,
5357,
22101,
1875,
352,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
2061,
318,
262,
2472,
3869,
287,
15238,
351,
517,
621,
352,
22101,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
5705,
33411,
3277,
796,
366,
13099,
1014,
1,
5357,
22101,
1875,
352,
50256
] |
Specify the ethnic origin of patient id 3623 along with the primary disease | SELECT demographic.ethnicity, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "3623" | [
22882,
1958,
262,
9450,
8159,
286,
5827,
4686,
4570,
1954,
1863,
351,
262,
4165,
4369,
46506,
16728,
13,
38546,
414,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2623
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22882,
1958,
262,
9450,
8159,
286,
5827,
4686,
4570,
1954,
1863,
351,
262,
4165,
4369,
46506,
16728,
13,
38546,
414,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2623
] |
Which years in Orlando are featured with the center position? | SELECT years_in_orlando FROM table_name_11 WHERE position = "center" | [
13828,
812,
287,
13117,
389,
8096,
351,
262,
3641,
2292,
30,
46506,
812,
62,
259,
62,
273,
11993,
16034,
3084,
62,
3672,
62,
1157,
33411,
2292,
796,
366,
16159,
1,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
13828,
812,
287,
13117,
389,
8096,
351,
262,
3641,
2292,
30,
46506,
812,
62,
259,
62,
273,
11993,
16034,
3084,
62,
3672,
62,
1157,
33411,
2292,
796,
366,
16159,
1,
50256,
50256,
50256,
50256,
50256,
50256
] |
was the value of patient 016-38131's bun last measured on the current hospital visit less than they were first measured on the current hospital visit? | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'bun' ... | [
9776,
262,
1988,
286,
5827,
5534,
21,
12,
2548,
22042,
338,
28773,
938,
8630,
319,
262,
1459,
4436,
3187,
1342,
621,
484,
547,
717,
8630,
319,
262,
1459,
4436,
3187,
30,
46506,
357,
46506,
2248,
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
] | [
9776,
262,
1988,
286,
5827,
5534,
21,
12,
2548,
22042,
338,
28773,
938,
8630,
319,
262,
1459,
4436,
3187,
1342,
621,
484,
547,
717,
8630,
319,
262,
1459,
4436,
3187,
30,
46506,
357,
46506,
2248,
13
] |
Which % GDP has a Year smaller than 2011, and an Expenditure larger than 41.3, and an Income smaller than 48, and a Surplus(Deficit) of (24.6)? | SELECT _percentage_gdp FROM table_name_19 WHERE year < 2011 AND expenditure > 41.3 AND income < 48 AND surplus_deficit_ = "(24.6)" | [
13828,
4064,
12396,
468,
257,
6280,
4833,
621,
2813,
11,
290,
281,
48623,
8089,
4025,
621,
6073,
13,
18,
11,
290,
281,
19003,
4833,
621,
4764,
11,
290,
257,
4198,
9541,
7,
7469,
3628,
8,
286
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4064,
12396,
468,
257,
6280,
4833,
621,
2813,
11,
290,
281,
48623,
8089,
4025,
621,
6073,
13,
18,
11,
290,
281,
19003,
4833,
621,
4764,
11,
290,
257,
4198,
9541,
7,
7469,
3628,
8,
286
] |
What is the highest Game when Morris Peterson (8) had the high assists? | SELECT MAX(game) FROM table_name_81 WHERE high_assists = "morris peterson (8)" | [
2061,
318,
262,
4511,
3776,
618,
14433,
18914,
357,
23,
8,
550,
262,
1029,
13648,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
1029,
62,
562,
1023,
796,
366,
4491,
2442
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
3776,
618,
14433,
18914,
357,
23,
8,
550,
262,
1029,
13648,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
1029,
62,
562,
1023,
796,
366,
4491,
2442
] |
Name the explanation by rank is 10 | SELECT explanation FROM table_2026548_1 WHERE rank_by_time_in_office = 10 | [
5376,
262,
7468,
416,
4279,
318,
838,
46506,
7468,
16034,
3084,
62,
1238,
22980,
2780,
62,
16,
33411,
4279,
62,
1525,
62,
2435,
62,
259,
62,
31810,
796,
838,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
5376,
262,
7468,
416,
4279,
318,
838,
46506,
7468,
16034,
3084,
62,
1238,
22980,
2780,
62,
16,
33411,
4279,
62,
1525,
62,
2435,
62,
259,
62,
31810,
796,
838,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What is the country with a rank less than 2? | SELECT country FROM table_name_98 WHERE rank < 2 | [
2061,
318,
262,
1499,
351,
257,
4279,
1342,
621,
362,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
4089,
33411,
4279,
1279,
362,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
318,
262,
1499,
351,
257,
4279,
1342,
621,
362,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
4089,
33411,
4279,
1279,
362,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of manufacturer , and group by attribute name, show in ascending by the y-axis. | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1438,
290,
262,
2160,
286,
11554,
837,
290,
1448,
416,
11688,
1438,
11,
905,
287,
41988,
416
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
1438,
290,
262,
2160,
286,
11554,
837,
290,
1448,
416,
11688,
1438,
11,
905,
287,
41988,
416
] |
Find all suggested edits made by a user. | SELECT Id, PostId AS "post_link", CreationDate, ApprovalDate, RejectionDate, Comment FROM SuggestedEdits WHERE OwnerUserId = '##UserId##' | [
16742,
477,
5220,
31671,
925,
416,
257,
2836,
13,
46506,
5121,
11,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
21582,
10430,
11,
20010,
2100,
10430,
11,
797,
29192,
10430,
11,
18957,
16034,
35042,
276,
7407
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
5220,
31671,
925,
416,
257,
2836,
13,
46506,
5121,
11,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
21582,
10430,
11,
20010,
2100,
10430,
11,
797,
29192,
10430,
11,
18957,
16034,
35042,
276,
7407
] |
provide the number of patients whose age is less than 83 and days of hospital stay is greater than 0? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "83" AND demographic.days_stay > "0" | [
15234,
485,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
9698,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
657,
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
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
9698,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
657,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8
] |
What's the release date in the 1.1.10 release? | SELECT "Release date" FROM table_30590 WHERE "Release" = '1.1.10' | [
2061,
338,
262,
2650,
3128,
287,
262,
352,
13,
16,
13,
940,
2650,
30,
46506,
366,
26362,
3128,
1,
16034,
3084,
62,
1270,
36993,
33411,
366,
26362,
1,
796,
705,
16,
13,
16,
13,
940,
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
] | [
2061,
338,
262,
2650,
3128,
287,
262,
352,
13,
16,
13,
940,
2650,
30,
46506,
366,
26362,
3128,
1,
16034,
3084,
62,
1270,
36993,
33411,
366,
26362,
1,
796,
705,
16,
13,
16,
13,
940,
6
] |
give the number of patients who speak russian and were discahrged at home. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "RUSS" AND demographic.discharge_location = "HOME" | [
26535,
262,
1271,
286,
3871,
508,
2740,
374,
31562,
290,
547,
1221,
993,
81,
2004,
379,
1363,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
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
] | [
26535,
262,
1271,
286,
3871,
508,
2740,
374,
31562,
290,
547,
1221,
993,
81,
2004,
379,
1363,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728
] |
What is the tier IV year for the tournament held in Tampa? | SELECT tier_iv_in FROM table_20630462_1 WHERE tournament = "Tampa" | [
2061,
318,
262,
14249,
8363,
614,
329,
262,
7756,
2714,
287,
15528,
30,
46506,
14249,
62,
452,
62,
259,
16034,
3084,
62,
22136,
1270,
39997,
62,
16,
33411,
7756,
796,
366,
51,
13299,
1,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
2061,
318,
262,
14249,
8363,
614,
329,
262,
7756,
2714,
287,
15528,
30,
46506,
14249,
62,
452,
62,
259,
16034,
3084,
62,
22136,
1270,
39997,
62,
16,
33411,
7756,
796,
366,
51,
13299,
1,
50256,
50256
] |
How many strokes for arnold palmer with a to par of greater than 9? | SELECT AVG(total) FROM table_name_69 WHERE to_par > 9 AND player = "arnold palmer" | [
2437,
867,
29483,
329,
610,
77,
727,
6340,
647,
351,
257,
284,
1582,
286,
3744,
621,
860,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
3388,
33411,
284,
62,
1845,
1875,
860,
5357
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29483,
329,
610,
77,
727,
6340,
647,
351,
257,
284,
1582,
286,
3744,
621,
860,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
3388,
33411,
284,
62,
1845,
1875,
860,
5357
] |
what's the name of the specimen test that patient 031-3355 first received in this month? | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND DATETIME(microlab.culturetakentime, 'start of month') ... | [
10919,
338,
262,
1438,
286,
262,
31674,
1332,
326,
5827,
657,
3132,
12,
2091,
2816,
717,
2722,
287,
428,
1227,
30,
46506,
4580,
23912,
13,
40820,
942,
578,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
1438,
286,
262,
31674,
1332,
326,
5827,
657,
3132,
12,
2091,
2816,
717,
2722,
287,
428,
1227,
30,
46506,
4580,
23912,
13,
40820,
942,
578,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029
] |
How many hours do the players train on average? | SELECT AVG(hs) FROM player | [
2437,
867,
2250,
466,
262,
1938,
4512,
319,
2811,
30,
46506,
35224,
7,
11994,
8,
16034,
2137,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2437,
867,
2250,
466,
262,
1938,
4512,
319,
2811,
30,
46506,
35224,
7,
11994,
8,
16034,
2137,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
in what venues does chasins publish ? | SELECT DISTINCT paper.journalid, venue.venueid FROM author, paper, venue, writes WHERE author.authorname = 'chasins' AND venue.venueid = paper.venueid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
259,
644,
22276,
857,
442,
292,
1040,
7715,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
24891,
312,
11,
14359,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
14359,
11,
6797,
33411,
1772,
13,
18439,
1211
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
644,
22276,
857,
442,
292,
1040,
7715,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
24891,
312,
11,
14359,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
14359,
11,
6797,
33411,
1772,
13,
18439,
1211
] |
how many patients died within the same month after being diagnosed until 2102 with drug overdose- general? | SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'drug overdose- general') AS t1 GROUP BY t1.uniquepid HAVING MIN(... | [
4919,
867,
3871,
3724,
1626,
262,
976,
1227,
706,
852,
14641,
1566,
362,
15377,
351,
2563,
27357,
12,
2276,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
17,
13,
403,
1557,
538,
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
] | [
4919,
867,
3871,
3724,
1626,
262,
976,
1227,
706,
852,
14641,
1566,
362,
15377,
351,
2563,
27357,
12,
2276,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
17,
13,
403,
1557,
538,
312,
8
] |
Give me the comparison about the average of Height over the Sex , and group by attribute Sex, and sort y-axis in desc order please. | SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY AVG(Height) DESC | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
27280,
625,
262,
14419,
837,
290,
1448,
416,
11688,
14419,
11,
290,
3297,
331,
12,
22704,
287,
1715,
1502,
3387,
13,
46506,
14419,
11,
35224,
7,
23106,
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
] | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
27280,
625,
262,
14419,
837,
290,
1448,
416,
11688,
14419,
11,
290,
3297,
331,
12,
22704,
287,
1715,
1502,
3387,
13,
46506,
14419,
11,
35224,
7,
23106,
8
] |
What's the median family income with a household income of $25,583? | SELECT median_family_income FROM table_name_72 WHERE median_household_income = "$25,583" | [
2061,
338,
262,
14288,
1641,
3739,
351,
257,
6641,
3739,
286,
720,
1495,
11,
46239,
30,
46506,
14288,
62,
17989,
62,
12519,
16034,
3084,
62,
3672,
62,
4761,
33411,
14288,
62,
4803,
2946,
62,
12519,
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
] | [
2061,
338,
262,
14288,
1641,
3739,
351,
257,
6641,
3739,
286,
720,
1495,
11,
46239,
30,
46506,
14288,
62,
17989,
62,
12519,
16034,
3084,
62,
3672,
62,
4761,
33411,
14288,
62,
4803,
2946,
62,
12519,
796
] |
How many Pos have a Driver of todd bodine, and a Car # larger than 30? | SELECT COUNT(pos) FROM table_name_49 WHERE driver = "todd bodine" AND car__number > 30 | [
2437,
867,
18574,
423,
257,
12434,
286,
23646,
16429,
500,
11,
290,
257,
1879,
1303,
4025,
621,
1542,
30,
46506,
327,
28270,
7,
1930,
8,
16034,
3084,
62,
3672,
62,
2920,
33411,
4639,
796,
366,
83
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18574,
423,
257,
12434,
286,
23646,
16429,
500,
11,
290,
257,
1879,
1303,
4025,
621,
1542,
30,
46506,
327,
28270,
7,
1930,
8,
16034,
3084,
62,
3672,
62,
2920,
33411,
4639,
796,
366,
83
] |
Return a bar chart showing the minimum room count of apartments in different type, and I want to show by the bars in descending. | SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code ORDER BY apt_type_code DESC | [
13615,
257,
2318,
8262,
4478,
262,
5288,
2119,
954,
286,
19592,
287,
1180,
2099,
11,
290,
314,
765,
284,
905,
416,
262,
9210,
287,
31491,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
20625,
7,
3823
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
2318,
8262,
4478,
262,
5288,
2119,
954,
286,
19592,
287,
1180,
2099,
11,
290,
314,
765,
284,
905,
416,
262,
9210,
287,
31491,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
20625,
7,
3823
] |
Q1-1 What is the most number of comments on a single post?. | SELECT CommentCount, Id, COUNT(*) FROM Posts GROUP BY Id, CommentCount HAVING COUNT(*) > 1 ORDER BY COUNT(*) DESC | [
48,
16,
12,
16,
1867,
318,
262,
749,
1271,
286,
3651,
319,
257,
2060,
1281,
30,
13,
46506,
18957,
12332,
11,
5121,
11,
327,
28270,
7,
28104,
16034,
12043,
44441,
11050,
5121,
11,
18957,
12332,
367
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
48,
16,
12,
16,
1867,
318,
262,
749,
1271,
286,
3651,
319,
257,
2060,
1281,
30,
13,
46506,
18957,
12332,
11,
5121,
11,
327,
28270,
7,
28104,
16034,
12043,
44441,
11050,
5121,
11,
18957,
12332,
367
] |
Short unanswered questions with zero score. | SELECT Id AS "post_link" FROM Posts WHERE AnswerCount = 0 AND Score = 0 ORDER BY LENGTH(Body) | [
16438,
34001,
2683,
351,
6632,
4776,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
33411,
23998,
12332,
796,
657,
5357,
15178,
796,
657,
38678,
11050,
406,
49494,
7,
25842,
8,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
16438,
34001,
2683,
351,
6632,
4776,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
33411,
23998,
12332,
796,
657,
5357,
15178,
796,
657,
38678,
11050,
406,
49494,
7,
25842,
8,
50256,
50256,
50256
] |
What is the home team which plays at a venue called Win Entertainment Centre? | SELECT home_team FROM table_name_34 WHERE venue = "win entertainment centre" | [
2061,
318,
262,
1363,
1074,
543,
5341,
379,
257,
14359,
1444,
7178,
11058,
9072,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2682,
33411,
14359,
796,
366,
5404,
9739,
7372,
1,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
2061,
318,
262,
1363,
1074,
543,
5341,
379,
257,
14359,
1444,
7178,
11058,
9072,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2682,
33411,
14359,
796,
366,
5404,
9739,
7372,
1,
50256,
50256,
50256
] |
Provide me the list of patients with pr drug route that were born before 2071. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2071" AND prescriptions.route = "PR" | [
15946,
485,
502,
262,
1351,
286,
3871,
351,
778,
2563,
6339,
326,
547,
4642,
878,
1160,
4869,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15946,
485,
502,
262,
1351,
286,
3871,
351,
778,
2563,
6339,
326,
547,
4642,
878,
1160,
4869,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479
] |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of founder and the sum of code , and group by attribute founder, display total number of code from high to low order. | 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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
3359,
2472,
1271
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
3359,
2472,
1271
] |
count the number of patients who got a chloride test in the last year. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'chloride') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start ... | [
9127,
262,
1271,
286,
3871,
508,
1392,
257,
44921,
1332,
287,
262,
938,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
508,
1392,
257,
44921,
1332,
287,
262,
938,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76
] |
What is the date of game 5? | SELECT "Date" FROM table_2298 WHERE "#" = '5' | [
2061,
318,
262,
3128,
286,
983,
642,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1828,
4089,
33411,
25113,
1,
796,
705,
20,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
318,
262,
3128,
286,
983,
642,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1828,
4089,
33411,
25113,
1,
796,
705,
20,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What was the date administered from a source of Rasmussen Reports and a lead margin over 32? | SELECT dates_administered FROM table_name_19 WHERE poll_source = "rasmussen reports" AND lead_margin > 32 | [
2061,
373,
262,
3128,
17169,
422,
257,
2723,
286,
46549,
17905,
290,
257,
1085,
10330,
625,
3933,
30,
46506,
9667,
62,
39081,
1068,
16034,
3084,
62,
3672,
62,
1129,
33411,
3278,
62,
10459,
796,
366,
81
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
17169,
422,
257,
2723,
286,
46549,
17905,
290,
257,
1085,
10330,
625,
3933,
30,
46506,
9667,
62,
39081,
1068,
16034,
3084,
62,
3672,
62,
1129,
33411,
3278,
62,
10459,
796,
366,
81
] |
what's the tries against with tries for being 47 | SELECT "Tries against" FROM table_568 WHERE "Tries for" = '47' | [
10919,
338,
262,
8404,
1028,
351,
8404,
329,
852,
6298,
46506,
366,
51,
1678,
1028,
1,
16034,
3084,
62,
49211,
33411,
366,
51,
1678,
329,
1,
796,
705,
2857,
6,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
10919,
338,
262,
8404,
1028,
351,
8404,
329,
852,
6298,
46506,
366,
51,
1678,
1028,
1,
16034,
3084,
62,
49211,
33411,
366,
51,
1678,
329,
1,
796,
705,
2857,
6,
50256,
50256,
50256,
50256,
50256,
50256
] |
On which week was the opponent the oakland raiders? | SELECT SUM("Week") FROM table_51128 WHERE "Opponent" = 'oakland raiders' | [
2202,
543,
1285,
373,
262,
6125,
262,
26210,
1044,
9513,
364,
30,
46506,
35683,
7203,
20916,
4943,
16034,
3084,
62,
4349,
12762,
33411,
366,
27524,
3471,
1,
796,
705,
15877,
1044,
9513,
364,
6,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
2202,
543,
1285,
373,
262,
6125,
262,
26210,
1044,
9513,
364,
30,
46506,
35683,
7203,
20916,
4943,
16034,
3084,
62,
4349,
12762,
33411,
366,
27524,
3471,
1,
796,
705,
15877,
1044,
9513,
364,
6,
50256,
50256
] |
What is the score of the match on June 4, 2008? | SELECT score FROM table_name_76 WHERE date = "june 4, 2008" | [
2061,
318,
262,
4776,
286,
262,
2872,
319,
2795,
604,
11,
3648,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4304,
33411,
3128,
796,
366,
73,
1726,
604,
11,
3648,
1,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [
2061,
318,
262,
4776,
286,
262,
2872,
319,
2795,
604,
11,
3648,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4304,
33411,
3128,
796,
366,
73,
1726,
604,
11,
3648,
1,
50256,
50256,
50256,
50256,
50256
] |
Name the country where % change on year is 21 and value is less than 86 | SELECT "Country" FROM table_68344 WHERE "Debt as % of value" < '86' AND "% change on year" = '21' | [
5376,
262,
1499,
810,
4064,
1487,
319,
614,
318,
2310,
290,
1988,
318,
1342,
621,
9849,
46506,
366,
33921,
1,
16034,
3084,
62,
3104,
33535,
33411,
366,
16587,
83,
355,
4064,
286,
1988,
1,
1279,
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
] | [
5376,
262,
1499,
810,
4064,
1487,
319,
614,
318,
2310,
290,
1988,
318,
1342,
621,
9849,
46506,
366,
33921,
1,
16034,
3084,
62,
3104,
33535,
33411,
366,
16587,
83,
355,
4064,
286,
1988,
1,
1279,
705
] |
What is the original of the ipa ( s o paulo ) translation d t i t mad su m n ? | SELECT translation FROM table_23915_4 WHERE ipa___são_paulo__ = "dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə" | [
2061,
318,
262,
2656,
286,
262,
20966,
64,
357,
264,
267,
279,
2518,
78,
1267,
11059,
288,
256,
1312,
256,
8805,
424,
285,
299,
5633,
46506,
11059,
16034,
3084,
62,
23516,
1314,
62,
19,
33411,
20966
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
286,
262,
20966,
64,
357,
264,
267,
279,
2518,
78,
1267,
11059,
288,
256,
1312,
256,
8805,
424,
285,
299,
5633,
46506,
11059,
16034,
3084,
62,
23516,
1314,
62,
19,
33411,
20966
] |
Where did Luke Clark publish in 2013 | SELECT DISTINCT paper.venueid FROM author, paper, writes WHERE author.authorname = 'Luke Clark' AND paper.year = 2013 AND writes.authorid = author.authorid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
8496,
750,
11336,
11264,
7715,
287,
2211,
46506,
360,
8808,
1268,
4177,
3348,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
30730,
11264,
6,
5357,
3348,
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
] | [
8496,
750,
11336,
11264,
7715,
287,
2211,
46506,
360,
8808,
1268,
4177,
3348,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
30730,
11264,
6,
5357,
3348,
13
] |
Select Users with most combined PostHistory, Comments and Votes. | SELECT u.Id, u.Location, u.CreationDate, u.LastAccessDate, p.CreationDate, COALESCE(p.activity, 0) + COALESCE(c.activity, 0) + COALESCE(v.activity, 0) AS activity FROM Users AS u LEFT JOIN (SELECT UserId, CreationDate, COUNT(Id) AS activity FROM PostHistory GROUP BY UserId, CreationDate) AS p ON (p.UserId = u.Id) LEFT ... | [
17563,
18987,
351,
749,
5929,
2947,
18122,
11,
19502,
290,
39584,
13,
46506,
334,
13,
7390,
11,
334,
13,
14749,
11,
334,
13,
12443,
341,
10430,
11,
334,
13,
5956,
15457,
10430,
11,
279,
13,
12443
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17563,
18987,
351,
749,
5929,
2947,
18122,
11,
19502,
290,
39584,
13,
46506,
334,
13,
7390,
11,
334,
13,
14749,
11,
334,
13,
12443,
341,
10430,
11,
334,
13,
5956,
15457,
10430,
11,
279,
13,
12443
] |
Return a scatter chart about the correlation between School_ID and ACC_Percent , and group by attribute All_Games. | SELECT School_ID, ACC_Percent FROM basketball_match GROUP BY All_Games | [
13615,
257,
41058,
8262,
546,
262,
16096,
1022,
3961,
62,
2389,
290,
15859,
62,
31905,
837,
290,
1448,
416,
11688,
1439,
62,
24474,
13,
46506,
3961,
62,
2389,
11,
15859,
62,
31905,
16034,
9669,
62,
15699
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15859,
62,
31905,
837,
290,
1448,
416,
11688,
1439,
62,
24474,
13,
46506,
3961,
62,
2389,
11,
15859,
62,
31905,
16034,
9669,
62,
15699
] |
What is the average pick # from the Quebec Major Junior Hockey League player Samuel Carrier? | SELECT AVG(pick__number) FROM table_name_11 WHERE league_from = "quebec major junior hockey league" AND player = "samuel carrier" | [
2061,
318,
262,
2811,
2298,
1303,
422,
262,
14778,
8386,
20000,
17277,
4041,
2137,
17100,
30252,
30,
46506,
35224,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
1157,
33411,
4652,
62,
6738,
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
] | [
2061,
318,
262,
2811,
2298,
1303,
422,
262,
14778,
8386,
20000,
17277,
4041,
2137,
17100,
30252,
30,
46506,
35224,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
1157,
33411,
4652,
62,
6738,
796,
366
] |
What is the sum of attendance for the games played at Los Angeles Rams? | SELECT SUM("Attendance") FROM table_43544 WHERE "Opponent" = 'at los angeles rams' | [
2061,
318,
262,
2160,
286,
14858,
329,
262,
1830,
2826,
379,
5401,
5652,
16077,
30,
46506,
35683,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
40064,
2598,
33411,
366,
27524,
3471,
1,
796,
705,
265,
22346
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
14858,
329,
262,
1830,
2826,
379,
5401,
5652,
16077,
30,
46506,
35683,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
40064,
2598,
33411,
366,
27524,
3471,
1,
796,
705,
265,
22346
] |
The episode which originally aired on February 11, 2005 had which episode # of the season? | SELECT no_in_season FROM table_228973_11 WHERE original_air_date = "February 11, 2005" | [
464,
4471,
543,
6198,
18530,
319,
3945,
1367,
11,
5075,
550,
543,
4471,
1303,
286,
262,
1622,
30,
46506,
645,
62,
259,
62,
6230,
16034,
3084,
62,
1828,
4531,
4790,
62,
1157,
33411,
2656,
62,
958
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
543,
6198,
18530,
319,
3945,
1367,
11,
5075,
550,
543,
4471,
1303,
286,
262,
1622,
30,
46506,
645,
62,
259,
62,
6230,
16034,
3084,
62,
1828,
4531,
4790,
62,
1157,
33411,
2656,
62,
958
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the average of code , and group by attribute founder, could you rank from high to low by the Founder? | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
714,
345,
4279
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
714,
345,
4279
] |
the two drivers on t sport are clivio piccione and what other driver ? | SELECT "driver" FROM table_204_808 WHERE "driver" <> 'clivio piccione' AND "team" = 't-sport' | [
1169,
734,
6643,
319,
256,
6332,
389,
537,
452,
952,
8301,
66,
7935,
290,
644,
584,
4639,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
18638,
62,
28362,
33411,
366,
26230,
1,
1279,
29,
705,
565
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1169,
734,
6643,
319,
256,
6332,
389,
537,
452,
952,
8301,
66,
7935,
290,
644,
584,
4639,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
18638,
62,
28362,
33411,
366,
26230,
1,
1279,
29,
705,
565
] |
what was the last weight for patient 27964 in 08/this year? | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27964)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt'... | [
10919,
373,
262,
938,
3463,
329,
5827,
39466,
2414,
287,
8487,
14,
5661,
614,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
938,
3463,
329,
5827,
39466,
2414,
287,
8487,
14,
5661,
614,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357
] |
What Metric value has a Unit of dolia? | SELECT metric_value FROM table_name_4 WHERE unit = "dolia" | [
2061,
3395,
1173,
1988,
468,
257,
11801,
286,
288,
22703,
30,
46506,
18663,
62,
8367,
16034,
3084,
62,
3672,
62,
19,
33411,
4326,
796,
366,
67,
22703,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
3395,
1173,
1988,
468,
257,
11801,
286,
288,
22703,
30,
46506,
18663,
62,
8367,
16034,
3084,
62,
3672,
62,
19,
33411,
4326,
796,
366,
67,
22703,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
For those employees who was hired before 2002-06-21, show me about the correlation between employee_id and department_id in a scatter chart. | SELECT EMPLOYEE_ID, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
905,
502,
546,
262,
16096,
1022,
6538,
62,
312,
290,
5011,
62,
312,
287,
257,
41058,
8262,
13,
46506,
17228,
6489,
21414,
6500
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
905,
502,
546,
262,
16096,
1022,
6538,
62,
312,
290,
5011,
62,
312,
287,
257,
41058,
8262,
13,
46506,
17228,
6489,
21414,
6500
] |
What is the result for rounds under 2 against D.J. Linderman? | SELECT "Res." FROM table_78355 WHERE "Round" < '2' AND "Opponent" = 'd.j. linderman' | [
2061,
318,
262,
1255,
329,
9196,
739,
362,
1028,
360,
13,
41,
13,
9329,
2224,
30,
46506,
366,
4965,
526,
16034,
3084,
62,
3695,
28567,
33411,
366,
22685,
1,
1279,
705,
17,
6,
5357,
366,
27524
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
329,
9196,
739,
362,
1028,
360,
13,
41,
13,
9329,
2224,
30,
46506,
366,
4965,
526,
16034,
3084,
62,
3695,
28567,
33411,
366,
22685,
1,
1279,
705,
17,
6,
5357,
366,
27524
] |
who is the constructor when the grid is more than 23 and the driver is piercarlo ghinzani? | SELECT constructor FROM table_name_66 WHERE grid > 23 AND driver = "piercarlo ghinzani" | [
8727,
318,
262,
23772,
618,
262,
10706,
318,
517,
621,
2242,
290,
262,
4639,
318,
17748,
7718,
5439,
308,
20079,
89,
3216,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
2791,
33411,
10706,
1875,
2242,
5357
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23772,
618,
262,
10706,
318,
517,
621,
2242,
290,
262,
4639,
318,
17748,
7718,
5439,
308,
20079,
89,
3216,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
2791,
33411,
10706,
1875,
2242,
5357
] |
what school has 3 football classes but only has 638 student enrollment ? | SELECT "school" FROM table_204_624 WHERE "football class" = 3 AND "enrollment (2010-11 & 2011-12)" = 638 | [
10919,
1524,
468,
513,
4346,
6097,
475,
691,
468,
718,
2548,
3710,
20753,
5633,
46506,
366,
14347,
1,
16034,
3084,
62,
18638,
62,
21,
1731,
33411,
366,
15914,
1398,
1,
796,
513,
5357,
366,
268,
48108
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1524,
468,
513,
4346,
6097,
475,
691,
468,
718,
2548,
3710,
20753,
5633,
46506,
366,
14347,
1,
16034,
3084,
62,
18638,
62,
21,
1731,
33411,
366,
15914,
1398,
1,
796,
513,
5357,
366,
268,
48108
] |
Name the least merconorte for interliga of 2 and matches more than 260 with superliga more than 7 | SELECT MIN(merconorte) FROM table_name_92 WHERE interliga = 2 AND matches > 260 AND superliga > 7 | [
5376,
262,
1551,
4017,
1102,
419,
68,
329,
987,
38910,
286,
362,
290,
7466,
517,
621,
21148,
351,
2208,
38910,
517,
621,
767,
46506,
20625,
7,
647,
1102,
419,
68,
8,
16034,
3084,
62,
3672,
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
] | [
5376,
262,
1551,
4017,
1102,
419,
68,
329,
987,
38910,
286,
362,
290,
7466,
517,
621,
21148,
351,
2208,
38910,
517,
621,
767,
46506,
20625,
7,
647,
1102,
419,
68,
8,
16034,
3084,
62,
3672,
62
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.