instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
list currrent or all databases. | SELECT name FROM master.sys.databases | [
4868,
1090,
81,
1156,
393,
477,
20083,
13,
46506,
1438,
16034,
4958,
13,
17597,
13,
19608,
18826
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4868,
1090,
81,
1156,
393,
477,
20083,
13,
46506,
1438,
16034,
4958,
13,
17597,
13,
19608,
18826
] |
Name the minimum 11-12 enrollment for washington school | SELECT MIN("11-12 Enrollment") FROM table_72922 WHERE "School" = 'Washington' | [
5376,
262,
5288,
1367,
12,
1065,
20753,
329,
20518,
1122,
1524,
46506,
20625,
7203,
1157,
12,
1065,
2039,
48108,
4943,
16034,
3084,
62,
48555,
1828,
33411,
366,
26130,
1,
796,
705,
17402,
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
] | [
5376,
262,
5288,
1367,
12,
1065,
20753,
329,
20518,
1122,
1524,
46506,
20625,
7203,
1157,
12,
1065,
2039,
48108,
4943,
16034,
3084,
62,
48555,
1828,
33411,
366,
26130,
1,
796,
705,
17402,
6
] |
Which TV Time has a Date of december 26, 1999? | SELECT tv_time FROM table_name_63 WHERE date = "december 26, 1999" | [
13828,
3195,
3862,
468,
257,
7536,
286,
390,
3273,
2608,
11,
7358,
30,
46506,
31557,
62,
2435,
16034,
3084,
62,
3672,
62,
5066,
33411,
3128,
796,
366,
2934,
3273,
2608,
11,
7358,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3195,
3862,
468,
257,
7536,
286,
390,
3273,
2608,
11,
7358,
30,
46506,
31557,
62,
2435,
16034,
3084,
62,
3672,
62,
5066,
33411,
3128,
796,
366,
2934,
3273,
2608,
11,
7358,
1
] |
Top users in Tel Aviv. | SELECT Id, AccountId, DisplayName, Reputation, AboutMe, WebsiteUrl FROM Users WHERE LOWER(AboutMe) LIKE 'ruby' ORDER BY Reputation DESC | [
9126,
2985,
287,
12088,
28890,
13,
46506,
5121,
11,
10781,
7390,
11,
16531,
5376,
11,
1432,
7094,
11,
7994,
5308,
11,
15887,
28165,
16034,
18987,
33411,
406,
36048,
7,
8585,
5308,
8,
34178,
705,
49137,
6,
38678,
11050,
1432,
7094,
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,
1,
1,
1,
1,
1,
1
] | [
9126,
2985,
287,
12088,
28890,
13,
46506,
5121,
11,
10781,
7390,
11,
16531,
5376,
11,
1432,
7094,
11,
7994,
5308,
11,
15887,
28165,
16034,
18987,
33411,
406,
36048,
7,
8585,
5308,
8,
34178,
705,
49137,
6,
38678,
11050,
1432,
7094,
22196... |
During the Spring and Summer term , what is the number of 100 -level classes offered ? | SELECT COUNT(DISTINCT course.course_id, semester.semester) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 100 AND 100 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = course_offering.se... | [
7191,
262,
8225,
290,
10216,
3381,
837,
644,
318,
262,
1271,
286,
1802,
532,
5715,
6097,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
11,
24878,
13,
325,
6880,
353,
8,
16034,
1781,
11,
1781,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7191,
262,
8225,
290,
10216,
3381,
837,
644,
318,
262,
1271,
286,
1802,
532,
5715,
6097,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
11,
24878,
13,
325,
6880,
353,
8,
16034,
1781,
11,
1781,
62,
... |
show me the length of time patient 006-17553 was in the icu for the first time. | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-17553') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1 | [
12860,
502,
262,
4129,
286,
640,
5827,
3571,
21,
12,
1558,
48096,
373,
287,
262,
14158,
84,
329,
262,
717,
640,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
262,
4129,
286,
640,
5827,
3571,
21,
12,
1558,
48096,
373,
287,
262,
14158,
84,
329,
262,
717,
640,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
10... |
Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities. | SELECT catalog_entry_name, capacity FROM catalog_contents WHERE price_in_dollars > 700 | [
13828,
18388,
10154,
468,
2756,
2029,
13037,
5054,
30,
5438,
511,
18388,
5726,
3891,
290,
32484,
13,
46506,
18388,
62,
13000,
62,
3672,
11,
5339,
16034,
18388,
62,
3642,
658,
33411,
2756,
62,
259,
62,
67,
692,
945,
1875,
13037
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18388,
10154,
468,
2756,
2029,
13037,
5054,
30,
5438,
511,
18388,
5726,
3891,
290,
32484,
13,
46506,
18388,
62,
13000,
62,
3672,
11,
5339,
16034,
18388,
62,
3642,
658,
33411,
2756,
62,
259,
62,
67,
692,
945,
1875,
13037
] |
What is the winner of rashmi desai? | SELECT "Winner" FROM table_17998 WHERE "1st Runner Up" = 'Rashmi Desai' | [
2061,
318,
262,
8464,
286,
28509,
11632,
748,
1872,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
1558,
34808,
33411,
366,
16,
301,
21529,
3205,
1,
796,
705,
49,
1077,
11632,
2935,
1872,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
8464,
286,
28509,
11632,
748,
1872,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
1558,
34808,
33411,
366,
16,
301,
21529,
3205,
1,
796,
705,
49,
1077,
11632,
2935,
1872,
6
] |
What position does Christian Leibl-Cote play? | SELECT "Position" FROM table_72145 WHERE "Player" = 'Christian Leibl-Cote' | [
2061,
2292,
857,
4302,
1004,
10506,
12,
34,
1258,
711,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
4761,
18781,
33411,
366,
14140,
1,
796,
705,
20298,
1004,
10506,
12,
34,
1258,
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
] | [
2061,
2292,
857,
4302,
1004,
10506,
12,
34,
1258,
711,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
4761,
18781,
33411,
366,
14140,
1,
796,
705,
20298,
1004,
10506,
12,
34,
1258,
6
] |
What are the highest points for the team of marlboro brm with brm p180 as the chassis? | SELECT MAX("Points") FROM table_79817 WHERE "Team" = 'marlboro brm' AND "Chassis" = 'brm p180' | [
2061,
389,
262,
4511,
2173,
329,
262,
1074,
286,
1667,
75,
21513,
865,
76,
351,
865,
76,
279,
15259,
355,
262,
24587,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
43240,
1558,
33411,
366,
15592,
1,
796,
705,
3876,
75,
21513,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
2173,
329,
262,
1074,
286,
1667,
75,
21513,
865,
76,
351,
865,
76,
279,
15259,
355,
262,
24587,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
43240,
1558,
33411,
366,
15592,
1,
796,
705,
3876,
75,
21513,
... |
On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals? | SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green = 7 AND liberal < 30 | [
2202,
644,
3128,
286,
13985,
373,
262,
12868,
278,
31623,
10041,
2267,
351,
767,
4077,
290,
1342,
621,
1542,
17194,
30,
46506,
3128,
62,
1659,
62,
30393,
278,
16034,
3084,
62,
3672,
62,
17,
33411,
13985,
62,
69,
2533,
796,
366,
27302,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
286,
13985,
373,
262,
12868,
278,
31623,
10041,
2267,
351,
767,
4077,
290,
1342,
621,
1542,
17194,
30,
46506,
3128,
62,
1659,
62,
30393,
278,
16034,
3084,
62,
3672,
62,
17,
33411,
13985,
62,
69,
2533,
796,
366,
27302,... |
What was the nationality of five-eighth player Darren Lockyer? | SELECT nationality FROM table_name_96 WHERE player = "darren lockyer" AND position = "five-eighth" | [
2061,
373,
262,
29835,
286,
1936,
12,
68,
10887,
2137,
26203,
13656,
9860,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
4846,
33411,
2137,
796,
366,
27455,
918,
5793,
9860,
1,
5357,
2292,
796,
366,
13261,
12,
68,
10887,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29835,
286,
1936,
12,
68,
10887,
2137,
26203,
13656,
9860,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
4846,
33411,
2137,
796,
366,
27455,
918,
5793,
9860,
1,
5357,
2292,
796,
366,
13261,
12,
68,
10887,
1
] |
What is the traffic direction of 64th street with 2nd avenue to the west and 1 lane? | SELECT traffic_direction FROM table_name_8 WHERE west = "2nd avenue" AND _number_of_lanes = "1" AND street = "64th street" | [
2061,
318,
262,
4979,
4571,
286,
5598,
400,
4675,
351,
362,
358,
36132,
284,
262,
7421,
290,
352,
11193,
30,
46506,
4979,
62,
37295,
16034,
3084,
62,
3672,
62,
23,
33411,
7421,
796,
366,
17,
358,
36132,
1,
5357,
4808,
17618,
62,
165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4979,
4571,
286,
5598,
400,
4675,
351,
362,
358,
36132,
284,
262,
7421,
290,
352,
11193,
30,
46506,
4979,
62,
37295,
16034,
3084,
62,
3672,
62,
23,
33411,
7421,
796,
366,
17,
358,
36132,
1,
5357,
4808,
17618,
62,
165... |
For each submission, group its acceptance result and count them Visualize them in a bar chart, and I want to sort in ascending by the y axis. | SELECT Result, COUNT(Result) FROM Acceptance GROUP BY Result ORDER BY COUNT(Result) | [
1890,
1123,
14498,
11,
1448,
663,
13427,
1255,
290,
954,
606,
15612,
1096,
606,
287,
257,
2318,
8262,
11,
290,
314,
765,
284,
3297,
287,
41988,
416,
262,
331,
16488,
13,
46506,
25414,
11,
327,
28270,
7,
23004,
8,
16034,
21699,
590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14498,
11,
1448,
663,
13427,
1255,
290,
954,
606,
15612,
1096,
606,
287,
257,
2318,
8262,
11,
290,
314,
765,
284,
3297,
287,
41988,
416,
262,
331,
16488,
13,
46506,
25414,
11,
327,
28270,
7,
23004,
8,
16034,
21699,
590,
... |
What is the netflix code where the series and episode are 4-11? | SELECT netflix FROM table_15187735_4 WHERE series_ep = "4-11" | [
2061,
318,
262,
2010,
10046,
2438,
810,
262,
2168,
290,
4471,
389,
604,
12,
1157,
30,
46506,
2010,
10046,
16034,
3084,
62,
1314,
1507,
3324,
2327,
62,
19,
33411,
2168,
62,
538,
796,
366,
19,
12,
1157,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2010,
10046,
2438,
810,
262,
2168,
290,
4471,
389,
604,
12,
1157,
30,
46506,
2010,
10046,
16034,
3084,
62,
1314,
1507,
3324,
2327,
62,
19,
33411,
2168,
62,
538,
796,
366,
19,
12,
1157,
1
] |
What is augusta's low rank? | SELECT MIN(rank) FROM table_name_58 WHERE location = "augusta" | [
2061,
318,
16339,
436,
64,
338,
1877,
4279,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
3365,
33411,
4067,
796,
366,
7493,
436,
64,
1
] | [
1,
1,
1,
1,
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,
16339,
436,
64,
338,
1877,
4279,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
3365,
33411,
4067,
796,
366,
7493,
436,
64,
1
] |
What is To Par, when Player is 'Tommy Bolt'? | SELECT to_par FROM table_name_55 WHERE player = "tommy bolt" | [
2061,
318,
1675,
2547,
11,
618,
7853,
318,
705,
13787,
1820,
21764,
30960,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
2816,
33411,
2137,
796,
366,
39532,
1820,
18100,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1675,
2547,
11,
618,
7853,
318,
705,
13787,
1820,
21764,
30960,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
2816,
33411,
2137,
796,
366,
39532,
1820,
18100,
1
] |
How many seasons was series number 47 shown? | SELECT COUNT(season_no) FROM table_11630008_4 WHERE series_no = 47 | [
2437,
867,
7028,
373,
2168,
1271,
6298,
3402,
30,
46506,
327,
28270,
7,
6230,
62,
3919,
8,
16034,
3084,
62,
1157,
5066,
830,
23,
62,
19,
33411,
2168,
62,
3919,
796,
6298
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
7028,
373,
2168,
1271,
6298,
3402,
30,
46506,
327,
28270,
7,
6230,
62,
3919,
8,
16034,
3084,
62,
1157,
5066,
830,
23,
62,
19,
33411,
2168,
62,
3919,
796,
6298
] |
Which location has the ecosystem of kelp forest? | SELECT "Place of issue" FROM table_20204 WHERE "Ecosystem" = 'Kelp Forest' | [
13828,
4067,
468,
262,
13187,
286,
885,
34431,
8222,
30,
46506,
366,
27271,
286,
2071,
1,
16034,
3084,
62,
1238,
18638,
33411,
366,
36,
12541,
1,
796,
705,
42,
417,
79,
9115,
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
] | [
13828,
4067,
468,
262,
13187,
286,
885,
34431,
8222,
30,
46506,
366,
27271,
286,
2071,
1,
16034,
3084,
62,
1238,
18638,
33411,
366,
36,
12541,
1,
796,
705,
42,
417,
79,
9115,
6
] |
Other than 957 , what courses does Prof. Pedro Monaville teach ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.number <> 957 AND instructor.name LIKE '%Pedro Monaville%' AND offering_instructor.instructor_id = instructor.instructor_id AND offeri... | [
6395,
621,
860,
3553,
837,
644,
10902,
857,
4415,
13,
28855,
2892,
615,
8270,
4545,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6395,
621,
860,
3553,
837,
644,
10902,
857,
4415,
13,
28855,
2892,
615,
8270,
4545,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
... |
provide the number of patients whose year of birth is less than 2065 and diagnoses short title is int inf clstrdium dfcile? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2065" AND diagnoses.short_title = "Int inf clstrdium dfcile" | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
2996,
290,
40567,
1790,
3670,
318,
493,
1167,
537,
2536,
67,
1505,
288,
16072,
576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
2996,
290,
40567,
1790,
3670,
318,
493,
1167,
537,
2536,
67,
1505,
288,
16072,
576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
... |
Give me a list of all the service names sorted alphabetically. | SELECT service_name FROM services ORDER BY service_name | [
23318,
502,
257,
1351,
286,
477,
262,
2139,
3891,
23243,
24830,
1146,
13,
46506,
2139,
62,
3672,
16034,
2594,
38678,
11050,
2139,
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
] | [
23318,
502,
257,
1351,
286,
477,
262,
2139,
3891,
23243,
24830,
1146,
13,
46506,
2139,
62,
3672,
16034,
2594,
38678,
11050,
2139,
62,
3672
] |
How many times was the player drawn that had less than 12 losses and a goal difference of +20? | SELECT "Drawn" FROM table_50423 WHERE "Lost" < '12' AND "Goal Difference" = '+20' | [
2437,
867,
1661,
373,
262,
2137,
7428,
326,
550,
1342,
621,
1105,
9089,
290,
257,
3061,
3580,
286,
1343,
1238,
30,
46506,
366,
35,
5791,
1,
16034,
3084,
62,
33580,
1954,
33411,
366,
31042,
1,
1279,
705,
1065,
6,
5357,
366,
49045,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
262,
2137,
7428,
326,
550,
1342,
621,
1105,
9089,
290,
257,
3061,
3580,
286,
1343,
1238,
30,
46506,
366,
35,
5791,
1,
16034,
3084,
62,
33580,
1954,
33411,
366,
31042,
1,
1279,
705,
1065,
6,
5357,
366,
49045,
43... |
Questions with answers that score higher than the accepted answer. | SELECT COUNT(DISTINCT question.Id) AS "low_score_accepted" FROM Posts AS question INNER JOIN Posts AS accepted ON question.AcceptedAnswerId = accepted.Id INNER JOIN Posts AS higher ON question.Id = higher.ParentId WHERE higher.Score > accepted.Score | [
35741,
351,
7429,
326,
4776,
2440,
621,
262,
6292,
3280,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1808,
13,
7390,
8,
7054,
366,
9319,
62,
26675,
62,
13635,
276,
1,
16034,
12043,
7054,
1808,
3268,
21479,
32357,
1268,
12043,
7054... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35741,
351,
7429,
326,
4776,
2440,
621,
262,
6292,
3280,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1808,
13,
7390,
8,
7054,
366,
9319,
62,
26675,
62,
13635,
276,
1,
16034,
12043,
7054,
1808,
3268,
21479,
32357,
1268,
12043,
7054... |
Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10? | SELECT opponent FROM table_name_23 WHERE res = "win" AND round > 1 AND record = "42-27-10" | [
8241,
318,
262,
6125,
618,
612,
318,
257,
1592,
287,
2835,
3744,
621,
352,
290,
262,
1700,
318,
5433,
12,
1983,
12,
940,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1954,
33411,
581,
796,
366,
5404,
1,
5357,
2835,
1875,
352,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
6125,
618,
612,
318,
257,
1592,
287,
2835,
3744,
621,
352,
290,
262,
1700,
318,
5433,
12,
1983,
12,
940,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
1954,
33411,
581,
796,
366,
5404,
1,
5357,
2835,
1875,
352,
5357,
... |
How many votes did Obama have at 32.12% | SELECT MIN(obama_number) FROM table_20722805_1 WHERE obama_percentage = "32.12%" | [
2437,
867,
5690,
750,
2486,
423,
379,
3933,
13,
1065,
4,
46506,
20625,
7,
672,
1689,
62,
17618,
8,
16034,
3084,
62,
22745,
1828,
28256,
62,
16,
33411,
909,
1689,
62,
25067,
496,
796,
366,
2624,
13,
1065,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
5690,
750,
2486,
423,
379,
3933,
13,
1065,
4,
46506,
20625,
7,
672,
1689,
62,
17618,
8,
16034,
3084,
62,
22745,
1828,
28256,
62,
16,
33411,
909,
1689,
62,
25067,
496,
796,
366,
2624,
13,
1065,
39658
] |
What was the away score with a win% of 0.75 and average total/home attendance of 4,686 (18,744)? | SELECT "Away" FROM table_57569 WHERE "Win %" = '0.75' AND "Average (Total) Home Attendance" = '4,686 (18,744)' | [
2061,
373,
262,
1497,
4776,
351,
257,
1592,
4,
286,
657,
13,
2425,
290,
2811,
2472,
14,
11195,
14858,
286,
604,
11,
33808,
357,
1507,
11,
22,
2598,
19427,
46506,
366,
32,
1014,
1,
16034,
3084,
62,
36189,
3388,
33411,
366,
16643,
406... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
351,
257,
1592,
4,
286,
657,
13,
2425,
290,
2811,
2472,
14,
11195,
14858,
286,
604,
11,
33808,
357,
1507,
11,
22,
2598,
19427,
46506,
366,
32,
1014,
1,
16034,
3084,
62,
36189,
3388,
33411,
366,
16643,
406... |
Who was the opponent at the game with a score of 35-14? | SELECT "Opponent" FROM table_64735 WHERE "Score" = '35-14' | [
8241,
373,
262,
6125,
379,
262,
983,
351,
257,
4776,
286,
3439,
12,
1415,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
33981,
2327,
33411,
366,
26595,
1,
796,
705,
2327,
12,
1415,
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
] | [
8241,
373,
262,
6125,
379,
262,
983,
351,
257,
4776,
286,
3439,
12,
1415,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
33981,
2327,
33411,
366,
26595,
1,
796,
705,
2327,
12,
1415,
6
] |
What is te name of the constructors dated 26 march? | SELECT "Constructor" FROM table_16759 WHERE "Date" = '26 March' | [
2061,
318,
573,
1438,
286,
262,
5678,
669,
14567,
2608,
9960,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
1433,
38314,
33411,
366,
10430,
1,
796,
705,
2075,
2805,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
573,
1438,
286,
262,
5678,
669,
14567,
2608,
9960,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
1433,
38314,
33411,
366,
10430,
1,
796,
705,
2075,
2805,
6
] |
W hat was the lowest Goals For when they played Team Goole Town and had a position lower than 9? | SELECT MIN(goals_for) FROM table_name_65 WHERE team = "goole town" AND position < 9 | [
54,
6877,
373,
262,
9016,
28510,
1114,
618,
484,
2826,
4816,
1514,
2305,
8329,
290,
550,
257,
2292,
2793,
621,
860,
30,
46506,
20625,
7,
2188,
874,
62,
1640,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
1074,
796,
366,
2188,
2305,
324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
54,
6877,
373,
262,
9016,
28510,
1114,
618,
484,
2826,
4816,
1514,
2305,
8329,
290,
550,
257,
2292,
2793,
621,
860,
30,
46506,
20625,
7,
2188,
874,
62,
1640,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
1074,
796,
366,
2188,
2305,
324... |
provide the number of patients whose days of hospital stay is greater than 0 and diagnoses long title is pulmonary collapse? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "0" AND diagnoses.long_title = "Pulmonary collapse" | [
15234,
485,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
657,
290,
40567,
890,
3670,
318,
45105,
9807,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
657,
290,
40567,
890,
3670,
318,
45105,
9807,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3235... |
How many sprints classifications were associated with an overall winner of Joaquin Rodriguez? | SELECT COUNT(sprints_classification) FROM table_26257223_13 WHERE winner = "Joaquin Rodriguez" | [
2437,
867,
18553,
82,
1398,
6637,
547,
3917,
351,
281,
4045,
8464,
286,
5302,
48734,
19391,
30,
46506,
327,
28270,
7,
82,
17190,
62,
4871,
2649,
8,
16034,
3084,
62,
2075,
28676,
22047,
62,
1485,
33411,
8464,
796,
366,
9908,
48734,
193... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18553,
82,
1398,
6637,
547,
3917,
351,
281,
4045,
8464,
286,
5302,
48734,
19391,
30,
46506,
327,
28270,
7,
82,
17190,
62,
4871,
2649,
8,
16034,
3084,
62,
2075,
28676,
22047,
62,
1485,
33411,
8464,
796,
366,
9908,
48734,
193... |
What are the candidates for noah m. mason? | SELECT COUNT(candidates) FROM table_1342149_13 WHERE incumbent = "Noah M. Mason" | [
2061,
389,
262,
5871,
329,
645,
993,
285,
13,
285,
888,
30,
46506,
327,
28270,
7,
46188,
37051,
8,
16034,
3084,
62,
1485,
3682,
19442,
62,
1485,
33411,
23526,
796,
366,
2949,
993,
337,
13,
14737,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5871,
329,
645,
993,
285,
13,
285,
888,
30,
46506,
327,
28270,
7,
46188,
37051,
8,
16034,
3084,
62,
1485,
3682,
19442,
62,
1485,
33411,
23526,
796,
366,
2949,
993,
337,
13,
14737,
1
] |
Find the appelations that produce wines after the year of 2008 but not in Central Coast area. | SELECT Appelation FROM WINE WHERE YEAR > 2008 EXCEPT SELECT Appelation FROM APPELLATIONS WHERE Area = "Central Coast" | [
16742,
262,
598,
417,
602,
326,
4439,
30680,
706,
262,
614,
286,
3648,
475,
407,
287,
5694,
8545,
1989,
13,
46506,
2034,
417,
341,
16034,
370,
8881,
33411,
32914,
1875,
3648,
7788,
42006,
33493,
2034,
417,
341,
16034,
3486,
11401,
3069,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
598,
417,
602,
326,
4439,
30680,
706,
262,
614,
286,
3648,
475,
407,
287,
5694,
8545,
1989,
13,
46506,
2034,
417,
341,
16034,
370,
8881,
33411,
32914,
1875,
3648,
7788,
42006,
33493,
2034,
417,
341,
16034,
3486,
11401,
3069,... |
Show how many documents are stored and bin by year in a line chart. | SELECT Date_Stored, COUNT(Date_Stored) FROM All_Documents AS T1 JOIN Ref_Calendar AS T2 ON T1.Date_Stored = T2.Calendar_Date | [
15307,
703,
867,
4963,
389,
8574,
290,
9874,
416,
614,
287,
257,
1627,
8262,
13,
46506,
7536,
62,
1273,
1850,
11,
327,
28270,
7,
10430,
62,
1273,
1850,
8,
16034,
1439,
62,
38354,
7054,
309,
16,
32357,
1268,
6524,
62,
9771,
9239,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
703,
867,
4963,
389,
8574,
290,
9874,
416,
614,
287,
257,
1627,
8262,
13,
46506,
7536,
62,
1273,
1850,
11,
327,
28270,
7,
10430,
62,
1273,
1850,
8,
16034,
1439,
62,
38354,
7054,
309,
16,
32357,
1268,
6524,
62,
9771,
9239,
705... |
list the flights between SAN JOSE and HOUSTON | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN JOSE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUST... | [
4868,
262,
13956,
1022,
37376,
449,
14058,
290,
29068,
41924,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
350... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
262,
13956,
1022,
37376,
449,
14058,
290,
29068,
41924,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
350... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id. | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_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,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
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,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
6... |
When was the game played at the Western Oval venue? | SELECT "Date" FROM table_55810 WHERE "Venue" = 'western oval' | [
2215,
373,
262,
983,
2826,
379,
262,
4885,
25165,
14359,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2816,
40215,
33411,
366,
37522,
518,
1,
796,
705,
14197,
41186,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
262,
983,
2826,
379,
262,
4885,
25165,
14359,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2816,
40215,
33411,
366,
37522,
518,
1,
796,
705,
14197,
41186,
6
] |
Who was the runner-up for the event that ended with a winning score of 15 (66-67-70-70=273)? | SELECT "Runner(s)-up" FROM table_70470 WHERE "Winning score" = '–15 (66-67-70-70=273)' | [
8241,
373,
262,
17490,
12,
929,
329,
262,
1785,
326,
4444,
351,
257,
5442,
4776,
286,
1315,
357,
2791,
12,
3134,
12,
2154,
12,
2154,
28,
27367,
19427,
46506,
366,
49493,
7,
82,
13219,
929,
1,
16034,
3084,
62,
2154,
27790,
33411,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
17490,
12,
929,
329,
262,
1785,
326,
4444,
351,
257,
5442,
4776,
286,
1315,
357,
2791,
12,
3134,
12,
2154,
12,
2154,
28,
27367,
19427,
46506,
366,
49493,
7,
82,
13219,
929,
1,
16034,
3084,
62,
2154,
27790,
33411,
366... |
What is the foundation for the institution whose name in English is tanjung puteri technical secondary school? | SELECT "Foundation" FROM table_62546 WHERE "Name in English" = 'tanjung puteri technical secondary school' | [
2061,
318,
262,
8489,
329,
262,
9901,
3025,
1438,
287,
3594,
318,
25706,
73,
2150,
1234,
33442,
6276,
9233,
1524,
30,
46506,
366,
21077,
341,
1,
16034,
3084,
62,
26704,
3510,
33411,
366,
5376,
287,
3594,
1,
796,
705,
38006,
73,
2150,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8489,
329,
262,
9901,
3025,
1438,
287,
3594,
318,
25706,
73,
2150,
1234,
33442,
6276,
9233,
1524,
30,
46506,
366,
21077,
341,
1,
16034,
3084,
62,
26704,
3510,
33411,
366,
5376,
287,
3594,
1,
796,
705,
38006,
73,
2150,
... |
Which female patients have an amio150i drug code? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "AMIO150I" | [
13828,
4048,
3871,
423,
281,
716,
952,
8628,
72,
2563,
2438,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
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,
1,
1,
1,
1,
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,
4048,
3871,
423,
281,
716,
952,
8628,
72,
2563,
2438,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,... |
what was the age of patient 035-4312 on their current hospital encounter? | SELECT patient.age FROM patient WHERE patient.uniquepid = '035-4312' AND patient.hospitaldischargetime IS NULL | [
10919,
373,
262,
2479,
286,
5827,
657,
2327,
12,
3559,
1065,
319,
511,
1459,
4436,
8791,
30,
46506,
5827,
13,
496,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44215,
12,
3559,
1065,
6,
5357,
5827,
13,
49257,
6381,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
2479,
286,
5827,
657,
2327,
12,
3559,
1065,
319,
511,
1459,
4436,
8791,
30,
46506,
5827,
13,
496,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44215,
12,
3559,
1065,
6,
5357,
5827,
13,
49257,
6381,
3... |
What was the result when the opponent was manchester united in venue h? | SELECT "Result" FROM table_44303 WHERE "Opponent" = 'manchester united' AND "Venue" = 'h' | [
2061,
373,
262,
1255,
618,
262,
6125,
373,
582,
35983,
16503,
287,
14359,
289,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2598,
22572,
33411,
366,
27524,
3471,
1,
796,
705,
805,
35983,
16503,
6,
5357,
366,
37522,
518,
1,
796,
705,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
618,
262,
6125,
373,
582,
35983,
16503,
287,
14359,
289,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2598,
22572,
33411,
366,
27524,
3471,
1,
796,
705,
805,
35983,
16503,
6,
5357,
366,
37522,
518,
1,
796,
705,
7... |
What is the status of player Philipp Kohlschreiber? | SELECT status FROM table_24431348_18 WHERE player = "Philipp Kohlschreiber" | [
2061,
318,
262,
3722,
286,
2137,
9844,
24754,
7278,
354,
260,
1856,
30,
46506,
3722,
16034,
3084,
62,
1731,
3559,
1485,
2780,
62,
1507,
33411,
2137,
796,
366,
49680,
24754,
7278,
354,
260,
1856,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3722,
286,
2137,
9844,
24754,
7278,
354,
260,
1856,
30,
46506,
3722,
16034,
3084,
62,
1731,
3559,
1485,
2780,
62,
1507,
33411,
2137,
796,
366,
49680,
24754,
7278,
354,
260,
1856,
1
] |
How many numbers in the season were written by Brett Conrad & Liz Sagal? | SELECT COUNT(no_in_season) FROM table_20726262_3 WHERE writtenby = "Brett Conrad & Liz Sagal" | [
2437,
867,
3146,
287,
262,
1622,
547,
3194,
416,
18726,
39708,
1222,
28313,
25605,
282,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
22745,
2075,
29119,
62,
18,
33411,
3194,
1525,
796,
366,
33,
11489,
39708,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3146,
287,
262,
1622,
547,
3194,
416,
18726,
39708,
1222,
28313,
25605,
282,
30,
46506,
327,
28270,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
22745,
2075,
29119,
62,
18,
33411,
3194,
1525,
796,
366,
33,
11489,
39708,
... |
name the flag bearer directly before zviadauri . | SELECT "flag bearer" FROM table_204_266 WHERE "event year" < (SELECT "event year" FROM table_204_266 WHERE "flag bearer" = 'zurab zviadauri') ORDER BY "event year" DESC LIMIT 1 | [
3672,
262,
6056,
49508,
3264,
878,
1976,
8903,
324,
35190,
764,
46506,
366,
32109,
49508,
1,
16034,
3084,
62,
18638,
62,
25540,
33411,
366,
15596,
614,
1,
1279,
357,
46506,
366,
15596,
614,
1,
16034,
3084,
62,
18638,
62,
25540,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3672,
262,
6056,
49508,
3264,
878,
1976,
8903,
324,
35190,
764,
46506,
366,
32109,
49508,
1,
16034,
3084,
62,
18638,
62,
25540,
33411,
366,
15596,
614,
1,
1279,
357,
46506,
366,
15596,
614,
1,
16034,
3084,
62,
18638,
62,
25540,
33411,
... |
what is the percentage of democratic voters in which the registered voters is 67.8%? | SELECT "Democratic" FROM table_29237 WHERE "Registered voters" = '67.8%' | [
10919,
318,
262,
5873,
286,
10518,
4446,
287,
543,
262,
6823,
4446,
318,
8275,
13,
23,
4,
30,
46506,
366,
33939,
1,
16034,
3084,
62,
1959,
24693,
33411,
366,
47473,
4446,
1,
796,
705,
3134,
13,
23,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
5873,
286,
10518,
4446,
287,
543,
262,
6823,
4446,
318,
8275,
13,
23,
4,
30,
46506,
366,
33939,
1,
16034,
3084,
62,
1959,
24693,
33411,
366,
47473,
4446,
1,
796,
705,
3134,
13,
23,
4,
6
] |
What is the location of the track that opened in 1950? | SELECT "Location" FROM table_17687 WHERE "Year Opened" = '1950' | [
2061,
318,
262,
4067,
286,
262,
2610,
326,
4721,
287,
11445,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
1558,
39925,
33411,
366,
17688,
8670,
2945,
1,
796,
705,
42751,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4067,
286,
262,
2610,
326,
4721,
287,
11445,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
1558,
39925,
33411,
366,
17688,
8670,
2945,
1,
796,
705,
42751,
6
] |
Find Obsolete comments on Islam.SE (Newest first). | SELECT Id, Text, Id AS "comment_link" FROM Comments WHERE LENGTH(Text) < 20 AND Text LIKE '%##phrase##%' ORDER BY Id DESC LIMIT 10000 | [
16742,
1835,
23869,
3651,
319,
3449,
13,
5188,
357,
3791,
395,
717,
737,
46506,
5121,
11,
8255,
11,
5121,
7054,
366,
23893,
62,
8726,
1,
16034,
19502,
33411,
406,
49494,
7,
8206,
8,
1279,
1160,
5357,
8255,
34178,
705,
4,
2235,
34675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1835,
23869,
3651,
319,
3449,
13,
5188,
357,
3791,
395,
717,
737,
46506,
5121,
11,
8255,
11,
5121,
7054,
366,
23893,
62,
8726,
1,
16034,
19502,
33411,
406,
49494,
7,
8206,
8,
1279,
1160,
5357,
8255,
34178,
705,
4,
2235,
34675,
... |
Display a bar chart for what are the names and average salaries for departments with average salary higher than 42000?, list in ascending by the y axis. | SELECT dept_name, AVG(salary) FROM instructor GROUP BY dept_name ORDER BY AVG(salary) | [
23114,
257,
2318,
8262,
329,
644,
389,
262,
3891,
290,
2811,
17058,
329,
13346,
351,
2811,
9588,
2440,
621,
5433,
830,
21747,
1351,
287,
41988,
416,
262,
331,
16488,
13,
46506,
390,
457,
62,
3672,
11,
35224,
7,
21680,
560,
8,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23114,
257,
2318,
8262,
329,
644,
389,
262,
3891,
290,
2811,
17058,
329,
13346,
351,
2811,
9588,
2440,
621,
5433,
830,
21747,
1351,
287,
41988,
416,
262,
331,
16488,
13,
46506,
390,
457,
62,
3672,
11,
35224,
7,
21680,
560,
8,
16034,
... |
WHAT IS THE HOME TEAM WITH A TIE OF 14? | SELECT home_team FROM table_name_21 WHERE tie_no = "14" | [
32971,
3180,
3336,
41779,
33536,
13315,
317,
309,
10008,
3963,
1478,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2481,
33411,
9839,
62,
3919,
796,
366,
1415,
1
] | [
1,
1,
1,
1,
1,
1,
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,
3180,
3336,
41779,
33536,
13315,
317,
309,
10008,
3963,
1478,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2481,
33411,
9839,
62,
3919,
796,
366,
1415,
1
] |
Which place has horton smith as the player? | SELECT "Place" FROM table_68289 WHERE "Player" = 'horton smith' | [
13828,
1295,
468,
289,
419,
261,
895,
342,
355,
262,
2137,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3104,
27693,
33411,
366,
14140,
1,
796,
705,
71,
419,
261,
895,
342,
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
] | [
13828,
1295,
468,
289,
419,
261,
895,
342,
355,
262,
2137,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3104,
27693,
33411,
366,
14140,
1,
796,
705,
71,
419,
261,
895,
342,
6
] |
which representative represented the most counties ? | SELECT "representative" FROM table_204_887 ORDER BY "counties represented" DESC LIMIT 1 | [
4758,
8852,
7997,
262,
749,
14683,
5633,
46506,
366,
15603,
876,
1,
16034,
3084,
62,
18638,
62,
46660,
38678,
11050,
366,
9127,
444,
7997,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
8852,
7997,
262,
749,
14683,
5633,
46506,
366,
15603,
876,
1,
16034,
3084,
62,
18638,
62,
46660,
38678,
11050,
366,
9127,
444,
7997,
1,
22196,
34,
27564,
2043,
352
] |
What is the series number for the episode written by janet leahy? | SELECT MIN("No. in series") FROM table_30377 WHERE "Written by" = 'Janet Leahy' | [
2061,
318,
262,
2168,
1271,
329,
262,
4471,
3194,
416,
42897,
316,
443,
993,
88,
30,
46506,
20625,
7203,
2949,
13,
287,
2168,
4943,
16034,
3084,
62,
1270,
26514,
33411,
366,
25354,
416,
1,
796,
705,
12128,
316,
31232,
88,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2168,
1271,
329,
262,
4471,
3194,
416,
42897,
316,
443,
993,
88,
30,
46506,
20625,
7203,
2949,
13,
287,
2168,
4943,
16034,
3084,
62,
1270,
26514,
33411,
366,
25354,
416,
1,
796,
705,
12128,
316,
31232,
88,
6
] |
Among patients who had initial insertion of transvenous leads [electrodes] into atrium and ventricle, calculate the number of those who were born before the year 2180. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2180" AND procedures.long_title = "Initial insertion of transvenous leads [electrodes] into atrium and ventricle" | [
14311,
3871,
508,
550,
4238,
36075,
286,
1007,
574,
516,
5983,
685,
9509,
305,
8906,
60,
656,
379,
19172,
290,
7435,
1173,
293,
11,
15284,
262,
1271,
286,
883,
508,
547,
4642,
878,
262,
614,
362,
15259,
13,
46506,
327,
28270,
7,
35,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14311,
3871,
508,
550,
4238,
36075,
286,
1007,
574,
516,
5983,
685,
9509,
305,
8906,
60,
656,
379,
19172,
290,
7435,
1173,
293,
11,
15284,
262,
1271,
286,
883,
508,
547,
4642,
878,
262,
614,
362,
15259,
13,
46506,
327,
28270,
7,
35,... |
What was the average round for the oulton park circuit? | SELECT AVG("Round") FROM table_4801 WHERE "Circuit" = 'oulton park' | [
2061,
373,
262,
2811,
2835,
329,
262,
267,
37944,
3952,
10349,
30,
46506,
35224,
7203,
22685,
4943,
16034,
3084,
62,
2780,
486,
33411,
366,
31560,
5013,
1,
796,
705,
2852,
1122,
3952,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2811,
2835,
329,
262,
267,
37944,
3952,
10349,
30,
46506,
35224,
7203,
22685,
4943,
16034,
3084,
62,
2780,
486,
33411,
366,
31560,
5013,
1,
796,
705,
2852,
1122,
3952,
6
] |
what was the first time that patient 85010 had the maximum value of base excess in the previous month? | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85010) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'base excess') AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CU... | [
10919,
373,
262,
717,
640,
326,
5827,
7600,
20943,
550,
262,
5415,
1988,
286,
2779,
6992,
287,
262,
2180,
1227,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
717,
640,
326,
5827,
7600,
20943,
550,
262,
5415,
1988,
286,
2779,
6992,
287,
262,
2180,
1227,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
... |
how many hours have elapsed since patient 99883 was admitted for in the hospital? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 99883 AND admissions.dischtime IS NULL | [
4919,
867,
2250,
423,
42118,
1201,
5827,
7388,
49287,
373,
6848,
329,
287,
262,
4436,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
2250,
423,
42118,
1201,
5827,
7388,
49287,
373,
6848,
329,
287,
262,
4436,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
... |
What amount is the number of hk viewers where chinese title is ? | SELECT hk_viewers FROM table_11173827_1 WHERE chinese_title = "十兄弟" | [
2061,
2033,
318,
262,
1271,
286,
289,
74,
10209,
810,
442,
3762,
3670,
318,
5633,
46506,
289,
74,
62,
1177,
364,
16034,
3084,
62,
1157,
1558,
2548,
1983,
62,
16,
33411,
442,
3762,
62,
7839,
796,
366,
39355,
223,
17739,
226,
28156,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2033,
318,
262,
1271,
286,
289,
74,
10209,
810,
442,
3762,
3670,
318,
5633,
46506,
289,
74,
62,
1177,
364,
16034,
3084,
62,
1157,
1558,
2548,
1983,
62,
16,
33411,
442,
3762,
62,
7839,
796,
366,
39355,
223,
17739,
226,
28156,
2... |
What position is for Plant high school? | SELECT position FROM table_name_47 WHERE school = "plant high school" | [
2061,
2292,
318,
329,
16561,
1029,
1524,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2857,
33411,
1524,
796,
366,
15060,
1029,
1524,
1
] | [
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,
2292,
318,
329,
16561,
1029,
1524,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2857,
33411,
1524,
796,
366,
15060,
1029,
1524,
1
] |
What is the association agreement for bosnia and herzegovina? | SELECT "Association Agreement" FROM table_12598 WHERE "State" = 'bosnia and herzegovina' | [
2061,
318,
262,
8112,
4381,
329,
37284,
18142,
290,
607,
89,
1533,
709,
1437,
30,
46506,
366,
8021,
41003,
12729,
1,
16034,
3084,
62,
1065,
41292,
33411,
366,
9012,
1,
796,
705,
39565,
18142,
290,
607,
89,
1533,
709,
1437,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
8112,
4381,
329,
37284,
18142,
290,
607,
89,
1533,
709,
1437,
30,
46506,
366,
8021,
41003,
12729,
1,
16034,
3084,
62,
1065,
41292,
33411,
366,
9012,
1,
796,
705,
39565,
18142,
290,
607,
89,
1533,
709,
1437,
6
] |
how many times had nacl 0.9% been prescribed for patient 006-195316 since 183 months ago? | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-195316')) AND medication.drugname = 'nacl 0.9%' AND DATETIME(medication.dr... | [
4919,
867,
1661,
550,
299,
37779,
657,
13,
24,
4,
587,
14798,
329,
5827,
3571,
21,
12,
1129,
4310,
1433,
1201,
28551,
1933,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1661,
550,
299,
37779,
657,
13,
24,
4,
587,
14798,
329,
5827,
3571,
21,
12,
1129,
4310,
1433,
1201,
28551,
1933,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46... |
How far into the postseason did the Rams go when their record was 29-7? | SELECT postseason FROM table_14609295_4 WHERE overall = "29-7" | [
2437,
1290,
656,
262,
22905,
750,
262,
16077,
467,
618,
511,
1700,
373,
2808,
12,
22,
30,
46506,
22905,
16034,
3084,
62,
1415,
31751,
25710,
62,
19,
33411,
4045,
796,
366,
1959,
12,
22,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
1290,
656,
262,
22905,
750,
262,
16077,
467,
618,
511,
1700,
373,
2808,
12,
22,
30,
46506,
22905,
16034,
3084,
62,
1415,
31751,
25710,
62,
19,
33411,
4045,
796,
366,
1959,
12,
22,
1
] |
Number of questions in Stack Overflow. | SELECT COUNT(*) AS count FROM Posts WHERE PostTypeId = 1 | [
15057,
286,
2683,
287,
23881,
3827,
11125,
13,
46506,
327,
28270,
7,
28104,
7054,
954,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15057,
286,
2683,
287,
23881,
3827,
11125,
13,
46506,
327,
28270,
7,
28104,
7054,
954,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352
] |
Who was the winner from team Asics-c.g.a. and has a mountains classification of Mariano Piccoli? | SELECT "Winner" FROM table_66913 WHERE "Trofeo Fast Team" = 'asics-c.g.a.' AND "Mountains classification" = 'mariano piccoli' | [
8241,
373,
262,
8464,
422,
1074,
1081,
873,
12,
66,
13,
70,
13,
64,
13,
290,
468,
257,
12269,
17923,
286,
1526,
10115,
15085,
4033,
72,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
36657,
1485,
33411,
366,
44095,
5036,
78,
12549,
4816... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8241,
373,
262,
8464,
422,
1074,
1081,
873,
12,
66,
13,
70,
13,
64,
13,
290,
468,
257,
12269,
17923,
286,
1526,
10115,
15085,
4033,
72,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
36657,
1485,
33411,
366,
44095,
5036,
78,
12549,
4816... |
what were the top five most common output events a year before? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE DATETIME(outputevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY outputevents.itemid) AS... | [
10919,
547,
262,
1353,
1936,
749,
2219,
5072,
2995,
257,
614,
878,
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,
312,
16034,
357,
46506,
38701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
1353,
1936,
749,
2219,
5072,
2995,
257,
614,
878,
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,
312,
16034,
357,
46506,
38701,
... |
Which Date has a Score of 4 5, and a Game smaller than 4? | SELECT date FROM table_name_33 WHERE score = "4–5" AND game < 4 | [
13828,
7536,
468,
257,
15178,
286,
604,
642,
11,
290,
257,
3776,
4833,
621,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2091,
33411,
4776,
796,
366,
19,
1906,
20,
1,
5357,
983,
1279,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7536,
468,
257,
15178,
286,
604,
642,
11,
290,
257,
3776,
4833,
621,
604,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2091,
33411,
4776,
796,
366,
19,
1906,
20,
1,
5357,
983,
1279,
604
] |
what laboratory test was given to patient 70267 last time during this month? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 70267) AND DATETIME(labevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month... | [
10919,
14010,
1332,
373,
1813,
284,
5827,
4317,
25674,
938,
640,
1141,
428,
1227,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
46506,
2248,
31534,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
14010,
1332,
373,
1813,
284,
5827,
4317,
25674,
938,
640,
1141,
428,
1227,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
46506,
2248,
31534,
13,... |
What's the highest lane of rank 4 with a time less than 24.72? | SELECT MAX("Lane") FROM table_64910 WHERE "Time" < '24.72' AND "Rank" = '4' | [
2061,
338,
262,
4511,
11193,
286,
4279,
604,
351,
257,
640,
1342,
621,
1987,
13,
4761,
30,
46506,
25882,
7203,
43,
1531,
4943,
16034,
3084,
62,
33300,
940,
33411,
366,
7575,
1,
1279,
705,
1731,
13,
4761,
6,
5357,
366,
27520,
1,
796,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
4511,
11193,
286,
4279,
604,
351,
257,
640,
1342,
621,
1987,
13,
4761,
30,
46506,
25882,
7203,
43,
1531,
4943,
16034,
3084,
62,
33300,
940,
33411,
366,
7575,
1,
1279,
705,
1731,
13,
4761,
6,
5357,
366,
27520,
1,
796,... |
What is Home Team, when Tie No is 4? | SELECT "Home team" FROM table_9452 WHERE "Tie no" = '4' | [
2061,
318,
5995,
4816,
11,
618,
36286,
1400,
318,
604,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
24,
37730,
33411,
366,
51,
494,
645,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
5995,
4816,
11,
618,
36286,
1400,
318,
604,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
24,
37730,
33411,
366,
51,
494,
645,
1,
796,
705,
19,
6
] |
What is the status when the ceased to be heir; reason is 18 february 1853 succeeded? | SELECT "Status" FROM table_28718 WHERE "Ceased to be heir; reason" = '18 February 1853 succeeded' | [
2061,
318,
262,
3722,
618,
262,
24368,
284,
307,
28625,
26,
1738,
318,
1248,
730,
65,
3728,
1248,
4310,
14131,
30,
46506,
366,
19580,
1,
16034,
3084,
62,
27800,
1507,
33411,
366,
34,
68,
839,
284,
307,
28625,
26,
1738,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3722,
618,
262,
24368,
284,
307,
28625,
26,
1738,
318,
1248,
730,
65,
3728,
1248,
4310,
14131,
30,
46506,
366,
19580,
1,
16034,
3084,
62,
27800,
1507,
33411,
366,
34,
68,
839,
284,
307,
28625,
26,
1738,
1,
796,
705,
... |
What is the label that has the most albums? | SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
318,
262,
6167,
326,
468,
262,
749,
16788,
30,
46506,
6167,
16034,
16788,
44441,
11050,
6167,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
6167,
326,
468,
262,
749,
16788,
30,
46506,
6167,
16034,
16788,
44441,
11050,
6167,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
Which Date has a Venue of lake oval? | SELECT "Date" FROM table_54904 WHERE "Venue" = 'lake oval' | [
13828,
7536,
468,
257,
9932,
518,
286,
13546,
41186,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
44966,
3023,
33411,
366,
37522,
518,
1,
796,
705,
27180,
41186,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7536,
468,
257,
9932,
518,
286,
13546,
41186,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
44966,
3023,
33411,
366,
37522,
518,
1,
796,
705,
27180,
41186,
6
] |
What's the smallest episode number of an episode whose number in the series is 22? | SELECT MIN("No. in season") FROM table_18068 WHERE "No. in series" = '22' | [
2061,
338,
262,
18197,
4471,
1271,
286,
281,
4471,
3025,
1271,
287,
262,
2168,
318,
2534,
30,
46506,
20625,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
15259,
3104,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
1828,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
18197,
4471,
1271,
286,
281,
4471,
3025,
1271,
287,
262,
2168,
318,
2534,
30,
46506,
20625,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
15259,
3104,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
1828,
6
] |
Post count, view count, view/post ratio per day, for a tag. | SELECT DATE(p.CreationDate) AS pdate, COUNT(*) AS nposts_per_day, SUM(p.ViewCount) AS nviews_per_day, SUM(p.ViewCount) / COUNT(*) AS view_post_ratio FROM Tags JOIN PostTags AS pt ON Tags.Id = pt.TagId JOIN Posts AS p ON pt.PostId = p.Id WHERE Tags.TagName = @TagName GROUP BY DATE(p.CreationDate) ORDER BY pdate DESC | [
6307,
954,
11,
1570,
954,
11,
1570,
14,
7353,
8064,
583,
1110,
11,
329,
257,
7621,
13,
46506,
360,
6158,
7,
79,
13,
12443,
341,
10430,
8,
7054,
279,
4475,
11,
327,
28270,
7,
28104,
7054,
299,
24875,
62,
525,
62,
820,
11,
35683,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
954,
11,
1570,
954,
11,
1570,
14,
7353,
8064,
583,
1110,
11,
329,
257,
7621,
13,
46506,
360,
6158,
7,
79,
13,
12443,
341,
10430,
8,
7054,
279,
4475,
11,
327,
28270,
7,
28104,
7054,
299,
24875,
62,
525,
62,
820,
11,
35683,
... |
Name the Place which has To par of 5, in united states? | SELECT place FROM table_name_95 WHERE country = "united states" AND to_par = "–5" | [
5376,
262,
8474,
543,
468,
1675,
1582,
286,
642,
11,
287,
16503,
2585,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3865,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
284,
62,
1845,
796,
366,
1906,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8474,
543,
468,
1675,
1582,
286,
642,
11,
287,
16503,
2585,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3865,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
284,
62,
1845,
796,
366,
1906,
20,
1
] |
Who was the scoring leader and how many points did he get in games on December 23? | SELECT high_points FROM table_10812293_4 WHERE date = "December 23" | [
8241,
373,
262,
9689,
3554,
290,
703,
867,
2173,
750,
339,
651,
287,
1830,
319,
3426,
2242,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
15711,
1065,
31675,
62,
19,
33411,
3128,
796,
366,
20588,
2242,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
9689,
3554,
290,
703,
867,
2173,
750,
339,
651,
287,
1830,
319,
3426,
2242,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
15711,
1065,
31675,
62,
19,
33411,
3128,
796,
366,
20588,
2242,
1
] |
type i diabetes | SELECT * FROM table_train_206 WHERE diabetic = 'i' | [
4906,
1312,
12593,
46506,
1635,
16034,
3084,
62,
27432,
62,
22136,
33411,
44016,
796,
705,
72,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4906,
1312,
12593,
46506,
1635,
16034,
3084,
62,
27432,
62,
22136,
33411,
44016,
796,
705,
72,
6
] |
Which Name has a Term end of 18 july 1944? | SELECT "Name" FROM table_9443 WHERE "Term end" = '18 july 1944' | [
13828,
6530,
468,
257,
35118,
886,
286,
1248,
474,
2062,
16994,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
24,
34938,
33411,
366,
40596,
886,
1,
796,
705,
1507,
474,
2062,
16994,
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
] | [
13828,
6530,
468,
257,
35118,
886,
286,
1248,
474,
2062,
16994,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
24,
34938,
33411,
366,
40596,
886,
1,
796,
705,
1507,
474,
2062,
16994,
6
] |
What is the Location of the Competition with a Rank-Final of 10? | SELECT "Location" FROM table_64140 WHERE "Rank-Final" = '10' | [
2061,
318,
262,
13397,
286,
262,
27348,
351,
257,
10916,
12,
19006,
286,
838,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2414,
15187,
33411,
366,
27520,
12,
19006,
1,
796,
705,
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
] | [
2061,
318,
262,
13397,
286,
262,
27348,
351,
257,
10916,
12,
19006,
286,
838,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2414,
15187,
33411,
366,
27520,
12,
19006,
1,
796,
705,
940,
6
] |
How many kit makers are there for Louis Carey's team? | SELECT COUNT("Kit maker") FROM table_3591 WHERE "Team captain" = 'Louis Carey' | [
2437,
867,
6220,
14429,
389,
612,
329,
5593,
31612,
338,
1074,
30,
46506,
327,
28270,
7203,
20827,
16009,
4943,
16034,
3084,
62,
2327,
6420,
33411,
366,
15592,
10654,
1,
796,
705,
32117,
31612,
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
] | [
2437,
867,
6220,
14429,
389,
612,
329,
5593,
31612,
338,
1074,
30,
46506,
327,
28270,
7203,
20827,
16009,
4943,
16034,
3084,
62,
2327,
6420,
33411,
366,
15592,
10654,
1,
796,
705,
32117,
31612,
6
] |
How many people attended when opponent was twins? | SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "twins" | [
2437,
867,
661,
9141,
618,
6125,
373,
20345,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1795,
33411,
6125,
796,
366,
4246,
1040,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
661,
9141,
618,
6125,
373,
20345,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1795,
33411,
6125,
796,
366,
4246,
1040,
1
] |
Show the type of school and the number of buses for each type in a bar chart, display y axis in descending order. | SELECT Type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID GROUP BY T2.Type ORDER BY COUNT(*) DESC | [
15307,
262,
2099,
286,
1524,
290,
262,
1271,
286,
16893,
329,
1123,
2099,
287,
257,
2318,
8262,
11,
3359,
331,
16488,
287,
31491,
1502,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
1524,
62,
10885,
7054,
309,
16,
32357,
1268,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
2099,
286,
1524,
290,
262,
1271,
286,
16893,
329,
1123,
2099,
287,
257,
2318,
8262,
11,
3359,
331,
16488,
287,
31491,
1502,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
1524,
62,
10885,
7054,
309,
16,
32357,
1268,
152... |
What is the average total medals of the nation with 4 bronze and more than 1 silver medals? | SELECT AVG("Total") FROM table_8306 WHERE "Bronze" = '4' AND "Silver" > '1' | [
2061,
318,
262,
2811,
2472,
28057,
286,
262,
3277,
351,
604,
22101,
290,
517,
621,
352,
8465,
28057,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
23,
20548,
33411,
366,
18760,
2736,
1,
796,
705,
19,
6,
5357,
366,
26766,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
28057,
286,
262,
3277,
351,
604,
22101,
290,
517,
621,
352,
8465,
28057,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
23,
20548,
33411,
366,
18760,
2736,
1,
796,
705,
19,
6,
5357,
366,
26766,
1,
... |
Who was the driver of the vehicle having class of CM22 and navigator of Macneall? | SELECT "Driver" FROM table_65052 WHERE "Class" = 'cm22' AND "Navigator" = 'macneall' | [
8241,
373,
262,
4639,
286,
262,
4038,
1719,
1398,
286,
16477,
1828,
290,
20436,
1352,
286,
4100,
710,
439,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
17544,
4309,
33411,
366,
9487,
1,
796,
705,
11215,
1828,
6,
5357,
366,
30575,
23823,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
4639,
286,
262,
4038,
1719,
1398,
286,
16477,
1828,
290,
20436,
1352,
286,
4100,
710,
439,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
17544,
4309,
33411,
366,
9487,
1,
796,
705,
11215,
1828,
6,
5357,
366,
30575,
23823,... |
How many were in the crowd at the Junction Oval venue? | SELECT crowd FROM table_name_15 WHERE venue = "junction oval" | [
2437,
867,
547,
287,
262,
4315,
379,
262,
44410,
25165,
14359,
30,
46506,
4315,
16034,
3084,
62,
3672,
62,
1314,
33411,
14359,
796,
366,
73,
4575,
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
] | [
2437,
867,
547,
287,
262,
4315,
379,
262,
44410,
25165,
14359,
30,
46506,
4315,
16034,
3084,
62,
3672,
62,
1314,
33411,
14359,
796,
366,
73,
4575,
41186,
1
] |
Which Points have a Year larger than 1966, and Wins larger than 1? | SELECT AVG("Points") FROM table_37566 WHERE "Year" > '1966' AND "Wins" > '1' | [
13828,
11045,
423,
257,
6280,
4025,
621,
19322,
11,
290,
24423,
4025,
621,
352,
30,
46506,
35224,
7203,
40710,
4943,
16034,
3084,
62,
22318,
2791,
33411,
366,
17688,
1,
1875,
705,
44227,
6,
5357,
366,
54,
1040,
1,
1875,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
11045,
423,
257,
6280,
4025,
621,
19322,
11,
290,
24423,
4025,
621,
352,
30,
46506,
35224,
7203,
40710,
4943,
16034,
3084,
62,
22318,
2791,
33411,
366,
17688,
1,
1875,
705,
44227,
6,
5357,
366,
54,
1040,
1,
1875,
705,
16,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, find email and department_id , and visualize them by a bar chart, and order from low to high by the y-axis please. | SELECT EMAIL, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY DEPARTMENT_ID | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
3053,
290,
5011,
62,
312,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
1502,
422,
1877,
284,
1029,
416,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
3053,
290,
5011,
62,
312,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
1502,
422,
1877,
284,
1029,
416,
262,
... |
Find the first names of students with age above 22. | SELECT fname FROM student WHERE age > 22 | [
16742,
262,
717,
3891,
286,
2444,
351,
2479,
2029,
2534,
13,
46506,
277,
3672,
16034,
3710,
33411,
2479,
1875,
2534
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
717,
3891,
286,
2444,
351,
2479,
2029,
2534,
13,
46506,
277,
3672,
16034,
3710,
33411,
2479,
1875,
2534
] |
Which courses will be offered during the next 6 semesters ? | SELECT DISTINCT course.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND se... | [
13828,
10902,
481,
307,
4438,
1141,
262,
1306,
718,
5026,
8586,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
11,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
10902,
481,
307,
4438,
1141,
262,
1306,
718,
5026,
8586,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
11,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
... |
What is the attendance of week 8? | SELECT COUNT(attendance) FROM table_name_23 WHERE week = 8 | [
2061,
318,
262,
14858,
286,
1285,
807,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
1285,
796,
807
] | [
1,
1,
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,
14858,
286,
1285,
807,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
1285,
796,
807
] |
Who played in the series that resulted in matches with the following scores: 0 3 0 8 0 1 0 2 0 3 1 4 0 9 0 5? | SELECT "Opponent" FROM table_19208 WHERE "Result" = '0–3 0–8 0–1 0–2 0–3 1–4 0–9 0–5' | [
8241,
2826,
287,
262,
2168,
326,
8724,
287,
7466,
351,
262,
1708,
8198,
25,
657,
513,
657,
807,
657,
352,
657,
362,
657,
513,
352,
604,
657,
860,
657,
642,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
1129,
21315,
33411,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8241,
2826,
287,
262,
2168,
326,
8724,
287,
7466,
351,
262,
1708,
8198,
25,
657,
513,
657,
807,
657,
352,
657,
362,
657,
513,
352,
604,
657,
860,
657,
642,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
1129,
21315,
33411,
366,
... |
Random questions on a site. | SELECT p.Id AS "post_link", p.* FROM Posts AS p WITH (nolock) WHERE p.PostTypeId IN (1) ORDER BY NEWID() | [
29531,
2683,
319,
257,
2524,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
15885,
16034,
12043,
7054,
279,
13315,
357,
77,
349,
735,
8,
33411,
279,
13,
6307,
6030,
7390,
3268,
357,
16,
8,
38678,
11050,
12682,
2389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
29531,
2683,
319,
257,
2524,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
15885,
16034,
12043,
7054,
279,
13315,
357,
77,
349,
735,
8,
33411,
279,
13,
6307,
6030,
7390,
3268,
357,
16,
8,
38678,
11050,
12682,
2389,
... |
what is the total apps when the league apps is 4 (2)? | SELECT "Total Apps" FROM table_65283 WHERE "League Apps" = '4 (2)' | [
10919,
318,
262,
2472,
6725,
618,
262,
4652,
6725,
318,
604,
357,
17,
19427,
46506,
366,
14957,
27710,
1,
16034,
3084,
62,
2996,
30290,
33411,
366,
24623,
27710,
1,
796,
705,
19,
357,
17,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
6725,
618,
262,
4652,
6725,
318,
604,
357,
17,
19427,
46506,
366,
14957,
27710,
1,
16034,
3084,
62,
2996,
30290,
33411,
366,
24623,
27710,
1,
796,
705,
19,
357,
17,
33047
] |
which building has the greatest number of floors ? | SELECT "name" FROM table_204_649 ORDER BY "floors" DESC LIMIT 1 | [
4758,
2615,
468,
262,
6000,
1271,
286,
18570,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
33300,
38678,
11050,
366,
48679,
669,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
2615,
468,
262,
6000,
1271,
286,
18570,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
33300,
38678,
11050,
366,
48679,
669,
1,
22196,
34,
27564,
2043,
352
] |
What was the winning time in 1984? | SELECT "Time" FROM table_32328 WHERE "Year" = '1984' | [
2061,
373,
262,
5442,
640,
287,
12844,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
32637,
2078,
33411,
366,
17688,
1,
796,
705,
28296,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5442,
640,
287,
12844,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
32637,
2078,
33411,
366,
17688,
1,
796,
705,
28296,
6
] |
Find the number of the name of rooms booked by some customers whose first name contains ROY. | SELECT roomName, COUNT(roomName) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE FirstName LIKE '%ROY%' GROUP BY roomName | [
16742,
262,
1271,
286,
262,
1438,
286,
9519,
21765,
416,
617,
4297,
3025,
717,
1438,
4909,
15107,
56,
13,
46506,
2119,
5376,
11,
327,
28270,
7,
3823,
5376,
8,
16034,
40425,
602,
7054,
309,
16,
32357,
1268,
42043,
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,
1,
1,
1,
1,
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,
262,
1438,
286,
9519,
21765,
416,
617,
4297,
3025,
717,
1438,
4909,
15107,
56,
13,
46506,
2119,
5376,
11,
327,
28270,
7,
3823,
5376,
8,
16034,
40425,
602,
7054,
309,
16,
32357,
1268,
42043,
7054,
309,
17,
6177,
... |
Name the first air date for 9 episode | SELECT first_air_date FROM table_20971444_3 WHERE episode = 9 | [
5376,
262,
717,
1633,
3128,
329,
860,
4471,
46506,
717,
62,
958,
62,
4475,
16034,
3084,
62,
1238,
5607,
1415,
2598,
62,
18,
33411,
4471,
796,
860
] | [
1,
1,
1,
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,
717,
1633,
3128,
329,
860,
4471,
46506,
717,
62,
958,
62,
4475,
16034,
3084,
62,
1238,
5607,
1415,
2598,
62,
18,
33411,
4471,
796,
860
] |
The sector that had a 8.7 GDP for 2006-2009 had what GDP for 1993-2001? | SELECT "1993-2001" FROM table_27518 WHERE "2006-2009" = '8.7' | [
464,
6567,
326,
550,
257,
807,
13,
22,
12396,
329,
4793,
12,
10531,
550,
644,
12396,
329,
9656,
12,
14585,
30,
46506,
366,
24465,
12,
14585,
1,
16034,
3084,
62,
23195,
1507,
33411,
366,
13330,
12,
10531,
1,
796,
705,
23,
13,
22,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
464,
6567,
326,
550,
257,
807,
13,
22,
12396,
329,
4793,
12,
10531,
550,
644,
12396,
329,
9656,
12,
14585,
30,
46506,
366,
24465,
12,
14585,
1,
16034,
3084,
62,
23195,
1507,
33411,
366,
13330,
12,
10531,
1,
796,
705,
23,
13,
22,
6... |
Is any section of LATINOAM 243 offered between 11:00 and 3:00 ? | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '3:00' AND course_offering.start_time >= '11:00' AND course.course_id = course_offering.course_id AND course.department = 'LATINOAM' AND course.nu... | [
3792,
597,
2665,
286,
42355,
46016,
2390,
35989,
4438,
1022,
1367,
25,
405,
290,
513,
25,
405,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
437,
62,
2435,
11,
1781,
62,
2364,
1586,
13,
5458,
62,
17618,
11,
1781,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3792,
597,
2665,
286,
42355,
46016,
2390,
35989,
4438,
1022,
1367,
25,
405,
290,
513,
25,
405,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
437,
62,
2435,
11,
1781,
62,
2364,
1586,
13,
5458,
62,
17618,
11,
1781,
62,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.