instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
TOP 200 - Brazilian Users. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%brazil%' OR UPPER(Location) LIKE '%BRA' ORDER BY Reputation DESC LIMIT 200 | [
35222,
939,
532,
17036,
18987,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
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
] | [
35222,
939,
532,
17036,
18987,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034
] |
What's the season number of the episode originally aired on October 14, 2008? | SELECT no_in_season FROM table_19401346_1 WHERE original_air_date = "October 14, 2008" | [
2061,
338,
262,
1622,
1271,
286,
262,
4471,
6198,
18530,
319,
3267,
1478,
11,
3648,
30,
46506,
645,
62,
259,
62,
6230,
16034,
3084,
62,
1129,
21844,
30557,
62,
16,
33411,
2656,
62,
958,
62,
4475
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1622,
1271,
286,
262,
4471,
6198,
18530,
319,
3267,
1478,
11,
3648,
30,
46506,
645,
62,
259,
62,
6230,
16034,
3084,
62,
1129,
21844,
30557,
62,
16,
33411,
2656,
62,
958,
62,
4475
] |
How many candidates are listed all together for the incumbent named bob clement? | SELECT COUNT(candidates) FROM table_1341577_43 WHERE incumbent = "Bob Clement" | [
2437,
867,
5871,
389,
5610,
477,
1978,
329,
262,
23526,
3706,
29202,
1190,
434,
30,
46506,
327,
28270,
7,
46188,
37051,
8,
16034,
3084,
62,
19880,
1314,
3324,
62,
3559,
33411,
23526,
796,
366,
18861,
27311
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5871,
389,
5610,
477,
1978,
329,
262,
23526,
3706,
29202,
1190,
434,
30,
46506,
327,
28270,
7,
46188,
37051,
8,
16034,
3084,
62,
19880,
1314,
3324,
62,
3559,
33411,
23526,
796,
366,
18861,
27311
] |
Show me about the distribution of meter_400 and ID in a bar chart, list by the X from high to low. | SELECT meter_400, ID FROM swimmer ORDER BY meter_400 DESC | [
15307,
502,
546,
262,
6082,
286,
16430,
62,
7029,
290,
4522,
287,
257,
2318,
8262,
11,
1351,
416,
262,
1395,
422,
1029,
284,
1877,
13,
46506,
16430,
62,
7029,
11,
4522,
16034,
9422,
647,
38678,
11050
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
546,
262,
6082,
286,
16430,
62,
7029,
290,
4522,
287,
257,
2318,
8262,
11,
1351,
416,
262,
1395,
422,
1029,
284,
1877,
13,
46506,
16430,
62,
7029,
11,
4522,
16034,
9422,
647,
38678,
11050
] |
What is the total number played with 8 points and a position more than 6? | SELECT COUNT(played) FROM table_name_90 WHERE points = 8 AND position > 6 | [
2061,
318,
262,
2472,
1271,
2826,
351,
807,
2173,
290,
257,
2292,
517,
621,
718,
30,
46506,
327,
28270,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
2173,
796,
807,
5357,
2292,
1875,
718
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2826,
351,
807,
2173,
290,
257,
2292,
517,
621,
718,
30,
46506,
327,
28270,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
2173,
796,
807,
5357,
2292,
1875,
718
] |
provide the number of patients whose age is less than 62 and item id is 51382? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "62" AND lab.itemid = "51382" | [
15234,
485,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
8190,
290,
2378,
4686,
318,
642,
1485,
6469,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
8190,
290,
2378,
4686,
318,
642,
1485,
6469,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728
] |
What is 2006-07 Season, when Team is 'KF Fush Kosova'? | SELECT "2006\u201307 Season" FROM table_60886 WHERE "Team" = 'kf fushë kosova' | [
2061,
318,
4793,
12,
2998,
7369,
11,
618,
4816,
318,
705,
42,
37,
376,
1530,
18884,
10071,
30960,
46506,
366,
13330,
59,
84,
1264,
22996,
7369,
1,
16034,
3084,
62,
1899,
44980,
33411,
366,
15592,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4793,
12,
2998,
7369,
11,
618,
4816,
318,
705,
42,
37,
376,
1530,
18884,
10071,
30960,
46506,
366,
13330,
59,
84,
1264,
22996,
7369,
1,
16034,
3084,
62,
1899,
44980,
33411,
366,
15592,
1
] |
How many draft picks are there at the Defensive End position? | SELECT COUNT(pick__number) FROM table_16729063_1 WHERE position = "Defensive End" | [
2437,
867,
4538,
11103,
389,
612,
379,
262,
24784,
5268,
2292,
30,
46506,
327,
28270,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
21940,
1959,
3312,
18,
62,
16,
33411,
2292,
796,
366,
7469,
2021,
5268
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4538,
11103,
389,
612,
379,
262,
24784,
5268,
2292,
30,
46506,
327,
28270,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
21940,
1959,
3312,
18,
62,
16,
33411,
2292,
796,
366,
7469,
2021,
5268
] |
What is the name of the person who is the oldest? | SELECT name FROM person WHERE age = (SELECT MAX(age) FROM person) | [
2061,
318,
262,
1438,
286,
262,
1048,
508,
318,
262,
13325,
30,
46506,
1438,
16034,
1048,
33411,
2479,
796,
357,
46506,
25882,
7,
496,
8,
16034,
1048,
8,
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,
318,
262,
1438,
286,
262,
1048,
508,
318,
262,
13325,
30,
46506,
1438,
16034,
1048,
33411,
2479,
796,
357,
46506,
25882,
7,
496,
8,
16034,
1048,
8,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
Which venue had a score of 1-1? | SELECT "Venue" FROM table_53374 WHERE "Score" = '1-1' | [
13828,
14359,
550,
257,
4776,
286,
352,
12,
16,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
44994,
4524,
33411,
366,
26595,
1,
796,
705,
16,
12,
16,
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
] | [
13828,
14359,
550,
257,
4776,
286,
352,
12,
16,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
44994,
4524,
33411,
366,
26595,
1,
796,
705,
16,
12,
16,
6,
50256,
50256,
50256,
50256,
50256,
50256
] |
What is buffalo's pick #? | SELECT MAX("Pick #") FROM table_76788 WHERE "College" = 'buffalo' | [
2061,
318,
45019,
338,
2298,
1303,
30,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
32059,
3459,
33411,
366,
38951,
1,
796,
705,
36873,
7335,
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,
45019,
338,
2298,
1303,
30,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
32059,
3459,
33411,
366,
38951,
1,
796,
705,
36873,
7335,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
Post Views Histogram (Regular Scale). | WITH PostScores AS (SELECT p.ViewCount, p.PostTypeId, COUNT(*) * 1.0 AS PostCount FROM Posts AS p WHERE p.PostTypeId IN (1) AND ClosedDate IS NULL AND DATEDIFF(day, p.CreationDate, GETDATE()) > '##minAge:int?7##' GROUP BY ViewCount, p.PostTypeId) SELECT ViewCount, CASE WHEN PostTypeId = '1' THEN 'Questions' ELSE 'Answe... | [
6307,
29978,
5590,
21857,
357,
40164,
21589,
737,
54,
10554,
2947,
3351,
2850,
7054,
357,
46506,
279,
13,
7680,
12332,
11,
279,
13,
6307,
6030,
7390,
11,
327,
28270,
7,
28104,
1635,
352,
13,
15,
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
] | [
6307,
29978,
5590,
21857,
357,
40164,
21589,
737,
54,
10554,
2947,
3351,
2850,
7054,
357,
46506,
279,
13,
7680,
12332,
11,
279,
13,
6307,
6030,
7390,
11,
327,
28270,
7,
28104,
1635,
352,
13,
15,
7054
] |
What is the population with an area of 1,126.84? | SELECT MIN(population) FROM table_name_44 WHERE area = 1 OFFSET 126.84 | [
2061,
318,
262,
3265,
351,
281,
1989,
286,
352,
11,
19420,
13,
5705,
30,
46506,
20625,
7,
39748,
8,
16034,
3084,
62,
3672,
62,
2598,
33411,
1989,
796,
352,
3963,
10652,
2767,
19710,
13,
5705,
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,
3265,
351,
281,
1989,
286,
352,
11,
19420,
13,
5705,
30,
46506,
20625,
7,
39748,
8,
16034,
3084,
62,
3672,
62,
2598,
33411,
1989,
796,
352,
3963,
10652,
2767,
19710,
13,
5705,
50256
] |
Win % larger than 47.1, and a Matches smaller than 145 had what lowest lost? | SELECT MIN(lost) FROM table_name_47 WHERE win__percentage > 47.1 AND matches < 145 | [
16643,
4064,
4025,
621,
6298,
13,
16,
11,
290,
257,
6550,
2052,
4833,
621,
20299,
550,
644,
9016,
2626,
30,
46506,
20625,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
1592,
834,
25067,
496
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16643,
4064,
4025,
621,
6298,
13,
16,
11,
290,
257,
6550,
2052,
4833,
621,
20299,
550,
644,
9016,
2626,
30,
46506,
20625,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
1592,
834,
25067,
496
] |
What type of motorsport has a session of pre-race test? | SELECT discipline FROM table_name_93 WHERE session = "pre-race test" | [
2061,
2099,
286,
24699,
634,
468,
257,
6246,
286,
662,
12,
16740,
1332,
30,
46506,
12883,
16034,
3084,
62,
3672,
62,
6052,
33411,
6246,
796,
366,
3866,
12,
16740,
1332,
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,
2099,
286,
24699,
634,
468,
257,
6246,
286,
662,
12,
16740,
1332,
30,
46506,
12883,
16034,
3084,
62,
3672,
62,
6052,
33411,
6246,
796,
366,
3866,
12,
16740,
1332,
1,
50256,
50256,
50256,
50256,
50256
] |
On which date was St Kilda the home team? | SELECT date FROM table_name_2 WHERE home_team = "st kilda" | [
2202,
543,
3128,
373,
520,
509,
27281,
262,
1363,
1074,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
17,
33411,
1363,
62,
15097,
796,
366,
301,
479,
27281,
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
] | [
2202,
543,
3128,
373,
520,
509,
27281,
262,
1363,
1074,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
17,
33411,
1363,
62,
15097,
796,
366,
301,
479,
27281,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
how many date with score being w 113 87 | SELECT COUNT("Date") FROM table_18748 WHERE "Score" = 'W 113–87' | [
4919,
867,
3128,
351,
4776,
852,
266,
17318,
10083,
46506,
327,
28270,
7203,
10430,
4943,
16034,
3084,
62,
23451,
2780,
33411,
366,
26595,
1,
796,
705,
54,
17318,
1906,
5774,
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
] | [
4919,
867,
3128,
351,
4776,
852,
266,
17318,
10083,
46506,
327,
28270,
7203,
10430,
4943,
16034,
3084,
62,
23451,
2780,
33411,
366,
26595,
1,
796,
705,
54,
17318,
1906,
5774,
6,
50256,
50256,
50256,
50256,
50256
] |
What is the coin with a equivalency of 0.30 made of? | SELECT composition FROM table_name_67 WHERE €_equiv = "0.30" | [
2061,
318,
262,
10752,
351,
257,
6854,
1387,
286,
657,
13,
1270,
925,
286,
30,
46506,
11742,
16034,
3084,
62,
3672,
62,
3134,
33411,
10432,
62,
4853,
452,
796,
366,
15,
13,
1270,
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,
10752,
351,
257,
6854,
1387,
286,
657,
13,
1270,
925,
286,
30,
46506,
11742,
16034,
3084,
62,
3672,
62,
3134,
33411,
10432,
62,
4853,
452,
796,
366,
15,
13,
1270,
1,
50256,
50256
] |
did patient 67418 receive any medication until 104 months ago? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 67418) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-104 month') | [
20839,
5827,
718,
4524,
1507,
3328,
597,
14103,
1566,
14436,
1933,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
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
] | [
20839,
5827,
718,
4524,
1507,
3328,
597,
14103,
1566,
14436,
1933,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76
] |
What's the total of number of FA Cup that has a League small than 29 with Play-offs less than 0? | SELECT COUNT(fa_cup) FROM table_name_50 WHERE league < 29 AND play_offs < 0 | [
2061,
338,
262,
2472,
286,
1271,
286,
9677,
5454,
326,
468,
257,
4041,
1402,
621,
2808,
351,
3811,
12,
8210,
1342,
621,
657,
30,
46506,
327,
28270,
7,
13331,
62,
25244,
8,
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
] | [
2061,
338,
262,
2472,
286,
1271,
286,
9677,
5454,
326,
468,
257,
4041,
1402,
621,
2808,
351,
3811,
12,
8210,
1342,
621,
657,
30,
46506,
327,
28270,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672
] |
How many millions of viewers did the episode written by Andrea Conway Kagey? | SELECT "U.S. viewers (in millions)" FROM table_73545 WHERE "Written by" = 'Andrea Conway Kagey' | [
2437,
867,
5242,
286,
10209,
750,
262,
4471,
3194,
416,
23174,
26608,
509,
496,
88,
30,
46506,
366,
52,
13,
50,
13,
10209,
357,
259,
5242,
16725,
16034,
3084,
62,
22,
2327,
2231,
33411,
366,
25354
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5242,
286,
10209,
750,
262,
4471,
3194,
416,
23174,
26608,
509,
496,
88,
30,
46506,
366,
52,
13,
50,
13,
10209,
357,
259,
5242,
16725,
16034,
3084,
62,
22,
2327,
2231,
33411,
366,
25354
] |
Which analog channel has a digital channel of 4.1? | SELECT analog_channel FROM table_name_31 WHERE digital_channel = "4.1" | [
13828,
15075,
6518,
468,
257,
4875,
6518,
286,
604,
13,
16,
30,
46506,
15075,
62,
17620,
16034,
3084,
62,
3672,
62,
3132,
33411,
4875,
62,
17620,
796,
366,
19,
13,
16,
1,
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,
1,
0,
0,
0,
0
] | [
13828,
15075,
6518,
468,
257,
4875,
6518,
286,
604,
13,
16,
30,
46506,
15075,
62,
17620,
16034,
3084,
62,
3672,
62,
3132,
33411,
4875,
62,
17620,
796,
366,
19,
13,
16,
1,
50256,
50256,
50256,
50256
] |
What was the best album in 1965? | SELECT "U.S. AC" FROM table_52143 WHERE "Album" = 'the best' AND "Year" = '1965' | [
2061,
373,
262,
1266,
5062,
287,
17672,
30,
46506,
366,
52,
13,
50,
13,
7125,
1,
16034,
3084,
62,
4309,
21139,
33411,
366,
2348,
4435,
1,
796,
705,
1169,
1266,
6,
5357,
366,
17688,
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,
373,
262,
1266,
5062,
287,
17672,
30,
46506,
366,
52,
13,
50,
13,
7125,
1,
16034,
3084,
62,
4309,
21139,
33411,
366,
2348,
4435,
1,
796,
705,
1169,
1266,
6,
5357,
366,
17688,
1,
796
] |
What is the name of the episode # 11 in the season? | SELECT title FROM table_25277262_2 WHERE no_in_season = 11 | [
2061,
318,
262,
1438,
286,
262,
4471,
1303,
1367,
287,
262,
1622,
30,
46506,
3670,
16034,
3084,
62,
1495,
27019,
29119,
62,
17,
33411,
645,
62,
259,
62,
6230,
796,
1367,
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,
1438,
286,
262,
4471,
1303,
1367,
287,
262,
1622,
30,
46506,
3670,
16034,
3084,
62,
1495,
27019,
29119,
62,
17,
33411,
645,
62,
259,
62,
6230,
796,
1367,
50256,
50256,
50256,
50256,
50256
] |
What is the high rank for players earning over $533,929? | SELECT MAX(rank) FROM table_name_13 WHERE earnings___$__ > 533 OFFSET 929 | [
2061,
318,
262,
1029,
4279,
329,
1938,
13748,
625,
720,
44994,
11,
24,
1959,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
12042,
17569,
3,
834,
1875,
642,
2091,
3963,
10652
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1029,
4279,
329,
1938,
13748,
625,
720,
44994,
11,
24,
1959,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
12042,
17569,
3,
834,
1875,
642,
2091,
3963,
10652
] |
What is the highest student GPA for every department? Return a bar chart. | SELECT DEPT_CODE, MAX(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE | [
2061,
318,
262,
4511,
3710,
45283,
329,
790,
5011,
30,
8229,
257,
2318,
8262,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
25882,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
3525,
44441,
11050,
5550
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3710,
45283,
329,
790,
5011,
30,
8229,
257,
2318,
8262,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
25882,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
3525,
44441,
11050,
5550
] |
A bar chart about the number of faluts for different fault description recorded in the logs, order by the bar from low to high. | SELECT fault_description, COUNT(fault_description) FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY fault_description ORDER BY fault_description | [
32,
2318,
8262,
546,
262,
1271,
286,
24215,
5500,
329,
1180,
8046,
6764,
6264,
287,
262,
17259,
11,
1502,
416,
262,
2318,
422,
1877,
284,
1029,
13,
46506,
8046,
62,
11213,
11,
327,
28270,
7,
69
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
546,
262,
1271,
286,
24215,
5500,
329,
1180,
8046,
6764,
6264,
287,
262,
17259,
11,
1502,
416,
262,
2318,
422,
1877,
284,
1029,
13,
46506,
8046,
62,
11213,
11,
327,
28270,
7,
69
] |
Which season reported wickets of 7th? | SELECT season FROM table_1670921_1 WHERE wicket = "7th" | [
13828,
1622,
2098,
266,
15970,
286,
767,
400,
30,
46506,
1622,
16034,
3084,
62,
1433,
31495,
2481,
62,
16,
33411,
266,
9715,
796,
366,
22,
400,
1,
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
] | [
13828,
1622,
2098,
266,
15970,
286,
767,
400,
30,
46506,
1622,
16034,
3084,
62,
1433,
31495,
2481,
62,
16,
33411,
266,
9715,
796,
366,
22,
400,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
Calculate the average amount for all the payments processed with Visa of each day of week using a bar chart, and display y-axis in asc order. | SELECT Date_Payment_Made, AVG(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY AVG(Amount_Payment) | [
9771,
3129,
378,
262,
2811,
2033,
329,
477,
262,
7524,
13686,
351,
27645,
286,
1123,
1110,
286,
1285,
1262,
257,
2318,
8262,
11,
290,
3359,
331,
12,
22704,
287,
10570,
1502,
13,
46506,
7536,
62,
19197
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9771,
3129,
378,
262,
2811,
2033,
329,
477,
262,
7524,
13686,
351,
27645,
286,
1123,
1110,
286,
1285,
1262,
257,
2318,
8262,
11,
290,
3359,
331,
12,
22704,
287,
10570,
1502,
13,
46506,
7536,
62,
19197
] |
provide the number of patients whose admission location is emergency room admit and primary disease is liver transplant? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "LIVER TRANSPLANT" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
4165,
4369,
318,
14383,
23319,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
4165,
4369,
318,
14383,
23319,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728
] |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id, and display Y-axis in asc order. | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
4706,
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688
] |
What is the smallest pick number for McGill? | SELECT MIN("Pick #") FROM table_24269 WHERE "College" = 'McGill' | [
2061,
318,
262,
18197,
2298,
1271,
329,
40595,
30,
46506,
20625,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1731,
26276,
33411,
366,
38951,
1,
796,
705,
9742,
38,
359,
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
] | [
2061,
318,
262,
18197,
2298,
1271,
329,
40595,
30,
46506,
20625,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1731,
26276,
33411,
366,
38951,
1,
796,
705,
9742,
38,
359,
6,
50256,
50256,
50256,
50256,
50256,
50256
] |
how many bubbles with category being input | SELECT COUNT(bubbles) FROM table_1507852_5 WHERE category = "Input" | [
4919,
867,
25037,
351,
6536,
852,
5128,
46506,
327,
28270,
7,
46176,
7689,
8,
16034,
3084,
62,
8628,
3695,
4309,
62,
20,
33411,
6536,
796,
366,
20560,
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
] | [
4919,
867,
25037,
351,
6536,
852,
5128,
46506,
327,
28270,
7,
46176,
7689,
8,
16034,
3084,
62,
8628,
3695,
4309,
62,
20,
33411,
6536,
796,
366,
20560,
1,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
count the number of patients who have been discharged from a hospital since 2104. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND STRFTIME('%y', admissions.dischtime) >= '2104' | [
9127,
262,
1271,
286,
3871,
508,
423,
587,
26476,
422,
257,
4436,
1201,
362,
13464,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
5626,
25349,
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
] | [
9127,
262,
1271,
286,
3871,
508,
423,
587,
26476,
422,
257,
4436,
1201,
362,
13464,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
5626,
25349,
13
] |
in this year vancomycin, oxycodone liquid or ns (mini bag plus) have been prescribed for patient 8421? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8421) AND prescriptions.drug IN ('vancomycin', 'oxycodone liquid', 'ns (mini bag plus)') AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start... | [
259,
428,
614,
5719,
785,
88,
17879,
11,
10661,
19815,
505,
8122,
393,
36545,
357,
45313,
6131,
5556,
8,
423,
587,
14798,
329,
5827,
9508,
2481,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
428,
614,
5719,
785,
88,
17879,
11,
10661,
19815,
505,
8122,
393,
36545,
357,
45313,
6131,
5556,
8,
423,
587,
14798,
329,
5827,
9508,
2481,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092
] |
What's the total attendance of the leagues in season of 2010? | SELECT COUNT(total_attendance) FROM table_10815352_1 WHERE season = "2010" | [
2061,
338,
262,
2472,
14858,
286,
262,
16861,
287,
1622,
286,
3050,
30,
46506,
327,
28270,
7,
23350,
62,
1078,
437,
590,
8,
16034,
3084,
62,
15711,
1314,
33394,
62,
16,
33411,
1622,
796,
366,
10333
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
14858,
286,
262,
16861,
287,
1622,
286,
3050,
30,
46506,
327,
28270,
7,
23350,
62,
1078,
437,
590,
8,
16034,
3084,
62,
15711,
1314,
33394,
62,
16,
33411,
1622,
796,
366,
10333
] |
Show institution names along with the number of proteins for each institution in a bar chart. | SELECT Institution, COUNT(*) FROM Institution AS T1 JOIN protein AS T2 ON T1.Institution_id = T2.Institution_id GROUP BY T1.Institution_id | [
15307,
9901,
3891,
1863,
351,
262,
1271,
286,
15568,
329,
1123,
9901,
287,
257,
2318,
8262,
13,
46506,
29426,
11,
327,
28270,
7,
28104,
16034,
29426,
7054,
309,
16,
32357,
1268,
7532,
7054,
309,
17,
6177
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
9901,
3891,
1863,
351,
262,
1271,
286,
15568,
329,
1123,
9901,
287,
257,
2318,
8262,
13,
46506,
29426,
11,
327,
28270,
7,
28104,
16034,
29426,
7054,
309,
16,
32357,
1268,
7532,
7054,
309,
17,
6177
] |
What is the average laps for the grid smaller than 21 for Renzo Zorzi? | SELECT AVG(laps) FROM table_name_6 WHERE grid < 21 AND driver = "renzo zorzi" | [
2061,
318,
262,
2811,
24590,
329,
262,
10706,
4833,
621,
2310,
329,
7152,
10872,
1168,
273,
17027,
30,
46506,
35224,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
21,
33411,
10706,
1279,
2310,
5357,
4639
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24590,
329,
262,
10706,
4833,
621,
2310,
329,
7152,
10872,
1168,
273,
17027,
30,
46506,
35224,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
21,
33411,
10706,
1279,
2310,
5357,
4639
] |
what is minimum age of patients whose marital status is widowed and gender is m? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.gender = "M" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
5279,
318,
285,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
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
] | [
10919,
318,
5288,
2479,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
5279,
318,
285,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366
] |
Find the number of members living in each address Show bar chart, list in desc by the bar. | SELECT Address, COUNT(*) FROM member GROUP BY Address ORDER BY Address DESC | [
16742,
262,
1271,
286,
1866,
2877,
287,
1123,
2209,
5438,
2318,
8262,
11,
1351,
287,
1715,
416,
262,
2318,
13,
46506,
17917,
11,
327,
28270,
7,
28104,
16034,
2888,
44441,
11050,
17917,
38678,
11050,
17917,
22196
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
1866,
2877,
287,
1123,
2209,
5438,
2318,
8262,
11,
1351,
287,
1715,
416,
262,
2318,
13,
46506,
17917,
11,
327,
28270,
7,
28104,
16034,
2888,
44441,
11050,
17917,
38678,
11050,
17917,
22196
] |
have any microbiological testing been done on patient 42473's fluid wound in this month? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 42473) AND microbiologyevents.spec_type_desc = 'fluid wound' AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', ... | [
14150,
597,
24559,
2770,
4856,
587,
1760,
319,
5827,
48252,
4790,
338,
11711,
11699,
287,
428,
1227,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
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
] | [
14150,
597,
24559,
2770,
4856,
587,
1760,
319,
5827,
48252,
4790,
338,
11711,
11699,
287,
428,
1227,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76
] |
how many sections does each course has?, and show in asc by the CRS_CODE. | SELECT CRS_CODE, COUNT(*) FROM CLASS GROUP BY CRS_CODE ORDER BY CRS_CODE | [
4919,
867,
9004,
857,
1123,
1781,
468,
21747,
290,
905,
287,
10570,
416,
262,
327,
6998,
62,
34,
16820,
13,
46506,
327,
6998,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
42715,
44441,
11050,
327
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9004,
857,
1123,
1781,
468,
21747,
290,
905,
287,
10570,
416,
262,
327,
6998,
62,
34,
16820,
13,
46506,
327,
6998,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
42715,
44441,
11050,
327
] |
What is the incumbent from 1941? | SELECT incumbent FROM table_1342233_24 WHERE first_elected = 1941 | [
2061,
318,
262,
23526,
422,
23234,
30,
46506,
23526,
16034,
3084,
62,
19880,
1828,
2091,
62,
1731,
33411,
717,
62,
28604,
796,
23234,
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,
23526,
422,
23234,
30,
46506,
23526,
16034,
3084,
62,
19880,
1828,
2091,
62,
1731,
33411,
717,
62,
28604,
796,
23234,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
Who is the player from the United States with a 75-70-68=211 score? | SELECT player FROM table_name_94 WHERE country = "united states" AND score = 75 - 70 - 68 = 211 | [
8241,
318,
262,
2137,
422,
262,
1578,
1829,
351,
257,
5441,
12,
2154,
12,
3104,
28,
21895,
4776,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
5824,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
4776
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
2137,
422,
262,
1578,
1829,
351,
257,
5441,
12,
2154,
12,
3104,
28,
21895,
4776,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
5824,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
4776
] |
Visualize a bar chart to show how many players in each occupation, and show from low to high by the y-axis please. | SELECT Occupation, COUNT(Occupation) FROM player GROUP BY Occupation ORDER BY COUNT(Occupation) | [
36259,
1096,
257,
2318,
8262,
284,
905,
703,
867,
1938,
287,
1123,
13755,
11,
290,
905,
422,
1877,
284,
1029,
416,
262,
331,
12,
22704,
3387,
13,
46506,
15227,
341,
11,
327,
28270,
7,
47658,
341
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2318,
8262,
284,
905,
703,
867,
1938,
287,
1123,
13755,
11,
290,
905,
422,
1877,
284,
1029,
416,
262,
331,
12,
22704,
3387,
13,
46506,
15227,
341,
11,
327,
28270,
7,
47658,
341
] |
Find the ids of orders which are shipped after 2000-01-01. | SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01" | [
16742,
262,
220,
2340,
286,
6266,
543,
389,
14338,
706,
4751,
12,
486,
12,
486,
13,
46506,
1502,
62,
312,
16034,
29311,
33411,
28652,
62,
4475,
1875,
366,
11024,
12,
486,
12,
486,
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
] | [
16742,
262,
220,
2340,
286,
6266,
543,
389,
14338,
706,
4751,
12,
486,
12,
486,
13,
46506,
1502,
62,
312,
16034,
29311,
33411,
28652,
62,
4475,
1875,
366,
11024,
12,
486,
12,
486,
1,
50256,
50256
] |
what is the first flight from ATLANTA to BOSTON on thursday september fifth that leaves after 800 | 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, date_day, days, flight WHERE (((date_day.day_number = 24 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_tim... | [
10919,
318,
262,
717,
5474,
422,
5161,
25697,
5603,
284,
347,
10892,
1340,
319,
294,
3479,
384,
457,
1491,
8150,
326,
5667,
706,
10460,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
5474,
422,
5161,
25697,
5603,
284,
347,
10892,
1340,
319,
294,
3479,
384,
457,
1491,
8150,
326,
5667,
706,
10460,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003
] |
What team is located in brooklyn? | SELECT "Team" FROM table_49128 WHERE "City" = 'brooklyn' | [
2061,
1074,
318,
5140,
287,
1379,
482,
6213,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2920,
12762,
33411,
366,
14941,
1,
796,
705,
19094,
6213,
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,
1074,
318,
5140,
287,
1379,
482,
6213,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2920,
12762,
33411,
366,
14941,
1,
796,
705,
19094,
6213,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
find the number of patients who have been admitted in hospital. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient | [
19796,
262,
1271,
286,
3871,
508,
423,
587,
6848,
287,
4436,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
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
] | [
19796,
262,
1271,
286,
3871,
508,
423,
587,
6848,
287,
4436,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
How many times is a particular number the first digit in a byte count.. | SELECT COUNT(Id) FROM Posts WHERE LOWER(Body) LIKE '% 9% byte%' | [
2437,
867,
1661,
318,
257,
1948,
1271,
262,
717,
16839,
287,
257,
18022,
954,
492,
46506,
327,
28270,
7,
7390,
8,
16034,
12043,
33411,
406,
36048,
7,
25842,
8,
34178,
705,
4,
860,
4,
18022,
4
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
318,
257,
1948,
1271,
262,
717,
16839,
287,
257,
18022,
954,
492,
46506,
327,
28270,
7,
7390,
8,
16034,
12043,
33411,
406,
36048,
7,
25842,
8,
34178,
705,
4,
860,
4,
18022,
4
] |
Find comments with specified text based upon length. | SELECT c.Text, c.Id AS "comment_link", CreationDate FROM Comments AS c WHERE c.Text LIKE '%##keyword##%' AND LENGTH(c.Text) <= 25 ORDER BY CreationDate DESC LIMIT 100 | [
16742,
3651,
351,
7368,
2420,
1912,
2402,
4129,
13,
46506,
269,
13,
8206,
11,
269,
13,
7390,
7054,
366,
23893,
62,
8726,
1600,
21582,
10430,
16034,
19502,
7054,
269,
33411,
269,
13,
8206,
34178,
705,
4
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3651,
351,
7368,
2420,
1912,
2402,
4129,
13,
46506,
269,
13,
8206,
11,
269,
13,
7390,
7054,
366,
23893,
62,
8726,
1600,
21582,
10430,
16034,
19502,
7054,
269,
33411,
269,
13,
8206,
34178,
705,
4
] |
Name the october for july of kimberley stanfield | SELECT "October" FROM table_69136 WHERE "July" = 'kimberley stanfield' | [
5376,
262,
19318,
2023,
329,
474,
2062,
286,
479,
320,
527,
1636,
336,
272,
3245,
46506,
366,
18517,
1,
16034,
3084,
62,
3388,
20809,
33411,
366,
16157,
1,
796,
705,
74,
320,
527,
1636,
336,
272
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
19318,
2023,
329,
474,
2062,
286,
479,
320,
527,
1636,
336,
272,
3245,
46506,
366,
18517,
1,
16034,
3084,
62,
3388,
20809,
33411,
366,
16157,
1,
796,
705,
74,
320,
527,
1636,
336,
272
] |
Show me about the distribution of meter_600 and ID in a bar chart, and rank by the meter_600 from high to low. | SELECT meter_600, ID FROM swimmer ORDER BY meter_600 DESC | [
15307,
502,
546,
262,
6082,
286,
16430,
62,
8054,
290,
4522,
287,
257,
2318,
8262,
11,
290,
4279,
416,
262,
16430,
62,
8054,
422,
1029,
284,
1877,
13,
46506,
16430,
62,
8054,
11,
4522,
16034,
9422
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
546,
262,
6082,
286,
16430,
62,
8054,
290,
4522,
287,
257,
2318,
8262,
11,
290,
4279,
416,
262,
16430,
62,
8054,
422,
1029,
284,
1877,
13,
46506,
16430,
62,
8054,
11,
4522,
16034,
9422
] |
How many points does footscray score as the home side? | SELECT "Home team score" FROM table_74660 WHERE "Home team" = 'footscray' | [
2437,
867,
2173,
857,
2366,
1416,
2433,
4776,
355,
262,
1363,
1735,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
22,
3510,
1899,
33411,
366,
16060,
1074,
1,
796,
705,
5898,
1416,
2433,
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
] | [
2437,
867,
2173,
857,
2366,
1416,
2433,
4776,
355,
262,
1363,
1735,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
22,
3510,
1899,
33411,
366,
16060,
1074,
1,
796,
705,
5898,
1416,
2433,
6
] |
What is the version aired on SBS 6 called? | SELECT name FROM table_27487310_5 WHERE network = "SBS 6" | [
2061,
318,
262,
2196,
18530,
319,
311,
4462,
718,
1444,
30,
46506,
1438,
16034,
3084,
62,
1983,
2780,
4790,
940,
62,
20,
33411,
3127,
796,
366,
50,
4462,
718,
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
] | [
2061,
318,
262,
2196,
18530,
319,
311,
4462,
718,
1444,
30,
46506,
1438,
16034,
3084,
62,
1983,
2780,
4790,
940,
62,
20,
33411,
3127,
796,
366,
50,
4462,
718,
1,
50256,
50256,
50256,
50256,
50256,
50256
] |
What is the maximum and minimum grade point of students who live in NYC? | SELECT MAX(T2.gradepoint), MIN(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = "NYC" | [
2061,
318,
262,
5415,
290,
5288,
9559,
966,
286,
2444,
508,
2107,
287,
19170,
30,
46506,
25882,
7,
51,
17,
13,
9744,
538,
1563,
828,
20625,
7,
51,
17,
13,
9744,
538,
1563,
8,
16034,
12964
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
290,
5288,
9559,
966,
286,
2444,
508,
2107,
287,
19170,
30,
46506,
25882,
7,
51,
17,
13,
9744,
538,
1563,
828,
20625,
7,
51,
17,
13,
9744,
538,
1563,
8,
16034,
12964
] |
What week did the member who's original tribe was shark and who was sent to the third island on week 14 arrive on the main island? | SELECT "Week Arrived On Main Island" FROM table_72227 WHERE "Original Tribe" = 'Shark' AND "Week Sent To Third Island" = '14' | [
2061,
1285,
750,
262,
2888,
508,
338,
2656,
14893,
373,
21027,
290,
508,
373,
1908,
284,
262,
2368,
7022,
319,
1285,
1478,
9240,
319,
262,
1388,
7022,
30,
46506,
366,
20916,
27350,
1079,
1550,
8774,
5451
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1285,
750,
262,
2888,
508,
338,
2656,
14893,
373,
21027,
290,
508,
373,
1908,
284,
262,
2368,
7022,
319,
1285,
1478,
9240,
319,
262,
1388,
7022,
30,
46506,
366,
20916,
27350,
1079,
1550,
8774,
5451
] |
What airport is in Muscat? | SELECT "Airport" FROM table_45671 WHERE "City" = 'muscat' | [
2061,
9003,
318,
287,
2629,
9246,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
2231,
46250,
33411,
366,
14941,
1,
796,
705,
14664,
9246,
6,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
9003,
318,
287,
2629,
9246,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
2231,
46250,
33411,
366,
14941,
1,
796,
705,
14664,
9246,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
In the game where richmond was the away team, what venue was it played at? | SELECT "Venue" FROM table_57944 WHERE "Away team" = 'richmond' | [
818,
262,
983,
810,
5527,
6327,
373,
262,
1497,
1074,
11,
644,
14359,
373,
340,
2826,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
41734,
2598,
33411,
366,
32,
1014,
1074,
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
] | [
818,
262,
983,
810,
5527,
6327,
373,
262,
1497,
1074,
11,
644,
14359,
373,
340,
2826,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
41734,
2598,
33411,
366,
32,
1014,
1074,
1,
796,
705
] |
Show all role codes and the number of employees in each role Show bar chart, I want to rank from high to low by the Y-axis please. | SELECT Role_Code, COUNT(*) FROM Employees GROUP BY Role_Code ORDER BY COUNT(*) DESC | [
15307,
477,
2597,
12416,
290,
262,
1271,
286,
4409,
287,
1123,
2597,
5438,
2318,
8262,
11,
314,
765,
284,
4279,
422,
1029,
284,
1877,
416,
262,
575,
12,
22704,
3387,
13,
46506,
20934,
62,
10669,
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
] | [
15307,
477,
2597,
12416,
290,
262,
1271,
286,
4409,
287,
1123,
2597,
5438,
2318,
8262,
11,
314,
765,
284,
4279,
422,
1029,
284,
1877,
416,
262,
575,
12,
22704,
3387,
13,
46506,
20934,
62,
10669,
11
] |
creatinine clearance < 60 by cockcroft _ gault calculator | SELECT * FROM table_dev_58 WHERE creatinine_clearance_cl < 60 | [
20123,
259,
500,
19745,
1279,
3126,
416,
7540,
36714,
4808,
308,
1721,
28260,
46506,
1635,
16034,
3084,
62,
7959,
62,
3365,
33411,
1827,
259,
500,
62,
20063,
590,
62,
565,
1279,
3126,
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,
1,
0,
0,
0,
0
] | [
20123,
259,
500,
19745,
1279,
3126,
416,
7540,
36714,
4808,
308,
1721,
28260,
46506,
1635,
16034,
3084,
62,
7959,
62,
3365,
33411,
1827,
259,
500,
62,
20063,
590,
62,
565,
1279,
3126,
50256,
50256,
50256,
50256
] |
What was the date of the game played at Fenway Park? | SELECT date FROM table_name_28 WHERE game_site = "fenway park" | [
2061,
373,
262,
3128,
286,
262,
983,
2826,
379,
19426,
1014,
3250,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2078,
33411,
983,
62,
15654,
796,
366,
41037,
1014,
3952,
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,
373,
262,
3128,
286,
262,
983,
2826,
379,
19426,
1014,
3250,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2078,
33411,
983,
62,
15654,
796,
366,
41037,
1014,
3952,
1,
50256,
50256,
50256,
50256,
50256
] |
What is the average Gold entry for the Netherlands that also has a Bronze entry that is greater than 0? | SELECT AVG(gold) FROM table_name_19 WHERE nation = "netherlands" AND bronze > 0 | [
2061,
318,
262,
2811,
3561,
5726,
329,
262,
12671,
326,
635,
468,
257,
19461,
5726,
326,
318,
3744,
621,
657,
30,
46506,
35224,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1129,
33411,
3277,
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,
3561,
5726,
329,
262,
12671,
326,
635,
468,
257,
19461,
5726,
326,
318,
3744,
621,
657,
30,
46506,
35224,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1129,
33411,
3277,
796,
366
] |
Users with answers in most tags (including deleted users). | SELECT RANK() OVER (ORDER BY COUNT(DISTINCT pt.TagId) DESC) AS Rank, a.OwnerUserId AS "user_link", a.OwnerDisplayName, COUNT(DISTINCT pt.TagId) AS "#_of_tags" FROM Posts AS a INNER JOIN Posts AS q ON a.ParentId = q.Id INNER JOIN PostTags AS pt ON pt.PostId = q.Id GROUP BY a.OwnerUserId, a.OwnerDisplayName ORDER BY COUN... | [
14490,
351,
7429,
287,
749,
15940,
357,
8201,
13140,
2985,
737,
46506,
371,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
35,
8808,
1268,
4177,
42975,
13,
24835,
7390,
8,
22196,
34,
8,
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
] | [
14490,
351,
7429,
287,
749,
15940,
357,
8201,
13140,
2985,
737,
46506,
371,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
35,
8808,
1268,
4177,
42975,
13,
24835,
7390,
8,
22196,
34,
8,
7054
] |
how many patients on additive type drug prescription had sodium lab test done? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "ADDITIVE" AND lab.label = "Sodium" | [
4919,
867,
3871,
319,
38298,
2099,
2563,
15077,
550,
21072,
2248,
1332,
1760,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
319,
38298,
2099,
2563,
15077,
550,
21072,
2248,
1332,
1760,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177
] |
Which college did Dennis Byrd come from? | SELECT "College" FROM table_17507 WHERE "Player" = 'Dennis Byrd' | [
13828,
4152,
750,
16902,
44972,
1282,
422,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
1558,
35378,
33411,
366,
14140,
1,
796,
705,
35,
10679,
44972,
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
] | [
13828,
4152,
750,
16902,
44972,
1282,
422,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
1558,
35378,
33411,
366,
14140,
1,
796,
705,
35,
10679,
44972,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What team 2 has lokomotiva as team 1? | SELECT "Team 2" FROM table_13049 WHERE "Team 1" = 'lokomotiva' | [
2061,
1074,
362,
468,
300,
482,
296,
313,
12151,
355,
1074,
352,
30,
46506,
366,
15592,
362,
1,
16034,
3084,
62,
12952,
2920,
33411,
366,
15592,
352,
1,
796,
705,
75,
482,
296,
313,
12151,
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,
1074,
362,
468,
300,
482,
296,
313,
12151,
355,
1074,
352,
30,
46506,
366,
15592,
362,
1,
16034,
3084,
62,
12952,
2920,
33411,
366,
15592,
352,
1,
796,
705,
75,
482,
296,
313,
12151,
6
] |
What are the names of all products? | SELECT name FROM products | [
2061,
389,
262,
3891,
286,
477,
3186,
30,
46506,
1438,
16034,
3186,
50256,
50256,
50256,
50256,
50256,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
389,
262,
3891,
286,
477,
3186,
30,
46506,
1438,
16034,
3186,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
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, return a bar chart about the distribution of last_name and commission_pct , show x axis in desc order. | SELECT LAST_NAME, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
938,
62,
3672,
290,
5810,
62,
79,
310
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
938,
62,
3672,
290,
5810,
62,
79,
310
] |
Which HMP classes can be counted as Other ? | SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department LIKE '%HMP%' AND program_course.category LIKE '%Other%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.program_id = program_course.program_id | [
13828,
367,
7378,
6097,
460,
307,
14789,
355,
3819,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1430,
11,
1430,
62,
17319,
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
] | [
13828,
367,
7378,
6097,
460,
307,
14789,
355,
3819,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1430,
11,
1430,
62,
17319,
33411
] |
What is Run 3, when Team is United States (USA) USA I? | SELECT "Run 3" FROM table_49009 WHERE "Team" = 'united states (usa) usa i' | [
2061,
318,
5660,
513,
11,
618,
4816,
318,
1578,
1829,
357,
14053,
8,
4916,
314,
30,
46506,
366,
10987,
513,
1,
16034,
3084,
62,
2920,
28694,
33411,
366,
15592,
1,
796,
705,
41187,
2585,
357,
22064
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5660,
513,
11,
618,
4816,
318,
1578,
1829,
357,
14053,
8,
4916,
314,
30,
46506,
366,
10987,
513,
1,
16034,
3084,
62,
2920,
28694,
33411,
366,
15592,
1,
796,
705,
41187,
2585,
357,
22064
] |
how many patients above the age of 63 or more were admitted in or after the year 2150? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.age >= "63" AND demographic.admityear >= "2150" | [
4919,
867,
3871,
2029,
262,
2479,
286,
8093,
393,
517,
547,
6848,
287,
393,
706,
262,
614,
2310,
1120,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
496,
18189,
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
] | [
4919,
867,
3871,
2029,
262,
2479,
286,
8093,
393,
517,
547,
6848,
287,
393,
706,
262,
614,
2310,
1120,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
496,
18189,
366
] |
what is the fare from ATLANTA to BOSTON on COACH one way | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name =... | [
10919,
318,
262,
14505,
422,
5161,
25697,
5603,
284,
347,
10892,
1340,
319,
7375,
16219,
530,
835,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14505,
422,
5161,
25697,
5603,
284,
347,
10892,
1340,
319,
7375,
16219,
530,
835,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009
] |
What are the name and level of catalog structure with level number between 5 and 1 Show bar chart, and list names in desc order please. | SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 ORDER BY catalog_level_name DESC | [
2061,
389,
262,
1438,
290,
1241,
286,
18388,
4645,
351,
1241,
1271,
1022,
642,
290,
352,
5438,
2318,
8262,
11,
290,
1351,
3891,
287,
1715,
1502,
3387,
13,
46506,
18388,
62,
5715,
62,
3672,
11,
18388
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
290,
1241,
286,
18388,
4645,
351,
1241,
1271,
1022,
642,
290,
352,
5438,
2318,
8262,
11,
290,
1351,
3891,
287,
1715,
1502,
3387,
13,
46506,
18388,
62,
5715,
62,
3672,
11,
18388
] |
Which Torque has a Volume of 1896 cc, and a CO 2 of 140 g/km? | SELECT "Torque" FROM table_60125 WHERE "Volume" = '1896 cc' AND "CO 2" = '140 g/km' | [
13828,
4022,
4188,
468,
257,
14701,
286,
46723,
36624,
11,
290,
257,
7375,
362,
286,
12713,
308,
14,
13276,
30,
46506,
366,
15884,
4188,
1,
16034,
3084,
62,
41706,
1495,
33411,
366,
31715,
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
] | [
13828,
4022,
4188,
468,
257,
14701,
286,
46723,
36624,
11,
290,
257,
7375,
362,
286,
12713,
308,
14,
13276,
30,
46506,
366,
15884,
4188,
1,
16034,
3084,
62,
41706,
1495,
33411,
366,
31715,
1,
796,
705
] |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of headquarter and the sum of revenue , and group by attribute headquarter, order by the x-axis in asc. | SELECT Headquarter, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
1502
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1182,
24385,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
1502
] |
What was the away team for the match at Punt Road Oval? | SELECT "Away team" FROM table_33486 WHERE "Venue" = 'punt road oval' | [
2061,
373,
262,
1497,
1074,
329,
262,
2872,
379,
350,
2797,
5567,
25165,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
2091,
34251,
33411,
366,
37522,
518,
1,
796,
705,
79,
2797,
2975,
41186
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1497,
1074,
329,
262,
2872,
379,
350,
2797,
5567,
25165,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
2091,
34251,
33411,
366,
37522,
518,
1,
796,
705,
79,
2797,
2975,
41186
] |
What is the score for the Oregon location? | SELECT "Score" FROM table_278 WHERE "Location" = 'Oregon' | [
2061,
318,
262,
4776,
329,
262,
8819,
4067,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
25870,
33411,
366,
14749,
1,
796,
705,
41243,
6,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
2061,
318,
262,
4776,
329,
262,
8819,
4067,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
25870,
33411,
366,
14749,
1,
796,
705,
41243,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
Show the names of people aged either 35 or 36. | SELECT name FROM people WHERE age = 35 OR age = 36 | [
15307,
262,
3891,
286,
661,
9722,
2035,
3439,
393,
4570,
13,
46506,
1438,
16034,
661,
33411,
2479,
796,
3439,
6375,
2479,
796,
4570,
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
] | [
15307,
262,
3891,
286,
661,
9722,
2035,
3439,
393,
4570,
13,
46506,
1438,
16034,
661,
33411,
2479,
796,
3439,
6375,
2479,
796,
4570,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What is the least rank with more than 16 sets won and less than 1 loss? | SELECT MIN(rank) FROM table_name_47 WHERE sets_won > 16 AND loss < 1 | [
2061,
318,
262,
1551,
4279,
351,
517,
621,
1467,
5621,
1839,
290,
1342,
621,
352,
2994,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
5621,
62,
26502,
1875,
1467,
5357,
2994
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1551,
4279,
351,
517,
621,
1467,
5621,
1839,
290,
1342,
621,
352,
2994,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
5621,
62,
26502,
1875,
1467,
5357,
2994
] |
In what week was the attendance 25,000? | SELECT "Week" FROM table_34096 WHERE "Attendance" = '25,000' | [
818,
644,
1285,
373,
262,
14858,
1679,
11,
830,
30,
46506,
366,
20916,
1,
16034,
3084,
62,
23601,
4846,
33411,
366,
8086,
437,
590,
1,
796,
705,
1495,
11,
830,
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
] | [
818,
644,
1285,
373,
262,
14858,
1679,
11,
830,
30,
46506,
366,
20916,
1,
16034,
3084,
62,
23601,
4846,
33411,
366,
8086,
437,
590,
1,
796,
705,
1495,
11,
830,
6,
50256,
50256,
50256,
50256,
50256
] |
List the name of all playlist, and count them by a bar chart | SELECT name, COUNT(name) FROM playlists GROUP BY name | [
8053,
262,
1438,
286,
477,
33178,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
711,
20713,
44441,
11050,
1438,
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
] | [
8053,
262,
1438,
286,
477,
33178,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
711,
20713,
44441,
11050,
1438,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
How many stages were won by Robbie McEwen? | SELECT COUNT("Stage") FROM table_21873 WHERE "Winner" = 'Robbie McEwen' | [
2437,
867,
9539,
547,
1839,
416,
34855,
1982,
36,
21006,
30,
46506,
327,
28270,
7203,
29391,
4943,
16034,
3084,
62,
28727,
4790,
33411,
366,
48056,
1,
796,
705,
14350,
12590,
1982,
36,
21006,
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
] | [
2437,
867,
9539,
547,
1839,
416,
34855,
1982,
36,
21006,
30,
46506,
327,
28270,
7203,
29391,
4943,
16034,
3084,
62,
28727,
4790,
33411,
366,
48056,
1,
796,
705,
14350,
12590,
1982,
36,
21006,
6,
50256,
50256
] |
How many total golds do teams have when the total medals is less than 1? | SELECT SUM("Gold") FROM table_76572 WHERE "Total" < '1' | [
2437,
867,
2472,
3869,
82,
466,
3466,
423,
618,
262,
2472,
28057,
318,
1342,
621,
352,
30,
46506,
35683,
7203,
13306,
4943,
16034,
3084,
62,
29143,
4761,
33411,
366,
14957,
1,
1279,
705,
16,
6,
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
] | [
2437,
867,
2472,
3869,
82,
466,
3466,
423,
618,
262,
2472,
28057,
318,
1342,
621,
352,
30,
46506,
35683,
7203,
13306,
4943,
16034,
3084,
62,
29143,
4761,
33411,
366,
14957,
1,
1279,
705,
16,
6,
50256
] |
Answer breakdown by which side of score = 10. | SELECT COUNT(1) AS "total", COUNT(CASE WHEN 'score' >= 10 THEN 1 ELSE NULL END) AS "egt10", COUNT(CASE WHEN 'score' < 10 THEN 1 ELSE NULL END) AS "lg10" FROM Posts WHERE 'posttypeid' = 2 AND 'deletiondate' IS NULL AND 'owneruserid' = '##UserId##' | [
33706,
14608,
416,
543,
1735,
286,
4776,
796,
838,
13,
46506,
327,
28270,
7,
16,
8,
7054,
366,
23350,
1600,
327,
28270,
7,
34,
11159,
42099,
705,
26675,
6,
18189,
838,
42243,
352,
17852,
5188,
15697
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
33706,
14608,
416,
543,
1735,
286,
4776,
796,
838,
13,
46506,
327,
28270,
7,
16,
8,
7054,
366,
23350,
1600,
327,
28270,
7,
34,
11159,
42099,
705,
26675,
6,
18189,
838,
42243,
352,
17852,
5188,
15697
] |
What percentage of people voted for Obama in Burlington? | SELECT obama__percentage FROM table_20278716_2 WHERE county = "Burlington" | [
2061,
5873,
286,
661,
7052,
329,
2486,
287,
37090,
30,
46506,
909,
1689,
834,
25067,
496,
16034,
3084,
62,
1238,
1983,
5774,
1433,
62,
17,
33411,
7968,
796,
366,
22991,
17299,
1,
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,
1,
0,
0,
0,
0
] | [
2061,
5873,
286,
661,
7052,
329,
2486,
287,
37090,
30,
46506,
909,
1689,
834,
25067,
496,
16034,
3084,
62,
1238,
1983,
5774,
1433,
62,
17,
33411,
7968,
796,
366,
22991,
17299,
1,
50256,
50256,
50256,
50256
] |
What record does the event of dream 9 with a round of 2 hold? | SELECT record FROM table_name_19 WHERE round = 2 AND event = "dream 9" | [
2061,
1700,
857,
262,
1785,
286,
4320,
860,
351,
257,
2835,
286,
362,
1745,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
1129,
33411,
2835,
796,
362,
5357,
1785,
796,
366,
25966,
860,
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,
1700,
857,
262,
1785,
286,
4320,
860,
351,
257,
2835,
286,
362,
1745,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
1129,
33411,
2835,
796,
362,
5357,
1785,
796,
366,
25966,
860,
1,
50256,
50256
] |
How many points have a series of british formula renault 2.0 winter cup and f/laps of 0? | SELECT "Points" FROM table_25983 WHERE "Series" = 'British Formula Renault 2.0 Winter Cup' AND "F/Laps" = '0' | [
2437,
867,
2173,
423,
257,
2168,
286,
275,
799,
680,
10451,
8851,
1721,
362,
13,
15,
7374,
6508,
290,
277,
14,
75,
1686,
286,
657,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
1495,
4089,
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
] | [
2437,
867,
2173,
423,
257,
2168,
286,
275,
799,
680,
10451,
8851,
1721,
362,
13,
15,
7374,
6508,
290,
277,
14,
75,
1686,
286,
657,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
1495,
4089,
18
] |
What is the name of chapter 8 of season 4? | SELECT "Title" FROM table_28685 WHERE "No. in season" = '8' | [
2061,
318,
262,
1438,
286,
6843,
807,
286,
1622,
604,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
2078,
35978,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
23,
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
] | [
2061,
318,
262,
1438,
286,
6843,
807,
286,
1622,
604,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
2078,
35978,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
23,
6,
50256,
50256,
50256,
50256,
50256
] |
TOP golang users in Denver. | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, u.Id AS "user_link", COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id =... | [
35222,
43791,
648,
2985,
287,
10656,
13,
54,
10554,
1294,
1137,
62,
17513,
62,
42197,
7054,
357,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35222,
43791,
648,
2985,
287,
10656,
13,
54,
10554,
1294,
1137,
62,
17513,
62,
42197,
7054,
357,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8
] |
What is the lowest to par of the player with a t3 place and less than $1,500? | SELECT MIN("To par") FROM table_44864 WHERE "Place" = 't3' AND "Money ( $ )" < '1,500' | [
2061,
318,
262,
9016,
284,
1582,
286,
262,
2137,
351,
257,
256,
18,
1295,
290,
1342,
621,
720,
16,
11,
4059,
30,
46506,
20625,
7203,
2514,
1582,
4943,
16034,
3084,
62,
31115,
2414,
33411,
366,
27271
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
284,
1582,
286,
262,
2137,
351,
257,
256,
18,
1295,
290,
1342,
621,
720,
16,
11,
4059,
30,
46506,
20625,
7203,
2514,
1582,
4943,
16034,
3084,
62,
31115,
2414,
33411,
366,
27271
] |
Top 10 users Stack Overflow users from Morocco. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%Bournemouth%' ORDER BY Reputation DESC LIMIT 10 | [
9126,
838,
2985,
23881,
3827,
11125,
2985,
422,
29638,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9126,
838,
2985,
23881,
3827,
11125,
2985,
422,
29638,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726
] |
How many were first elected when the incumbent was Morgan M. Moulder? | SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = "Morgan M. Moulder" | [
2437,
867,
547,
717,
7018,
618,
262,
23526,
373,
10805,
337,
13,
337,
17601,
30,
46506,
327,
28270,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
1485,
3682,
22337,
62,
1495,
33411,
23526,
796,
366,
47184
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
717,
7018,
618,
262,
23526,
373,
10805,
337,
13,
337,
17601,
30,
46506,
327,
28270,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
1485,
3682,
22337,
62,
1495,
33411,
23526,
796,
366,
47184
] |
what was the top five most frequent diagnoses that patients received after receiving angiogram - with infusion of vasodilator within 2 months? | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'angiogram - with infusion of vasodilator... | [
10919,
373,
262,
1353,
1936,
749,
10792,
40567,
326,
3871,
2722,
706,
6464,
3550,
72,
21857,
532,
351,
35547,
286,
34439,
375,
346,
1352,
1626,
362,
1933,
30,
46506,
256,
18,
13,
47356,
5958,
3672,
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,
373,
262,
1353,
1936,
749,
10792,
40567,
326,
3871,
2722,
706,
6464,
3550,
72,
21857,
532,
351,
35547,
286,
34439,
375,
346,
1352,
1626,
362,
1933,
30,
46506,
256,
18,
13,
47356,
5958,
3672,
16034
] |
Which label is in Australia? | SELECT "Label" FROM table_50738 WHERE "Region" = 'australia' | [
13828,
6167,
318,
287,
4505,
30,
46506,
366,
33986,
1,
16034,
3084,
62,
35378,
2548,
33411,
366,
47371,
1,
796,
705,
64,
436,
1373,
544,
6,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
13828,
6167,
318,
287,
4505,
30,
46506,
366,
33986,
1,
16034,
3084,
62,
35378,
2548,
33411,
366,
47371,
1,
796,
705,
64,
436,
1373,
544,
6,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256,
50256
] |
What Country is Player Sam Snead with a To par of less than 5 from? | SELECT country FROM table_name_26 WHERE to_par < 5 AND player = "sam snead" | [
2061,
12946,
318,
7853,
3409,
27065,
324,
351,
257,
1675,
1582,
286,
1342,
621,
642,
422,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2075,
33411,
284,
62,
1845,
1279,
642,
5357,
2137,
796,
366,
37687
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12946,
318,
7853,
3409,
27065,
324,
351,
257,
1675,
1582,
286,
1342,
621,
642,
422,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2075,
33411,
284,
62,
1845,
1279,
642,
5357,
2137,
796,
366,
37687
] |
What team was the home team when Luton Town was the home team? | SELECT "Home team" FROM table_46842 WHERE "Away team" = 'luton town' | [
2061,
1074,
373,
262,
1363,
1074,
618,
406,
32894,
8329,
373,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
38472,
3682,
33411,
366,
32,
1014,
1074,
1,
796,
705,
75,
32894,
3240
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1074,
373,
262,
1363,
1074,
618,
406,
32894,
8329,
373,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
38472,
3682,
33411,
366,
32,
1014,
1074,
1,
796,
705,
75,
32894,
3240
] |
What is the socket when the sSpec number is standard power? | SELECT "Socket" FROM table_14171 WHERE "sSpec number" = 'standard power' | [
2061,
318,
262,
17802,
618,
262,
264,
22882,
1271,
318,
3210,
1176,
30,
46506,
366,
39105,
1,
16034,
3084,
62,
1415,
27192,
33411,
366,
82,
22882,
1271,
1,
796,
705,
20307,
1176,
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,
17802,
618,
262,
264,
22882,
1271,
318,
3210,
1176,
30,
46506,
366,
39105,
1,
16034,
3084,
62,
1415,
27192,
33411,
366,
82,
22882,
1271,
1,
796,
705,
20307,
1176,
6,
50256,
50256,
50256
] |
How many Spanish word is there for the Portuguese bem-vindo? | SELECT COUNT("Spanish") FROM table_28806 WHERE "Portuguese" = 'Bem-vindo' | [
2437,
867,
7897,
1573,
318,
612,
329,
262,
21813,
307,
76,
12,
50172,
78,
30,
46506,
327,
28270,
7203,
43584,
4943,
16034,
3084,
62,
2078,
37988,
33411,
366,
13924,
1018,
20506,
1,
796,
705,
33,
368
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7897,
1573,
318,
612,
329,
262,
21813,
307,
76,
12,
50172,
78,
30,
46506,
327,
28270,
7203,
43584,
4943,
16034,
3084,
62,
2078,
37988,
33411,
366,
13924,
1018,
20506,
1,
796,
705,
33,
368
] |
What is the least amount of people that attended a game when Essendon was the away team? | SELECT MIN(crowd) FROM table_name_83 WHERE away_team = "essendon" | [
2061,
318,
262,
1551,
2033,
286,
661,
326,
9141,
257,
983,
618,
11985,
43153,
373,
262,
1497,
1074,
30,
46506,
20625,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
1497,
62,
15097,
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,
262,
1551,
2033,
286,
661,
326,
9141,
257,
983,
618,
11985,
43153,
373,
262,
1497,
1074,
30,
46506,
20625,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
1497,
62,
15097,
796
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.