instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
I want the total number of ends for filip ebo and Goals more than 2 | SELECT COUNT(ends) FROM table_name_67 WHERE name = "filip šebo" AND goals > 2 | [
40,
765,
262,
2472,
1271,
286,
5645,
329,
1226,
541,
304,
2127,
290,
28510,
517,
621,
362,
46506,
327,
28270,
7,
2412,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
1438,
796,
366,
10379,
541,
25370,
94,
1765,
78,
1,
5357,
4661,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
2472,
1271,
286,
5645,
329,
1226,
541,
304,
2127,
290,
28510,
517,
621,
362,
46506,
327,
28270,
7,
2412,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
1438,
796,
366,
10379,
541,
25370,
94,
1765,
78,
1,
5357,
4661,
1875,
... |
What team had a finish of 25 in a smaller than 28? | SELECT team FROM table_name_82 WHERE start < 28 AND finish = 25 | [
2061,
1074,
550,
257,
5461,
286,
1679,
287,
257,
4833,
621,
2579,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
6469,
33411,
923,
1279,
2579,
5357,
5461,
796,
1679
] | [
1,
1,
1,
1,
1,
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,
550,
257,
5461,
286,
1679,
287,
257,
4833,
621,
2579,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
6469,
33411,
923,
1279,
2579,
5357,
5461,
796,
1679
] |
which patients are covered under medicare health insurance? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicare" | [
4758,
3871,
389,
5017,
739,
6924,
533,
1535,
5096,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
533,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
389,
5017,
739,
6924,
533,
1535,
5096,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
533,
1
] |
Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59? | SELECT MIN(january) FROM table_name_13 WHERE opponent = "florida panthers" AND points < 59 | [
13828,
3269,
318,
262,
9016,
530,
326,
468,
281,
9385,
3471,
286,
781,
273,
3755,
15857,
7084,
11,
290,
11045,
4833,
621,
7863,
30,
46506,
20625,
7,
13881,
2838,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
6125,
796,
366,
2704,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3269,
318,
262,
9016,
530,
326,
468,
281,
9385,
3471,
286,
781,
273,
3755,
15857,
7084,
11,
290,
11045,
4833,
621,
7863,
30,
46506,
20625,
7,
13881,
2838,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
6125,
796,
366,
2704,
273,
... |
What were the years for Redhill school, authority of state? | SELECT "Years" FROM table_57831 WHERE "Authority" = 'state' AND "Name" = 'redhill school' | [
2061,
547,
262,
812,
329,
2297,
12639,
1524,
11,
4934,
286,
1181,
30,
46506,
366,
40630,
1,
16034,
3084,
62,
38907,
3132,
33411,
366,
13838,
414,
1,
796,
705,
5219,
6,
5357,
366,
5376,
1,
796,
705,
445,
12639,
1524,
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,
547,
262,
812,
329,
2297,
12639,
1524,
11,
4934,
286,
1181,
30,
46506,
366,
40630,
1,
16034,
3084,
62,
38907,
3132,
33411,
366,
13838,
414,
1,
796,
705,
5219,
6,
5357,
366,
5376,
1,
796,
705,
445,
12639,
1524,
6
] |
Name the april for candice cassidy | SELECT "April" FROM table_69135 WHERE "June" = 'candice cassidy' | [
5376,
262,
46593,
346,
329,
2658,
501,
30606,
19325,
46506,
366,
16784,
1,
16034,
3084,
62,
3388,
17059,
33411,
366,
15749,
1,
796,
705,
46188,
501,
30606,
19325,
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
] | [
5376,
262,
46593,
346,
329,
2658,
501,
30606,
19325,
46506,
366,
16784,
1,
16034,
3084,
62,
3388,
17059,
33411,
366,
15749,
1,
796,
705,
46188,
501,
30606,
19325,
6
] |
what is the number of patients whose admission year is less than 2184 and lab test fluid is blood? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2184" AND lab.fluid = "Blood" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
22883,
290,
2248,
1332,
11711,
318,
2910,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
22883,
290,
2248,
1332,
11711,
318,
2910,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2... |
What is the highest number of laps when honda is the manufacturer and the grid number is 12? | SELECT MAX(laps) FROM table_name_27 WHERE manufacturer = "honda" AND grid = 12 | [
2061,
318,
262,
4511,
1271,
286,
24590,
618,
289,
13533,
318,
262,
11554,
290,
262,
10706,
1271,
318,
1105,
30,
46506,
25882,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
1983,
33411,
11554,
796,
366,
71,
13533,
1,
5357,
10706,
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
] | [
2061,
318,
262,
4511,
1271,
286,
24590,
618,
289,
13533,
318,
262,
11554,
290,
262,
10706,
1271,
318,
1105,
30,
46506,
25882,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
1983,
33411,
11554,
796,
366,
71,
13533,
1,
5357,
10706,
796,
1... |
How many courses each teacher taught? Show me a stacked bar chart The x-axis is the instructor's first name and group by course code, and display from high to low by the x-axis. | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM GROUP BY CRS_CODE, EMP_FNAME ORDER BY EMP_FNAME DESC | [
2437,
867,
10902,
1123,
4701,
7817,
30,
5438,
502,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
262,
21187,
338,
717,
1438,
290,
1448,
416,
1781,
2438,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
2124,
12,
22704,
13,
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... | [
2437,
867,
10902,
1123,
4701,
7817,
30,
5438,
502,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
262,
21187,
338,
717,
1438,
290,
1448,
416,
1781,
2438,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
2124,
12,
22704,
13,
46506,
... |
Are there usually 2 or 3 lectures a week for 370 ? | SELECT DISTINCT course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday, semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND c... | [
8491,
612,
3221,
362,
393,
513,
25917,
257,
1285,
329,
28687,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
8310,
2567,
11,
1781,
62,
2364,
1586,
13,
76,
3204,
11,
1781,
62,
2364,
1586,
13,
82,
3658,
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... | [
8491,
612,
3221,
362,
393,
513,
25917,
257,
1285,
329,
28687,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
8310,
2567,
11,
1781,
62,
2364,
1586,
13,
76,
3204,
11,
1781,
62,
2364,
1586,
13,
82,
3658,
11,
1781,
62,
... |
What is the height for rank greater than 10 in Tameer Tower? | SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = "tameer tower" | [
2061,
318,
262,
6001,
329,
4279,
3744,
621,
838,
287,
309,
480,
263,
8765,
30,
46506,
6001,
62,
76,
834,
701,
62,
16034,
3084,
62,
3672,
62,
3324,
33411,
4279,
1875,
838,
5357,
1438,
796,
366,
83,
480,
263,
10580,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6001,
329,
4279,
3744,
621,
838,
287,
309,
480,
263,
8765,
30,
46506,
6001,
62,
76,
834,
701,
62,
16034,
3084,
62,
3672,
62,
3324,
33411,
4279,
1875,
838,
5357,
1438,
796,
366,
83,
480,
263,
10580,
1
] |
Which teams are located in highland township? | SELECT "Team" FROM table_16455 WHERE "Location" = 'Highland Township' | [
13828,
3466,
389,
5140,
287,
1029,
1044,
42823,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1433,
30505,
33411,
366,
14749,
1,
796,
705,
11922,
1044,
32115,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3466,
389,
5140,
287,
1029,
1044,
42823,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1433,
30505,
33411,
366,
14749,
1,
796,
705,
11922,
1044,
32115,
6
] |
What was the number of athletes in the host city of Nice? | SELECT "No. of athletes" FROM table_73991 WHERE "Host city" = 'Nice' | [
2061,
373,
262,
1271,
286,
10856,
287,
262,
2583,
1748,
286,
18460,
30,
46506,
366,
2949,
13,
286,
10856,
1,
16034,
3084,
62,
4790,
2079,
16,
33411,
366,
17932,
1748,
1,
796,
705,
35284,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1271,
286,
10856,
287,
262,
2583,
1748,
286,
18460,
30,
46506,
366,
2949,
13,
286,
10856,
1,
16034,
3084,
62,
4790,
2079,
16,
33411,
366,
17932,
1748,
1,
796,
705,
35284,
6
] |
What is the semifinal result for Dorrie Timmermans-Van Hall? | SELECT "Semifinals" FROM table_22497 WHERE "Athlete" = 'Dorrie Timmermans-Van Hall' | [
2061,
318,
262,
32948,
1292,
1255,
329,
12528,
5034,
5045,
647,
16221,
12,
25298,
4789,
30,
46506,
366,
13900,
361,
6897,
1,
16034,
3084,
62,
24137,
5607,
33411,
366,
32,
400,
5807,
1,
796,
705,
35,
273,
5034,
5045,
647,
16221,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
32948,
1292,
1255,
329,
12528,
5034,
5045,
647,
16221,
12,
25298,
4789,
30,
46506,
366,
13900,
361,
6897,
1,
16034,
3084,
62,
24137,
5607,
33411,
366,
32,
400,
5807,
1,
796,
705,
35,
273,
5034,
5045,
647,
16221,
12,
... |
when did patient 029-22492 have for the first time intake of norepinephrine v3-in until 05/04/2103? | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-22492')) AND intakeoutput.cellpath LIKE '%intake%... | [
12518,
750,
5827,
657,
1959,
12,
24137,
5892,
423,
329,
262,
717,
640,
10337,
286,
299,
382,
23908,
47723,
410,
18,
12,
259,
1566,
8870,
14,
3023,
14,
17,
15197,
30,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
22915,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
750,
5827,
657,
1959,
12,
24137,
5892,
423,
329,
262,
717,
640,
10337,
286,
299,
382,
23908,
47723,
410,
18,
12,
259,
1566,
8870,
14,
3023,
14,
17,
15197,
30,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
22915,... |
Comments containing given keyword (with text and author). | SELECT Id AS "comment_link", NULL AS "post_link", Text, UserId AS "user_link", CreationDate FROM Comments WHERE Text LIKE '%nizkor%' UNION SELECT NULL AS "comment_link", Id AS "post_link", Body AS Text, OwnerUserId AS "user_link", CreationDate FROM Posts WHERE Body LIKE '%nizkor%' ORDER BY CreationDate | [
23903,
7268,
1813,
21179,
357,
4480,
2420,
290,
1772,
737,
46506,
5121,
7054,
366,
23893,
62,
8726,
1600,
15697,
7054,
366,
7353,
62,
8726,
1600,
8255,
11,
11787,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
16034,
19502,
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... | [
23903,
7268,
1813,
21179,
357,
4480,
2420,
290,
1772,
737,
46506,
5121,
7054,
366,
23893,
62,
8726,
1600,
15697,
7054,
366,
7353,
62,
8726,
1600,
8255,
11,
11787,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
16034,
19502,
33411,
... |
What's the time of Britta Steffen in a lane less than 4? | SELECT SUM(time) FROM table_name_50 WHERE lane < 4 AND name = "britta steffen" | [
2061,
338,
262,
640,
286,
26036,
64,
2441,
46985,
287,
257,
11193,
1342,
621,
604,
30,
46506,
35683,
7,
2435,
8,
16034,
3084,
62,
3672,
62,
1120,
33411,
11193,
1279,
604,
5357,
1438,
796,
366,
1671,
48519,
2876,
46985,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
286,
26036,
64,
2441,
46985,
287,
257,
11193,
1342,
621,
604,
30,
46506,
35683,
7,
2435,
8,
16034,
3084,
62,
3672,
62,
1120,
33411,
11193,
1279,
604,
5357,
1438,
796,
366,
1671,
48519,
2876,
46985,
1
] |
What is the date of the tournament played in Madrid, Spain? | SELECT date FROM table_name_90 WHERE tournament = "madrid, spain" | [
2061,
318,
262,
3128,
286,
262,
7756,
2826,
287,
14708,
11,
8602,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3829,
33411,
7756,
796,
366,
9937,
6058,
11,
599,
391,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
286,
262,
7756,
2826,
287,
14708,
11,
8602,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3829,
33411,
7756,
796,
366,
9937,
6058,
11,
599,
391,
1
] |
Which Games played has a Points of 6, and Goals scored larger than 12? | SELECT MAX("Games played") FROM table_13224 WHERE "Points" = '6' AND "Goals scored" > '12' | [
13828,
5776,
2826,
468,
257,
11045,
286,
718,
11,
290,
28510,
7781,
4025,
621,
1105,
30,
46506,
25882,
7203,
24474,
2826,
4943,
16034,
3084,
62,
19924,
1731,
33411,
366,
40710,
1,
796,
705,
21,
6,
5357,
366,
5247,
874,
7781,
1,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5776,
2826,
468,
257,
11045,
286,
718,
11,
290,
28510,
7781,
4025,
621,
1105,
30,
46506,
25882,
7203,
24474,
2826,
4943,
16034,
3084,
62,
19924,
1731,
33411,
366,
40710,
1,
796,
705,
21,
6,
5357,
366,
5247,
874,
7781,
1,
1875,
... |
give the number of patients who were admitted before the year 2198 and undergone the procedure circumcision. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2198" AND procedures.long_title = "Circumcision" | [
26535,
262,
1271,
286,
3871,
508,
547,
6848,
878,
262,
614,
362,
22337,
290,
29900,
262,
8771,
25513,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
262,
1271,
286,
3871,
508,
547,
6848,
878,
262,
614,
362,
22337,
290,
29900,
262,
8771,
25513,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16... |
What is the lowest Lead Margin when Republican: Mitch Daniels was polling at 48%? | SELECT MIN("Lead Margin") FROM table_76639 WHERE "Republican: Mitch Daniels" = '48%' | [
2061,
318,
262,
9016,
20116,
11899,
259,
618,
3415,
25,
20472,
28162,
373,
13985,
379,
4764,
4,
30,
46506,
20625,
7203,
20451,
11899,
259,
4943,
16034,
3084,
62,
22,
2791,
2670,
33411,
366,
25777,
25,
20472,
28162,
1,
796,
705,
2780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20116,
11899,
259,
618,
3415,
25,
20472,
28162,
373,
13985,
379,
4764,
4,
30,
46506,
20625,
7203,
20451,
11899,
259,
4943,
16034,
3084,
62,
22,
2791,
2670,
33411,
366,
25777,
25,
20472,
28162,
1,
796,
705,
2780,
... |
bring the number of patients who have had 24 hr creatinine lab test and stayed in hospital for more than 26 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "26" AND lab.label = "24 hr Creatinine" | [
48580,
262,
1271,
286,
3871,
508,
423,
550,
1987,
39436,
1827,
259,
500,
2248,
1332,
290,
9658,
287,
4436,
329,
517,
621,
2608,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
48580,
262,
1271,
286,
3871,
508,
423,
550,
1987,
39436,
1827,
259,
500,
2248,
1332,
290,
9658,
287,
4436,
329,
517,
621,
2608,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
what number of patients admitted in emergency had drug code enox80i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.formulary_drug_cd = "ENOX80I" | [
10919,
1271,
286,
3871,
6848,
287,
6334,
550,
2563,
2438,
551,
1140,
1795,
72,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
6848,
287,
6334,
550,
2563,
2438,
551,
1140,
1795,
72,
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... |
For those records from the products and each product's manufacturer, what is the relationship between price and code , and group by attribute name? | SELECT T1.Price, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
644,
318,
262,
2776,
1022,
2756,
290,
2438,
837,
290,
1448,
416,
11688,
1438,
30,
46506,
309,
16,
13,
18124,
11,
309,
16,
13,
10669,
16034,
18675,
7054,
309,
16,
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
] | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
644,
318,
262,
2776,
1022,
2756,
290,
2438,
837,
290,
1448,
416,
11688,
1438,
30,
46506,
309,
16,
13,
18124,
11,
309,
16,
13,
10669,
16034,
18675,
7054,
309,
16,
3235... |
What is Date, when Score is '80-79'? | SELECT date FROM table_name_8 WHERE score = "80-79" | [
2061,
318,
7536,
11,
618,
15178,
318,
705,
1795,
12,
3720,
30960,
46506,
3128,
16034,
3084,
62,
3672,
62,
23,
33411,
4776,
796,
366,
1795,
12,
3720,
1
] | [
1,
1,
1,
1,
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,
7536,
11,
618,
15178,
318,
705,
1795,
12,
3720,
30960,
46506,
3128,
16034,
3084,
62,
3672,
62,
23,
33411,
4776,
796,
366,
1795,
12,
3720,
1
] |
What was the first year he placed 12th | SELECT MIN(year) FROM table_name_9 WHERE result = "12th" | [
2061,
373,
262,
717,
614,
339,
4624,
1105,
400,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
1255,
796,
366,
1065,
400,
1
] | [
1,
1,
1,
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,
717,
614,
339,
4624,
1105,
400,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
1255,
796,
366,
1065,
400,
1
] |
How many emergency hospital admission patients have calculus of bile duct without mention of cholecystitis or obstruction diagnoses? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Calculus of bile duct without mention of cholecystitis, without mention of obstruction" | [
2437,
867,
6334,
4436,
13938,
3871,
423,
41443,
286,
275,
576,
28494,
1231,
3068,
286,
1727,
293,
948,
301,
11815,
393,
28118,
40567,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6334,
4436,
13938,
3871,
423,
41443,
286,
275,
576,
28494,
1231,
3068,
286,
1727,
293,
948,
301,
11815,
393,
28118,
40567,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... |
What was the 1997 value when 2002 was A and 2003 was 1R? | SELECT "1997" FROM table_77105 WHERE "2002" = 'a' AND "2003" = '1r' | [
2061,
373,
262,
8309,
1988,
618,
6244,
373,
317,
290,
5816,
373,
352,
49,
30,
46506,
366,
21498,
1,
16034,
3084,
62,
3324,
13348,
33411,
366,
16942,
1,
796,
705,
64,
6,
5357,
366,
16088,
1,
796,
705,
16,
81,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
8309,
1988,
618,
6244,
373,
317,
290,
5816,
373,
352,
49,
30,
46506,
366,
21498,
1,
16034,
3084,
62,
3324,
13348,
33411,
366,
16942,
1,
796,
705,
64,
6,
5357,
366,
16088,
1,
796,
705,
16,
81,
6
] |
Name the total number of grounds for essendon | SELECT COUNT(ground) FROM table_16388047_1 WHERE home_team = "Essendon" | [
5376,
262,
2472,
1271,
286,
9384,
329,
3209,
43153,
46506,
327,
28270,
7,
2833,
8,
16034,
3084,
62,
1433,
2548,
1795,
2857,
62,
16,
33411,
1363,
62,
15097,
796,
366,
29508,
43153,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
1271,
286,
9384,
329,
3209,
43153,
46506,
327,
28270,
7,
2833,
8,
16034,
3084,
62,
1433,
2548,
1795,
2857,
62,
16,
33411,
1363,
62,
15097,
796,
366,
29508,
43153,
1
] |
Tell me the totla number of goal difference for goals against of 30 and played less than 18 | SELECT COUNT(goal_difference) FROM table_name_4 WHERE goals_against = 30 AND played < 18 | [
24446,
502,
262,
2006,
5031,
1271,
286,
3061,
3580,
329,
4661,
1028,
286,
1542,
290,
2826,
1342,
621,
1248,
46506,
327,
28270,
7,
35231,
62,
26069,
1945,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
4661,
62,
32826,
796,
1542,
5357,
2826,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
2006,
5031,
1271,
286,
3061,
3580,
329,
4661,
1028,
286,
1542,
290,
2826,
1342,
621,
1248,
46506,
327,
28270,
7,
35231,
62,
26069,
1945,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
4661,
62,
32826,
796,
1542,
5357,
2826,... |
List the ids of all distinct orders ordered by placed date. | SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed | [
8053,
262,
220,
2340,
286,
477,
7310,
6266,
6149,
416,
4624,
3128,
13,
46506,
360,
8808,
1268,
4177,
1502,
62,
312,
16034,
6266,
38678,
11050,
3128,
62,
2875,
62,
21820
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
220,
2340,
286,
477,
7310,
6266,
6149,
416,
4624,
3128,
13,
46506,
360,
8808,
1268,
4177,
1502,
62,
312,
16034,
6266,
38678,
11050,
3128,
62,
2875,
62,
21820
] |
Which Name has a Height (cm) of 175 and a Birthplace of detroit, michigan | SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = "detroit, michigan" | [
13828,
6530,
468,
257,
27280,
357,
11215,
8,
286,
19038,
290,
257,
17647,
5372,
286,
1062,
7775,
11,
285,
488,
5516,
46506,
1438,
16034,
3084,
62,
3672,
62,
3682,
33411,
6001,
834,
11215,
62,
796,
19038,
5357,
48145,
796,
366,
15255,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27280,
357,
11215,
8,
286,
19038,
290,
257,
17647,
5372,
286,
1062,
7775,
11,
285,
488,
5516,
46506,
1438,
16034,
3084,
62,
3672,
62,
3682,
33411,
6001,
834,
11215,
62,
796,
19038,
5357,
48145,
796,
366,
15255,
... |
When in November were they 11-7-3 with over 21 games? | SELECT MAX("November") FROM table_37984 WHERE "Record" = '11-7-3' AND "Game" > '21' | [
2215,
287,
3389,
547,
484,
1367,
12,
22,
12,
18,
351,
625,
2310,
1830,
30,
46506,
25882,
7203,
21159,
4943,
16034,
3084,
62,
2718,
4089,
19,
33411,
366,
23739,
1,
796,
705,
1157,
12,
22,
12,
18,
6,
5357,
366,
8777,
1,
1875,
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
] | [
2215,
287,
3389,
547,
484,
1367,
12,
22,
12,
18,
351,
625,
2310,
1830,
30,
46506,
25882,
7203,
21159,
4943,
16034,
3084,
62,
2718,
4089,
19,
33411,
366,
23739,
1,
796,
705,
1157,
12,
22,
12,
18,
6,
5357,
366,
8777,
1,
1875,
705,
... |
Show me how many in each class of all races using a bar chart, show in descending by the Y-axis. | SELECT Class, COUNT(Class) FROM race GROUP BY Class ORDER BY COUNT(Class) DESC | [
15307,
502,
703,
867,
287,
1123,
1398,
286,
477,
9558,
1262,
257,
2318,
8262,
11,
905,
287,
31491,
416,
262,
575,
12,
22704,
13,
46506,
5016,
11,
327,
28270,
7,
9487,
8,
16034,
3234,
44441,
11050,
5016,
38678,
11050,
327,
28270,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
703,
867,
287,
1123,
1398,
286,
477,
9558,
1262,
257,
2318,
8262,
11,
905,
287,
31491,
416,
262,
575,
12,
22704,
13,
46506,
5016,
11,
327,
28270,
7,
9487,
8,
16034,
3234,
44441,
11050,
5016,
38678,
11050,
327,
28270,
7,
... |
Which catalog has a format of 12' EP? | SELECT "Catalog" FROM table_66962 WHERE "Format" = '12" ep' | [
13828,
18388,
468,
257,
5794,
286,
1105,
6,
14724,
30,
46506,
366,
49015,
1,
16034,
3084,
62,
2791,
4846,
17,
33411,
366,
26227,
1,
796,
705,
1065,
1,
2462,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
18388,
468,
257,
5794,
286,
1105,
6,
14724,
30,
46506,
366,
49015,
1,
16034,
3084,
62,
2791,
4846,
17,
33411,
366,
26227,
1,
796,
705,
1065,
1,
2462,
6
] |
since 2105, did patient 010-16627 get antibiotics - quinolone in other hospitals? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '010-16627' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '010-16627' AND patient.hospitaldischargetime IS NULL)) AND tr... | [
20777,
362,
13348,
11,
750,
5827,
5534,
15,
12,
23055,
1983,
651,
22392,
532,
627,
259,
349,
505,
287,
584,
11301,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
362,
13348,
11,
750,
5827,
5534,
15,
12,
23055,
1983,
651,
22392,
532,
627,
259,
349,
505,
287,
584,
11301,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5... |
When was the circuit Donington Park? | SELECT date FROM table_22334183_3 WHERE circuit = "Donington Park" | [
2215,
373,
262,
10349,
2094,
9557,
3250,
30,
46506,
3128,
16034,
3084,
62,
1828,
31380,
24839,
62,
18,
33411,
10349,
796,
366,
3987,
9557,
3250,
1
] | [
1,
1,
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,
10349,
2094,
9557,
3250,
30,
46506,
3128,
16034,
3084,
62,
1828,
31380,
24839,
62,
18,
33411,
10349,
796,
366,
3987,
9557,
3250,
1
] |
Who was the opponent of the game that 31,293 people attended that had a final score of 9 - 6. | SELECT opponent FROM table_name_4 WHERE score = "9 - 6" AND attendance > 31 OFFSET 293 | [
8241,
373,
262,
6125,
286,
262,
983,
326,
3261,
11,
31675,
661,
9141,
326,
550,
257,
2457,
4776,
286,
860,
532,
718,
13,
46506,
6125,
16034,
3084,
62,
3672,
62,
19,
33411,
4776,
796,
366,
24,
532,
718,
1,
5357,
14858,
1875,
3261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
983,
326,
3261,
11,
31675,
661,
9141,
326,
550,
257,
2457,
4776,
286,
860,
532,
718,
13,
46506,
6125,
16034,
3084,
62,
3672,
62,
19,
33411,
4776,
796,
366,
24,
532,
718,
1,
5357,
14858,
1875,
3261,
... |
For those records from the products and each product's manufacturer, show me about the distribution of name and the average of code , and group by attribute name in a bar chart, and could you list by the Y in descending? | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
905,
502,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
287,
257,
2318,
8262,
11,
290,
714,
345,
1351,
416,
262,
575,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
905,
502,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
287,
257,
2318,
8262,
11,
290,
714,
345,
1351,
416,
262,
575,
287,
... |
Which restaurants have highest rating? List the restaurant name and its rating. | SELECT ResName, Rating FROM Restaurant ORDER BY Rating DESC LIMIT 1 | [
13828,
10808,
423,
4511,
7955,
30,
7343,
262,
7072,
1438,
290,
663,
7955,
13,
46506,
1874,
5376,
11,
12028,
16034,
26078,
38678,
11050,
12028,
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
] | [
13828,
10808,
423,
4511,
7955,
30,
7343,
262,
7072,
1438,
290,
663,
7955,
13,
46506,
1874,
5376,
11,
12028,
16034,
26078,
38678,
11050,
12028,
22196,
34,
27564,
2043,
352
] |
When was the earliest that New England Patriots played? | SELECT MIN("Week") FROM table_6277 WHERE "Opponent" = 'new england patriots' | [
2215,
373,
262,
14555,
326,
968,
4492,
13104,
2826,
30,
46506,
20625,
7203,
20916,
4943,
16034,
3084,
62,
21,
27019,
33411,
366,
27524,
3471,
1,
796,
705,
3605,
1786,
1044,
12650,
1747,
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
] | [
2215,
373,
262,
14555,
326,
968,
4492,
13104,
2826,
30,
46506,
20625,
7203,
20916,
4943,
16034,
3084,
62,
21,
27019,
33411,
366,
27524,
3471,
1,
796,
705,
3605,
1786,
1044,
12650,
1747,
6
] |
What medal was won in the 1996 Atlanta games in wrestling? | SELECT "Medal" FROM table_38769 WHERE "Games" = '1996 atlanta' AND "Sport" = 'wrestling' | [
2061,
18279,
373,
1839,
287,
262,
8235,
9371,
1830,
287,
16381,
30,
46506,
366,
9921,
282,
1,
16034,
3084,
62,
32220,
3388,
33411,
366,
24474,
1,
796,
705,
22288,
379,
75,
4910,
6,
5357,
366,
42576,
1,
796,
705,
86,
48839,
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
] | [
2061,
18279,
373,
1839,
287,
262,
8235,
9371,
1830,
287,
16381,
30,
46506,
366,
9921,
282,
1,
16034,
3084,
62,
32220,
3388,
33411,
366,
24474,
1,
796,
705,
22288,
379,
75,
4910,
6,
5357,
366,
42576,
1,
796,
705,
86,
48839,
6
] |
Return a histogram on what are the different role codes for users, and how many users have each?, rank by the total number in ascending please. | SELECT role_code, COUNT(*) FROM Users GROUP BY role_code ORDER BY COUNT(*) | [
13615,
257,
1554,
21857,
319,
644,
389,
262,
1180,
2597,
12416,
329,
2985,
11,
290,
703,
867,
2985,
423,
1123,
21747,
4279,
416,
262,
2472,
1271,
287,
41988,
3387,
13,
46506,
2597,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
18987,
444... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
1554,
21857,
319,
644,
389,
262,
1180,
2597,
12416,
329,
2985,
11,
290,
703,
867,
2985,
423,
1123,
21747,
4279,
416,
262,
2472,
1271,
287,
41988,
3387,
13,
46506,
2597,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
18987,
444... |
What was the to winning team when the tu winning team was joe amato carson baird? | SELECT "TO Winning Team" FROM table_18902 WHERE "TU Winning Team" = 'Joe Amato Carson Baird' | [
2061,
373,
262,
284,
5442,
1074,
618,
262,
12777,
5442,
1074,
373,
2525,
68,
716,
5549,
5006,
261,
275,
41620,
30,
46506,
366,
10468,
40983,
4816,
1,
16034,
3084,
62,
23362,
2999,
33411,
366,
51,
52,
40983,
4816,
1,
796,
705,
19585,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
5442,
1074,
618,
262,
12777,
5442,
1074,
373,
2525,
68,
716,
5549,
5006,
261,
275,
41620,
30,
46506,
366,
10468,
40983,
4816,
1,
16034,
3084,
62,
23362,
2999,
33411,
366,
51,
52,
40983,
4816,
1,
796,
705,
19585,
... |
What is the power output (kw) of model hxd2b? | SELECT "Power output (kW)" FROM table_74514 WHERE "Model" = 'hxd2b' | [
2061,
318,
262,
1176,
5072,
357,
46265,
8,
286,
2746,
289,
24954,
17,
65,
30,
46506,
366,
13434,
5072,
357,
74,
54,
16725,
16034,
3084,
62,
50150,
1415,
33411,
366,
17633,
1,
796,
705,
71,
24954,
17,
65,
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
] | [
2061,
318,
262,
1176,
5072,
357,
46265,
8,
286,
2746,
289,
24954,
17,
65,
30,
46506,
366,
13434,
5072,
357,
74,
54,
16725,
16034,
3084,
62,
50150,
1415,
33411,
366,
17633,
1,
796,
705,
71,
24954,
17,
65,
6
] |
What is the North American release date of the remake with a European release date on 2013-03-20? | SELECT "North American Release Date" FROM table_79014 WHERE "European Release Date" = '2013-03-20' | [
2061,
318,
262,
2258,
1605,
2650,
3128,
286,
262,
28763,
351,
257,
3427,
2650,
3128,
319,
2211,
12,
3070,
12,
1238,
30,
46506,
366,
14157,
1605,
13868,
7536,
1,
16034,
3084,
62,
3720,
28645,
33411,
366,
22030,
13868,
7536,
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
] | [
2061,
318,
262,
2258,
1605,
2650,
3128,
286,
262,
28763,
351,
257,
3427,
2650,
3128,
319,
2211,
12,
3070,
12,
1238,
30,
46506,
366,
14157,
1605,
13868,
7536,
1,
16034,
3084,
62,
3720,
28645,
33411,
366,
22030,
13868,
7536,
1,
796,
705... |
What is the average value for Fall 07 when Fall 05 is 271 and Fall 09 is less than 347? | SELECT AVG("Fall 07") FROM table_5186 WHERE "Fall 05" = '271' AND "Fall 09" < '347' | [
2061,
318,
262,
2811,
1988,
329,
7218,
8753,
618,
7218,
8870,
318,
33797,
290,
7218,
7769,
318,
1342,
621,
43292,
30,
46506,
35224,
7203,
24750,
8753,
4943,
16034,
3084,
62,
20,
25096,
33411,
366,
24750,
8870,
1,
796,
705,
28977,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1988,
329,
7218,
8753,
618,
7218,
8870,
318,
33797,
290,
7218,
7769,
318,
1342,
621,
43292,
30,
46506,
35224,
7203,
24750,
8753,
4943,
16034,
3084,
62,
20,
25096,
33411,
366,
24750,
8870,
1,
796,
705,
28977,
6,
5... |
Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008? | SELECT manufacturer FROM table_name_31 WHERE style = "steel sit down" AND opened > 2008 | [
13828,
40218,
468,
257,
17738,
286,
7771,
1650,
866,
11,
290,
281,
8670,
2945,
4025,
621,
3648,
30,
46506,
11554,
16034,
3084,
62,
3672,
62,
3132,
33411,
3918,
796,
366,
44822,
1650,
866,
1,
5357,
4721,
1875,
3648
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
40218,
468,
257,
17738,
286,
7771,
1650,
866,
11,
290,
281,
8670,
2945,
4025,
621,
3648,
30,
46506,
11554,
16034,
3084,
62,
3672,
62,
3132,
33411,
3918,
796,
366,
44822,
1650,
866,
1,
5357,
4721,
1875,
3648
] |
How many different counts for won points does Flavia Pennetta have? | SELECT COUNT("Points won") FROM table_3813 WHERE "Player" = 'Flavia Pennetta' | [
2437,
867,
1180,
9853,
329,
1839,
2173,
857,
33026,
544,
6595,
15253,
423,
30,
46506,
327,
28270,
7203,
40710,
1839,
4943,
16034,
3084,
62,
2548,
1485,
33411,
366,
14140,
1,
796,
705,
7414,
40543,
6595,
15253,
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
] | [
2437,
867,
1180,
9853,
329,
1839,
2173,
857,
33026,
544,
6595,
15253,
423,
30,
46506,
327,
28270,
7203,
40710,
1839,
4943,
16034,
3084,
62,
2548,
1485,
33411,
366,
14140,
1,
796,
705,
7414,
40543,
6595,
15253,
6
] |
what was patient 59275's first careunit of the ward until 2102? | SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 59275) AND NOT transfers.careunit IS NULL AND STRFTIME('%y', transfers.intime) <= '2102' ORDER BY transfers.intime LIMIT 1 | [
10919,
373,
5827,
7863,
23195,
338,
717,
1337,
20850,
286,
262,
15305,
1566,
362,
15377,
30,
46506,
16395,
13,
6651,
20850,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
2534... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
7863,
23195,
338,
717,
1337,
20850,
286,
262,
15305,
1566,
362,
15377,
30,
46506,
16395,
13,
6651,
20850,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
2534... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of founder and the sum of price , and group by attribute founder, could you sort by the total number of price in asc? | SELECT Founder, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY SUM(Price) | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
9119,
290,
262,
2160,
286,
2756,
837,
290,
1448,
416,
11688,
9119,
11,
714,
345,
3297,
416,
262,
2472,
1271,
286,
2756,
287,
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... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
9119,
290,
262,
2160,
286,
2756,
837,
290,
1448,
416,
11688,
9119,
11,
714,
345,
3297,
416,
262,
2472,
1271,
286,
2756,
287,
10... |
Which population areas have 'replaced by us 83' listed in their remarks section? | SELECT population_area FROM table_11336756_6 WHERE remarks = "Replaced by US 83" | [
13828,
3265,
3006,
423,
705,
260,
21820,
416,
514,
9698,
6,
5610,
287,
511,
10252,
2665,
30,
46506,
3265,
62,
20337,
16034,
3084,
62,
1157,
29211,
38219,
62,
21,
33411,
10252,
796,
366,
3041,
21820,
416,
1294,
9698,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
3006,
423,
705,
260,
21820,
416,
514,
9698,
6,
5610,
287,
511,
10252,
2665,
30,
46506,
3265,
62,
20337,
16034,
3084,
62,
1157,
29211,
38219,
62,
21,
33411,
10252,
796,
366,
3041,
21820,
416,
1294,
9698,
1
] |
What is home ground for coach Andrej Lemanis? | SELECT home_ground FROM table_name_68 WHERE coach = "andrej lemanis" | [
2061,
318,
1363,
2323,
329,
3985,
10948,
73,
406,
8463,
271,
30,
46506,
1363,
62,
2833,
16034,
3084,
62,
3672,
62,
3104,
33411,
3985,
796,
366,
49078,
73,
443,
805,
271,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
2323,
329,
3985,
10948,
73,
406,
8463,
271,
30,
46506,
1363,
62,
2833,
16034,
3084,
62,
3672,
62,
3104,
33411,
3985,
796,
366,
49078,
73,
443,
805,
271,
1
] |
in what year were the first pillow pals introduced ? | SELECT MIN("introduced") FROM table_204_111 | [
259,
644,
614,
547,
262,
717,
28774,
39898,
5495,
5633,
46506,
20625,
7203,
27427,
771,
4943,
16034,
3084,
62,
18638,
62,
16243
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
644,
614,
547,
262,
717,
28774,
39898,
5495,
5633,
46506,
20625,
7203,
27427,
771,
4943,
16034,
3084,
62,
18638,
62,
16243
] |
For all employees who have the letters D or S in their first name, a bar chart shows the distribution of hire_date and the sum of employee_id bin hire_date by weekday. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
13,
46506,
36210,
2200,
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... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
13,
46506,
36210,
2200,
62,... |
Tags with plus (+) in their name. | SELECT t.TagName AS "Tag Name", COALESCE('site://q/' + CAST(t.WikiPostId AS TEXT) + '|' + LEFT(e.Body, 100) + '...', '{empty}') AS "Tag Info" FROM Tags AS t LEFT JOIN Posts AS e ON e.Id = t.ExcerptPostId WHERE t.TagName LIKE '%+%' ORDER BY t.TagName | [
36142,
351,
5556,
11502,
8,
287,
511,
1438,
13,
46506,
256,
13,
24835,
5376,
7054,
366,
24835,
6530,
1600,
7375,
1847,
1546,
5222,
10786,
15654,
1378,
80,
14,
6,
1343,
327,
11262,
7,
83,
13,
32603,
6307,
7390,
7054,
40383,
8,
1343,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36142,
351,
5556,
11502,
8,
287,
511,
1438,
13,
46506,
256,
13,
24835,
5376,
7054,
366,
24835,
6530,
1600,
7375,
1847,
1546,
5222,
10786,
15654,
1378,
80,
14,
6,
1343,
327,
11262,
7,
83,
13,
32603,
6307,
7390,
7054,
40383,
8,
1343,
... |
Give me the comparison about author_tutor_ATB over the middle_name . | SELECT middle_name, author_tutor_ATB FROM Course_Authors_and_Tutors ORDER BY personal_name | [
23318,
502,
262,
7208,
546,
1772,
62,
83,
38409,
62,
1404,
33,
625,
262,
3504,
62,
3672,
764,
46506,
3504,
62,
3672,
11,
1772,
62,
83,
38409,
62,
1404,
33,
16034,
20537,
62,
30515,
669,
62,
392,
62,
51,
315,
669,
38678,
11050,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
7208,
546,
1772,
62,
83,
38409,
62,
1404,
33,
625,
262,
3504,
62,
3672,
764,
46506,
3504,
62,
3672,
11,
1772,
62,
83,
38409,
62,
1404,
33,
16034,
20537,
62,
30515,
669,
62,
392,
62,
51,
315,
669,
38678,
11050,
261... |
What is the population of the Parish, Plumbland, that had a former local authority of Cockermouth Rural District? | SELECT COUNT("Population") FROM table_39465 WHERE "Former local authority" = 'cockermouth rural district' AND "Name" = 'plumbland' | [
2061,
318,
262,
3265,
286,
262,
35240,
11,
1345,
2178,
1044,
11,
326,
550,
257,
1966,
1957,
4934,
286,
23769,
7780,
1536,
36486,
5665,
30,
46506,
327,
28270,
7203,
45251,
4943,
16034,
3084,
62,
34626,
2996,
33411,
366,
14282,
1957,
4934... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
286,
262,
35240,
11,
1345,
2178,
1044,
11,
326,
550,
257,
1966,
1957,
4934,
286,
23769,
7780,
1536,
36486,
5665,
30,
46506,
327,
28270,
7203,
45251,
4943,
16034,
3084,
62,
34626,
2996,
33411,
366,
14282,
1957,
4934... |
List the torque possible when the stroke is 88.4mm? | SELECT "Torque" FROM table_24051 WHERE "Stroke" = '88.4mm' | [
8053,
262,
26415,
1744,
618,
262,
14000,
318,
9193,
13,
19,
3020,
30,
46506,
366,
15884,
4188,
1,
16034,
3084,
62,
1731,
2713,
16,
33411,
366,
1273,
305,
365,
1,
796,
705,
3459,
13,
19,
3020,
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
] | [
8053,
262,
26415,
1744,
618,
262,
14000,
318,
9193,
13,
19,
3020,
30,
46506,
366,
15884,
4188,
1,
16034,
3084,
62,
1731,
2713,
16,
33411,
366,
1273,
305,
365,
1,
796,
705,
3459,
13,
19,
3020,
6
] |
How many patients of black/cape verdean ethnic origin were treated with the drug 1/2 ns? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND prescriptions.drug = "1/2 NS" | [
2437,
867,
3871,
286,
2042,
14,
36435,
3326,
2934,
272,
9450,
8159,
547,
5716,
351,
262,
2563,
352,
14,
17,
36545,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
3871,
286,
2042,
14,
36435,
3326,
2934,
272,
9450,
8159,
547,
5716,
351,
262,
2563,
352,
14,
17,
36545,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
What is the lowest Grid for jj lehto with over 51 laps? | SELECT MIN(grid) FROM table_name_81 WHERE laps > 51 AND driver = "jj lehto" | [
2061,
318,
262,
9016,
24846,
329,
474,
73,
443,
71,
1462,
351,
625,
6885,
24590,
30,
46506,
20625,
7,
25928,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
24590,
1875,
6885,
5357,
4639,
796,
366,
41098,
443,
71,
1462,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24846,
329,
474,
73,
443,
71,
1462,
351,
625,
6885,
24590,
30,
46506,
20625,
7,
25928,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
24590,
1875,
6885,
5357,
4639,
796,
366,
41098,
443,
71,
1462,
1
] |
Who was the girl on week 2 that was previous to week 4's Chelsie Loraine? | SELECT week_2 FROM table_name_73 WHERE week_4 = "chelsie loraine" | [
8241,
373,
262,
2576,
319,
1285,
362,
326,
373,
2180,
284,
1285,
604,
338,
2580,
7278,
494,
26068,
5718,
30,
46506,
1285,
62,
17,
16034,
3084,
62,
3672,
62,
4790,
33411,
1285,
62,
19,
796,
366,
2395,
7278,
494,
300,
273,
5718,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2576,
319,
1285,
362,
326,
373,
2180,
284,
1285,
604,
338,
2580,
7278,
494,
26068,
5718,
30,
46506,
1285,
62,
17,
16034,
3084,
62,
3672,
62,
4790,
33411,
1285,
62,
19,
796,
366,
2395,
7278,
494,
300,
273,
5718,
1
] |
What is the country where there are 8 children per donor and no data for donor payments? | SELECT country FROM table_16175217_1 WHERE children_per_donor = "8 children" AND donor_payment = "no data" | [
2061,
318,
262,
1499,
810,
612,
389,
807,
1751,
583,
17052,
290,
645,
1366,
329,
17052,
7524,
30,
46506,
1499,
16034,
3084,
62,
1433,
1558,
4309,
1558,
62,
16,
33411,
1751,
62,
525,
62,
9099,
273,
796,
366,
23,
1751,
1,
5357,
17052,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
810,
612,
389,
807,
1751,
583,
17052,
290,
645,
1366,
329,
17052,
7524,
30,
46506,
1499,
16034,
3084,
62,
1433,
1558,
4309,
1558,
62,
16,
33411,
1751,
62,
525,
62,
9099,
273,
796,
366,
23,
1751,
1,
5357,
17052,... |
Name the 2 car sets for 622 | SELECT "2-car sets" FROM table_22912 WHERE "Total vehicles" = '622' | [
5376,
262,
362,
1097,
5621,
329,
718,
1828,
46506,
366,
17,
12,
7718,
5621,
1,
16034,
3084,
62,
23539,
1065,
33411,
366,
14957,
5672,
1,
796,
705,
21,
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
] | [
5376,
262,
362,
1097,
5621,
329,
718,
1828,
46506,
366,
17,
12,
7718,
5621,
1,
16034,
3084,
62,
23539,
1065,
33411,
366,
14957,
5672,
1,
796,
705,
21,
1828,
6
] |
what were the top three most frequent inputs event since 5 years ago? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE DATETIME(inputevents_cv.charttime) >= DATETIME(CURRENT_TIME(), '-5 year') GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 3) | [
10919,
547,
262,
1353,
1115,
749,
10792,
17311,
1785,
1201,
642,
812,
2084,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1115,
749,
10792,
17311,
1785,
1201,
642,
812,
2084,
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... |
Find questions with one specific tag. | SELECT Id AS "post_link", CreationDate FROM Posts WHERE PostTypeId = 1 AND Tags LIKE LOWER('%hard-science%') ORDER BY CreationDate DESC LIMIT 5000 | [
16742,
2683,
351,
530,
2176,
7621,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
21582,
10430,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
44789,
34178,
406,
36048,
10786,
4,
10424,
12,
16801,
4,
11537,
38678,
11050,
21582,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
2683,
351,
530,
2176,
7621,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
21582,
10430,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
44789,
34178,
406,
36048,
10786,
4,
10424,
12,
16801,
4,
11537,
38678,
11050,
21582,... |
what are the four most frequently ordered microbiological tests until 2104 for patients that received kidney stone procedure - with removal of ureteral calculus previously within 2 months? | SELECT t3.culturesite FROM (SELECT t2.culturesite, 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 = 'kidney stone procedure - with removal of ure... | [
10919,
389,
262,
1440,
749,
6777,
6149,
24559,
2770,
5254,
1566,
362,
13464,
329,
3871,
326,
2722,
21919,
7815,
8771,
532,
351,
9934,
286,
334,
260,
353,
282,
41443,
4271,
1626,
362,
1933,
30,
46506,
256,
18,
13,
40820,
942,
578,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1440,
749,
6777,
6149,
24559,
2770,
5254,
1566,
362,
13464,
329,
3871,
326,
2722,
21919,
7815,
8771,
532,
351,
9934,
286,
334,
260,
353,
282,
41443,
4271,
1626,
362,
1933,
30,
46506,
256,
18,
13,
40820,
942,
578,
1603... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a line chart about the change of employee_id over hire_date , and rank from high to low by the HIRE_DATE. | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
1627,
8262,
546,
262,
1487,
286,
6538,
62,
312,
625,
11078,
62,
4475,
837,
290,
4279,
422,
1029,
284,
1877,
416,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1627,
8262,
546,
262,
1487,
286,
6538,
62,
312,
625,
11078,
62,
4475,
837,
290,
4279,
422,
1029,
284,
1877,
416,
... |
What was the date of the game when g. rivers (5) had the high assists? | SELECT date FROM table_27882867_9 WHERE high_assists = "G. Rivers (5)" | [
2061,
373,
262,
3128,
286,
262,
983,
618,
308,
13,
18180,
357,
20,
8,
550,
262,
1029,
13648,
30,
46506,
3128,
16034,
3084,
62,
1983,
3459,
2078,
3134,
62,
24,
33411,
1029,
62,
562,
1023,
796,
366,
38,
13,
18280,
357,
20,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3128,
286,
262,
983,
618,
308,
13,
18180,
357,
20,
8,
550,
262,
1029,
13648,
30,
46506,
3128,
16034,
3084,
62,
1983,
3459,
2078,
3134,
62,
24,
33411,
1029,
62,
562,
1023,
796,
366,
38,
13,
18280,
357,
20,
16725
] |
What is the total number of U Wins, when Alianza Goals is '0', and when U Goals is greater than 3? | SELECT COUNT("U wins") FROM table_76227 WHERE "Alianza goals" = '0' AND "U goals" > '3' | [
2061,
318,
262,
2472,
1271,
286,
471,
24423,
11,
618,
978,
666,
4496,
28510,
318,
705,
15,
3256,
290,
618,
471,
28510,
318,
3744,
621,
513,
30,
46506,
327,
28270,
7203,
52,
7864,
4943,
16034,
3084,
62,
4304,
24403,
33411,
366,
2348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
471,
24423,
11,
618,
978,
666,
4496,
28510,
318,
705,
15,
3256,
290,
618,
471,
28510,
318,
3744,
621,
513,
30,
46506,
327,
28270,
7203,
52,
7864,
4943,
16034,
3084,
62,
4304,
24403,
33411,
366,
2348,
... |
Difference of - 20, and a Position smaller than 17 is the highest against? | SELECT MAX("Against") FROM table_37850 WHERE "Difference" = '- 20' AND "Position" < '17' | [
28813,
1945,
286,
532,
1160,
11,
290,
257,
23158,
4833,
621,
1596,
318,
262,
4511,
1028,
30,
46506,
25882,
7203,
39276,
4943,
16034,
3084,
62,
2718,
25764,
33411,
366,
28813,
1945,
1,
796,
705,
12,
1160,
6,
5357,
366,
26545,
1,
1279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
28813,
1945,
286,
532,
1160,
11,
290,
257,
23158,
4833,
621,
1596,
318,
262,
4511,
1028,
30,
46506,
25882,
7203,
39276,
4943,
16034,
3084,
62,
2718,
25764,
33411,
366,
28813,
1945,
1,
796,
705,
12,
1160,
6,
5357,
366,
26545,
1,
1279,
... |
PM - Questions raised last week. | SELECT DATENAME(dw, CreationDate), COUNT(1) FROM Posts WHERE CreationDate > DATEADD(DAY, -120, CURRENT_TIMESTAMP()) AND ParentId IS NULL GROUP BY DATENAME(dw, CreationDate) | [
5868,
532,
20396,
4376,
938,
1285,
13,
46506,
360,
1404,
1677,
10067,
7,
67,
86,
11,
21582,
10430,
828,
327,
28270,
7,
16,
8,
16034,
12043,
33411,
21582,
10430,
1875,
360,
6158,
29266,
7,
26442,
11,
532,
10232,
11,
327,
39237,
62,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5868,
532,
20396,
4376,
938,
1285,
13,
46506,
360,
1404,
1677,
10067,
7,
67,
86,
11,
21582,
10430,
828,
327,
28270,
7,
16,
8,
16034,
12043,
33411,
21582,
10430,
1875,
360,
6158,
29266,
7,
26442,
11,
532,
10232,
11,
327,
39237,
62,
5... |
What is the pole position for the ferrari at the austrian grand prix? | SELECT "Pole Position" FROM table_16642 WHERE "Constructor" = 'Ferrari' AND "Grand Prix" = 'Austrian Grand Prix' | [
2061,
318,
262,
16825,
2292,
329,
262,
277,
8056,
2743,
379,
262,
38132,
4484,
4490,
1293,
87,
30,
46506,
366,
47,
2305,
23158,
1,
16034,
3084,
62,
1433,
41290,
33411,
366,
42316,
273,
1,
796,
705,
37,
8056,
2743,
6,
5357,
366,
2358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16825,
2292,
329,
262,
277,
8056,
2743,
379,
262,
38132,
4484,
4490,
1293,
87,
30,
46506,
366,
47,
2305,
23158,
1,
16034,
3084,
62,
1433,
41290,
33411,
366,
42316,
273,
1,
796,
705,
37,
8056,
2743,
6,
5357,
366,
2358... |
What is geelong's aberage crowd as Away Team? | SELECT AVG(crowd) FROM table_name_13 WHERE away_team = "geelong" | [
2061,
318,
4903,
21537,
338,
42499,
496,
4315,
355,
21986,
4816,
30,
46506,
35224,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
1497,
62,
15097,
796,
366,
469,
21537,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
4903,
21537,
338,
42499,
496,
4315,
355,
21986,
4816,
30,
46506,
35224,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
1485,
33411,
1497,
62,
15097,
796,
366,
469,
21537,
1
] |
What higher harmonics have an NOAA of 8? | SELECT "Higher harmonics" FROM table_4565 WHERE "NOAA" = '8' | [
2061,
2440,
25625,
873,
423,
281,
36184,
286,
807,
30,
46506,
366,
48708,
25625,
873,
1,
16034,
3084,
62,
2231,
2996,
33411,
366,
15285,
3838,
1,
796,
705,
23,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2440,
25625,
873,
423,
281,
36184,
286,
807,
30,
46506,
366,
48708,
25625,
873,
1,
16034,
3084,
62,
2231,
2996,
33411,
366,
15285,
3838,
1,
796,
705,
23,
6
] |
what are the DINNER flights from INDIANAPOLIS to SAN DIEGO on wednesday may twelfth | 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, food_service WHERE ((date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.... | [
10919,
389,
262,
360,
1268,
21479,
13956,
422,
24413,
16868,
2969,
3535,
1797,
284,
37376,
14766,
7156,
46,
319,
29445,
3462,
743,
665,
44659,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
360,
1268,
21479,
13956,
422,
24413,
16868,
2969,
3535,
1797,
284,
37376,
14766,
7156,
46,
319,
29445,
3462,
743,
665,
44659,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
... |
How many schools did player number 3 play at? | SELECT COUNT("School/Club Team") FROM table_72068 WHERE "No." = '3' | [
2437,
867,
4266,
750,
2137,
1271,
513,
711,
379,
30,
46506,
327,
28270,
7203,
26130,
14,
42350,
4816,
4943,
16034,
3084,
62,
23906,
3104,
33411,
366,
2949,
526,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
4266,
750,
2137,
1271,
513,
711,
379,
30,
46506,
327,
28270,
7203,
26130,
14,
42350,
4816,
4943,
16034,
3084,
62,
23906,
3104,
33411,
366,
2949,
526,
796,
705,
18,
6
] |
How many seats in 2001 with a quantity greater than 4? | SELECT COUNT(number_of_seats) FROM table_name_17 WHERE year = "2001" AND quantity > 4 | [
2437,
867,
8632,
287,
5878,
351,
257,
12040,
3744,
621,
604,
30,
46506,
327,
28270,
7,
17618,
62,
1659,
62,
325,
1381,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
614,
796,
366,
14585,
1,
5357,
12040,
1875,
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,
1,
1,
1
] | [
2437,
867,
8632,
287,
5878,
351,
257,
12040,
3744,
621,
604,
30,
46506,
327,
28270,
7,
17618,
62,
1659,
62,
325,
1381,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
614,
796,
366,
14585,
1,
5357,
12040,
1875,
604
] |
Average time to Answer a question. | SELECT p1.Id AS "AnsID", p1.ParentId AS "QuestionId", p1.CreationDate AS "AnsCreationdate", p2.CreationDate AS "QuestionCreationdate", CAST((JULIANDAY(CreationDate) - JULIANDAY(p2.CreationDate)) * 1440.0 AS INT) AS Time_Difference FROM Posts AS p1 JOIN Posts AS p2 ON p1.ParentId = p2.Id WHERE p1.PostTypeId = 2 AND p1.P... | [
26287,
640,
284,
23998,
257,
1808,
13,
46506,
279,
16,
13,
7390,
7054,
366,
2025,
82,
2389,
1600,
279,
16,
13,
24546,
7390,
7054,
366,
24361,
7390,
1600,
279,
16,
13,
12443,
341,
10430,
7054,
366,
2025,
82,
12443,
341,
4475,
1600,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26287,
640,
284,
23998,
257,
1808,
13,
46506,
279,
16,
13,
7390,
7054,
366,
2025,
82,
2389,
1600,
279,
16,
13,
24546,
7390,
7054,
366,
24361,
7390,
1600,
279,
16,
13,
12443,
341,
10430,
7054,
366,
2025,
82,
12443,
341,
4475,
1600,
2... |
For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and the amount of name , and group by attribute name, sort by the y-axis from high to low. | SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY COUNT(T2.Name) DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2033,
286,
1438,
837,
290,
1448,
416,
11688,
1438,
11,
3297,
416,
262,
331,
12,
22704,
422,
1029,
284,
187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2033,
286,
1438,
837,
290,
1448,
416,
11688,
1438,
11,
3297,
416,
262,
331,
12,
22704,
422,
1029,
284,
187... |
What is the result of the game when the competition was a friendly match, and the Score was 1 1? | SELECT result FROM table_name_65 WHERE competition = "friendly match" AND score = "1 – 1" | [
2061,
318,
262,
1255,
286,
262,
983,
618,
262,
5449,
373,
257,
8030,
2872,
11,
290,
262,
15178,
373,
352,
352,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2996,
33411,
5449,
796,
366,
13120,
2872,
1,
5357,
4776,
796,
366,
16,
784,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
286,
262,
983,
618,
262,
5449,
373,
257,
8030,
2872,
11,
290,
262,
15178,
373,
352,
352,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2996,
33411,
5449,
796,
366,
13120,
2872,
1,
5357,
4776,
796,
366,
16,
784,
... |
If the rings is 58.975, what is the number for the horizontal bar? | SELECT "Horizontal Bar" FROM table_22536 WHERE "Rings" = '58.975' | [
1532,
262,
13917,
318,
7618,
13,
42716,
11,
644,
318,
262,
1271,
329,
262,
16021,
2318,
30,
46506,
366,
27991,
38342,
2409,
1,
16034,
3084,
62,
18182,
2623,
33411,
366,
49,
654,
1,
796,
705,
3365,
13,
42716,
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
] | [
1532,
262,
13917,
318,
7618,
13,
42716,
11,
644,
318,
262,
1271,
329,
262,
16021,
2318,
30,
46506,
366,
27991,
38342,
2409,
1,
16034,
3084,
62,
18182,
2623,
33411,
366,
49,
654,
1,
796,
705,
3365,
13,
42716,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, find job_id and salary , and visualize them by a bar chart, sort by the bar from high to low. | SELECT JOB_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
1693,
62,
312,
290,
9588,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
3297,
416,
262,
2318,
422,
1029,
284,
1877,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
1693,
62,
312,
290,
9588,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
3297,
416,
262,
2318,
422,
1029,
284,
1877,
... |
Which Team has a Recopa Sudamericana 1992 of runner-up? | SELECT "Team" FROM table_5224 WHERE "Recopa Sudamericana 1992" = 'runner-up' | [
13828,
4816,
468,
257,
3311,
26186,
14818,
2382,
291,
2271,
9768,
286,
17490,
12,
929,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
4309,
1731,
33411,
366,
6690,
26186,
14818,
2382,
291,
2271,
9768,
1,
796,
705,
16737,
12,
929,
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
] | [
13828,
4816,
468,
257,
3311,
26186,
14818,
2382,
291,
2271,
9768,
286,
17490,
12,
929,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
4309,
1731,
33411,
366,
6690,
26186,
14818,
2382,
291,
2271,
9768,
1,
796,
705,
16737,
12,
929,
6
] |
How many times was the motorcycle ducati 916 2nd place when wins is less than 7? | SELECT SUM(2 AS nd_pl) FROM table_name_14 WHERE motorcycle = "ducati 916" AND wins < 7 | [
2437,
867,
1661,
373,
262,
18757,
288,
1229,
7246,
860,
1433,
362,
358,
1295,
618,
7864,
318,
1342,
621,
767,
30,
46506,
35683,
7,
17,
7054,
299,
67,
62,
489,
8,
16034,
3084,
62,
3672,
62,
1415,
33411,
18757,
796,
366,
6077,
7246,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18757,
288,
1229,
7246,
860,
1433,
362,
358,
1295,
618,
7864,
318,
1342,
621,
767,
30,
46506,
35683,
7,
17,
7054,
299,
67,
62,
489,
8,
16034,
3084,
62,
3672,
62,
1415,
33411,
18757,
796,
366,
6077,
7246,
... |
How many laps had a grid of greater than 17 and retired due to collision? | SELECT SUM("Laps") FROM table_56101 WHERE "Grid" > '17' AND "Time/Retired" = 'collision' | [
2437,
867,
24590,
550,
257,
10706,
286,
3744,
621,
1596,
290,
9880,
2233,
284,
17661,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
3980,
8784,
33411,
366,
41339,
1,
1875,
705,
1558,
6,
5357,
366,
7575,
14,
9781,
1202,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24590,
550,
257,
10706,
286,
3744,
621,
1596,
290,
9880,
2233,
284,
17661,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
3980,
8784,
33411,
366,
41339,
1,
1875,
705,
1558,
6,
5357,
366,
7575,
14,
9781,
1202,
1,
... |
What is the result of the game with 57,234 people in attendance? | SELECT "Result" FROM table_78818 WHERE "Attendance" = '57,234' | [
2061,
318,
262,
1255,
286,
262,
983,
351,
7632,
11,
24409,
661,
287,
14858,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
22,
3459,
1507,
33411,
366,
8086,
437,
590,
1,
796,
705,
3553,
11,
24409,
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
] | [
2061,
318,
262,
1255,
286,
262,
983,
351,
7632,
11,
24409,
661,
287,
14858,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
22,
3459,
1507,
33411,
366,
8086,
437,
590,
1,
796,
705,
3553,
11,
24409,
6
] |
is mchc patient 017-73567 last measured on the first hospital visit, less than second to last measured on the first hospital visit? | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-73567' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi... | [
271,
285,
354,
66,
5827,
5534,
22,
12,
22,
2327,
3134,
938,
8630,
319,
262,
717,
4436,
3187,
11,
1342,
621,
1218,
284,
938,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
2248,
13,
23912,
20274,
16034,
2248,
33411,
2248,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
285,
354,
66,
5827,
5534,
22,
12,
22,
2327,
3134,
938,
8630,
319,
262,
717,
4436,
3187,
11,
1342,
621,
1218,
284,
938,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
2248,
13,
23912,
20274,
16034,
2248,
33411,
2248,
13... |
How many were penanced with 0 executions in effigie for a total of 21? | SELECT penanced FROM table_name_65 WHERE executions_in_effigie = "0" AND total = "21" | [
2437,
867,
547,
3112,
2903,
351,
657,
30632,
287,
914,
328,
494,
329,
257,
2472,
286,
2310,
30,
46506,
3112,
2903,
16034,
3084,
62,
3672,
62,
2996,
33411,
30632,
62,
259,
62,
14822,
328,
494,
796,
366,
15,
1,
5357,
2472,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
547,
3112,
2903,
351,
657,
30632,
287,
914,
328,
494,
329,
257,
2472,
286,
2310,
30,
46506,
3112,
2903,
16034,
3084,
62,
3672,
62,
2996,
33411,
30632,
62,
259,
62,
14822,
328,
494,
796,
366,
15,
1,
5357,
2472,
796,
366,
... |
Tag wikis with internal/Wikipedia http:// links. | SELECT DISTINCT Tags.Id, Tags.Count, Tags.TagName, 'site://tags/' + Tags.TagName + '/info|Url' AS Url FROM Tags LEFT JOIN Posts ON Posts.Id = Tags.WikiPostId OR Posts.Id = Tags.ExcerptPostId WHERE (LOWER(Posts.Body) LIKE '%http://%.stackexchange.com%' OR LOWER(Posts.Body) LIKE '%http://stackexchange.com%' OR LOWER(Post... | [
24835,
47145,
271,
351,
5387,
14,
48845,
2638,
1378,
6117,
13,
46506,
360,
8808,
1268,
4177,
44789,
13,
7390,
11,
44789,
13,
12332,
11,
44789,
13,
24835,
5376,
11,
705,
15654,
1378,
31499,
14,
6,
1343,
44789,
13,
24835,
5376,
1343,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
24835,
47145,
271,
351,
5387,
14,
48845,
2638,
1378,
6117,
13,
46506,
360,
8808,
1268,
4177,
44789,
13,
7390,
11,
44789,
13,
12332,
11,
44789,
13,
24835,
5376,
11,
705,
15654,
1378,
31499,
14,
6,
1343,
44789,
13,
24835,
5376,
1343,
31... |
who reigned before j money ? | SELECT "wrestlers" FROM table_204_37 WHERE "#" = (SELECT "#" FROM table_204_37 WHERE "wrestlers" = 'j-money') - 1 | [
8727,
302,
3916,
878,
474,
1637,
5633,
46506,
366,
86,
2118,
8116,
1,
16034,
3084,
62,
18638,
62,
2718,
33411,
25113,
1,
796,
357,
46506,
25113,
1,
16034,
3084,
62,
18638,
62,
2718,
33411,
366,
86,
2118,
8116,
1,
796,
705,
73,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
302,
3916,
878,
474,
1637,
5633,
46506,
366,
86,
2118,
8116,
1,
16034,
3084,
62,
18638,
62,
2718,
33411,
25113,
1,
796,
357,
46506,
25113,
1,
16034,
3084,
62,
18638,
62,
2718,
33411,
366,
86,
2118,
8116,
1,
796,
705,
73,
12,
... |
What is High Points, when Team is @ Phoenix? | SELECT "High points" FROM table_7168 WHERE "Team" = '@ phoenix' | [
2061,
318,
3334,
11045,
11,
618,
4816,
318,
2488,
9643,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
22,
14656,
33411,
366,
15592,
1,
796,
705,
31,
872,
8538,
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,
3334,
11045,
11,
618,
4816,
318,
2488,
9643,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
22,
14656,
33411,
366,
15592,
1,
796,
705,
31,
872,
8538,
6
] |
What was the position in a year after 2005 with a class position of 5th? | SELECT "Pos." FROM table_71641 WHERE "Year" > '2005' AND "Class Pos." = '5th' | [
2061,
373,
262,
2292,
287,
257,
614,
706,
5075,
351,
257,
1398,
2292,
286,
642,
400,
30,
46506,
366,
21604,
526,
16034,
3084,
62,
22,
1433,
3901,
33411,
366,
17688,
1,
1875,
705,
14315,
6,
5357,
366,
9487,
18574,
526,
796,
705,
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,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2292,
287,
257,
614,
706,
5075,
351,
257,
1398,
2292,
286,
642,
400,
30,
46506,
366,
21604,
526,
16034,
3084,
62,
22,
1433,
3901,
33411,
366,
17688,
1,
1875,
705,
14315,
6,
5357,
366,
9487,
18574,
526,
796,
705,
20,
... |
How many times did outgoing manager Bart de Roover vacated a position? | SELECT COUNT(date_of_vacancy) FROM table_27374004_4 WHERE outgoing_manager = "Bart De Roover" | [
2437,
867,
1661,
750,
28181,
4706,
13167,
390,
371,
2238,
332,
46346,
257,
2292,
30,
46506,
327,
28270,
7,
4475,
62,
1659,
62,
85,
330,
3883,
8,
16034,
3084,
62,
1983,
2718,
7029,
19,
62,
19,
33411,
28181,
62,
37153,
796,
366,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
28181,
4706,
13167,
390,
371,
2238,
332,
46346,
257,
2292,
30,
46506,
327,
28270,
7,
4475,
62,
1659,
62,
85,
330,
3883,
8,
16034,
3084,
62,
1983,
2718,
7029,
19,
62,
19,
33411,
28181,
62,
37153,
796,
366,
33,
... |
What was the date of the record of 43-28? | SELECT "Date" FROM table_70637 WHERE "Record" = '43-28' | [
2061,
373,
262,
3128,
286,
262,
1700,
286,
5946,
12,
2078,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
35402,
2718,
33411,
366,
23739,
1,
796,
705,
3559,
12,
2078,
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,
373,
262,
3128,
286,
262,
1700,
286,
5946,
12,
2078,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
35402,
2718,
33411,
366,
23739,
1,
796,
705,
3559,
12,
2078,
6
] |
retrieve the ids of patients who are diagnosed with elvtd prstate spcf antgn until 2102. | SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'elvtd prstate spcf antgn') AND STRFTIME('%y', diagnoses_icd.charttime) <= ... | [
1186,
30227,
262,
220,
2340,
286,
3871,
508,
389,
14641,
351,
1288,
85,
8671,
778,
5219,
599,
12993,
1885,
4593,
1566,
362,
15377,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
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... | [
1186,
30227,
262,
220,
2340,
286,
3871,
508,
389,
14641,
351,
1288,
85,
8671,
778,
5219,
599,
12993,
1885,
4593,
1566,
362,
15377,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46... |
What is the sum of Swimsuit scores where the average score is 9.733 and the interview score is higher than 9.654? | SELECT SUM("Swimsuit") FROM table_46663 WHERE "Average" = '9.733' AND "Interview" > '9.654' | [
2061,
318,
262,
2160,
286,
35953,
6063,
8198,
810,
262,
2811,
4776,
318,
860,
13,
49995,
290,
262,
2720,
4776,
318,
2440,
621,
860,
13,
39111,
30,
46506,
35683,
7203,
10462,
320,
6063,
4943,
16034,
3084,
62,
42199,
5066,
33411,
366,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
35953,
6063,
8198,
810,
262,
2811,
4776,
318,
860,
13,
49995,
290,
262,
2720,
4776,
318,
2440,
621,
860,
13,
39111,
30,
46506,
35683,
7203,
10462,
320,
6063,
4943,
16034,
3084,
62,
42199,
5066,
33411,
366,
2... |
What is the average for silver when bronze is less than 1, and gold is more than 0? | SELECT AVG("Silver") FROM table_75067 WHERE "Bronze" < '1' AND "Gold" > '0' | [
2061,
318,
262,
2811,
329,
8465,
618,
22101,
318,
1342,
621,
352,
11,
290,
3869,
318,
517,
621,
657,
30,
46506,
35224,
7203,
26766,
4943,
16034,
3084,
62,
15426,
3134,
33411,
366,
18760,
2736,
1,
1279,
705,
16,
6,
5357,
366,
13306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
8465,
618,
22101,
318,
1342,
621,
352,
11,
290,
3869,
318,
517,
621,
657,
30,
46506,
35224,
7203,
26766,
4943,
16034,
3084,
62,
15426,
3134,
33411,
366,
18760,
2736,
1,
1279,
705,
16,
6,
5357,
366,
13306,
... |
When did the 4th finisher enter? | SELECT entered FROM table_14345690_2 WHERE finished = "4th" | [
2215,
750,
262,
604,
400,
957,
4828,
3802,
30,
46506,
5982,
16034,
3084,
62,
21139,
2231,
35844,
62,
17,
33411,
5201,
796,
366,
19,
400,
1
] | [
1,
1,
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,
750,
262,
604,
400,
957,
4828,
3802,
30,
46506,
5982,
16034,
3084,
62,
21139,
2231,
35844,
62,
17,
33411,
5201,
796,
366,
19,
400,
1
] |
Group and count the move in date in a bar chart, and bin the X-axis into week day interval, and I want to order from low to high by the how many date moved in. | SELECT date_moved_in, COUNT(date_moved_in) FROM Customer_Events ORDER BY COUNT(date_moved_in) | [
13247,
290,
954,
262,
1445,
287,
3128,
287,
257,
2318,
8262,
11,
290,
9874,
262,
1395,
12,
22704,
656,
1285,
1110,
16654,
11,
290,
314,
765,
284,
1502,
422,
1877,
284,
1029,
416,
262,
703,
867,
3128,
3888,
287,
13,
46506,
3128,
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... | [
13247,
290,
954,
262,
1445,
287,
3128,
287,
257,
2318,
8262,
11,
290,
9874,
262,
1395,
12,
22704,
656,
1285,
1110,
16654,
11,
290,
314,
765,
284,
1502,
422,
1877,
284,
1029,
416,
262,
703,
867,
3128,
3888,
287,
13,
46506,
3128,
62,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.